<@U02A4K5TG5B> in the `xschem_sky130/sky130_tests`...
# analog-design
s
@Leonardo Gomes in the
xschem_sky130/sky130_tests
there is a
test_analog.sch
example. The circuit is useless, however it shows how to annotate a lot of things onto the schematic after a .op simulation. However you need yo give the save commands to ngspice, all these internal variables are saved only on request.
Copy code
save @m.x1.xm1.msky130_fd_pr__nfet_01v8_lvt[gm]
save @m.x1.xm2.msky130_fd_pr__nfet_01v8_lvt[gm]
save @m.x1.xm3.msky130_fd_pr__pfet_01v8_lvt[gm]
save @m.x1.xm4.msky130_fd_pr__pfet_01v8_lvt[gm]
save @m.x1.xm5.msky130_fd_pr__nfet_01v8[gm]
save @m.x1.xm5.msky130_fd_pr__nfet_01v8[vth]
save @m.x2.xm1.msky130_fd_pr__nfet_01v8_lvt[gm]
save @m.x2.xm2.msky130_fd_pr__nfet_01v8_lvt[gm]
save @m.x2.xm3.msky130_fd_pr__pfet_01v8_lvt[gm]
save @m.x2.xm4.msky130_fd_pr__pfet_01v8_lvt[gm]
save @m.x2.xm5.msky130_fd_pr__nfet_01v8[gm]
save @m.x2.xm5.msky130_fd_pr__nfet_01v8[vth]
👍 2
l
Ok, so I can save a specific MOSFET gm and use such value on a component? Like a gate resistor, for example
s
@Leonardo Gomes Interesting question, I don't think so, i have tried setting a B source to generate a current equal to some
(V(plus) - v(minus) * @m.xm1.msky130_fd_pr__nfet_01v8[gm]
but the [gm] variable is not accepted. I think it can only be used in a save / print line.