?? cnt2.vhd
字號:
library ieee;
use ieee.std_logic_1164.all;
entity cnt2 is
port (clk:in std_logic;
q:buffer integer range 0 to 3);
end cnt2;
architecture state of cnt2 is
begin
process(clk)
begin
if((clk'event)and(clk='1'))then
if (q=3) then q<=0;
else q<=q+1;
end if;
end if;
end process;
end state;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -