bl_nrmb.v 1.08 KB
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	bl_nrmb
// description:	5 bit 1 to 4 bit shifter for blend unit.
//
// designer:	Phil Gossett
// date:	11/1/94
//
////////////////////////////////////////////////////////////////////////

module bl_nrmb (lsen, sh, i, z); 

input lsen;
input [2:0] sh;
input [4:0] i;

output [4:0] z;

wire [2:0] ash;

an02d1h mxa0 (	.a1(lsen), .a2(sh[0]), .z(ash[0]));
an02d1h mxa1 (	.a1(lsen), .a2(sh[1]), .z(ash[1]));
an02d1h mxa2 (	.a1(lsen), .a2(sh[2]), .z(ash[2]));
or02d2  mxe0 (	.a1(lsen), .a2( i[0]), .z(  z[0]));
or02d2  mxe1 (	.a1(lsen), .a2( i[1]), .z(  z[1]));
me41d1h mxe2 (	.s0(ash[0]), .s1(ash[1]), .en(ash[2]), 
		.i0(i[2]), .i1(i[3]), .i2(i[4]), .i3(1'b0), 
		                       .z(  z[2]));
me41d1h mxe3 (	.s0(ash[0]), .s1(ash[1]), .en(ash[2]), 
		.i0(i[3]), .i1(i[4]), .i2(1'b0), .i3(1'b0), 
		                       .z(  z[3]));
me41d1h mxe4 (	.s0(ash[0]), .s1(ash[1]), .en(ash[2]), 
		.i0(i[4]), .i1(1'b0), .i2(1'b0), .i3(1'b0), 
		                       .z(  z[4]));

endmodule // bl_nrmb