summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/switch.sub
diff options
context:
space:
mode:
authorRahul P2022-09-17 23:31:49 +0530
committerGitHub2022-09-17 23:31:49 +0530
commit6e38b8cd9b8662a09a01765eb4c3b1ffaddd6ea3 (patch)
tree298942db122882e247da05e7e7fa10cb3dd03d85 /library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/switch.sub
parent2843e73ed81ac0bb5e685a5f1e045babb67083f0 (diff)
parent39632efe85fcfc781139442103269e90e0a29d3a (diff)
downloadeSim-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/avsddac_3v3_sky130_v2/switch.sub')
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/switch.sub22
1 files changed, 22 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/switch.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/switch.sub
new file mode 100644
index 00000000..6eab1639
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/switch.sub
@@ -0,0 +1,22 @@
+* Subcircuit switch
+*Model Description
+.param temp=27
+
+
+*Including sky130 library files
+
+.subckt switch /digital_input /vdd /vin_1 /vin_2 /vout
+
+* c:\fossee\esim\library\subcircuitlibrary\switch\switch.cir
+
+xm2 net-_m1-pad1_ /digital_input /vdd /vdd sky130_fd_pr__pfet_01v8 w=1 l=0.5
+xm5 net-_m3-pad1_ net-_m1-pad1_ /vdd /vdd sky130_fd_pr__pfet_01v8 w=1 l=0.5
+xm6 /vout net-_m1-pad1_ /vin_1 /vdd sky130_fd_pr__pfet_01v8 w=1 l=0.5
+xm7 /vin_2 net-_m3-pad1_ /vout /vdd sky130_fd_pr__pfet_01v8 w=1 l=0.5
+xm1 net-_m1-pad1_ /digital_input gnd gnd sky130_fd_pr__nfet_01v8 w=.42 l=.5
+xm3 net-_m3-pad1_ net-_m1-pad1_ gnd gnd sky130_fd_pr__nfet_01v8 w=.42 l=.5
+xm4 /vout net-_m1-pad1_ /vin_2 gnd sky130_fd_pr__nfet_01v8 w=.42 l=.5
+xm8 /vin_1 net-_m3-pad1_ /vout gnd sky130_fd_pr__nfet_01v8 w=.42 l=.5
+* Control Statements
+
+.ends switch