📄 generator_acc6.vhd
字号:
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.STD_LOGIC_UNSIGNED.all;
entity generator_acc6 is
port(
A : in STD_LOGIC_VECTOR(5 downto 0);
CE : in STD_LOGIC;
CLK : in STD_LOGIC;
CLR : in STD_LOGIC;
Q : out STD_LOGIC_VECTOR(5 downto 0)
);
end entity;
architecture rtl of generator_acc6 is
begin
process (CLK,CE,A,CLR)
begin
if (clk'event and clk='1') then
if clr='1' then
Q <= (others=>'0');
else
if ce='1' then
Q <= A + 1;
end if;
end if;
end if;
end process;
end architecture rtl;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -