bl_zcomp_gt.v
4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix
//
// 18 instances of an02d2 changed to j_an02.
// 29 instances of mx21d1h changed to j_mx21.
// 17 instances of or02d2 changed to j_or02.
//
////////////////////////////////////////////////////////////////////////
//
// 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;
j_an02 c0a0 ( .a1(a[ 0]), .a2(b[ 0]), .z(c0a[ 0]));
j_an02 c0a1 ( .a1(a[ 1]), .a2(b[ 1]), .z(c0a[ 1]));
j_an02 c0a2 ( .a1(a[ 2]), .a2(b[ 2]), .z(c0a[ 2]));
j_an02 c0a3 ( .a1(a[ 3]), .a2(b[ 3]), .z(c0a[ 3]));
j_an02 c0a4 ( .a1(a[ 4]), .a2(b[ 4]), .z(c0a[ 4]));
j_an02 c0a5 ( .a1(a[ 5]), .a2(b[ 5]), .z(c0a[ 5]));
j_an02 c0a6 ( .a1(a[ 6]), .a2(b[ 6]), .z(c0a[ 6]));
j_an02 c0a7 ( .a1(a[ 7]), .a2(b[ 7]), .z(c0a[ 7]));
j_an02 c0a8 ( .a1(a[ 8]), .a2(b[ 8]), .z(c0a[ 8]));
j_an02 c0a9 ( .a1(a[ 9]), .a2(b[ 9]), .z(c0a[ 9]));
j_an02 c0aa ( .a1(a[10]), .a2(b[10]), .z(c0a[10]));
j_an02 c0ab ( .a1(a[11]), .a2(b[11]), .z(c0a[11]));
j_an02 c0ac ( .a1(a[12]), .a2(b[12]), .z(c0a[12]));
j_an02 c0ad ( .a1(a[13]), .a2(b[13]), .z(c0a[13]));
j_an02 c0ae ( .a1(a[14]), .a2(b[14]), .z(c0a[14]));
j_an02 c0af ( .a1(a[15]), .a2(b[15]), .z(c0a[15]));
j_an02 c0ag ( .a1(a[16]), .a2(b[16]), .z(c0a[16]));
j_an02 c0ah ( .a1(a[17]), .a2(b[17]), .z(c0a[17]));
assign c1a[0] = c0a[0];
j_or02 c1a1 ( .a1(a[ 1]), .a2(b[ 1]), .z(c1a[ 1]));
j_or02 c1a2 ( .a1(a[ 2]), .a2(b[ 2]), .z(c1a[ 2]));
j_or02 c1a3 ( .a1(a[ 3]), .a2(b[ 3]), .z(c1a[ 3]));
j_or02 c1a4 ( .a1(a[ 4]), .a2(b[ 4]), .z(c1a[ 4]));
j_or02 c1a5 ( .a1(a[ 5]), .a2(b[ 5]), .z(c1a[ 5]));
j_or02 c1a6 ( .a1(a[ 6]), .a2(b[ 6]), .z(c1a[ 6]));
j_or02 c1a7 ( .a1(a[ 7]), .a2(b[ 7]), .z(c1a[ 7]));
j_or02 c1a8 ( .a1(a[ 8]), .a2(b[ 8]), .z(c1a[ 8]));
j_or02 c1a9 ( .a1(a[ 9]), .a2(b[ 9]), .z(c1a[ 9]));
j_or02 c1aa ( .a1(a[10]), .a2(b[10]), .z(c1a[10]));
j_or02 c1ab ( .a1(a[11]), .a2(b[11]), .z(c1a[11]));
j_or02 c1ac ( .a1(a[12]), .a2(b[12]), .z(c1a[12]));
j_or02 c1ad ( .a1(a[13]), .a2(b[13]), .z(c1a[13]));
j_or02 c1ae ( .a1(a[14]), .a2(b[14]), .z(c1a[14]));
j_or02 c1af ( .a1(a[15]), .a2(b[15]), .z(c1a[15]));
j_or02 c1ag ( .a1(a[16]), .a2(b[16]), .z(c1a[16]));
j_or02 c1ah ( .a1(a[17]), .a2(b[17]), .z(c1a[17]));
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(c0a[ 8]), .i0(c0a[ 9]), .i1(c1a[ 9]), .z(mxh));
j_mx21 muxi ( .s(c1a[ 8]), .i0(c0a[ 9]), .i1(c1a[ 9]), .z(mxi));
j_mx21 muxj ( .s(c0a[10]), .i0(c0a[11]), .i1(c1a[11]), .z(mxj));
j_mx21 muxk ( .s(c1a[10]), .i0(c0a[11]), .i1(c1a[11]), .z(mxk));
j_mx21 muxl ( .s(c0a[12]), .i0(c0a[13]), .i1(c1a[13]), .z(mxl));
j_mx21 muxm ( .s(c1a[12]), .i0(c0a[13]), .i1(c1a[13]), .z(mxm));
j_mx21 muxn ( .s(c0a[14]), .i0(c0a[15]), .i1(c1a[15]), .z(mxn));
j_mx21 muxo ( .s(c1a[14]), .i0(c0a[15]), .i1(c1a[15]), .z(mxo));
j_mx21 muxp ( .s(c0a[16]), .i0(c0a[17]), .i1(c1a[17]), .z(mxp));
j_mx21 muxq ( .s(c1a[16]), .i0(c0a[17]), .i1(c1a[17]), .z(mxq));
j_mx21 muxr ( .s(mxa ), .i0(mxb ), .i1(mxc ), .z(mxr));
j_mx21 muxs ( .s(mxd ), .i0(mxf ), .i1(mxg ), .z(mxs));
j_mx21 muxt ( .s(mxe ), .i0(mxf ), .i1(mxg ), .z(mxt));
j_mx21 muxu ( .s(mxh ), .i0(mxj ), .i1(mxk ), .z(mxu));
j_mx21 muxv ( .s(mxi ), .i0(mxj ), .i1(mxk ), .z(mxv));
j_mx21 muxw ( .s(mxl ), .i0(mxn ), .i1(mxo ), .z(mxw));
j_mx21 muux ( .s(mxm ), .i0(mxn ), .i1(mxo ), .z(mxx));
j_mx21 muxx ( .s(mxr ), .i0(mxs ), .i1(mxt ), .z(mxxx));
j_mx21 muyy ( .s(mxu ), .i0(mxw ), .i1(mxx ), .z(mxyy));
j_mx21 muzz ( .s(mxv ), .i0(mxw ), .i1(mxx ), .z(mxzz));
j_mx21 muxy ( .s(mxxx ), .i0(mxyy ), .i1(mxzz ), .z(mxy));
j_mx21 muxz ( .s(mxy ), .i0(mxp ), .i1(mxq ), .z(z));
endmodule // bl_zcomp_gt