t153.vhd
来自「Workshop vhdl code from Esperan」· VHDL 代码 · 共 24 行
VHD
24 行
--
-- This file implements Latch inference on variables in a combinational
-- process. The variable TMP is read before assigned a value to. Hence
-- implying a latch memory element.
--
entity TEST is
port( A, RST : in bit;
Z : out bit);
end TEST;
architecture T153 of TEST is
begin
process(A, RST)
variable TMP : bit;
begin
if RST = '1' then
TMP := '0';
else
Z <= not TMP;
TMP := A;
end if;
end process;
end T153;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?