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

📄 control1.vhd

📁 一个用VHDL编写的秒表程序
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;

entity control1 is
	port(sysreset	:in std_logic;
		reset0	:in std_logic;
		on_off0	:in std_logic;
		clk0	:in std_logic;
		enable	:out std_logic
		);
end control1;

architecture rtl of control1 is
	signal stroble:std_logic;
begin
	process(sysreset,reset0,on_off0)
	begin
		if(sysreset='1' OR reset0='1')then
			stroble<='0';
		elsif(on_off0'event and on_off0='1')then
			stroble<=NOT stroble;
		end if;
	end process;
	enable<=clk0 and stroble;
end rtl;


⌨️ 快捷键说明

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