bl_zcomp_gt.v 4.13 KB
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	bl_zcomp_gt
// description: Greater-than for z comare for blend unit.
//
// designer:	Phil Gossett
// date:	8/27/94
//
////////////////////////////////////////////////////////////////////////

module bl_zcomp_gt (a, b, z);

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

output z;

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

an02d2  c0a0 (	.a1(a[ 0]), .a2(b[ 0]), .z(c0a[ 0]));
an02d2  c0a1 (	.a1(a[ 1]), .a2(b[ 1]), .z(c0a[ 1]));
an02d2  c0a2 (	.a1(a[ 2]), .a2(b[ 2]), .z(c0a[ 2]));
an02d2  c0a3 (	.a1(a[ 3]), .a2(b[ 3]), .z(c0a[ 3]));
an02d2  c0a4 (	.a1(a[ 4]), .a2(b[ 4]), .z(c0a[ 4]));
an02d2  c0a5 (	.a1(a[ 5]), .a2(b[ 5]), .z(c0a[ 5]));
an02d2  c0a6 (	.a1(a[ 6]), .a2(b[ 6]), .z(c0a[ 6]));
an02d2  c0a7 (	.a1(a[ 7]), .a2(b[ 7]), .z(c0a[ 7]));
an02d2  c0a8 (	.a1(a[ 8]), .a2(b[ 8]), .z(c0a[ 8]));
an02d2  c0a9 (	.a1(a[ 9]), .a2(b[ 9]), .z(c0a[ 9]));
an02d2  c0aa (	.a1(a[10]), .a2(b[10]), .z(c0a[10]));
an02d2  c0ab (	.a1(a[11]), .a2(b[11]), .z(c0a[11]));
an02d2  c0ac (	.a1(a[12]), .a2(b[12]), .z(c0a[12]));
an02d2  c0ad (	.a1(a[13]), .a2(b[13]), .z(c0a[13]));
an02d2  c0ae (	.a1(a[14]), .a2(b[14]), .z(c0a[14]));
an02d2  c0af (	.a1(a[15]), .a2(b[15]), .z(c0a[15]));
an02d2  c0ag (	.a1(a[16]), .a2(b[16]), .z(c0a[16]));
an02d2  c0ah (	.a1(a[17]), .a2(b[17]), .z(c0a[17]));

assign c1a[0] = c0a[0];
or02d2  c1a1 (	.a1(a[ 1]), .a2(b[ 1]), .z(c1a[ 1]));
or02d2  c1a2 (	.a1(a[ 2]), .a2(b[ 2]), .z(c1a[ 2]));
or02d2  c1a3 (	.a1(a[ 3]), .a2(b[ 3]), .z(c1a[ 3]));
or02d2  c1a4 (	.a1(a[ 4]), .a2(b[ 4]), .z(c1a[ 4]));
or02d2  c1a5 (	.a1(a[ 5]), .a2(b[ 5]), .z(c1a[ 5]));
or02d2  c1a6 (	.a1(a[ 6]), .a2(b[ 6]), .z(c1a[ 6]));
or02d2  c1a7 (	.a1(a[ 7]), .a2(b[ 7]), .z(c1a[ 7]));
or02d2  c1a8 (	.a1(a[ 8]), .a2(b[ 8]), .z(c1a[ 8]));
or02d2  c1a9 (	.a1(a[ 9]), .a2(b[ 9]), .z(c1a[ 9]));
or02d2  c1aa (	.a1(a[10]), .a2(b[10]), .z(c1a[10]));
or02d2  c1ab (	.a1(a[11]), .a2(b[11]), .z(c1a[11]));
or02d2  c1ac (	.a1(a[12]), .a2(b[12]), .z(c1a[12]));
or02d2  c1ad (	.a1(a[13]), .a2(b[13]), .z(c1a[13]));
or02d2  c1ae (	.a1(a[14]), .a2(b[14]), .z(c1a[14]));
or02d2  c1af (	.a1(a[15]), .a2(b[15]), .z(c1a[15]));
or02d2  c1ag (	.a1(a[16]), .a2(b[16]), .z(c1a[16]));
or02d2  c1ah (	.a1(a[17]), .a2(b[17]), .z(c1a[17]));

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(c0a[ 8]), .i0(c0a[ 9]), .i1(c1a[ 9]), .z(mxh));
mx21d1h muxi (	.s(c1a[ 8]), .i0(c0a[ 9]), .i1(c1a[ 9]), .z(mxi));
mx21d1h muxj (	.s(c0a[10]), .i0(c0a[11]), .i1(c1a[11]), .z(mxj));
mx21d1h muxk (	.s(c1a[10]), .i0(c0a[11]), .i1(c1a[11]), .z(mxk));
mx21d1h muxl (	.s(c0a[12]), .i0(c0a[13]), .i1(c1a[13]), .z(mxl));
mx21d1h muxm (	.s(c1a[12]), .i0(c0a[13]), .i1(c1a[13]), .z(mxm));
mx21d1h muxn (	.s(c0a[14]), .i0(c0a[15]), .i1(c1a[15]), .z(mxn));
mx21d1h muxo (	.s(c1a[14]), .i0(c0a[15]), .i1(c1a[15]), .z(mxo));
mx21d1h muxp (	.s(c0a[16]), .i0(c0a[17]), .i1(c1a[17]), .z(mxp));
mx21d1h muxq (	.s(c1a[16]), .i0(c0a[17]), .i1(c1a[17]), .z(mxq));
mx21d1h muxr (	.s(mxa    ), .i0(mxb    ), .i1(mxc    ), .z(mxr));
mx21d1h muxs (	.s(mxd    ), .i0(mxf    ), .i1(mxg    ), .z(mxs));
mx21d1h muxt (	.s(mxe    ), .i0(mxf    ), .i1(mxg    ), .z(mxt));
mx21d1h muxu (	.s(mxh    ), .i0(mxj    ), .i1(mxk    ), .z(mxu));
mx21d1h muxv (	.s(mxi    ), .i0(mxj    ), .i1(mxk    ), .z(mxv));
mx21d1h muxw (	.s(mxl    ), .i0(mxn    ), .i1(mxo    ), .z(mxw));
mx21d1h muux (	.s(mxm    ), .i0(mxn    ), .i1(mxo    ), .z(mxx));
mx21d1h muxx (	.s(mxr    ), .i0(mxs    ), .i1(mxt    ), .z(mxxx));
mx21d1h muyy (	.s(mxu    ), .i0(mxw    ), .i1(mxx    ), .z(mxyy));
mx21d1h muzz (	.s(mxv    ), .i0(mxw    ), .i1(mxx    ), .z(mxzz));
mx21d1h muxy (	.s(mxxx   ), .i0(mxyy   ), .i1(mxzz   ), .z(mxy));
mx21d1h muxz (	.s(mxy    ), .i0(mxp    ), .i1(mxq    ), .z(z));

endmodule // bl_zcomp_gt