Verilog, Processors, Engineering, Enjoy Writing, Tech.
RshiftResult; barrelShifter myRightLogicalShifter(DATA1,DATA2[7:5],RshiftResult); //creating the always block which runs whenever a input is changed always @(DATA1,DATA2,SELECT) begin //selecting based on the SELECT input using s switch case case(SELECT) 3'b000: #1 RESULT = DATA2; //Forward