ncount.txt
来自「全数字锁相环(adpll)的部分源程序代码」· 文本 代码 · 共 21 行
TXT
21 行
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 + =
减小字号Ctrl + -
显示快捷键?