* Bipolar transistor I-V characteristic | |
.lib ../../../libraries/sky130_fd_pr/PDKVERSION/models/sky130.lib.spice CORNER | |
* Base bias | |
Rb 1 2 680 | |
X1 3 2 0 0 DEVICENAME M=1 | |
Rc 3 4 100 | |
* DC source for current measure | |
Vic 5 4 DC 0V | |
Vbb 1 0 DC 0V | |
Vce 5 0 DC 0V | |
.control | |
* Sweep Vce from 0 to 1.8V | |
dc Vce 0 1.8 0.01 Vbb 0 1.2 0.01 | |
wrdata DEVICENAME.data Vic#branch V(1) V(3) | |
quit | |
.endc | |
.end |