📄 ncount.txt
字号:
Library IEEE;
Use IEEE.std_logic_1164.all;
Use ieee.std_logic_unsigned.all;
Use IEEE.std_logic_arith.all;
Entity ncount is
Port( FIN: in std_logic;
VOUT: out std_logic);
end ncount;
architecture arch of ncount is
signal count : integer range 0 to 63;
begin
process (FIN)
begin
if rising_edge(FIN) then
count<=count+1;
if count>=32 then VOUT<='1';
else VOUT<='0';
end if;
end if;
end process;
end arch;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -