Replies: 1 comment
-
It depends on what you're assigning to, how you're using it, and what yosys commands you call as to how an initial value might be optimised. If you're using memory for example, the memory primitives will often have an INIT parameter that gets assigned. Registers can be quite easily optimised out if they have a constant value or if the value is never read. You may also have more luck with write_rtlil, or you can call |
Beta Was this translation helpful? Give feedback.
-
I am curious to see what it does given that icecube says its ignores them. I ran a small file through yosys and captured the generated rtl using write_verilog. I compared the output for 'reg <=0' and 'reg<= 42' so I could easily spot where the init code is, but the two files are identical.
Beta Was this translation helpful? Give feedback.
All reactions