cc_key_gt.v 2.09 KB
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix 
//
//    7 instances of fn01d2 changed to j_fn01.
//    8 instances of fn05d2 changed to j_fn05.
//    11 instances of mx21d1h changed to j_mx21.
//

////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	cc_key_gt
// description: Greater-than for color key for color combine unit.
//
// designer:	Phil Gossett
// date:	8/27/94
//
////////////////////////////////////////////////////////////////////////

module cc_key_gt (a, b, z);

input [7:0] a;
input [7:0] b;

output z;

wire [7:0] c0a;
wire [7:0] c1a;

j_fn05  c0a0 (	.a1(a[0]), .b1(b[0]), .zn(c0a[0]));
j_fn05  c0a1 (	.a1(a[1]), .b1(b[1]), .zn(c0a[1]));
j_fn05  c0a2 (	.a1(a[2]), .b1(b[2]), .zn(c0a[2]));
j_fn05  c0a3 (	.a1(a[3]), .b1(b[3]), .zn(c0a[3]));
j_fn05  c0a4 (	.a1(a[4]), .b1(b[4]), .zn(c0a[4]));
j_fn05  c0a5 (	.a1(a[5]), .b1(b[5]), .zn(c0a[5]));
j_fn05  c0a6 (	.a1(a[6]), .b1(b[6]), .zn(c0a[6]));
j_fn05  c0a7 (	.a1(a[7]), .b1(b[7]), .zn(c0a[7]));

assign c1a[0] = c0a[0];
j_fn01  c1a1 (	.a1(a[1]), .b1(b[1]), .zn(c1a[1]));
j_fn01  c1a2 (	.a1(a[2]), .b1(b[2]), .zn(c1a[2]));
j_fn01  c1a3 (	.a1(a[3]), .b1(b[3]), .zn(c1a[3]));
j_fn01  c1a4 (	.a1(a[4]), .b1(b[4]), .zn(c1a[4]));
j_fn01  c1a5 (	.a1(a[5]), .b1(b[5]), .zn(c1a[5]));
j_fn01  c1a6 (	.a1(a[6]), .b1(b[6]), .zn(c1a[6]));
j_fn01  c1a7 (	.a1(a[7]), .b1(b[7]), .zn(c1a[7]));

j_mx21 muxa (	.s(c0a[0]), .i0(c0a[1]), .i1(c1a[1]), .z(mxa));
j_mx21 muxb (	.s(c0a[2]), .i0(c0a[3]), .i1(c1a[3]), .z(mxb));
j_mx21 muxc (	.s(c1a[2]), .i0(c0a[3]), .i1(c1a[3]), .z(mxc));
j_mx21 muxd (	.s(c0a[4]), .i0(c0a[5]), .i1(c1a[5]), .z(mxd));
j_mx21 muxe (	.s(c1a[4]), .i0(c0a[5]), .i1(c1a[5]), .z(mxe));
j_mx21 muxf (	.s(c0a[6]), .i0(c0a[7]), .i1(c1a[7]), .z(mxf));
j_mx21 muxg (	.s(c1a[6]), .i0(c0a[7]), .i1(c1a[7]), .z(mxg));
j_mx21 muxh (	.s(mxa   ), .i0(mxb   ), .i1(mxc   ), .z(mxh));
j_mx21 muxi (	.s(mxd   ), .i0(mxf   ), .i1(mxg   ), .z(mxi));
j_mx21 muxj (	.s(mxe   ), .i0(mxf   ), .i1(mxg   ), .z(mxj));
j_mx21 muxz (	.s(mxh   ), .i0(mxi   ), .i1(mxj   ), .z(z));

endmodule // cc_key_gt