Skip to content

Keeping module parameters as variables, so they become BTOR2 inputs #3531

Answered by nakengelhardt
gussmith23 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! I'm afraid with the current intermediate representation this is not possible in the general case. The problem is that parameters are usually used to affect not just the values of some signals, but the geometry of the design itself. A very common use is for the width of the signals - but in the RTLIL netlist (and in the BTOR2 format iirc), the width cannot be symbolic, it has to be a concrete value. Even worse for parameters that are used in generate statements, and can affect the existence and/or number and/or connectivity of many cells in the netlist. RTLIL can only represent a concrete netlist, which is why the frontend resolves all parameters to constants when you import the design…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gussmith23
Comment options

Answer selected by gussmith23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants