-
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
Ngspice-42 or 43 Cannot calculate minimum noise figure (NFmin) if S2P file is used #310
Comments
I am afraid that noise contributions by S2P files can't simulate by ngspice, even if the files contain additional noise data. But NaN looks more as bug. To investigate that it would be easier you could provide the schematic and the four S2P files. Or alternative the spice4cucs.cir file would be helpful too. |
@Atif07Ali @dwarning indeed I have reproduced this testcase a few minutes ago and got the same results, I mean |
Slack channel is problematic - I believe I removed my membership. |
@dwarning could you please mention the ngspice version? |
It is pre-master-44 branch (not actual anymore because new version 44 just released): ngspice-43+. |
@dwarning There is a significant difference in results based on the version of ngspice. I am using both ngspice-42 and ngspice-43 for noise simulation. This is another problem. I think we should create an issue in ngspice forum. I am creating the issue. Please add your concerns in the reply. |
After solving the NaN problem in ngspice coming back to the initial problem of the missing noise results in the LNA stage by using s-parameter files. I can only recommend converting s-parameter files in general by using vector fitting with the scikit-rf python package: scikit-rf. This has the additional advantage that AC, DC, Transient and Noise analysis are feasible. Attached are the used python files, converted spice files and the qucs-s schematic. @Atif07Ali Could you please check the plausibility of the noise and other results. @KrzysztofHerman We should find a way to support the converting of s-parameter files in general in the design flow. |
@dwarning thanks. Let me check it. |
|
You are mixing lot of things in your discussion which I am not able to follow. |
I am sorry. Maybe I got your point. I was confused with the version at this time. Your suggestion worked perfectly for simulating s2p files. |
Try to install 44 - needs about 5-10 min. Then we are on same level. |
Thanks. Ngspice-44 give correct results of nfmin using lumped elements. |
Environment
Ngspice 42 or 43
Qucs-s 24.3
I am trying to design an LNA at 170 GHz frequency using SG13G2. I tried to build the circuit with transmission lines, using the S2P files of transmission lines. I faced the problem of 'nan' in the minimum noise figure (NFmin). It seems that the simulator cannot calculate NFmin.
if I use lumped elements, the NFmin gives the right value. However, when I use S2P files as the transmission lines, the NFmin does not provide any value. It seems that the simulator cannot calculate noise figure when there are S2P files.
Expected Behavior
The behavior has been simulated using lumped elements only.
Actual Behavior
This is the behavior after using S2P files. The NFmin gives "nan" value.
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: