aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/dispout01/rec04.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/dispout01/rec04.vhdl')
-rw-r--r--testsuite/synth/dispout01/rec04.vhdl14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/synth/dispout01/rec04.vhdl b/testsuite/synth/dispout01/rec04.vhdl
new file mode 100644
index 000000000..15fab1f6e
--- /dev/null
+++ b/testsuite/synth/dispout01/rec04.vhdl
@@ -0,0 +1,14 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use work.rec04_pkg.all;
+
+entity rec04 is
+ port (inp : std_logic;
+ o : out myrec);
+end rec04;
+
+architecture behav of rec04 is
+begin
+ o.b <= not inp;
+ o.a <= "0001" when inp = '1' else "1000";
+end behav;