aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/snsuns01/sshrs.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/snsuns01/sshrs.vhdl')
-rw-r--r--testsuite/synth/snsuns01/sshrs.vhdl20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/synth/snsuns01/sshrs.vhdl b/testsuite/synth/snsuns01/sshrs.vhdl
new file mode 100644
index 000000000..04bf1a5fb
--- /dev/null
+++ b/testsuite/synth/snsuns01/sshrs.vhdl
@@ -0,0 +1,20 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity shrs is
+ port (
+ l3 : std_logic_vector (2 downto 0);
+ r4 : std_logic_vector (3 downto 0);
+
+ shl_v3v4 : out std_logic_vector (2 downto 0);
+ shr_v3v4 : out std_logic_vector (2 downto 0));
+end shrs;
+
+library ieee;
+use ieee.std_logic_signed.all;
+
+architecture behav of shrs is
+begin
+ shl_v3v4 <= shl(l3, r4);
+ shr_v3v4 <= shr(l3, r4);
+end behav;