📄 ten.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity ten is
port(clk :in std_logic;
t10_en :in std_logic;
t10:out std_logic
);
end entity ten;
architecture three of ten is
signal num : integer range 640 downto 0:=0;
begin
process(clk,t10_en)
begin
if(t10_en='1') then
if clk'event and clk='1' then
if num=639 then num<=0;
else num<=num+1;
end if;
end if;
--end if;
elsif t10_en='0' then num<=0;
end if ;
end process;
process(clk)
begin
if clk'event and clk='1' then
if(num=639) then t10<='1';
else t10<='0';
end if;
end if;
end process;
end architecture three;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -