diff options
Diffstat (limited to 'testsuite/synth/issue40/tb_testcase.vhdl')
-rw-r--r-- | testsuite/synth/issue40/tb_testcase.vhdl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/synth/issue40/tb_testcase.vhdl b/testsuite/synth/issue40/tb_testcase.vhdl new file mode 100644 index 000000000..3ed89e61c --- /dev/null +++ b/testsuite/synth/issue40/tb_testcase.vhdl @@ -0,0 +1,26 @@ +entity tb_testcase is +end tb_testcase; + +library ieee; +use ieee.std_logic_1164.all; + +architecture behav of tb_testcase is + signal di : std_logic; + signal do : std_logic; +begin + dut: entity work.testcase + port map (data_in => di, data_out => do); + + process + begin + di <= '1'; + wait for 1 ns; + assert do = '0' severity failure; + + di <= '0'; + wait for 1 ns; + assert do = '1' severity failure; + + wait; + end process; +end behav; |