Piyush Dwivedi
08/21/2023, 7:10 PMKrzysztof Herman
08/22/2023, 6:06 AMStefan Schippers
08/22/2023, 7:09 AM.option savecurrents
(before the .control section) all MOS drain/source/body currents are saved.
.option savecurrents
.control
...
...
tran 0.1n 100n
remzerovec
write xxxx.raw
.endc
Stefan Schippers
08/22/2023, 7:11 AMdevices/ammeter.sym
symbol that is actually a 0V voltage source. Add these ammeters in any branch you want the current to be saved.Stefan Schippers
08/22/2023, 7:40 AM.option savecurrents
and after a .op simulation you go to Simulation->Annotate operating point into schematic
and ensure View->Show hidden texts
is enabled xschem willl show the MOS currents in the schematic directly:Piyush Dwivedi
08/22/2023, 9:04 AMStefan Schippers
08/22/2023, 4:45 PMPiyush Dwivedi
08/22/2023, 4:51 PMPiyush Dwivedi
08/22/2023, 4:54 PM