?? ff_1_s.vhd
字號:
library ieee;
use ieee.std_logic_1164.all;
entity ff_1_s is --50Mhz分成50hz fl2
port(clk_in:in bit;
clk_out:buffer bit);
end;
architecture a of ff_1_s is
signal cx: bit;
begin
process(clk_in)
variable a:integer range 5 downto 0;
begin
if clk_in'event and clk_in='1' then
if a=5 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 + -