summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2
diff options
context:
space:
mode:
authorRahul P2023-06-13 18:24:33 +0530
committerGitHub2023-06-13 18:24:33 +0530
commit4a276b252d84a0b7dd24588e56dc7e214ea2d7c6 (patch)
treee9cf9d33ed2c137f3ac463c7b272e27fe23be75d /library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2
parent9a5f3dabc357277b384c51ccf047f5580772f454 (diff)
parent3436aa4615dcc1310db8dc8a85f36418db641fb4 (diff)
downloadeSim-4a276b252d84a0b7dd24588e56dc7e214ea2d7c6.tar.gz
eSim-4a276b252d84a0b7dd24588e56dc7e214ea2d7c6.tar.bz2
eSim-4a276b252d84a0b7dd24588e56dc7e214ea2d7c6.zip
Merge pull request #251 from FOSSEE/sky130-dev
Merge Sky130 PDK development
Diffstat (limited to 'library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2')
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/.spiceinit6
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC.cir.out34
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC0.cir.out32
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC1.cir.out32
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/2bit_DAC.sub14
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/3bit_DAC.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/4bit_DAC.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DAC.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DACa.sub70
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/6bit_DAC.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/7bit_DAC.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/8bit_DAC.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/9bit_DAC.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/avsddac_3v3_sky130_v2.sub11
-rw-r--r--library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/switch.sub22
15 files changed, 298 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/.spiceinit b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/.spiceinit
new file mode 100644
index 00000000..c0929e3c
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/.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/avsddac_3v3_sky130_v2/10bit_DAC.cir.out b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC.cir.out
new file mode 100644
index 00000000..73019dae
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC.cir.out
@@ -0,0 +1,34 @@
+* c:\users\91809\esim-workspace\10bit_dac\10bit_dac.cir
+
+.include 9bit_DAC.sub
+.include switch.sub
+
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /vdd net-_x1-pad13_ 9bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /vdd net-_x2-pad13_ 9bit_DAC
+x3 /d9 /vdd net-_x1-pad13_ net-_x2-pad13_ /vout switch
+* u1 /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /d9 /vdd /vout port
+
+
+Vdd /vdd 0 3.3
+Vd0 /d0 0 pulse(0 1.8 0ns 0 0 5us 10us)
+Vd1 /d1 0 pulse(0 1.8 0ns 0 0 10us 20us)
+Vd2 /d2 0 pulse(0 1.8 0ns 0 0 20us 40us)
+Vd3 /d3 0 pulse(0 1.8 0ns 0 0 40us 80us)
+Vd4 /d4 0 pulse(0 1.8 0ns 0 0 80us 160us)
+Vd5 /d5 0 pulse(0 1.8 0ns 0 0 160us 320us)
+Vd6 /d6 0 pulse(0 1.8 0ns 0 0 320us 640us)
+Vd7 /d7 0 pulse(0 1.8 0ns 0 0 640us 1280us)
+Vd8 /d8 0 pulse(0 1.8 0ns 0 0 1280us 2560us)
+Vd9 /d9 0 pulse(0 1.8 0ns 0 0 2560us 5120us)
+Vrefh /vrefh 0 3.3
+Vrefl /vrefl 0 0
+
+.tran 50us 5120us
+
+* Control Statements
+.control
+run
+print allv > plot_data_v.txt
+print alli > plot_data_i.txt
+.endc
+.end
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC0.cir.out b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC0.cir.out
new file mode 100644
index 00000000..706bb60d
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC0.cir.out
@@ -0,0 +1,32 @@
+* c:\users\91809\esim-workspace\10bit_dac\10bit_dac.cir
+
+.include 9bit_DAC.sub
+.include switch.sub
+x1 vrefh net-_x1-pad2_ d0 d1 d2 d3 d4 d5 d6 d7 d8 vdd net-_x1-pad13_ 9bit_DAC
+x2 net-_x1-pad2_ vrefl d0 d1 d2 d3 d4 d5 d6 d7 d8 vdd net-_x2-pad13_ 9bit_DAC
+x3 d9 vdd net-_x1-pad13_ net-_x2-pad13_ vout switch
+* u1 /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /d9 /vdd /vout port
+
+
+Vdd vdd 0 3.3
+Vd0 d0 0 1.8
+Vd1 d1 0 1.8
+Vd2 d2 0 1.8
+Vd3 d3 0 1.8
+Vd4 d4 0 1.8
+Vd5 d5 0 1.8
+Vd6 d6 0 pulse(0 1.8 0ns 0 0 320us 640us)
+Vd7 d7 0 pulse(0 1.8 0ns 0 0 640us 1280us)
+Vd8 d8 0 pulse(0 1.8 0ns 0 0 1280us 2560us)
+Vd9 d9 0 pulse(0 1.8 0ns 0 0 2560us 5120us)
+Vrefh vrefh 0 3.3
+Vrefl vrefl 0 0
+
+.tran 320us 5120us
+
+* Control Statements
+.control
+run
+plot vout
+.endc
+.end
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC1.cir.out b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC1.cir.out
new file mode 100644
index 00000000..4f2c687d
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/10bit_DAC1.cir.out
@@ -0,0 +1,32 @@
+* c:\users\91809\esim-workspace\10bit_dac\10bit_dac.cir
+
+.include 9bit_DAC.sub
+.include switch.sub
+x1 vrefh net-_x1-pad2_ d0 d1 d2 d3 d4 d5 d6 d7 d8 vdd net-_x1-pad13_ 9bit_DAC
+x2 net-_x1-pad2_ vrefl d0 d1 d2 d3 d4 d5 d6 d7 d8 vdd net-_x2-pad13_ 9bit_DAC
+x3 d9 vdd net-_x1-pad13_ net-_x2-pad13_ vout switch
+* u1 /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /d9 /vdd /vout port
+
+
+Vdd vdd 0 3.3
+Vd0 d0 0 pulse(0 1.8 0ns 0 0 5us 10us)
+Vd1 d1 0 pulse(0 1.8 0ns 0 0 10us 20us)
+Vd2 d2 0 pulse(0 1.8 0ns 0 0 20us 40us)
+Vd3 d3 0 pulse(0 1.8 0ns 0 0 40us 80us)
+Vd4 d4 0 pulse(0 1.8 0ns 0 0 80us 160us)
+Vd5 d5 0 pulse(0 1.8 0ns 0 0 160us 320us)
+Vd6 d6 0 pulse(0 1.8 0ns 0 0 320us 640us)
+Vd7 d7 0 pulse(0 1.8 0ns 0 0 640us 1280us)
+Vd8 d8 0 pulse(0 1.8 0ns 0 0 1280us 2560us)
+Vd9 d9 0 pulse(0 1.8 0ns 0 0 2560us 5120us)
+Vrefh vrefh 0 3.3
+Vrefl vrefl 0 0
+
+.tran 50us 5120us
+
+* Control Statements
+.control
+run
+plot vout
+.endc
+.end
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/2bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/2bit_DAC.sub
new file mode 100644
index 00000000..ff3d4d6c
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/2bit_DAC.sub
@@ -0,0 +1,14 @@
+* Subcircuit 2bit_DAC
+.subckt 2bit_DAC /vrefh /vrefl /d0 /d1 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\2bit_dac\2bit_dac.cir
+.include switch.sub
+r1 /vrefh net-_r1-pad2_ 250
+r2 net-_r1-pad2_ net-_r2-pad2_ 250
+r3 net-_r2-pad2_ net-_r3-pad2_ 250
+r4 net-_r3-pad2_ /vrefl 250
+x1 /d0 /vdd net-_r1-pad2_ net-_r2-pad2_ net-_x1-pad5_ switch
+x2 /d0 /vdd net-_r3-pad2_ /vrefl net-_x2-pad5_ switch
+x3 /d1 /vdd net-_x1-pad5_ net-_x2-pad5_ /vout switch
+* Control Statements
+
+.ends 2bit_DAC \ No newline at end of file
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/3bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/3bit_DAC.sub
new file mode 100644
index 00000000..373cbd91
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/3bit_DAC.sub
@@ -0,0 +1,11 @@
+* Subcircuit 3bit_DAC
+.subckt 3bit_DAC /vrefh /vrefl /d0 /d1 /d2 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\3bit_dac\3bit_dac.cir
+.include 2bit_DAC.sub
+.include switch.sub
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /vdd net-_x1-pad6_ 2bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /vdd net-_x2-pad6_ 2bit_DAC
+x3 /d2 /vdd net-_x1-pad6_ net-_x2-pad6_ /vout switch
+* Control Statements
+
+.ends 3bit_DAC \ No newline at end of file
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/4bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/4bit_DAC.sub
new file mode 100644
index 00000000..a6777080
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/4bit_DAC.sub
@@ -0,0 +1,11 @@
+* Subcircuit 4bit_DAC
+.subckt 4bit_DAC /vrefh /vrefl /d0 /d1 /d2 /d3 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\4bit_dac\4bit_dac.cir
+.include 3bit_DAC.sub
+.include switch.sub
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /vdd net-_x1-pad7_ 3bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /vdd net-_x2-pad7_ 3bit_DAC
+x3 /d3 /vdd net-_x1-pad7_ net-_x2-pad7_ /vout switch
+* Control Statements
+
+.ends 4bit_DAC \ No newline at end of file
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DAC.sub
new file mode 100644
index 00000000..0d3953da
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DAC.sub
@@ -0,0 +1,11 @@
+* Subcircuit 5bit_DAC
+.subckt 5bit_DAC /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\5bit_dac\5bit_dac.cir
+.include switch.sub
+.include 4bit_DAC.sub
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /d3 /vdd net-_x1-pad8_ 4bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /d3 /vdd net-_x2-pad8_ 4bit_DAC
+x3 /d4 /vdd net-_x1-pad8_ net-_x2-pad8_ /vout switch
+* Control Statements
+
+.ends 5bit_DAC \ No newline at end of file
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DACa.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DACa.sub
new file mode 100644
index 00000000..766d7e24
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/5bit_DACa.sub
@@ -0,0 +1,70 @@
+* Subcircuit 5bit_DACa
+.subckt 5bit_DACa /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\5bit_daca\5bit_daca.cir
+.include switch.sub
+r1 /vrefh net-_r1-pad2_ 250
+r2 net-_r1-pad2_ net-_r2-pad2_ 250
+r3 net-_r2-pad2_ net-_r3-pad2_ 250
+r4 net-_r3-pad2_ net-_r4-pad2_ 250
+r5 net-_r4-pad2_ net-_r5-pad2_ 250
+r6 net-_r5-pad2_ net-_r6-pad2_ 250
+r7 net-_r6-pad2_ net-_r7-pad2_ 250
+r8 net-_r7-pad2_ net-_r8-pad2_ 250
+r9 net-_r8-pad2_ net-_r10-pad1_ 250
+r10 net-_r10-pad1_ net-_r10-pad2_ 250
+r11 net-_r10-pad2_ net-_r11-pad2_ 250
+r12 net-_r11-pad2_ net-_r12-pad2_ 250
+r13 net-_r12-pad2_ net-_r13-pad2_ 250
+r14 net-_r13-pad2_ net-_r14-pad2_ 250
+r15 net-_r14-pad2_ net-_r15-pad2_ 250
+r16 net-_r15-pad2_ net-_r16-pad2_ 250
+r32 /vrefl net-_r31-pad1_ 250
+r31 net-_r31-pad1_ net-_r30-pad1_ 250
+r30 net-_r30-pad1_ net-_r29-pad1_ 250
+r29 net-_r29-pad1_ net-_r28-pad1_ 250
+r28 net-_r28-pad1_ net-_r27-pad1_ 250
+r27 net-_r27-pad1_ net-_r26-pad1_ 250
+r26 net-_r26-pad1_ net-_r25-pad1_ 250
+r25 net-_r25-pad1_ net-_r24-pad1_ 250
+r24 net-_r24-pad1_ net-_r23-pad1_ 250
+r23 net-_r23-pad1_ net-_r22-pad1_ 250
+r22 net-_r22-pad1_ net-_r21-pad1_ 250
+r21 net-_r21-pad1_ net-_r20-pad1_ 250
+r20 net-_r20-pad1_ net-_r19-pad1_ 250
+r19 net-_r19-pad1_ net-_r18-pad1_ 250
+r18 net-_r18-pad1_ net-_r17-pad1_ 250
+r17 net-_r17-pad1_ net-_r16-pad2_ 250
+x1 /d0 /vdd net-_r1-pad2_ net-_r2-pad2_ net-_x1-pad5_ switch
+x2 /d0 /vdd net-_r3-pad2_ net-_r4-pad2_ net-_x11-pad4_ switch
+x3 /d0 /vdd net-_r5-pad2_ net-_r6-pad2_ net-_x12-pad3_ switch
+x4 /d0 /vdd net-_r7-pad2_ net-_r8-pad2_ net-_x12-pad4_ switch
+x5 /d0 /vdd net-_r10-pad1_ net-_r10-pad2_ net-_x13-pad3_ switch
+x6 /d0 /vdd net-_r11-pad2_ net-_r12-pad2_ net-_x13-pad4_ switch
+x7 /d0 /vdd net-_r13-pad2_ net-_r14-pad2_ net-_x14-pad3_ switch
+x8 /d0 /vdd net-_r15-pad2_ net-_r16-pad2_ net-_x14-pad4_ switch
+x9 /d0 /vdd net-_r17-pad1_ net-_r18-pad1_ net-_x15-pad3_ switch
+x10 /d0 /vdd net-_r19-pad1_ net-_r20-pad1_ net-_x10-pad5_ switch
+x110 /d0 /vdd net-_r21-pad1_ net-_r22-pad1_ net-_x110-pad5_ switch
+x120 /d0 /vdd net-_r23-pad1_ net-_r24-pad1_ net-_x120-pad5_ switch
+x130 /d0 /vdd net-_r25-pad1_ net-_r26-pad1_ net-_x130-pad5_ switch
+x140 /d0 /vdd net-_r27-pad1_ net-_r28-pad1_ net-_x140-pad5_ switch
+x150 /d0 /vdd net-_r29-pad1_ net-_r30-pad1_ net-_x150-pad5_ switch
+x160 /d0 /vdd net-_r31-pad1_ /vrefl net-_x160-pad5_ switch
+x11 /d1 /vdd net-_x1-pad5_ net-_x11-pad4_ net-_x11-pad5_ switch
+x12 /d1 /vdd net-_x12-pad3_ net-_x12-pad4_ net-_x12-pad5_ switch
+x13 /d1 /vdd net-_x13-pad3_ net-_x13-pad4_ net-_x13-pad5_ switch
+x14 /d1 /vdd net-_x14-pad3_ net-_x14-pad4_ net-_x14-pad5_ switch
+x15 /d1 /vdd net-_x15-pad3_ net-_x10-pad5_ net-_x15-pad5_ switch
+x16 /d1 /vdd net-_x110-pad5_ net-_x120-pad5_ net-_x16-pad5_ switch
+x17 /d1 /vdd net-_x130-pad5_ net-_x140-pad5_ net-_x17-pad5_ switch
+x18 /d1 /vdd net-_x150-pad5_ net-_x160-pad5_ net-_x18-pad5_ switch
+x21 /d2 /vdd net-_x11-pad5_ net-_x12-pad5_ net-_x21-pad5_ switch
+x24 /d2 /vdd net-_x17-pad5_ net-_x18-pad5_ net-_x24-pad5_ switch
+x22 /d2 /vdd net-_x13-pad5_ net-_x14-pad5_ net-_x22-pad5_ switch
+x23 /d2 /vdd net-_x15-pad5_ net-_x16-pad5_ net-_x23-pad5_ switch
+x31 /d3 /vdd net-_x21-pad5_ net-_x22-pad5_ net-_x31-pad5_ switch
+x32 /d3 /vdd net-_x23-pad5_ net-_x24-pad5_ net-_x32-pad5_ switch
+x41 /d4 /vdd net-_x31-pad5_ net-_x32-pad5_ /vout switch
+* Control Statements
+
+.ends 5bit_DACa
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/6bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/6bit_DAC.sub
new file mode 100644
index 00000000..9f1785d0
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/6bit_DAC.sub
@@ -0,0 +1,11 @@
+* Subcircuit 6bit_DAC
+.subckt 6bit_DAC /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\6bit_dac\6bit_dac.cir
+.include switch.sub
+.include 5bit_DACa.sub
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /d3 /d4 /vdd net-_x1-pad9_ 5bit_DACa
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /d3 /d4 /vdd net-_x2-pad9_ 5bit_DACa
+x3 /d5 /vdd net-_x1-pad9_ net-_x2-pad9_ /vout switch
+* Control Statements
+
+.ends 6bit_DAC
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/7bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/7bit_DAC.sub
new file mode 100644
index 00000000..c2a42103
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/7bit_DAC.sub
@@ -0,0 +1,11 @@
+* Subcircuit 7bit_DAC
+.subckt 7bit_DAC /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\7bit_dac\7bit_dac.cir
+.include switch.sub
+.include 6bit_DAC.sub
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /d3 /d4 /d5 /vdd net-_x1-pad10_ 6bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /vdd net-_x2-pad10_ 6bit_DAC
+x3 /d6 /vdd net-_x1-pad10_ net-_x2-pad10_ /vout switch
+* Control Statements
+
+.ends 7bit_DAC \ No newline at end of file
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/8bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/8bit_DAC.sub
new file mode 100644
index 00000000..659a6155
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/8bit_DAC.sub
@@ -0,0 +1,11 @@
+* Subcircuit 8bit_DAC
+.subckt 8bit_DAC /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\8bit_dac\8bit_dac.cir
+.include 7bit_DAC.sub
+.include switch.sub
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /d3 /d4 /d5 /d6 /vdd net-_x1-pad11_ 7bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /vdd net-_x2-pad11_ 7bit_DAC
+x3 /d7 /vdd net-_x1-pad11_ net-_x2-pad11_ /vout switch
+* Control Statements
+
+.ends 8bit_DAC \ No newline at end of file
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/9bit_DAC.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/9bit_DAC.sub
new file mode 100644
index 00000000..c271078f
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/9bit_DAC.sub
@@ -0,0 +1,11 @@
+* Subcircuit 9bit_DAC
+.subckt 9bit_DAC /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /vdd /vout
+* c:\fossee\esim\library\subcircuitlibrary\9bit_dac\9bit_dac.cir
+.include 8bit_DAC.sub
+.include switch.sub
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /vdd net-_x1-pad12_ 8bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /vdd net-_x2-pad12_ 8bit_DAC
+x3 /d8 /vdd net-_x1-pad12_ net-_x2-pad12_ /vout switch
+* Control Statements
+
+.ends 9bit_DAC \ No newline at end of file
diff --git a/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/avsddac_3v3_sky130_v2.sub b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/avsddac_3v3_sky130_v2.sub
new file mode 100644
index 00000000..1013eb44
--- /dev/null
+++ b/library/SubcircuitLibrary/SKY130_IP/avsddac_3v3_sky130_v2/avsddac_3v3_sky130_v2.sub
@@ -0,0 +1,11 @@
+.subckt avsddac_3v3_sky130_v2 /vdd /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /d9 /vout gnd
+.include 9bit_DAC.sub
+.include switch.sub
+
+x1 /vrefh net-_x1-pad2_ /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /vdd net-_x1-pad13_ 9bit_DAC
+x2 net-_x1-pad2_ /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /vdd net-_x2-pad13_ 9bit_DAC
+x3 /d9 /vdd net-_x1-pad13_ net-_x2-pad13_ /vout switch
+* u1 /vrefh /vrefl /d0 /d1 /d2 /d3 /d4 /d5 /d6 /d7 /d8 /d9 /vdd /vout port
+
+
+.ends
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