Hi All, I'm trying to simulate a basic two transis...
# xschem
t
Hi All, I'm trying to simulate a basic two transistor schematic using the gf180 pdk which seems to work fine, however, when I try and
Copy code
write myrawfile.raw all
I get this message displayed and it doesn't write anything to the file at all
Copy code
Warning from checkvalid: vector @m.xm1.m0[ib] is not available or has zero length.
I don't even care about
ib
but i can't seem to write the file with the vectors i do care about either. when i type display at the ngspice prompt i get this
Copy code
Here are the vectors currently active:

Title: * gmoverid
Name: dc1 (DC transfer characteristic)
Date: Sat Dec 24 20:52:08  2022

    @m.xm1.m0[ib]       : current, real, 0 long
    @m.xm1.m0[id]       : current, real, 331 long
    @m.xm1.m0[ig]       : current, real, 0 long
    @m.xm1.m0[is]       : current, real, 0 long
    @m.xm2.m0[ib]       : current, real, 0 long
    @m.xm2.m0[id]       : current, real, 331 long
    @m.xm2.m0[ig]       : current, real, 0 long
    @m.xm2.m0[is]       : current, real, 0 long
    v-sweep             : voltage, real, 331 long [default scale]
Any help would be much appreciated. Happy Christmas! PS: this is for
** ngspice-38+ : Circuit level simulation program
👍 1
s
@Tom, this is a known issue with ngspice. If no body current is present no vector is generated for ib and write command complains. add a
remzerovec
command before write.
Merry Xmas!
t
Ah great. Thank you @Stefan Schippers, I will do that. Merry Christmas!
Yes that fixes it. Thank you, @Stefan Schippers