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

📄 state.vhd

📁 24秒倒计时系统(有跑马灯) 利用CPLD
💻 VHD
字号:
library IEEE;
use IEEE.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;

entity state is
	port(come:in std_logic;
		re:in std_logic;
		go:out std_logic
		);
end state;

architecture arc_state of state is
signal mode: std_logic;
begin
process(mode)
begin
case mode is
when '0' =>go<='1';
when others =>go<='0';
end case;
end process;

process(re,come)
begin
if re='0' then
mode<='0';
else
if come='1' and come'event then
	mode<=not mode;
end if;
end if;
end process;
end arc_state;

⌨️ 快捷键说明

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