aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/synth104/testcase1.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/synth104/testcase1.vhdl')
-rw-r--r--testsuite/synth/synth104/testcase1.vhdl23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/synth/synth104/testcase1.vhdl b/testsuite/synth/synth104/testcase1.vhdl
new file mode 100644
index 000000000..256ee0959
--- /dev/null
+++ b/testsuite/synth/synth104/testcase1.vhdl
@@ -0,0 +1,23 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+entity testcase1 is
+ port (
+ sel : in unsigned(1 downto 0);
+ det : out std_logic
+ );
+end testcase1;
+
+architecture behavior of testcase1 is
+begin
+ tc: process(sel)
+ begin
+ case to_integer(sel) is
+ when 0 to 1 =>
+ det <= '0';
+ when others =>
+ det <= '1';
+ end case;
+ end process;
+end behavior;