aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/anon01/anon02.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/anon01/anon02.vhdl')
-rw-r--r--testsuite/synth/anon01/anon02.vhdl26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/synth/anon01/anon02.vhdl b/testsuite/synth/anon01/anon02.vhdl
new file mode 100644
index 000000000..5628d9afc
--- /dev/null
+++ b/testsuite/synth/anon01/anon02.vhdl
@@ -0,0 +1,26 @@
+entity anon02_sub is
+ port (i : bit_vector (7 downto 0);
+ o : out bit_vector (7 downto 0));
+end anon02_sub;
+
+architecture behav of anon02_sub is
+begin
+ o <= i xor x"a5";
+end behav;
+
+entity anon02 is
+ port (i : bit_vector (6 downto 0);
+ o : out bit_vector (6 downto 0));
+end anon02;
+
+architecture behav of anon02 is
+ signal res : bit_vector (7 downto 0);
+begin
+ dut: entity work.anon02_sub
+ port map (i => '0' & i,
+ o => res);
+ o <= res (6 downto 0);
+ gen: for i in 1 to 2 generate
+ assert i < 3;
+ end generate;
+end behav;