📄 div.vhd
字号:
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 (32 downto 0);
--signal full : std_logic;
begin
--clkout<=full;
process(clkin)
begin
if (clkin'event and clkin='1') then
if (count=100000000) then
count<="000000000000000000000000000000000";
clkout<='0';
else
count<=count+1;
if (count=50000000) then
clkout<='1';
end if;
end if;
end if;
end process;
end div_arc;
--if (count=100000000) then
--count<="000000000000000000000000000000000";
--full<=not full;
--else count<=count+1;
--end if;
--end if;
--end process;
--clkout<=full;
--end div_arc;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -