fragnen
Full Member level 4
Can the shifting value in the shift operator which is shown below be binary?
<<, >>.
For example, in the below the shifting value 4'b0101 is in binary. Is it valid to write synrhesizble rtl code with the shifting value in binary as shown below?
assign d = b << 4'b0101 to shift b left by 5 bits and then assign to d.
The reason for asking this question is because normally we see shifting value to be in decimal in synrhesizble rtl code.
<<, >>.
For example, in the below the shifting value 4'b0101 is in binary. Is it valid to write synrhesizble rtl code with the shifting value in binary as shown below?
assign d = b << 4'b0101 to shift b left by 5 bits and then assign to d.
The reason for asking this question is because normally we see shifting value to be in decimal in synrhesizble rtl code.