module barrel_shifter(ShiftDistance,DataIn,DataOut);			//implements a barrel shifter using solely combinational logic

output [15:0] DataOut;						       //appropriate inputs and outputs
input [3:0] ShiftDistance;
input [15:0] DataIn;

assign DataOut=DataIn << ShiftDistance;							//shifts bits as indicated by 4 bit input
endmodule