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

📄 rgec5_2.vhd

📁 VHDLVERILOG语言实现的CARDBUS的IP源码,已经实现现场应用
💻 VHD
字号:
--------------------------------------------------------------------------------
--
-- File : rgec5_2.vhd
-- Last Modification: 06/26/2001
--
-- Created In SpDE Version: SpDE 8.22
-- Author :	Richard Yuan, QuickLogic Corporation
-- Copyright (C) 2001, Licensed customers of QuickLogic may copy and modify
-- this file for use in designing with QuickLogic devices only.
--	
-- Description :
--	5-bit register with a reset value of 3 (grey code of 2).
--
-- Hierarchy:
--	This file represents the rgec5_2 block in f32a32.sch.
--
-- History:	
--	Date	        Author					Version
--  06/26/01		Richard Yuan			1.0
--		- Header added to conform to coding standard.
--
--------------------------------------------------------------------------------


library ieee;
use ieee.std_logic_1164.all;

entity rgec5_2 is port
	(
	CLK, CLR, EN: in std_logic;
	D: in std_logic_vector(4 downto 0);
	Q: out std_logic_vector(4 downto 0)
	);
end rgec5_2;

architecture behavioral of rgec5_2 is

begin
	
	process (CLR, CLK)
	begin
		if CLR = '1' then Q <= "00011";
		elsif CLK'event and CLK = '1' then
			if EN = '1' then Q <= D; end if;
		end if;
	end process;

end behavioral; 
		

⌨️ 快捷键说明

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