t19.vhd

来自「Workshop vhdl code from Esperan」· VHDL 代码 · 共 17 行

VHD
17
字号
-- 
-- This file tests support for the use of concatenation with arrays.
--
entity TEST is
	port(	A,B,C,D : in  bit;
	     	Z 	: out bit_vector(3 downto 0));
end TEST;
architecture T19 of TEST is 
	subtype NIBBLE is bit_vector(3 downto 0);
	type T_A_OF_A is array (0 to 7) of NIBBLE; 
	signal MY_ARRAY_A: T_A_OF_A;
begin 
	MY_ARRAY_A(0) <= A&B&C&D;
	Z <= MY_ARRAY_A(0);  
end T19;

⌨️ 快捷键说明

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