t155.vhd

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

VHD
21
字号
--
-- This file implements Register inference on variables in clock processes.
-- The variable TMP is read before beeing assigned to hence, infers a flip-flop.
-- Note: Q will also be a flip-flop (signal assignment inside a clocked process).
-- 
entity TEST is 
	port( D, CLK : in bit;
	      Q : out bit);
end TEST;
architecture T155 of TEST is
begin
	process(CLK)
		variable TMP : bit;
	begin
		if (CLK'event and CLK='1') then
			Q <= TMP;
			TMP := D;
		end if;
	end process;
end T155;

⌨️ 快捷键说明

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