OSDI/OpenVAF: Verilog-A compact models in ngspice #22
-
I used the precompiled standalone executable of Openvaf. Here I tried compiling a comparator model using Verilog-ams language, but I failed, it reported an error like this:
My comparator model is as follows:
I tried another simple model and found that the problem appeared here, and that is that I can only express V like this: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Hi! I have 3 topics:
Thank you, |
Beta Was this translation helpful? Give feedback.
-
Thank you @nicolati for jumping in. I sadly didn't have time to reply yet as I was preoccupied today. I just tested this locally. OpenVAF fully supports voltage sources and this example was just bug in OpenVAF. We usually test larger compact models so issues with smaller models (espeically around voltage sources) may have been overlooked. The current release is still a beta version so some issues like this are possible. I already have found and fixed the bug locally and will push a fix (alogn with fixes for other issues) tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Hi Pascal, For sure we don't want any software to crash, so I agree you wanted to fix it. Still I think my points are still valid. And I'm not saying Voltage equations cannot be used. I'm saying it's complex to use them. So, if you already implemented this part, then congratulations to you, because this part has always been a problem! :) Fra |
Beta Was this translation helpful? Give feedback.
Thank you @nicolati for jumping in. I sadly didn't have time to reply yet as I was preoccupied today. I just tested this locally.
OpenVAF fully supports voltage sources and this example was just bug in OpenVAF.
All crashes of OpenVAF are bugs no matter how incorrect the model is.
OpenVAF should always report a helpful error message even for incorrect models and will never intentionally crash.
We usually test larger compact models so issues with smaller models (espeically around voltage sources) may have been overlooked. The current release is still a beta version so some issues like this are possible.
I already have found and fixed the bug locally and will push a fix (alogn with fixes for…