⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cnt1.vhd

📁 实现电子密码锁的各项功能,经过编译和仿真
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity cnt1 is
port(clk9,clr:in std_logic;
     enn:in std_logic;
      ccout:buffer std_logic;
     qqout:buffer std_logic_vector(1 downto 0));
end cnt1;
architecture one of cnt1 is
 begin 
   process(clk9,enn)
     begin  
       if clr='0' then
          qqout<="00";
			ccout<='0';
          elsif clk9'event and clk9='1' then 
           if enn='1' then 
              if qqout<1 then 
                qqout<=qqout+1;
                   ccout<='1';
                 else  ccout<='0';
             end if;
					else  ccout<='0';
             end if;
		end if;
          end process;
 end one;

⌨️ 快捷键说明

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