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

📄 lc2.vhd

📁 电子打铃器 在max plus 2 下编译通过
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity lc2 is
port(
		en, ien: in std_logic;
		oen: out std_logic;
		reset: in std_logic
		
	);
	end lc2;

architecture rtl of lc2 is
signal temp: std_logic_vector(1 downto 0);
begin
	process(ien)
		begin 
			if ien'event and ien='1' then
				if reset='1' then
					temp<="00";
				else
					temp<=temp+1;
				end if;
			end if;
			
	end process;
	oen<=temp(0) and en;
	
end rtl;


⌨️ 快捷键说明

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