Stefan Schippers
08/26/2022, 9:33 PMxschem_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.
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]
Leonardo Gomes
08/26/2022, 9:49 PMStefan Schippers
08/27/2022, 6:47 AM(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.