fdc.v

来自「DDR2源代码 DDR2源代码 DDR2源代码」· Verilog 代码 · 共 62 行

V
62
字号
// $Header: /devl/xcs/repo/env/Databases/CAEInterfaces/verunilibs/data/unisims/FDC.v,v 1.13 2006/02/13 22:07:02 yanx Exp $///////////////////////////////////////////////////////////////////////////////// Copyright (c) 1995/2004 Xilinx, Inc.// All Right Reserved./////////////////////////////////////////////////////////////////////////////////   ____  ____//  /   /\/   /// /___/  \  /    Vendor : Xilinx// \   \   \/     Version : 10.1//  \   \         Description : Xilinx Functional Simulation Library Component//  /   /                  D Flip-Flop with Asynchronous Clear// /___/   /\     Filename : FDC.v// \   \  /  \    Timestamp : Thu Mar 25 16:42:16 PST 2004//  \___\/\___\//// Revision://    03/23/04 - Initial version.//    02/04/05 - Rev 0.0.1 Remove input/output bufs; Seperate GSR from clock block.//    08/09/05 - Add CLR t0 GSR block (CR 215196).//    10/20/05 - Add set & reset check to main  block. (CR219794)//    2/07/06 - Remove set & reset from main block and add specify block (CR225119)//    2/10/06 - Change Q from reg to wire (CR 225613)// End Revision`timescale  1 ps / 1 psmodule FDC (Q, C, CLR, D);    parameter INIT = 1'b0;    output Q;    input  C, CLR, D;    wire Q;    reg q_out;    tri0 GSR = glbl.GSR;    initial q_out = INIT;    always @(GSR or CLR)      if (GSR)            assign q_out = INIT;      else if (CLR)           assign q_out = 0;      else            deassign q_out;    always @(posedge C)	         q_out <=  D;    assign Q = q_out;    specify        (posedge CLR => (Q +: 1'b0)) = (0, 0);        if (!CLR)            (posedge C => (Q +: D)) = (100, 100);    endspecifyendmodule

⌨️ 快捷键说明

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