llvm / circt

Circuit IR Compilers and Tools
https://circt.org
Other
1.62k stars 281 forks source link

[SV] Add option to generate ram blocks without x assigns #7281

Open hutch31 opened 2 months ago

hutch31 commented 2 months ago

Generated ram blocks have an output assignment which assigns the read port value to X when read is not enabled. This can cause problems with some design flows or tools.

Add option to force output to a constant address or value when read is not enabled.

uenoku commented 2 months ago

FYI https://github.com/llvm/circt/pull/4516 implemented a SFC style emission for memory read port. @prithayan Have you had a chance to iterate on this?