diff options
Diffstat (limited to 'testsuite/synth/issue1909/tb_reproducebug.vhdl')
-rw-r--r-- | testsuite/synth/issue1909/tb_reproducebug.vhdl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/synth/issue1909/tb_reproducebug.vhdl b/testsuite/synth/issue1909/tb_reproducebug.vhdl new file mode 100644 index 000000000..8ebbcdc4a --- /dev/null +++ b/testsuite/synth/issue1909/tb_reproducebug.vhdl @@ -0,0 +1,31 @@ +entity tb_reproducebug is +end tb_reproducebug; + +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +architecture behav of tb_reproducebug is + signal clk : std_logic; + signal input : unsigned(7 downto 0); + signal output : unsigned(7 downto 0); +begin + dut: entity work.reproducebug + port map (clk, input, output); + + process + procedure pulse is + begin + clk <= '0'; + wait for 1 ns; + clk <= '1'; + wait for 1 ns; + end; + begin + input <= x"14"; + pulse; + assert output = x"0a" severity failure; + + wait; + end process; +end behav; |