aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/iassoc01/tb_iassoc12.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/iassoc01/tb_iassoc12.vhdl')
-rw-r--r--testsuite/synth/iassoc01/tb_iassoc12.vhdl29
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/synth/iassoc01/tb_iassoc12.vhdl b/testsuite/synth/iassoc01/tb_iassoc12.vhdl
new file mode 100644
index 000000000..f7f5241d0
--- /dev/null
+++ b/testsuite/synth/iassoc01/tb_iassoc12.vhdl
@@ -0,0 +1,29 @@
+entity tb_iassoc12 is
+end tb_iassoc12;
+
+library ieee;
+use ieee.std_logic_1164.all;
+
+architecture behav of tb_iassoc12 is
+ signal a : natural;
+ signal b : natural;
+ signal v : natural;
+begin
+ dut: entity work.iassoc12
+ port map (v, a, b);
+
+ process
+ begin
+ v <= 5;
+ wait for 1 ns;
+ assert a = 6 severity failure;
+ assert b = 7 severity failure;
+
+ v <= 203;
+ wait for 1 ns;
+ assert a = 204 severity failure;
+ assert b = 205 severity failure;
+
+ wait;
+ end process;
+end behav;