Difference between signal[idx]
and 1'(signal >> idx)
; how to convert between them
#4342
Unanswered
gussmith23
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Are you ignoring X values everywhere else? If you do you can ignore them in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
I have a design that looks like
which, under the hood, uses a
$shiftx
cell. I'm then writing out to a custom backend, and I really don't want to have to implement$shiftx
in my backend. Thus I would really like to convert it to the simplerI suspect this transformation may not actually be equivalent in the eyes of Yosys, however, and even if it is, I don't know how to implement it!
I have a few questions:
$shiftx
s and convert them into something simpler?Edit: I'm realizing I can also just implement
$shiftx
in my backend for very specific cases of$shiftx
; for example, the case where both operands are unsigned and it just reduces to a$shr
. This does not handle the fact that$shiftx
shifts in X values, however.Beta Was this translation helpful? Give feedback.
All reactions