aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket32/muxcy.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/ticket32/muxcy.vhdl')
-rw-r--r--testsuite/gna/ticket32/muxcy.vhdl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/gna/ticket32/muxcy.vhdl b/testsuite/gna/ticket32/muxcy.vhdl
new file mode 100644
index 000000000..d9c912f0f
--- /dev/null
+++ b/testsuite/gna/ticket32/muxcy.vhdl
@@ -0,0 +1,12 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity muxcy is
+ port (s, di, ci : std_logic;
+ o : out std_logic);
+end muxcy;
+
+architecture behav of muxcy is
+begin
+ o <= di when s = '0' else ci;
+end behav;