cc_key_gt.v 1.87 KB
////////////////////////////////////////////////////////////////////////
//
// 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;

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

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

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

endmodule // cc_key_gt