ftctrl.vhd
来自「用VHDL语言设计的频率计」· VHDL 代码 · 共 32 行
VHD
32 行
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 + =
减小字号Ctrl + -
显示快捷键?