cc_mxxr.v
2.9 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix
//
// 9 instances of an02d1h changed to j_an02.
// 1 instance of in01d5 changed to j_in01.
// 9 instances of mx81d1h changed to j_mx81.
//
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: cc_mxxr
// description: 9 bit 8->1 mux for color combine unit.
//
// designer: Phil Gossett
// date: 6/25/94
//
////////////////////////////////////////////////////////////////////////
module cc_mxxr (s, i0i, i1i, i2i, i3i, i4i, i5i, i6i, i7i, z);
input [3:0] s;
input [8:0] i0i;
input [8:0] i1i;
input [8:0] i2i;
input [8:0] i3i;
input [8:0] i4i;
input [8:0] i5i;
input [8:0] i6i;
input [8:0] i7i;
wire sn3;
wire [8:0] mx;
output [8:0] z;
j_mx81 mx9b0 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[0]), .i1(i1i[0]), .i2(i2i[0]), .i3(i3i[0]),
.i4(i4i[0]), .i5(i5i[0]), .i6(i6i[0]), .i7(i7i[0]),
.z(mx[0]));
j_mx81 mx9b1 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[1]), .i1(i1i[1]), .i2(i2i[1]), .i3(i3i[1]),
.i4(i4i[1]), .i5(i5i[1]), .i6(i6i[1]), .i7(i7i[1]),
.z(mx[1]));
j_mx81 mx9b2 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[2]), .i1(i1i[2]), .i2(i2i[2]), .i3(i3i[2]),
.i4(i4i[2]), .i5(i5i[2]), .i6(i6i[2]), .i7(i7i[2]),
.z(mx[2]));
j_mx81 mx9b3 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[3]), .i1(i1i[3]), .i2(i2i[3]), .i3(i3i[3]),
.i4(i4i[3]), .i5(i5i[3]), .i6(i6i[3]), .i7(i7i[3]),
.z(mx[3]));
j_mx81 mx9b4 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[4]), .i1(i1i[4]), .i2(i2i[4]), .i3(i3i[4]),
.i4(i4i[4]), .i5(i5i[4]), .i6(i6i[4]), .i7(i7i[4]),
.z(mx[4]));
j_mx81 mx9b5 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[5]), .i1(i1i[5]), .i2(i2i[5]), .i3(i3i[5]),
.i4(i4i[5]), .i5(i5i[5]), .i6(i6i[5]), .i7(i7i[5]),
.z(mx[5]));
j_mx81 mx9b6 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[6]), .i1(i1i[6]), .i2(i2i[6]), .i3(i3i[6]),
.i4(i4i[6]), .i5(i5i[6]), .i6(i6i[6]), .i7(i7i[6]),
.z(mx[6]));
j_mx81 mx9b7 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[7]), .i1(i1i[7]), .i2(i2i[7]), .i3(i3i[7]),
.i4(i4i[7]), .i5(i5i[7]), .i6(i6i[7]), .i7(i7i[7]),
.z(mx[7]));
j_mx81 mx9b8 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
.i0(i0i[8]), .i1(i1i[8]), .i2(i2i[8]), .i3(i3i[8]),
.i4(i4i[8]), .i5(i5i[8]), .i6(i6i[8]), .i7(i7i[8]),
.z(mx[8]));
j_in01 in9bb (.i(s[3]), .zn(sn3));
j_an02 an9b0 (.a1(sn3), .a2(mx[0]), .z(z[0]));
j_an02 an9b1 (.a1(sn3), .a2(mx[1]), .z(z[1]));
j_an02 an9b2 (.a1(sn3), .a2(mx[2]), .z(z[2]));
j_an02 an9b3 (.a1(sn3), .a2(mx[3]), .z(z[3]));
j_an02 an9b4 (.a1(sn3), .a2(mx[4]), .z(z[4]));
j_an02 an9b5 (.a1(sn3), .a2(mx[5]), .z(z[5]));
j_an02 an9b6 (.a1(sn3), .a2(mx[6]), .z(z[6]));
j_an02 an9b7 (.a1(sn3), .a2(mx[7]), .z(z[7]));
j_an02 an9b8 (.a1(sn3), .a2(mx[8]), .z(z[8]));
endmodule // cc_mxxr