div.vhd
来自「是vhdl语言」· VHDL 代码 · 共 32 行
VHD
32 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity div is
port(clkin :in std_logic;
clkout : out std_logic
);
end div;
architecture div_arc of div is
signal count: std_logic_vector (12 downto 0);
signal full : std_logic;
begin
process(clkin)
begin
if (clkin 'event and clkin='1') then
if (count=5000) then
count<="0000000000000";
full<=not full;
else count<=count+1;
end if;
end if;
end process;
clkout<=full;
end div_arc;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?