cpuwaitgenerator.vhd

来自「用VHDL语言实现的AVR_Core,对于研究SOC很有帮助」· VHDL 代码 · 共 37 行

VHD
37
字号
--************************************************************************************************-- Behavioural description of cpuwait generator for AVR microcontroller (for simulation)-- Version 0.1-- Designed by Ruslan Lepetenok -- Modified 02.11.2002--************************************************************************************************library	IEEE;use IEEE.std_logic_1164.all;entity CPUWaitGenerator is			   generic(InsertWaitSt : boolean := FALSE);	           port(	           ireset  : in  std_logic;			   cp2     : in  std_logic;			   ramre   : in  std_logic;			   ramwe   : in  std_logic;			   cpuwait : out std_logic                 			        );end CPUWaitGenerator;architecture Beh of CPUWaitGenerator issignal cpuwait_int : std_logic := '0';begincpuwaitGenerator:process(cp2,ireset)begin if ireset='0' then                  -- Reset   cpuwait_int <= '0';   elsif cp2='0' and cp2'event then      -- Clock (falling edge)   cpuwait_int <= not cpuwait_int and (ramre or ramwe);   end if; end process;		cpuwait <= cpuwait_int when InsertWaitSt else '0';		end Beh;

⌨️ 快捷键说明

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