v11_5.vhd

来自「台湾全华科技VHDL教材实例」· VHDL 代码 · 共 22 行

VHD
22
字号
library ieee;
use ieee.std_logic_1164.all;

entity V11_5 is
    port(b   : in  	std_logic;
         clk : in  	std_logic;  
         rst : in  	std_logic;   
         a   : out  std_logic);
end V11_5;

architecture A_V11_5 of V11_5 is
begin
    process(rst,clk)
    begin
    	if rst = '0' then
    		a <= '0';
    	elsif clk = '1' and clk'event then
    		a <= b;
    	end if;
    end process;
end  A_V11_5 ;  

⌨️ 快捷键说明

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