📄 ftctrl.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity ftctrl is
port ( clkk : in std_logic;
cnt_en : out std_logic;
rst_cnt : out std_logic;
load : out std_logic );
end entity ftctrl;
architecture behave_ftctrl of ftctrl is
signal div2clk : std_logic;
begin
process ( clkk )
begin
if clkk'event and clkk = '1' then
div2clk <= not div2clk;
end if;
end process;
process ( clkk,div2clk )
begin
if clkk='0' and div2clk = '0' then rst_cnt<= '1';
else rst_cnt <= '0';
end if;
end process;
load <= not div2clk;
cnt_en <= div2clk;
end behave_ftctrl;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -