clockandresetgenerator.vhd

来自「ARM7核在FPGA中的VHDL代码实现」· VHDL 代码 · 共 31 行

VHD
31
字号
--****************************************************************************************************
-- Clock and reset generator for ARM core simulation
-- Designed by Ruslan Lepetenok
-- Modified 22.12.2002
--****************************************************************************************************
library	IEEE;
use IEEE.std_logic_1164.all;

entity ClockAndResetGenerator is port (
	                                      nRESET  : out std_logic;
						                  CLK     : out std_logic
						                  );
end ClockAndResetGenerator;
architecture Beh of ClockAndResetGenerator is

constant CLK_Period : time := 20 ns;
constant nRESET_Delay : time := 11 ns;

signal nRESET_Int  : std_logic := '0';
signal CLK_Int    : std_logic := '0';

begin

nRESET_Int <= '0', '1' after nRESET_Delay;	
CLK_Int <= not CLK_Int after CLK_Period/2;	

nRESET <= nRESET_Int;	
CLK <= CLK_Int;	
	
end Beh;

⌨️ 快捷键说明

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