aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/sns01/exts.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/sns01/exts.vhdl')
-rw-r--r--testsuite/synth/sns01/exts.vhdl19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/synth/sns01/exts.vhdl b/testsuite/synth/sns01/exts.vhdl
new file mode 100644
index 000000000..e7a82730a
--- /dev/null
+++ b/testsuite/synth/sns01/exts.vhdl
@@ -0,0 +1,19 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity exts is
+ port (
+ l3 : std_logic_vector (2 downto 0);
+
+ ext_u3 : out std_logic_vector (4 downto 0);
+ sxt_s3 : out std_logic_vector (4 downto 0));
+end exts;
+
+library ieee;
+use ieee.std_logic_arith.all;
+
+architecture behav of exts is
+begin
+ ext_u3 <= ext(l3, 5);
+ sxt_s3 <= sxt(l3, 5);
+end behav;