m3s029bo.vhd
来自「another 8051 core porocesssor vhdl sourc」· VHDL 代码 · 共 116 行
VHD
116 行
--******************************************************************* ----IMPORTANT NOTICE ----================ ----Copyright Mentor Graphics Corporation 1996 - 1999. All rights reserved. ----This file and associated deliverables are the trade secrets, ----confidential information and copyrighted works of Mentor Graphics ----Corporation and its licensors and are subject to your license agreement ----with Mentor Graphics Corporation. ---- ----Use of these deliverables for the purpose of making silicon from an IC ----design is limited to the terms and conditions of your license agreement ----with Mentor Graphics If you have further questions please contact Mentor ----Graphics Customer Support. ---- ----This Mentor Graphics core (m8051 v1999.120) was extracted on ----workstation hostid _hostid_ Inventra ----1 bit up counter(sync clear) for M8051--Copyright Mentor Graphics Corporation and Licensors 1998. All rights reserved--v1.002--*********************************************************************--@(#)m3s029bo.vhd 1.2 04/08/99 SCCS Version Control--File : m3s029bo.vhd--Created on : 13th Dec 1995--Purpose : 1 bit up counter with synchronous clear for M8051--Version : 1.002--Mod Date : 2nd April 1998--Mod History : 1.002 _e suffix removed from entity names.----------*********************************************************************--Hierarchy record :--Called by :m3s028bo.vhd-- :-- :--Calls to :None--*********************************************************************library IEEE;use IEEE.std_logic_1164.all;library WORK;--*********************************************************************--Entity Definition--*********************************************************************entity m3s029bo is --******************************************************************* ----IMPORTANT NOTICE ----================ ----Copyright Mentor Graphics Corporation 1996 - 1999. All rights reserved. ----This file and associated deliverables are the trade secrets, ----confidential information and copyrighted works of Mentor Graphics ----Corporation and its licensors and are subject to your license agreement ----with Mentor Graphics Corporation. ---- ----Use of these deliverables for the purpose of making silicon from an IC ----design is limited to the terms and conditions of your license agreement ----with Mentor Graphics If you have further questions please contact Mentor ----Graphics Customer Support. ---- ----This Mentor Graphics core (m8051 v1999.120) was extracted on ----workstation hostid _hostid_ Inventra -- port(CO, Q: out std_logic; CI, CLEAR, COUNT_EN, NX1: in std_logic );end m3s029bo;--*********************************************************************--Architecture definition--*********************************************************************architecture m3s029bo_rtl of m3s029bo is--*********************************************************************--*********************************************************************--signal definition--*********************************************************************signal LQ,NEXTQ:std_logic;--*********************************************************************begin--*********************************************************************-- Process Definitions--*********************************************************************countr:process(NX1)begin if NX1'event and NX1 ='1' then if CLEAR ='1' then LQ <= '0'; elsif COUNT_EN = '1' then LQ <= NEXTQ; end if; end if;end process countr;--*********************************************************************set_nextq:process(LQ,CI,CLEAR)begin NEXTQ <= (LQ or CI) and (not (CI and LQ)) and not CLEAR;end process set_nextq;--*********************************************************************genout:process(LQ,CI,LQ)begin Q <= LQ; CO <= CI and LQ;end process genout;--*********************************************************************end m3s029bo_rtl;--*********************************************************************
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?