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