I am getting this error while doing s-parameter an...
# xschem
j
I am getting this error while doing s-parameter analysis for an LNA. The error and the schematic are given below.
s
@Jazim Ibrahim I was able to simulate your example out of the box, with no changes...
Copy code
******
** ngspice-43 : Circuit level simulation program
** Compiled with KLU Direct Linear Solver
** The U. C. Berkeley CAD Group
** Copyright 1985-1994, Regents of the University of California.
** Copyright 2001-2024, The ngspice team.
** Please get your ngspice manual from <https://ngspice.sourceforge.io/docs.html>
** Please file your bug-reports at <http://ngspice.sourceforge.net/bugrep.html>
** Creation Date: Mon Jul 22 15:30:05 UTC 2024
******

Note: Compatibility modes selected: hs a


Circuit: ** sch_path: /home/schippes/.xschem/xschem_library/singleendedlna.sch

option SCALE: Scale is set to 1e-06 for instance and model parameters
option SCALE: Scale is set to 1e-06 for instance and model parameters
option SCALE: Scale is set to 1e-06 for instance and model parameters
option SCALE: Scale is set to 1e-06 for instance and model parameters
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

Using SPARSE 1.3 as Direct Linear Solver
 Reference value :  1.83000e+09
No. of Data Rows : 100
binary raw file "singleendedLNA.raw"
ngspice 113 ->
Check your ngspice version number. It is probably too old.
j
Thanks @Stefan Schippers. It was indeed a problem with my ngspice.
v
@Jazim Ibrahim @Stefan Schippers Does sky130 pdk support RF models for MOSFETs and inductor to get similar performance post fabrication as seen in simulation ?
s
@vks There are some specific models for sky130 RF transistors. Since at high frequencies "layout is everything" these transistors have fixed geometry. You can't change W or L or even change its layout. I know there are some inductors drawn with metals and characterized into a spice model, but I haven't done any serious RF design, so I am not the right person to ask.
v
@Stefan Schippers Can you please refer to which are these fixed geometry "RF" transistors in Sky130 PDK? @Jazim Ibrahim
s
RF transistors used to have model files like this in the old "binned" model set:
sky130_fd_pr__rf_pfet_01v8_lvt_aM04W3p00L0p35.spice
the above is a W=3um, L=0.35um pfet_01v8_lvt. The new "continuous" models presumably have cut down the huge set of RF transistors down to these base ones:
.include "../../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__rf_nfet_g5v0d10v5.pm3.spice"
.include "../../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__rf_nfet_01v8_lvt.pm3.spice"
.include "../../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__rf_nfet_01v8.pm3.spice"
.include "../../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__rf_pfet_01v8.pm3.spice"
.include "../../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__rf_pfet_01v8_mvt.pm3.spice"
However I don't know what is the range of allowed geometries and if there is a fixed layout / pcell for these.
👍 1