📄 ff_100_s.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity ff_100_s is --50Mhz分成50hz fl2
port(clk_in:in bit;
clk_out:buffer bit);
end;
architecture a of ff_100_s is
signal cx: bit;
begin
process(clk_in)
variable a:integer range 2 downto 0;
begin
if clk_in'event and clk_in='1' then
if a=2 then cx<='1';a:=0;
else a:=a+1;cx<='0';
end if;
end if;
end process;
process(cx)
begin
if cx'event and cx='1' then
clk_out<=not clk_out;
end if;
end process;
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -