t25.vhd

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

VHD
21
字号
--
-- This file tests support for the use of aggregates with records.
--
entity TEST is
	port( A	: in  bit;
	      Z : out bit);
end TEST;
architecture T25 of TEST is
	type T_DATA is record 
		PARITY 	: bit;
		DATA 	: bit_vector(3 downto 0);
		ADDRESS : integer range 0 to 7;
	end record;
	signal RX_DATA, TX_DATA : T_DATA;
begin
	RX_DATA <= (A, "0010", 3);
	TX_DATA <= (DATA => "1100", ADDRESS => 1, PARITY => '0');
	Z <= RX_DATA.PARITY;
end T25;

⌨️ 快捷键说明

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