Hello everyone does anyone know how to plot gm in ...
# ieee-sscs-dc-23
h
Hello everyone does anyone know how to plot gm in xschem?
b
You can add a control statement that will add the desired gm to the output file, e.g.:
Copy code
save all @m.x1.m0[gm]
g
A mensagem tem elementos interativos.
b
My example is for a transistor that is instantiated as x1 in the netlist. What does your instantiation in the netlist look like?
g
Oh it worked, my transistor is instantiated as xm1
Copy code
XM1 net2 net3 net4 net1 nfet_03v3 L=0.28u W=0.22u nf=1 ad='int((nf+1)/2) * W/nf * 0.18u' as='int((nf+2)/2) * W/nf * 0.18u'
👍 1
I have one more question, how do I include in the ".raw " file, the value of deriv(i(vd)). I tried some some ways, but none appears as an variable options at the gaw wave viewer. I know how to do on ngspice, but not using xschem+gaw. I tried:
Copy code
.dc VG 0 3.3 1m
.control
save all dID=par('deriv(i(vd)')
.endc
or
Copy code
.dc VG 0 3.3 1m
.save all dID=par('deriv(i(vd)')
or
Copy code
.dc VG 0 3.3 1m
.save all deriv(i(vd)
among others, using "let"
b
What do you mean when you say you got it working with ngspice? Xschem just produces a netlist and can't have much to do with the issue. This link gives you some alternatives to try: https://sourceforge.net/p/ngspice/discussion/133842/thread/8aff6885/
g
I got working on ngspice by using
Copy code
wrdata my_output_file.txt deriv(i(vd)
But to use the wave viewer gaw, or even the viewer inside the xschem I have to add the outputs to the ".raw" file, and I still haven't been able to do it. But I'm going to try the alternative on the link you sent. Thank you!