t111.vhd

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

VHD
22
字号
--
-- This file tests for tri-state inference with the 'Z' assignment.
--
library IEEE;
use IEEE.STD_Logic_1164.all;
entity TEST is
	port( A,EN_A : in std_logic;
	      Q : out std_logic);
end TEST;

architecture T111 of TEST is
begin
	process(A, EN_A)
	begin
		if EN_A = '1' then
			Q <= A;
		else
		  	Q <= 'Z';
		end if;
	end process;
end T111;

⌨️ 快捷键说明

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