repo.or.cz
/
ghdl-vlg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
verilog: add sv_maps iterators
[ghdl-vlg.git]
/
testsuite
/
synth
/
comp02
/
cmask.vhdl
blob
9b1f2438c2311c7a6c806340518576e1a1db864b
1
library ieee;
2
use ieee.std_logic_1164.all;
3
4
entity cmask is
5
generic
6
(mask : std_logic_vector (0 to 7));
7
port (d : std_logic_vector (7 downto 0);
8
o : out std_logic_vector (7 downto 0));
9
end cmask;
10
11
architecture behav of cmask is
12
begin
13
o <= d and mask;
14
end behav;