diff options
Diffstat (limited to 'testsuite/synth/ret01/tb_ret02.vhdl')
-rw-r--r-- | testsuite/synth/ret01/tb_ret02.vhdl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/synth/ret01/tb_ret02.vhdl b/testsuite/synth/ret01/tb_ret02.vhdl new file mode 100644 index 000000000..a9f56c4d1 --- /dev/null +++ b/testsuite/synth/ret01/tb_ret02.vhdl @@ -0,0 +1,26 @@ +entity tb_ret02 is +end tb_ret02; + +library ieee; +use ieee.std_logic_1164.all; + +architecture behav of tb_ret02 is + signal d : std_logic_vector (7 downto 0); + signal r : integer; +begin + dut: entity work.ret02 + port map (d, r); + + process + begin + d <= x"01"; + wait for 1 ns; + assert r = 1 severity failure; + + d <= x"f1"; + wait for 1 ns; + assert r = -1 severity failure; + + wait; + end process; +end behav; |