And also is there a way to extract the gm and ro o...
# xschem
m
And also is there a way to extract the gm and ro of the transistor after doing the operating point simulation.
s
run a first simulation of an operating point with .options savecurrents so all mos currents will be saved. look into the initial portion of the raw file you will see how the Id of a Mos is saved: i(@m.xm1.msky130_fd_pr__nfet_01v8[id]) if you add in your testbench the above expression with
[gm]
and without the
i(
and
)
you will be saving the gm of the transistor:
Copy code
.control
  ...
  save @m.xm1.msky130_fd_pr__nfet_01v8[gm]
  op
  ... 
.endc