Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Why? If you are using a variable shift factor, it should be clearly range restricted. But then, a modern designYes it's synthesizable but not good for timing.
FvM said:Why? If you are using a variable shift factor, it should be clearly range restricted. But then, a modern designYes it's synthesizable but not good for timing.
compiler should be able to minimize the logic. I wouldn't expect different resource requirements for the high level
a << n statement versus a fully decoded case construct.
case(b)
5'h0 : c = a;
5'h1 : c = {a[30:0],1'b0};
5'h2 : c = {a[29:0],2'b0};
.
.
.
5'h1f : c = {a[31],31'b0};
endcase