bl_muxa.v 1.57 KB
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	bl_muxa
// description:	6 bit 4->1 mux for blend unit.
//
// designer:	Phil Gossett
// date:	8/13/94
//
////////////////////////////////////////////////////////////////////////

module bl_muxa (s, i0i, i1i, i2i, i3i, z);

input [1:0] s;
input [5:0] i0i;
input [5:0] i1i;
input [5:0] i2i;
input [5:0] i3i;

wire [5:0] mxa;
wire [5:0] mxb;

output [5: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 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 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]));

endmodule // bl_muxa