ex_p5_13_complementer.vhd

来自「This is the course for VHDL programming」· VHDL 代码 · 共 22 行

VHD
22
字号
entity xor2 is	   port(i1,i2: in BIT ;o : out BIT) ;	end xor2;architecture DF of xor2 isbegin	o<= i1 xor i2 after 5 ns;end DF;entity complementer is	   port( A: in BIT_VECTOR(7 downto 0);           complement: in BIT ;         B: out BIT_VECTOR(7 downto 0)) ;	end complementer;architecture struct of complementer is    component xor2        port (i1,i2: in BIT ; o: out BIT);    end component;begin	XOR_GEN:for i in 0 to 7 generate	   X:xor2 port map(A(i),complement,B(i));	end generate;end STRUCT;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?