pascalkuthe / OpenVAF

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

ddt() outside of contribution statement #80

Closed dwarning closed 8 months ago

dwarning commented 10 months ago

Is the application of the ddt() operator allowed outside of contribution statements? E.g.: taur = (3qb)/(cbcjddt(vds));

openvaf is not complaining to this. LRM don't forbid this.

pascalkuthe commented 10 months ago

Yes this should work with OpenVAF and is denfitly allowed by the VAMS standard.

However, this will currently always cause OpenVAF to (automaticalltlly) introducte an additional internal node and is therefore not ideal. I would likely to optimize this further but since this pattern is rare in practice it's not a priority right now.

pascalkuthe commented 8 months ago

I will close this as I actually added a lot more testing here in #92. Its also a lot more optimal now and usually not require an extra internal node