latch.vhd

来自「使用VHDL语言编写的8051IP核」· VHDL 代码 · 共 34 行

VHD
34
字号
--
--  File: Latch.vhd
--  created by Design Wizard: 04/06/99 15:13:04
--

--{{ Section below this comment is automatically maintained
--   and may be overwritten
--{entity {Latch} architecture {Latch}}

library IEEE;
use IEEE.std_logic_1164.all;

entity Latch is
    port (
        INP:  in  STD_LOGIC_VECTOR (7 downto 0);
        OUTP: out STD_LOGIC_VECTOR (7 downto 0);
        CLK:  in  STD_LOGIC
    );
end Latch;

--}} End of automatically maintained section

architecture Latch of Latch is
begin
  -- <<enter your statements here>>
 process(CLK, INP)
 begin
	if(CLK='1') then
		OUTP<=INP;
	end if;
 end process;
 
end Latch;

⌨️ 快捷键说明

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