?? max_256_count.vhd
字號:
library ieee;
use ieee.numeric_bit.all;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity MAX_256_Count is
--generic (Byte : integer :=8);
port(
CLK,OE,reset : in std_logic;
CP : out std_logic;
CpTemp: buffer std_logic;
count : buffer std_logic_vector(7 downto 0)
);
end MAX_256_Count;
architecture a of MAX_256_Count is
begin
process (CLK)
begin
if reset='0' then
count<="00000000";--(others=>'0');
CP<='0';
elsif clk='1' and clk'event then
count<=count+1;
if count="00000011"then
CpTemp<=not CpTemp;
CP<=CpTemp;
end if;
end if;
end process;
end a;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -