aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth')
-rw-r--r--testsuite/synth/synth50/slv_negation.vhdl14
-rwxr-xr-xtestsuite/synth/synth50/testsuite.sh9
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/synth/synth50/slv_negation.vhdl b/testsuite/synth/synth50/slv_negation.vhdl
new file mode 100644
index 000000000..5161f9639
--- /dev/null
+++ b/testsuite/synth/synth50/slv_negation.vhdl
@@ -0,0 +1,14 @@
+library ieee;
+ use ieee.std_logic_1164.all;
+
+entity slv_negation is
+ port (
+ a : in std_logic_vector(7 downto 0);
+ b : out std_logic_vector(7 downto 0)
+ );
+end slv_negation;
+
+architecture rtl of slv_negation is
+begin
+ b <= not a(7 downto 0);
+end rtl;
diff --git a/testsuite/synth/synth50/testsuite.sh b/testsuite/synth/synth50/testsuite.sh
new file mode 100755
index 000000000..18dbb5742
--- /dev/null
+++ b/testsuite/synth/synth50/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for t in slv_negation; do
+ synth $t.vhdl -e $t > syn_$t.vhdl
+done
+
+echo "Test successful"