1 module IBUF(input I, output O);
5 module IOBUFE(input I, input E, output O, inout IO);
7 assign IO = E ? I : 1'bz;
10 module ANDTERM(IN, IN_B, OUT);
11 parameter TRUE_INP = 0;
12 parameter COMP_INP = 0;
14 input [TRUE_INP-1:0] IN;
15 input [COMP_INP-1:0] IN_B;
22 for (i = 0; i < TRUE_INP; i=i+1)
24 for (i = 0; i < COMP_INP; i=i+1)
29 module ORTERM(IN, OUT);
39 for (i = 0; i < WIDTH; i=i+1) begin
45 module MACROCELL_XOR(IN_PTC, IN_ORTERM, OUT);
46 parameter INVERT_OUT = 0;
54 assign OUT = INVERT_OUT ? ~xor_intermed : xor_intermed;
55 assign xor_intermed = IN_ORTERM ^ IN_PTC;
58 module FDCP (C, PRE, CLR, D, Q);
68 always @(posedge C, posedge PRE, posedge CLR) begin
78 module FDCP_N (C, PRE, CLR, D, Q);
88 always @(negedge C, posedge PRE, posedge CLR) begin
98 module LDCP (G, PRE, CLR, D, Q);
101 input G, PRE, CLR, D;
118 module LDCP_N (G, PRE, CLR, D, Q);
121 input G, PRE, CLR, D;
146 parameter INVERT = 0;
151 assign O = INVERT ? ~I : I;
155 parameter INVERT = 0;
160 assign O = INVERT ? ~I : I;
163 module FDDCP (C, PRE, CLR, D, Q);
166 input C, PRE, CLR, D;
173 always @(posedge C, negedge C, posedge PRE, posedge CLR) begin
183 module FTCP (C, PRE, CLR, T, Q);
186 input C, PRE, CLR, T;
194 always @(posedge C, posedge PRE, posedge CLR) begin
206 module FTCP_N (C, PRE, CLR, T, Q);
209 input C, PRE, CLR, T;
217 always @(negedge C, posedge PRE, posedge CLR) begin
229 module FTDCP (C, PRE, CLR, T, Q);
232 input C, PRE, CLR, T;
240 always @(posedge C, negedge C, posedge PRE, posedge CLR) begin
252 module FDCPE (C, PRE, CLR, D, Q, CE);
255 input C, PRE, CLR, D, CE;
262 always @(posedge C, posedge PRE, posedge CLR) begin
272 module FDCPE_N (C, PRE, CLR, D, Q, CE);
275 input C, PRE, CLR, D, CE;
282 always @(negedge C, posedge PRE, posedge CLR) begin
292 module FDDCPE (C, PRE, CLR, D, Q, CE);
295 input C, PRE, CLR, D, CE;
302 always @(posedge C, negedge C, posedge PRE, posedge CLR) begin