bl_mxpm.v
1.94 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
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: bl_mxpm
// description: 8 bit 4->1 mux for blend unit.
//
// designer: Phil Gossett
// date: 8/13/94
//
////////////////////////////////////////////////////////////////////////
module bl_mxpm (s, i0i, i1i, i2i, i3i, z);
input [1:0] s;
input [7:0] i0i;
input [7:0] i1i;
input [7:0] i2i;
input [7:0] i3i;
wire [7:0] mxa;
wire [7:0] mxb;
output [7:0] z;
mx21d1h mxa0 (.s(s[0]), .i0(i0i[0]), .i1(i1i[0]), .z(mxa[0]));
mx21d1h mxa1 (.s(s[0]), .i0(i0i[1]), .i1(i1i[1]), .z(mxa[1]));
mx21d1h mxa2 (.s(s[0]), .i0(i0i[2]), .i1(i1i[2]), .z(mxa[2]));
mx21d1h mxa3 (.s(s[0]), .i0(i0i[3]), .i1(i1i[3]), .z(mxa[3]));
mx21d1h mxa4 (.s(s[0]), .i0(i0i[4]), .i1(i1i[4]), .z(mxa[4]));
mx21d1h mxa5 (.s(s[0]), .i0(i0i[5]), .i1(i1i[5]), .z(mxa[5]));
mx21d1h mxa6 (.s(s[0]), .i0(i0i[6]), .i1(i1i[6]), .z(mxa[6]));
mx21d1h mxa7 (.s(s[0]), .i0(i0i[7]), .i1(i1i[7]), .z(mxa[7]));
mx21d1h mxb0 (.s(s[0]), .i0(i2i[0]), .i1(i3i[0]), .z(mxb[0]));
mx21d1h mxb1 (.s(s[0]), .i0(i2i[1]), .i1(i3i[1]), .z(mxb[1]));
mx21d1h mxb2 (.s(s[0]), .i0(i2i[2]), .i1(i3i[2]), .z(mxb[2]));
mx21d1h mxb3 (.s(s[0]), .i0(i2i[3]), .i1(i3i[3]), .z(mxb[3]));
mx21d1h mxb4 (.s(s[0]), .i0(i2i[4]), .i1(i3i[4]), .z(mxb[4]));
mx21d1h mxb5 (.s(s[0]), .i0(i2i[5]), .i1(i3i[5]), .z(mxb[5]));
mx21d1h mxb6 (.s(s[0]), .i0(i2i[6]), .i1(i3i[6]), .z(mxb[6]));
mx21d1h mxb7 (.s(s[0]), .i0(i2i[7]), .i1(i3i[7]), .z(mxb[7]));
mx21d1h mxc0 (.s(s[1]), .i0(mxa[0]), .i1(mxb[0]), .z(z[0]));
mx21d1h mxc1 (.s(s[1]), .i0(mxa[1]), .i1(mxb[1]), .z(z[1]));
mx21d1h mxc2 (.s(s[1]), .i0(mxa[2]), .i1(mxb[2]), .z(z[2]));
mx21d1h mxc3 (.s(s[1]), .i0(mxa[3]), .i1(mxb[3]), .z(z[3]));
mx21d1h mxc4 (.s(s[1]), .i0(mxa[4]), .i1(mxb[4]), .z(z[4]));
mx21d1h mxc5 (.s(s[1]), .i0(mxa[5]), .i1(mxb[5]), .z(z[5]));
mx21d1h mxc6 (.s(s[1]), .i0(mxa[6]), .i1(mxb[6]), .z(z[6]));
mx21d1h mxc7 (.s(s[1]), .i0(mxa[7]), .i1(mxb[7]), .z(z[7]));
endmodule // bl_mxpm