📄 tf.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity tf is
port(ena:in std_logic;
tclk:in std_logic;
clr:in std_logic;
tsq:buffer std_logic_vector(31 downto 0));
end tf;
architecture behav of tf is
begin
process(clr,tclk)
begin
if clr='1' then tsq<=(others=>'0');
else
if tclk'event and tclk='1' then
tsq<=tsq+1;
end if;
end if;
end process;
end behav;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -