diff options
Diffstat (limited to 'testsuite/synth/match01/tb_match02.vhdl')
-rw-r--r-- | testsuite/synth/match01/tb_match02.vhdl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/synth/match01/tb_match02.vhdl b/testsuite/synth/match01/tb_match02.vhdl new file mode 100644 index 000000000..52074709f --- /dev/null +++ b/testsuite/synth/match01/tb_match02.vhdl @@ -0,0 +1,34 @@ +entity tb_match02 is +end tb_match02; + +library ieee; +use ieee.std_logic_1164.all; + +architecture behav of tb_match02 is + signal a : std_logic_vector(3 downto 0); + signal z : std_logic; +begin + dut: entity work.match02 + port map (a, z); + + process + begin + a <= "1000"; + wait for 1 ns; + assert z = '0' severity failure; + + a <= "1010"; + wait for 1 ns; + assert z = '0' severity failure; + + a <= "0000"; + wait for 1 ns; + assert z = '1' severity failure; + + a <= "0001"; + wait for 1 ns; + assert z = '1' severity failure; + + wait; + end process; +end behav; |