pascalkuthe / OpenVAF

An innovative Verilog-A compiler
https://openvaf.semimod.de/
GNU General Public License v3.0
123 stars 20 forks source link

analog initial #41

Closed KenKundert closed 1 year ago

KenKundert commented 1 year ago

You should support analog initial statements. They are the preferred way of doing initialization of variable in Verilog-A.

pascalkuthe commented 1 year ago

Thank you for bringing this to our attention!

Support for this feature has been added in #43. Our goal is to adhere to the LRM and therefore pointing out missing features like this is very helpful to us. OpenVAF already automatically divides the content of a module's analog statements into an initialization and simulation phase. The analog initial blocks are now automatically prepended to the initialization phase. Our initial focus during development was supporting the CMC compact models and none of these models use analog initial for that purpose, hence we focused on the automatic mechanism and didn't add analog initial yet.