⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addcont.vhd

📁 FPGA应用如sd卡控制
💻 VHD
字号:

library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity addcont is
 PORT( clk  :  IN  STD_LOGIC;
       rst  :  IN  STD_LOGIC;
       cont :  OUT STD_LOGIC_VECTOR(7 DOWNTO 0)
 );
END addcont;
ARCHITECTURE behav OF addcont IS 
  SIGNAL time   :  STD_LOGIC_VECTOR(7 DOWNTO 0);
begin
  process(rst,clk)
begin
 if rst='1' then
   time<="00000000";
  elsif rising_edge(clk) then
      time <=time+1;
   end if;
end process;
cont<=time;

end behav;


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -