diff options
author | Rahul P | 2022-09-17 23:31:49 +0530 |
---|---|---|
committer | GitHub | 2022-09-17 23:31:49 +0530 |
commit | 6e38b8cd9b8662a09a01765eb4c3b1ffaddd6ea3 (patch) | |
tree | 298942db122882e247da05e7e7fa10cb3dd03d85 /library/SubcircuitLibrary/SKY130_IP/avsd_opamp | |
parent | 2843e73ed81ac0bb5e685a5f1e045babb67083f0 (diff) | |
parent | 39632efe85fcfc781139442103269e90e0a29d3a (diff) | |
download | eSim-6e38b8cd9b8662a09a01765eb4c3b1ffaddd6ea3.tar.gz eSim-6e38b8cd9b8662a09a01765eb4c3b1ffaddd6ea3.tar.bz2 eSim-6e38b8cd9b8662a09a01765eb4c3b1ffaddd6ea3.zip |
Merge pull request #221 from rahulp13/sky130-dev
Added IPs and subcircuits, fixed path issues
Diffstat (limited to 'library/SubcircuitLibrary/SKY130_IP/avsd_opamp')
-rw-r--r-- | library/SubcircuitLibrary/SKY130_IP/avsd_opamp/.spiceinit | 6 | ||||
-rw-r--r-- | library/SubcircuitLibrary/SKY130_IP/avsd_opamp/avsd_opamp.sub | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsd_opamp/.spiceinit b/library/SubcircuitLibrary/SKY130_IP/avsd_opamp/.spiceinit new file mode 100644 index 00000000..c0929e3c --- /dev/null +++ b/library/SubcircuitLibrary/SKY130_IP/avsd_opamp/.spiceinit @@ -0,0 +1,6 @@ + +set ngbehavior=hsa ; set compatibility for reading PDK libs +set ng_nomodcheck ; don't check the model parameters +set num_threads=8 ; CPU hardware threads available +option noinit ; don't print operating point data +optran 0 0 0 100p 2n 0 ; don't use dc operating point, but transient op) diff --git a/library/SubcircuitLibrary/SKY130_IP/avsd_opamp/avsd_opamp.sub b/library/SubcircuitLibrary/SKY130_IP/avsd_opamp/avsd_opamp.sub new file mode 100644 index 00000000..838f02b9 --- /dev/null +++ b/library/SubcircuitLibrary/SKY130_IP/avsd_opamp/avsd_opamp.sub @@ -0,0 +1,18 @@ +.subckt avsd_opamp vdd vss in1 in2 out2 gnd +* Stage 1 - Differential amplifier +xm1 net-_m1-pad1_ in1 net-_m1-pad3_ net-_m1-pad3_ sky130_fd_pr__nfet_01v8 l=1 w=1.79 +xm2 out1 in2 net-_m1-pad3_ net-_m1-pad3_ sky130_fd_pr__nfet_01v8 l=1 w=1.79 +xm3 net-_m1-pad1_ net-_m1-pad1_ vdd vdd sky130_fd_pr__pfet_01v8 l=1 w=10 +xm4 out1 net-_m1-pad1_ vdd vdd sky130_fd_pr__pfet_01v8 l=1 w=10 + +* Current Mirror +xm5 net-_m1-pad3_ ref vss vss sky130_fd_pr__nfet_01v8 l=1 w=20 +xm6 ref ref vss vss sky130_fd_pr__nfet_01v8 l=1 w=10 + +* Stage 2 - PMOS Common Source Amplifier +xm7 out2 out1 vdd vdd sky130_fd_pr__pfet_01v8 l=1 w=62.83 +xm8 out2 ref vss vss sky130_fd_pr__nfet_01v8 l=1 w=62.83 + + +.ends + |