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