From 84f0148e9e01c14993d5473e66a4ad6eee819798 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 15 May 2020 05:40:15 +0200 Subject: testsuite/synth: add a test for previous commit. --- testsuite/synth/case01/case06.vhdl | 24 ++++++++++++++++++++++++ testsuite/synth/case01/testsuite.sh | 1 + 2 files changed, 25 insertions(+) create mode 100644 testsuite/synth/case01/case06.vhdl (limited to 'testsuite') diff --git a/testsuite/synth/case01/case06.vhdl b/testsuite/synth/case01/case06.vhdl new file mode 100644 index 000000000..f66569dbf --- /dev/null +++ b/testsuite/synth/case01/case06.vhdl @@ -0,0 +1,24 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity case06 is + port ( + a : in std_logic; + b : out std_logic + ); +end entity; + +architecture a of case06 is +begin + process(a) + begin + case a is + when '0' => + b <= '0'; + when 'L' => + b <= '1'; + when others => + b <= 'Z'; + end case; + end process; +end architecture; diff --git a/testsuite/synth/case01/testsuite.sh b/testsuite/synth/case01/testsuite.sh index 519aaff89..ef530ebe1 100755 --- a/testsuite/synth/case01/testsuite.sh +++ b/testsuite/synth/case01/testsuite.sh @@ -7,5 +7,6 @@ for t in case01 case02 case03 case04; do done synth case05.vhdl -e case05 > syn_case05.vhdl +synth case06.vhdl -e case06 > syn_case06.vhdl echo "Test successful" -- cgit v1.2.3