cc_mxar.v 5.3 KB
// 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 mx21d1h changed to j_mx21.
//    18 instances of mx81d1h changed to j_mx81.
//

////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	cc_mxar
// description:	9 bit 16->1 mux for color combine unit.
//
// designer:	Phil Gossett
// date:	6/25/94
//
////////////////////////////////////////////////////////////////////////

module cc_mxar (s, i0i, i1i, i2i, i3i, i4i, i5i, i6i, i7i,
		   i8i, i9i, iai, ibi, ici, idi, iei, ifi,
		   z);

input [4: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;
input [8:0] i8i;
input [8:0] i9i;
input [8:0] iai;
input [8:0] ibi;
input [8:0] ici;
input [8:0] idi;
input [8:0] iei;
input [8:0] ifi;

wire [8:0] mxa;
wire [8:0] mxb;
wire [8:0] mx;
wire sn4;

output [8:0] z;

j_mx81 mxa0 (.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(mxa[0]));
j_mx81 mxa1 (.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(mxa[1]));
j_mx81 mxa2 (.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(mxa[2]));
j_mx81 mxa3 (.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(mxa[3]));
j_mx81 mxa4 (.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(mxa[4]));
j_mx81 mxa5 (.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(mxa[5]));
j_mx81 mxa6 (.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(mxa[6]));
j_mx81 mxa7 (.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(mxa[7]));
j_mx81 mxa8 (.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(mxa[8]));

j_mx81 mxb0 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[0]), .i1(i9i[0]), .i2(iai[0]), .i3(ibi[0]), 
	      .i4(ici[0]), .i5(idi[0]), .i6(iei[0]), .i7(ifi[0]), 
	      .z(mxb[0]));
j_mx81 mxb1 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[1]), .i1(i9i[1]), .i2(iai[1]), .i3(ibi[1]), 
	      .i4(ici[1]), .i5(idi[1]), .i6(iei[1]), .i7(ifi[1]), 
	      .z(mxb[1]));
j_mx81 mxb2 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[2]), .i1(i9i[2]), .i2(iai[2]), .i3(ibi[2]), 
	      .i4(ici[2]), .i5(idi[2]), .i6(iei[2]), .i7(ifi[2]), 
	      .z(mxb[2]));
j_mx81 mxb3 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[3]), .i1(i9i[3]), .i2(iai[3]), .i3(ibi[3]), 
	      .i4(ici[3]), .i5(idi[3]), .i6(iei[3]), .i7(ifi[3]), 
	      .z(mxb[3]));
j_mx81 mxb4 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[4]), .i1(i9i[4]), .i2(iai[4]), .i3(ibi[4]), 
	      .i4(ici[4]), .i5(idi[4]), .i6(iei[4]), .i7(ifi[4]), 
	      .z(mxb[4]));
j_mx81 mxb5 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[5]), .i1(i9i[5]), .i2(iai[5]), .i3(ibi[5]), 
	      .i4(ici[5]), .i5(idi[5]), .i6(iei[5]), .i7(ifi[5]), 
	      .z(mxb[5]));
j_mx81 mxb6 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[6]), .i1(i9i[6]), .i2(iai[6]), .i3(ibi[6]), 
	      .i4(ici[6]), .i5(idi[6]), .i6(iei[6]), .i7(ifi[6]), 
	      .z(mxb[6]));
j_mx81 mxb7 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[7]), .i1(i9i[7]), .i2(iai[7]), .i3(ibi[7]), 
	      .i4(ici[7]), .i5(idi[7]), .i6(iei[7]), .i7(ifi[7]), 
	      .z(mxb[7]));
j_mx81 mxb8 (.s0(s[0]), .s1(s[1]), .s2(s[2]),
	      .i0(i8i[8]), .i1(i9i[8]), .i2(iai[8]), .i3(ibi[8]), 
	      .i4(ici[8]), .i5(idi[8]), .i6(iei[8]), .i7(ifi[8]), 
	      .z(mxb[8]));
j_mx21 mx90 (.s(s[3]), .i0(mxa[0]), .i1(mxb[0]), .z(mx[0]));
j_mx21 mx91 (.s(s[3]), .i0(mxa[1]), .i1(mxb[1]), .z(mx[1]));
j_mx21 mx92 (.s(s[3]), .i0(mxa[2]), .i1(mxb[2]), .z(mx[2]));
j_mx21 mx93 (.s(s[3]), .i0(mxa[3]), .i1(mxb[3]), .z(mx[3]));
j_mx21 mx94 (.s(s[3]), .i0(mxa[4]), .i1(mxb[4]), .z(mx[4]));
j_mx21 mx95 (.s(s[3]), .i0(mxa[5]), .i1(mxb[5]), .z(mx[5]));
j_mx21 mx96 (.s(s[3]), .i0(mxa[6]), .i1(mxb[6]), .z(mx[6]));
j_mx21 mx97 (.s(s[3]), .i0(mxa[7]), .i1(mxb[7]), .z(mx[7]));
j_mx21 mx98 (.s(s[3]), .i0(mxa[8]), .i1(mxb[8]), .z(mx[8]));
j_in01  in9b (.i(s[4]), .zn(sn4));
j_an02 an90 (.a1(sn4), .a2(mx[0]), .z(z[0]));
j_an02 an91 (.a1(sn4), .a2(mx[1]), .z(z[1]));
j_an02 an92 (.a1(sn4), .a2(mx[2]), .z(z[2]));
j_an02 an93 (.a1(sn4), .a2(mx[3]), .z(z[3]));
j_an02 an94 (.a1(sn4), .a2(mx[4]), .z(z[4]));
j_an02 an95 (.a1(sn4), .a2(mx[5]), .z(z[5]));
j_an02 an96 (.a1(sn4), .a2(mx[6]), .z(z[6]));
j_an02 an97 (.a1(sn4), .a2(mx[7]), .z(z[7]));
j_an02 an98 (.a1(sn4), .a2(mx[8]), .z(z[8]));

endmodule // cc_mxar