latch.vhd
来自「DLX CPU VHDL CODE UNIVERSITY」· VHDL 代码 · 共 30 行
VHD
30 行
---- $RCSfile: latch.vhd,v $-- $Revision: 1.1 $-- $Author: petera $-- $Date: 90/06/20 16:02:34 $--use work.dp32_types.all;entity latch is generic (width : positive; Tpd : Time := unit_delay); port (d : in bit_vector(width-1 downto 0); q : out bit_vector(width-1 downto 0); en : in bit);end latch;architecture behaviour of latch isbegin process (d, en) begin if en = '1' then q <= d after Tpd; end if; end process;end behaviour;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?