reg1.vhd

来自「实现电子密码锁的各项功能,经过编译和仿真」· VHDL 代码 · 共 17 行

VHD
17
字号
library ieee;
use ieee.std_logic_1164.all;
entity Reg1 is
    port(q: in std_logic_vector(7 downto 0);
       clk1:in std_logic;
        a:out std_logic_vector(7 downto 0));
    end Reg1;
   architecture one of Reg1 is
         begin 
           process(clk1)
             begin 
               if clk1'event and clk1='1' then 
                     a<=q;
               end if;
            end process;
     end one;

⌨️ 快捷键说明

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