-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discrepency between Ngspice and Xyce simulation #323
Comments
@adrienluitot thank you for reporting this issue. |
Thanks for your reply! Indeed that may be the compiler, but I believe that the compilers should follow the models? So that it should rely more on the models rather than the compilers? I don't know much about |
@adrienluitot thank you for your interest. If you wish you could simplify the circuit and lower the frequency by a decade and then see the results. This way we could discard |
Sorry for the late answer. So I used the schematic given above and run the simulation with Ngspice and Xyce around 2.45GHz, 245MHz and 24.5MHz. And here is what I had: Sure the discrepancy is more present (in percentage at least) at high frequency, but it seems also present at lower frequencies. |
Environment
OS: Ubuntu 24.04
Tools: Qucs 24.4.1
Simulator: Ngspice-44 and Xyce 7.8
Expected Behavior
Having similar simulation results between Xyce and Ngspice.
Actual Behavior
We are designing a simple LNA at 2.45GHz. Here is its schematic and some ngspice simulation results:
On the right we see the Re(Z11) is 47.047Ω (with Ngspice).
When I run the same design, with the same parameters/variables, and the same simulation, but with Xyce, I get these results:
The discrepancy is not negligible here, mostly for Re(Z11), almost 10% difference.
For other results, there is not such a discrepancy, for instance, gain is pretty similar: 15.531dB for Ngspice and 15.561dB for Xyce.
I don't know if the error comes from:
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: