diff options
Diffstat (limited to 'testsuite/synth/issue1460/tb_rightmost02.vhdl')
-rw-r--r-- | testsuite/synth/issue1460/tb_rightmost02.vhdl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/synth/issue1460/tb_rightmost02.vhdl b/testsuite/synth/issue1460/tb_rightmost02.vhdl new file mode 100644 index 000000000..cda7ae8f7 --- /dev/null +++ b/testsuite/synth/issue1460/tb_rightmost02.vhdl @@ -0,0 +1,25 @@ +entity tb_rightmost02 is +end tb_rightmost02; + +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +architecture behav of tb_rightmost02 is + signal b : signed (2 to 4); + signal rb : integer; +begin + dut_b: entity work.rightmost02 + port map (b, rb); + + process + begin + b <= b"010"; + + wait for 1 ns; + + assert rb = 3 severity failure; + + wait; + end process; +end behav; |