cc_inc4.v
1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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