cc_inc4.v 1.04 KB
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix 
//
//    6 instances of an02d1h changed to j_an02.
//    4 instances of xo02d1h changed to j_xo02.
//

////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	cc_inc4
// description:	4 bit incrementer, with carry in and out.
//
// designer:	Phil Gossett
// date:	6/26/94
//
////////////////////////////////////////////////////////////////////////

module cc_inc4 (a, ci, co, s);

input [3:0] a;
input ci;

wire [2:0] c;

output co;
output [3:0] s;

j_xo02 xos0 (.a1(ci),   .a2(a[0]), .z(s[0]));
j_an02 anc0 (.a1(ci),   .a2(a[0]), .z(c[0]));
j_xo02 xos1 (.a1(c[0]), .a2(a[1]), .z(s[1]));
j_an02 anc1 (.a1(c[0]), .a2(a[1]), .z(c[1]));
j_xo02 xos2 (.a1(c[1]), .a2(a[2]), .z(s[2]));
j_an02 anc2 (.a1(c[1]), .a2(a[2]), .z(c[2]));
j_xo02 xos3 (.a1(c[2]), .a2(a[3]), .z(s[3]));
j_an02 anca (.a1(c[0]), .a2(a[1]), .z(ca));
j_an02 ancb (.a1(c[1]), .a2(a[2]), .z(cb));
j_an02 anco (.a1(ca),   .a2(cb),   .z(co));

endmodule // cc_inc4