?? yellowflash.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 + -