aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1460/tb_leftmost02.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1460/tb_leftmost02.vhdl')
-rw-r--r--testsuite/synth/issue1460/tb_leftmost02.vhdl25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/synth/issue1460/tb_leftmost02.vhdl b/testsuite/synth/issue1460/tb_leftmost02.vhdl
new file mode 100644
index 000000000..fbcb277ba
--- /dev/null
+++ b/testsuite/synth/issue1460/tb_leftmost02.vhdl
@@ -0,0 +1,25 @@
+entity tb_leftmost02 is
+end tb_leftmost02;
+
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+architecture behav of tb_leftmost02 is
+ signal b : signed (8 to 12);
+ signal rb : integer;
+begin
+ dut_b: entity work.leftmost02
+ port map (b, rb);
+
+ process
+ begin
+ b <= b"00101";
+
+ wait for 1 ns;
+
+ assert rb = 10 severity failure;
+
+ wait;
+ end process;
+end behav;