cc_key_mux.v 1.78 KB
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix 
//
//    8 instances of mx81d1h changed to j_mx81.
//

////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	cc_key_mux
// description: Mux for color key for color combine unit.
//
// designer:	Phil Gossett
// date:	9/16/94
//
////////////////////////////////////////////////////////////////////////

module cc_key_mux (r, g, b, rltg, gltb, bltr, a);

input [7:0] r;
input [7:0] g;
input [7:0] b;
input rltg;
input gltb;
input bltr;

output [7:0] a;

j_mx81 mx0 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[0]), .i1(b[0]), .i2(g[0]), .i3(g[0]),
		.i4(r[0]), .i5(b[0]), .i6(r[0]), .i7(1'b0),
		.z(a[0]));
j_mx81 mx1 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[1]), .i1(b[1]), .i2(g[1]), .i3(g[1]),
		.i4(r[1]), .i5(b[1]), .i6(r[1]), .i7(1'b0),
		.z(a[1]));
j_mx81 mx2 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[2]), .i1(b[2]), .i2(g[2]), .i3(g[2]),
		.i4(r[2]), .i5(b[2]), .i6(r[2]), .i7(1'b0),
		.z(a[2]));
j_mx81 mx3 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[3]), .i1(b[3]), .i2(g[3]), .i3(g[3]),
		.i4(r[3]), .i5(b[3]), .i6(r[3]), .i7(1'b0),
		.z(a[3]));
j_mx81 mx4 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[4]), .i1(b[4]), .i2(g[4]), .i3(g[4]),
		.i4(r[4]), .i5(b[4]), .i6(r[4]), .i7(1'b0),
		.z(a[4]));
j_mx81 mx5 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[5]), .i1(b[5]), .i2(g[5]), .i3(g[5]),
		.i4(r[5]), .i5(b[5]), .i6(r[5]), .i7(1'b0),
		.z(a[5]));
j_mx81 mx6 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[6]), .i1(b[6]), .i2(g[6]), .i3(g[6]),
		.i4(r[6]), .i5(b[6]), .i6(r[6]), .i7(1'b0),
		.z(a[6]));
j_mx81 mx7 (	.s0(bltr), .s1(gltb), .s2(rltg),
		.i0(r[7]), .i1(b[7]), .i2(g[7]), .i3(g[7]),
		.i4(r[7]), .i5(b[7]), .i6(r[7]), .i7(1'b0),
		.z(a[7]));

endmodule // cc_key_mux