summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary/SKY130_IP/avsd_opamp
diff options
context:
space:
mode:
authorrahulp132022-09-17 19:01:45 +0530
committerrahulp132022-09-17 19:01:45 +0530
commit37b9194b0d63f9b18e97892e63719c35dbac8dd7 (patch)
treefe6f76468f65d3fbf3732b56c087c95d7bfdfd89 /library/SubcircuitLibrary/SKY130_IP/avsd_opamp
parent2843e73ed81ac0bb5e685a5f1e045babb67083f0 (diff)
downloadeSim-37b9194b0d63f9b18e97892e63719c35dbac8dd7.tar.gz
eSim-37b9194b0d63f9b18e97892e63719c35dbac8dd7.tar.bz2
eSim-37b9194b0d63f9b18e97892e63719c35dbac8dd7.zip
added sky130-fd-pr PDK and analog IPs
Diffstat (limited to 'library/SubcircuitLibrary/SKY130_IP/avsd_opamp')
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsd_opamp/.spiceinit6
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsd_opamp/avsd_opamp.sub18
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
+