cc_key_gt.v
2.09 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
// 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