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

📄 yellowflash.vhd

📁 FPGA基础性试验交通灯设计
💻 VHD
字号:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
 --实现黄灯闪烁
entity yellowflash is
    Port ( f_1hz : in std_logic;
	        in_yellow:in std_logic;
           out_yellow : out std_logic);
end yellowflash;
architecture Behavioral of yellowflash is
begin
      process(f_1hz,in_yellow)
		begin
	       if in_yellow='0'then
	         out_yellow<=f_1hz;
		   else
		      out_yellow<='1';
		   end if;
		end process;
end Behavioral;

⌨️ 快捷键说明

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