implementing ror32 concisely? #470
-
|
I'm trying to implement a 32 bit rotation: But it gives: Is there a way to implement it more concisely than doing something like the following? ror32 with tons of if statements
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Since the value of the shift amount must be known during synthesis, a more concise equivalent of your Based on the potential values of the Comparing the costs of the two circuits the proposed solution here would be the cheaper one: |
Beta Was this translation helpful? Give feedback.
-
|
@TooMuchDakka I get: |
Beta Was this translation helpful? Give feedback.
-
|
@TooMuchDakka Thanks. That bugfix helped. |
Beta Was this translation helpful? Give feedback.
Since the value of the shift amount must be known during synthesis, a more concise equivalent of your
ror32SyReC module could look like this: