How to print current through XR1 poly resistor fro...
# sky130
v
How to print current through XR1 poly resistor from sky130 which is part of subcircuit? Please share syntax to print this current in ngspice terminal after simulation.
x1 vdd out inp GND cs
.subckt cs vdd out inp vss
XM1 out inp vss vss sky130_fd_pr__nfet_01v8 L=0.30 W=35 nf=10 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
+ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
+ sa=0 sb=0 sd=0 mult=1 m=1
XR1 out vdd vss sky130_fd_pr__res_high_po W=1 L=3.15 mult=1 m=1
.ends
j
with the line ".save @m.xm1.m0[id]" you can print Id
this is my design in ver.GF180MCU