clockdiv.vhd
来自「Allegro原理图和PCB」· VHDL 代码 · 共 29 行
VHD
29 行
-- clockdiv.vhd
library ieee;
use ieee.std_logic_1164.all;
entity clockdiv is
port(Aclr, CLK : in std_logic; Q : out std_logic) ;
end clockdiv;
architecture behavioural of clockdiv is
signal data,Q_net : std_logic ;
begin
Q <= Q_net;
data <= not Q_net;
clockdiv_FF : process(CLK, ACLR)
begin
if ACLR='0' then
if (CLK='1' and CLK'event) then
Q_net <= data;
end if;
else
Q_net <='0';
end if;
end process clockdiv_FF;
end behavioural;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?