cc_key_mux.v
1.65 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
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: cc_key_mux
// description: Mux for color key for color combine unit.
//
// designer: Phil Gossett
// date: 9/16/94
//
////////////////////////////////////////////////////////////////////////
module cc_key_mux (r, g, b, rltg, gltb, bltr, a);
input [7:0] r;
input [7:0] g;
input [7:0] b;
input rltg;
input gltb;
input bltr;
output [7:0] a;
mx81d1h mx0 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[0]), .i1(b[0]), .i2(g[0]), .i3(g[0]),
.i4(r[0]), .i5(b[0]), .i6(r[0]), .i7(1'b0),
.z(a[0]));
mx81d1h mx1 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[1]), .i1(b[1]), .i2(g[1]), .i3(g[1]),
.i4(r[1]), .i5(b[1]), .i6(r[1]), .i7(1'b0),
.z(a[1]));
mx81d1h mx2 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[2]), .i1(b[2]), .i2(g[2]), .i3(g[2]),
.i4(r[2]), .i5(b[2]), .i6(r[2]), .i7(1'b0),
.z(a[2]));
mx81d1h mx3 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[3]), .i1(b[3]), .i2(g[3]), .i3(g[3]),
.i4(r[3]), .i5(b[3]), .i6(r[3]), .i7(1'b0),
.z(a[3]));
mx81d1h mx4 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[4]), .i1(b[4]), .i2(g[4]), .i3(g[4]),
.i4(r[4]), .i5(b[4]), .i6(r[4]), .i7(1'b0),
.z(a[4]));
mx81d1h mx5 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[5]), .i1(b[5]), .i2(g[5]), .i3(g[5]),
.i4(r[5]), .i5(b[5]), .i6(r[5]), .i7(1'b0),
.z(a[5]));
mx81d1h mx6 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[6]), .i1(b[6]), .i2(g[6]), .i3(g[6]),
.i4(r[6]), .i5(b[6]), .i6(r[6]), .i7(1'b0),
.z(a[6]));
mx81d1h mx7 ( .s0(bltr), .s1(gltb), .s2(rltg),
.i0(r[7]), .i1(b[7]), .i2(g[7]), .i3(g[7]),
.i4(r[7]), .i5(b[7]), .i6(r[7]), .i7(1'b0),
.z(a[7]));
endmodule // cc_key_mux