t152.vhd

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

VHD
23
字号
--
-- This file implements Latch inference on signals in a combinational process 
-- using incomplete sensitivity list. The signal Z should be allocated a latch 
-- if the synthesis tool allows you the use of incomplete sensitivity list.
-- Failing that you should either get a warning or an error message.
-- 
entity TEST is 
	port( A,B,SEL : in bit;
	      Z : out bit);
end TEST;
architecture T152 of TEST is
begin
	process(A,B)
	begin
		if SEL='1' then
			Z <= A;
		else
			Z <= B;
		end if;
	end process;
end T152;

⌨️ 快捷键说明

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