fdre.v

来自「PacoBlaze is a from-scratch synthesizabl」· Verilog 代码 · 共 54 行

V
54
字号
// $Header: /devl/xcs/repo/env/Databases/CAEInterfaces/verunilibs/data/unisims/FDRE.v,v 1.8.38.1 2005/11/02 19:31:18 yanx Exp $///////////////////////////////////////////////////////////////////////////////// Copyright (c) 1995/2004 Xilinx, Inc.// All Right Reserved./////////////////////////////////////////////////////////////////////////////////   ____  ____//  /   /\/   /// /___/  \  /    Vendor : Xilinx// \   \   \/     Version : 8.1i (I.24)//  \   \         Description : Xilinx Functional Simulation Library Component//  /   /                  D Flip-Flop with Synchronous Reset and Clock Enable// /___/   /\     Filename : FDRE.v// \   \  /  \    Timestamp : Thu Mar 25 16:42:17 PST 2004//  \___\/\___\//// Revision://    03/23/04 - Initial version.//    02/04/05 - Rev 0.0.1 Remove input/output bufs; Seperate GSR from clock block.//    10/20/05 - Add set & reset check to main  block. (CR219794)// End Revision`timescale  1 ps / 1 psmodule FDRE (Q, C, CE, D, R);    parameter INIT = 1'b0;    output Q;    reg    Q;    input  C, CE, D, R;    tri0 GSR = glbl.GSR;    initial Q = 0;    always @(GSR)      if (GSR)            assign Q = INIT;      else            deassign Q;    always @(posedge C )      if (GSR== 0 ) begin        if (R)	     Q <= #100 0;         else if (CE)	     Q <= #100 D;      endendmodule

⌨️ 快捷键说明

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