dpclktgcv.vmd
1.49 KB
/**************************************************************/
/* Verilog module of datapath cell DPCLKTGCV */
/* Designed by Lin Yang VLSI Technology Oct. 20, 90 */
/* Designed by Linda J. Xu Dec., 1992 */
/* */
/* This module is added for the use of Verilog software */
/* compiler. It is not a cell in datapath. */
/* */
/* The following is the port description */
/* Control ports */
/* E : the input port */
/* CLK : the input port */
/* C : the output port */
/* Parameters */
/* WORDSIZE : the word size of the datapath cell */
/* TYP : the type of gated clock buffer */
/* 0 for False; 1 for True */
/* DELAY : the delay time from input to output */
/**************************************************************/
module dpclktgcv(E, CLK, C);
parameter WORDSIZE = 1, TYP = 1, DELAY = 3;
input [WORDSIZE-1:0] E;
input CLK;
output [WORDSIZE-1:0] C;
wire [WORDSIZE-1:0] #DELAY C = (TYP) ?
E & {WORDSIZE{CLK}}:
~(E & {WORDSIZE{CLK}});
endmodule