aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/comp02/cmask.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/comp02/cmask.vhdl')
-rw-r--r--testsuite/synth/comp02/cmask.vhdl14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/synth/comp02/cmask.vhdl b/testsuite/synth/comp02/cmask.vhdl
new file mode 100644
index 000000000..9b1f2438c
--- /dev/null
+++ b/testsuite/synth/comp02/cmask.vhdl
@@ -0,0 +1,14 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity cmask is
+ generic
+ (mask : std_logic_vector (0 to 7));
+ port (d : std_logic_vector (7 downto 0);
+ o : out std_logic_vector (7 downto 0));
+end cmask;
+
+architecture behav of cmask is
+begin
+ o <= d and mask;
+end behav;