Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 152 Bytes
module shiftleft(
input [31:0] a,
input [31:0] b,
output [31:0] c
);
wire [63:0] tmp = { a, 32'b0 };
assign c = tmp[63 - b[5:0] -:32];
endmodule
You can’t perform that action at this time.