diff options
Diffstat (limited to 'testsuite/synth/case02/tb_case02.vhdl')
-rw-r--r-- | testsuite/synth/case02/tb_case02.vhdl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/synth/case02/tb_case02.vhdl b/testsuite/synth/case02/tb_case02.vhdl new file mode 100644 index 000000000..ae23a2276 --- /dev/null +++ b/testsuite/synth/case02/tb_case02.vhdl @@ -0,0 +1,30 @@ +entity tb_case02 is +end tb_case02; + +library ieee; +use ieee.std_logic_1164.all; + +architecture behav of tb_case02 is + signal a : std_logic_vector (1 downto 0); + signal o : std_logic; +begin + dut: entity work.case02 + port map (a, o); + + process + begin + a <= "00"; + wait for 1 ns; + assert o = '0'; + + a <= "01"; + wait for 1 ns; + assert o = '1'; + + a <= "10"; + wait for 1 ns; + assert o = '0'; + + wait; + end process; +end behav; |