Yosys pass to explicate zero-extending? #4330
-
Verilog implicitly extends constants to fit the bitwidth of their types, e.g. in the case of: Is there a Yosys pass to explicate these extensions? It would be great if the above code snippet would be converted to: Happy to provide more context as needed! cc @gussmith23 |
Beta Was this translation helpful? Give feedback.
Answered by
whitequark
Apr 11, 2024
Replies: 1 comment 2 replies
-
Have you tried |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is reading the Verilog that performs the sign extension; if you want to operate on the representation of the code that has the constant extended, then a simple
read_verilog
is enough.