module barrelshifter2(DataOut,DataIn,ShiftDistance);
output [15:0] DataOut;
input [3:0] ShiftDistance;
input [15:0] DataIn;
wire [15:0] tmp; // discarded unused-bits
// The shifted MSBs will be truncated upon assignment to y
assign {tmp,DataOut} = {16'b0000,DataIn} << ShiftDistance;
endmodule
