In reply to veli:
You could have created a simple example to test your assumptions.
module top;
logic [3:0] a ='1;
logic [1:0] shift_amount = '1;
logic [7:0] b;
initial begin
b = a << shift_amount;
$displayb(b);
end
endmodule
In reply to veli:
You could have created a simple example to test your assumptions.
module top;
logic [3:0] a ='1;
logic [1:0] shift_amount = '1;
logic [7:0] b;
initial begin
b = a << shift_amount;
$displayb(b);
end
endmodule