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