📄 fdcpe.v
字号:
// $Header: /devl/xcs/repo/env/Databases/CAEInterfaces/verunilibs/data/uni9000/FDCPE.v,v 1.5 2007/05/23 20:04:55 patrickp Exp $///////////////////////////////////////////////////////////////////////////////// Copyright (c) 1995/2004 Xilinx, Inc.// All Right Reserved.///////////////////////////////////////////////////////////////////////////////// ____ ____// / /\/ /// /___/ \ / Vendor : Xilinx// \ \ \/ Version : 8.1i (I.13)// \ \ Description : Xilinx Functional Simulation Library Component// / / D Flip-Flop with Asynchronous Clear and Preset and Clock Enable// /___/ /\ Filename : FDCPE.v// \ \ / \ Timestamp : Wed Mar 9 13:49:59 PST 2005// \___\/\___\//// Revision:// 03/23/04 - Initial version.// 03/09/05 - Added INIT parameter.// 05/23/07 - Changed timescale to 1 ps / 1 ps.`timescale 1 ps / 1 ps`celldefinemodule FDCPE (Q, C, CE, CLR, D, PRE); parameter INIT = 1'b0; output Q; reg q_out; input C, CE, CLR, D, PRE; tri0 PRLD = glbl.PRLD; buf B1 (Q, q_out); always @(PRLD or CLR or PRE) if (PRLD) assign q_out = INIT; else if (CLR) assign q_out = 0; else if (PRE) assign q_out = 1; else deassign q_out; always @(posedge C) if (CE) q_out = D; specify (posedge CLR => (Q +: 1'b0)) = (0, 0); if (!CLR) (posedge PRE => (Q +: 1'b1)) = (0, 0); if (!CLR && !PRE && CE) (posedge C => (Q +: D)) = (1, 1); endspecifyendmodule`endcelldefine
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -