From 02dc94f5508e0ce94bb1d3afdca602b0f0dba9f9 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 3 Oct 2019 20:41:44 +0200 Subject: testsuite/synth: add testcase for previous commit. --- testsuite/synth/synth50/slv_negation.vhdl | 14 ++++++++++++++ testsuite/synth/synth50/testsuite.sh | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 testsuite/synth/synth50/slv_negation.vhdl create mode 100755 testsuite/synth/synth50/testsuite.sh (limited to 'testsuite') 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" -- cgit v1.2.3