📄 one.vhd
字号:
--1S的分频
library ieee;
use ieee.std_logic_1164.all;
entity one is
port(clk:in std_logic; --clk=64Hz
fout:out std_logic;
start: in bit);
end entity one;
architecture one of one is
signal count:integer range 0 to 32;--1s freq_div
signal mid:std_logic;
begin
process(clk,start)
begin
if start='1' then
if clk'event and clk='1' then
if count=31 then
count<=0;
mid<=not mid;
else count<=count+1;
end if;
fout<=mid;
end if;
end if;
end process;
end architecture one;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -