GitHub
04/19/2023, 10:24 AMimage▾
.subckt diode VP VN
X0 VP VP VP VN sky130_fd_pr__pfet_01v8 ad=0.68 pd=6.66 as=0.223 ps=2.21 w=0.84 l=0.15
X1 VP VP VP VN sky130_fd_pr__pfet_01v8 ad=0.118 pd=1.12 as=0 ps=0 w=0.84 l=0.15
.ends
The unexpected behavior lies in the ad/as/pd/ps parameters, since the ad/pd or as/ps of the two transistors should be the same.
diode.zip
RTimothyEdwards/magic