summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary
diff options
context:
space:
mode:
Diffstat (limited to 'library/SubcircuitLibrary')
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/CA3140_sub-cache.lib190
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir55
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir.out72
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/CA3140_sub.pro73
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sch914
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sub66
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/CA3140_sub_Previous_Values.xml1
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/D.lib2
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/NPN.lib4
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/PMOS-0.5um.lib6
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/PNP.lib4
-rw-r--r--library/SubcircuitLibrary/CA3140_sub/analysis1
12 files changed, 1388 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/CA3140_sub/CA3140_sub-cache.lib b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub-cache.lib
new file mode 100644
index 00000000..40eaa2d7
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub-cache.lib
@@ -0,0 +1,190 @@
+EESchema-LIBRARY Version 2.3
+#encoding utf-8
+#
+# PORT
+#
+DEF PORT U 0 40 Y Y 26 F N
+F0 "U" 50 100 30 H V C CNN
+F1 "PORT" 0 0 30 H V C CNN
+F2 "" 0 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+DRAW
+A 325 225 285 -1421 -1278 0 1 0 N 100 50 150 0
+A 376 -275 356 1294 1408 0 1 0 N 150 0 100 -50
+S -100 50 100 -50 0 1 0 N
+X ~ 1 250 0 100 L 30 30 1 1 B
+X ~ 2 250 0 100 L 30 30 2 1 B
+X ~ 3 250 0 100 L 30 30 3 1 B
+X ~ 4 250 0 100 L 30 30 4 1 B
+X ~ 5 250 0 100 L 30 30 5 1 B
+X ~ 6 250 0 100 L 30 30 6 1 B
+X ~ 7 250 0 100 L 30 30 7 1 B
+X ~ 8 250 0 100 L 30 30 8 1 B
+X ~ 9 250 0 100 L 30 30 9 1 B
+X ~ 10 250 0 100 L 30 30 10 1 B
+X ~ 11 250 0 100 L 30 30 11 1 B
+X ~ 12 250 0 100 L 30 30 12 1 B
+X ~ 13 250 0 100 L 30 30 13 1 B
+X ~ 14 250 0 100 L 30 30 14 1 B
+X ~ 15 250 0 100 L 30 30 15 1 B
+X ~ 16 250 0 100 L 30 30 16 1 B
+X ~ 17 250 0 100 L 30 30 17 1 B
+X ~ 18 250 0 100 L 30 30 18 1 B
+X ~ 19 250 0 100 L 30 30 19 1 B
+X ~ 20 250 0 100 L 30 30 20 1 B
+X ~ 21 250 0 100 L 30 30 21 1 B
+X ~ 22 250 0 100 L 30 30 22 1 B
+X ~ 23 250 0 100 L 30 30 23 1 B
+X ~ 24 250 0 100 L 30 30 24 1 B
+X ~ 25 250 0 100 L 30 30 25 1 B
+X ~ 26 250 0 100 L 30 30 26 1 B
+ENDDRAW
+ENDDEF
+#
+# eSim_C
+#
+DEF eSim_C C 0 10 N Y 1 F N
+F0 "C" 25 100 50 H V L CNN
+F1 "eSim_C" 25 -100 50 H V L CNN
+F2 "" 38 -150 30 H V C CNN
+F3 "" 0 0 60 H V C CNN
+ALIAS capacitor
+$FPLIST
+ C_*
+$ENDFPLIST
+DRAW
+P 2 0 1 20 -80 -30 80 -30 N
+P 2 0 1 20 -80 30 80 30 N
+X ~ 1 0 150 110 D 40 40 1 1 P
+X ~ 2 0 -150 110 U 40 40 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_Diode
+#
+DEF eSim_Diode D 0 40 N N 1 F N
+F0 "D" 0 100 50 H V C CNN
+F1 "eSim_Diode" 0 -100 50 H V C CNN
+F2 "" 0 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+$FPLIST
+ TO-???*
+ *SingleDiode
+ *_Diode_*
+ *SingleDiode*
+ D_*
+$ENDFPLIST
+DRAW
+T 0 -100 50 60 0 0 0 A Normal 0 C C
+T 0 100 50 60 0 0 0 K Normal 0 C C
+P 2 0 1 6 50 50 50 -50 N
+P 3 0 1 0 -50 50 50 0 -50 -50 F
+X A 1 -150 0 100 R 40 40 1 1 P
+X K 2 150 0 100 L 40 40 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_MOS_P
+#
+DEF eSim_MOS_P M 0 0 Y N 1 F N
+F0 "M" -50 50 50 H V R CNN
+F1 "eSim_MOS_P" 50 150 50 H V R CNN
+F2 "" 250 100 29 H V C CNN
+F3 "" 50 0 60 H V C CNN
+ALIAS mosfet_p
+DRAW
+C 100 0 111 0 1 10 N
+P 2 0 1 0 80 -70 150 -70 N
+P 2 0 1 10 80 -50 80 -90 N
+P 2 0 1 0 80 0 150 0 N
+P 2 0 1 10 80 20 80 -20 N
+P 2 0 1 0 80 70 150 70 N
+P 2 0 1 10 80 90 80 50 N
+P 2 0 1 0 150 -70 150 -100 N
+P 2 0 1 0 150 100 150 70 N
+P 3 0 1 10 60 75 60 -75 60 -75 N
+P 3 0 1 0 150 0 250 0 250 -50 N
+P 4 0 1 0 140 0 100 -15 100 15 140 0 F
+X D 1 150 200 100 D 50 50 1 1 P
+X G 2 -150 0 210 R 50 50 1 1 P
+X S 3 150 -200 100 U 50 50 1 1 P
+X B 4 250 -150 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_NPN
+#
+DEF eSim_NPN Q 0 0 Y N 1 F N
+F0 "Q" -100 50 50 H V R CNN
+F1 "eSim_NPN" -50 150 50 H V R CNN
+F2 "" 200 100 29 H V C CNN
+F3 "" 0 0 60 H V C CNN
+ALIAS BC547 Q2N2222
+DRAW
+C 50 0 111 0 1 10 N
+P 2 0 1 0 25 25 100 100 N
+P 3 0 1 0 25 -25 100 -100 100 -100 N
+P 3 0 1 20 25 75 25 -75 25 -75 N
+P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F
+X C 1 100 200 100 D 50 50 1 1 P
+X B 2 -200 0 225 R 50 50 1 1 P
+X E 3 100 -200 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_PNP
+#
+DEF eSim_PNP Q 0 0 Y N 1 F N
+F0 "Q" -100 50 50 H V R CNN
+F1 "eSim_PNP" -50 150 50 H V R CNN
+F2 "" 200 100 29 H V C CNN
+F3 "" 0 0 60 H V C CNN
+DRAW
+C 50 0 111 0 1 10 N
+P 2 0 1 0 25 25 100 100 N
+P 3 0 1 0 25 -25 100 -100 100 -100 N
+P 3 0 1 20 25 75 25 -75 25 -75 N
+P 5 0 1 0 90 -70 70 -90 50 -50 90 -70 90 -70 F
+X C 1 100 200 100 D 50 50 1 1 P
+X B 2 -200 0 225 R 50 50 1 1 P
+X E 3 100 -200 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_R
+#
+DEF eSim_R R 0 0 N Y 1 F N
+F0 "R" 50 130 50 H V C CNN
+F1 "eSim_R" 50 -50 50 H V C CNN
+F2 "" 50 -20 30 H V C CNN
+F3 "" 50 50 30 V V C CNN
+ALIAS resistor
+$FPLIST
+ R_*
+ Resistor_*
+$ENDFPLIST
+DRAW
+S 150 10 -50 90 0 1 10 N
+X ~ 1 -100 50 50 R 60 60 1 1 P
+X ~ 2 200 50 50 L 60 60 1 1 P
+ENDDRAW
+ENDDEF
+#
+# zener
+#
+DEF zener U 0 40 Y Y 1 F N
+F0 "U" -50 -100 60 H V C CNN
+F1 "zener" 0 100 60 H V C CNN
+F2 "" 50 0 60 H V C CNN
+F3 "" 50 0 60 H V C CNN
+DRAW
+P 2 0 1 0 100 -50 50 -100 N
+P 2 0 1 0 100 50 100 -50 N
+P 2 0 1 0 100 50 150 100 N
+P 4 0 1 0 0 50 0 -50 100 0 0 50 N
+X ~ IN -200 0 200 R 50 43 1 1 I
+X ~ OUT 300 0 200 L 50 43 1 1 O
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir
new file mode 100644
index 00000000..a1a0b11b
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir
@@ -0,0 +1,55 @@
+* C:\FOSSEE\eSim\library\SubcircuitLibrary\CA3140_sub\CA3140_sub.cir
+
+* EESchema Netlist Version 1.1 (Spice format) creation date: 18/06/2024 3:54:31 PM
+
+* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N
+* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0
+
+* Sheet Name: /
+Q1 Net-_Q1-Pad1_ Net-_D1-Pad2_ Net-_D1-Pad1_ eSim_PNP
+Q3 Net-_M1-Pad3_ Net-_Q1-Pad1_ Net-_D1-Pad2_ eSim_PNP
+Q2 Net-_Q1-Pad1_ Net-_M1-Pad3_ Net-_Q2-Pad3_ eSim_NPN
+M1 Net-_D2-Pad1_ Net-_D2-Pad2_ Net-_M1-Pad3_ Net-_M1-Pad3_ mosfet_p
+R1 Net-_D2-Pad2_ Net-_Q2-Pad3_ 8K
+D2 Net-_D2-Pad1_ Net-_D2-Pad2_ eSim_Diode
+U2 Net-_U2-PadIN_ Net-_M2-Pad2_ zener
+U4 Net-_U2-PadIN_ Net-_M3-Pad2_ zener
+U3 Net-_U2-PadIN_ Net-_M2-Pad3_ zener
+M2 Net-_M2-Pad1_ Net-_M2-Pad2_ Net-_M2-Pad3_ Net-_M2-Pad3_ mosfet_p
+M3 Net-_M3-Pad1_ Net-_M3-Pad2_ Net-_M2-Pad3_ Net-_M2-Pad3_ mosfet_p
+R2 Net-_Q4-Pad1_ Net-_M2-Pad1_ 500
+R4 Net-_C1-Pad1_ Net-_M3-Pad1_ 500
+R3 Net-_D2-Pad2_ Net-_Q4-Pad3_ 500
+R5 Net-_D2-Pad2_ Net-_Q7-Pad3_ 500
+Q4 Net-_Q4-Pad1_ Net-_M2-Pad1_ Net-_Q4-Pad3_ eSim_NPN
+Q7 Net-_C1-Pad1_ Net-_M2-Pad1_ Net-_Q7-Pad3_ eSim_NPN
+Q6 Net-_M2-Pad3_ Net-_Q1-Pad1_ Net-_Q5-Pad1_ eSim_PNP
+Q5 Net-_Q5-Pad1_ Net-_D1-Pad2_ Net-_D1-Pad1_ eSim_PNP
+Q8 Net-_Q13-Pad1_ Net-_D1-Pad2_ Net-_D1-Pad1_ eSim_PNP
+Q9 Net-_C1-Pad2_ Net-_Q1-Pad1_ Net-_Q13-Pad1_ eSim_PNP
+Q13 Net-_Q13-Pad1_ Net-_Q13-Pad2_ Net-_Q13-Pad3_ eSim_NPN
+Q11 Net-_D1-Pad1_ Net-_C1-Pad2_ Net-_Q11-Pad3_ eSim_NPN
+Q12 Net-_Q11-Pad3_ Net-_D2-Pad1_ Net-_Q12-Pad3_ eSim_NPN
+Q14 Net-_M4-Pad2_ Net-_D2-Pad1_ Net-_D2-Pad2_ eSim_NPN
+Q16 Net-_M4-Pad2_ Net-_D4-Pad1_ Net-_D2-Pad2_ eSim_NPN
+R6 Net-_D2-Pad2_ Net-_Q12-Pad3_ 50
+R12 Net-_D2-Pad2_ Net-_D4-Pad2_ 30
+R7 Net-_Q11-Pad3_ Net-_Q15-Pad2_ 1K
+R8 Net-_Q13-Pad2_ Net-_R10-Pad2_ 1K
+R10 Net-_Q13-Pad3_ Net-_R10-Pad2_ 20
+R9 Net-_D3-Pad2_ Net-_R10-Pad2_ 50
+D4 Net-_D4-Pad1_ Net-_D4-Pad2_ eSim_Diode
+D3 Net-_D1-Pad1_ Net-_D3-Pad2_ eSim_Diode
+Q17 Net-_D1-Pad1_ Net-_Q17-Pad2_ Net-_Q17-Pad3_ eSim_NPN
+R13 Net-_Q17-Pad2_ Net-_D1-Pad1_ 5K
+R14 Net-_D2-Pad2_ Net-_R14-Pad2_ 20K
+R11 Net-_M4-Pad3_ Net-_Q17-Pad3_ 12K
+M4 Net-_D4-Pad1_ Net-_M4-Pad2_ Net-_M4-Pad3_ Net-_M4-Pad3_ mosfet_p
+U5 Net-_R14-Pad2_ Net-_Q17-Pad2_ zener
+C1 Net-_C1-Pad1_ Net-_C1-Pad2_ 12pF
+Q10 Net-_C1-Pad2_ Net-_C1-Pad1_ Net-_D2-Pad2_ eSim_NPN
+D1 Net-_D1-Pad1_ Net-_D1-Pad2_ eSim_Diode
+Q15 Net-_Q13-Pad3_ Net-_Q15-Pad2_ Net-_M4-Pad2_ eSim_NPN
+U1 Net-_Q7-Pad3_ Net-_M2-Pad2_ Net-_M3-Pad2_ Net-_D2-Pad2_ Net-_Q4-Pad3_ Net-_M4-Pad2_ Net-_D1-Pad1_ Net-_C1-Pad2_ PORT
+
+.end
diff --git a/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir.out b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir.out
new file mode 100644
index 00000000..452bb744
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.cir.out
@@ -0,0 +1,72 @@
+* c:\fossee\esim\library\subcircuitlibrary\ca3140_sub\ca3140_sub.cir
+
+.include D.lib
+.include PNP.lib
+.include PMOS-0.5um.lib
+.include NPN.lib
+q1 net-_q1-pad1_ net-_d1-pad2_ net-_d1-pad1_ Q2N2907A
+q3 net-_m1-pad3_ net-_q1-pad1_ net-_d1-pad2_ Q2N2907A
+q2 net-_q1-pad1_ net-_m1-pad3_ net-_q2-pad3_ Q2N2222
+m1 net-_d2-pad1_ net-_d2-pad2_ net-_m1-pad3_ net-_m1-pad3_ mos_p W=100u L=100u M=1
+r1 net-_d2-pad2_ net-_q2-pad3_ 8k
+d2 net-_d2-pad1_ net-_d2-pad2_ 1N4148
+* u2 net-_u2-padin_ net-_m2-pad2_ zener
+* u4 net-_u2-padin_ net-_m3-pad2_ zener
+* u3 net-_u2-padin_ net-_m2-pad3_ zener
+m2 net-_m2-pad1_ net-_m2-pad2_ net-_m2-pad3_ net-_m2-pad3_ mos_p W=100u L=100u M=1
+m3 net-_m3-pad1_ net-_m3-pad2_ net-_m2-pad3_ net-_m2-pad3_ mos_p W=100u L=100u M=1
+r2 net-_q4-pad1_ net-_m2-pad1_ 500
+r4 net-_c1-pad1_ net-_m3-pad1_ 500
+r3 net-_d2-pad2_ net-_q4-pad3_ 500
+r5 net-_d2-pad2_ net-_q7-pad3_ 500
+q4 net-_q4-pad1_ net-_m2-pad1_ net-_q4-pad3_ Q2N2222
+q7 net-_c1-pad1_ net-_m2-pad1_ net-_q7-pad3_ Q2N2222
+q6 net-_m2-pad3_ net-_q1-pad1_ net-_q5-pad1_ Q2N2907A
+q5 net-_q5-pad1_ net-_d1-pad2_ net-_d1-pad1_ Q2N2907A
+q8 net-_q13-pad1_ net-_d1-pad2_ net-_d1-pad1_ Q2N2907A
+q9 net-_c1-pad2_ net-_q1-pad1_ net-_q13-pad1_ Q2N2907A
+q13 net-_q13-pad1_ net-_q13-pad2_ net-_q13-pad3_ Q2N2222
+q11 net-_d1-pad1_ net-_c1-pad2_ net-_q11-pad3_ Q2N2222
+q12 net-_q11-pad3_ net-_d2-pad1_ net-_q12-pad3_ Q2N2222
+q14 net-_m4-pad2_ net-_d2-pad1_ net-_d2-pad2_ Q2N2222
+q16 net-_m4-pad2_ net-_d4-pad1_ net-_d2-pad2_ Q2N2222
+r6 net-_d2-pad2_ net-_q12-pad3_ 50
+r12 net-_d2-pad2_ net-_d4-pad2_ 30
+r7 net-_q11-pad3_ net-_q15-pad2_ 1k
+r8 net-_q13-pad2_ net-_r10-pad2_ 1k
+r10 net-_q13-pad3_ net-_r10-pad2_ 20
+r9 net-_d3-pad2_ net-_r10-pad2_ 50
+d4 net-_d4-pad1_ net-_d4-pad2_ 1N4148
+d3 net-_d1-pad1_ net-_d3-pad2_ 1N4148
+q17 net-_d1-pad1_ net-_q17-pad2_ net-_q17-pad3_ Q2N2222
+r13 net-_q17-pad2_ net-_d1-pad1_ 5k
+r14 net-_d2-pad2_ net-_r14-pad2_ 20k
+r11 net-_m4-pad3_ net-_q17-pad3_ 12k
+m4 net-_d4-pad1_ net-_m4-pad2_ net-_m4-pad3_ net-_m4-pad3_ mos_p W=100u L=100u M=1
+* u5 net-_r14-pad2_ net-_q17-pad2_ zener
+c1 net-_c1-pad1_ net-_c1-pad2_ 12pf
+q10 net-_c1-pad2_ net-_c1-pad1_ net-_d2-pad2_ Q2N2222
+d1 net-_d1-pad1_ net-_d1-pad2_ 1N4148
+q15 net-_q13-pad3_ net-_q15-pad2_ net-_m4-pad2_ Q2N2222
+* u1 net-_q7-pad3_ net-_m2-pad2_ net-_m3-pad2_ net-_d2-pad2_ net-_q4-pad3_ net-_m4-pad2_ net-_d1-pad1_ net-_c1-pad2_ port
+a1 net-_u2-padin_ net-_m2-pad2_ u2
+a2 net-_u2-padin_ net-_m3-pad2_ u4
+a3 net-_u2-padin_ net-_m2-pad3_ u3
+a4 net-_r14-pad2_ net-_q17-pad2_ u5
+* Schematic Name: zener, NgSpice Name: zener
+.model u2 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u4 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u3 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u5 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+.tran 0e-00 0e-00 0e-00
+
+* Control Statements
+.control
+run
+print allv > plot_data_v.txt
+print alli > plot_data_i.txt
+.endc
+.end
diff --git a/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.pro b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.pro
new file mode 100644
index 00000000..e27a398b
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.pro
@@ -0,0 +1,73 @@
+update=22/05/2015 07:44:53
+version=1
+last_client=kicad
+[general]
+version=1
+RootSch=
+BoardNm=
+[pcbnew]
+version=1
+LastNetListRead=
+UseCmpFile=1
+PadDrill=0.600000000000
+PadDrillOvalY=0.600000000000
+PadSizeH=1.500000000000
+PadSizeV=1.500000000000
+PcbTextSizeV=1.500000000000
+PcbTextSizeH=1.500000000000
+PcbTextThickness=0.300000000000
+ModuleTextSizeV=1.000000000000
+ModuleTextSizeH=1.000000000000
+ModuleTextSizeThickness=0.150000000000
+SolderMaskClearance=0.000000000000
+SolderMaskMinWidth=0.000000000000
+DrawSegmentWidth=0.200000000000
+BoardOutlineThickness=0.100000000000
+ModuleOutlineThickness=0.150000000000
+[cvpcb]
+version=1
+NetIExt=net
+[eeschema]
+version=1
+LibDir=
+[eeschema/libraries]
+LibName1=adc-dac
+LibName2=memory
+LibName3=xilinx
+LibName4=microcontrollers
+LibName5=dsp
+LibName6=microchip
+LibName7=analog_switches
+LibName8=motorola
+LibName9=texas
+LibName10=intel
+LibName11=audio
+LibName12=interface
+LibName13=digital-audio
+LibName14=philips
+LibName15=display
+LibName16=cypress
+LibName17=siliconi
+LibName18=opto
+LibName19=atmel
+LibName20=contrib
+LibName21=power
+LibName22=eSim_Plot
+LibName23=transistors
+LibName24=conn
+LibName25=eSim_User
+LibName26=regul
+LibName27=74xx
+LibName28=cmos4000
+LibName29=eSim_Analog
+LibName30=eSim_Devices
+LibName31=eSim_Digital
+LibName32=eSim_Hybrid
+LibName33=eSim_Miscellaneous
+LibName34=eSim_Power
+LibName35=eSim_Sources
+LibName36=eSim_Subckt
+LibName37=eSim_Nghdl
+LibName38=eSim_Ngveri
+LibName39=eSim_SKY130
+LibName40=eSim_SKY130_Subckts
diff --git a/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sch b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sch
new file mode 100644
index 00000000..dda0e308
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sch
@@ -0,0 +1,914 @@
+EESchema Schematic File Version 2
+LIBS:adc-dac
+LIBS:memory
+LIBS:xilinx
+LIBS:microcontrollers
+LIBS:dsp
+LIBS:microchip
+LIBS:analog_switches
+LIBS:motorola
+LIBS:texas
+LIBS:intel
+LIBS:audio
+LIBS:interface
+LIBS:digital-audio
+LIBS:philips
+LIBS:display
+LIBS:cypress
+LIBS:siliconi
+LIBS:opto
+LIBS:atmel
+LIBS:contrib
+LIBS:power
+LIBS:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+LIBS:regul
+LIBS:74xx
+LIBS:cmos4000
+LIBS:eSim_Analog
+LIBS:eSim_Devices
+LIBS:eSim_Digital
+LIBS:eSim_Hybrid
+LIBS:eSim_Miscellaneous
+LIBS:eSim_Power
+LIBS:eSim_Sources
+LIBS:eSim_Subckt
+LIBS:eSim_Nghdl
+LIBS:eSim_Ngveri
+LIBS:eSim_SKY130
+LIBS:eSim_SKY130_Subckts
+LIBS:CA3140-cache
+EELAYER 25 0
+EELAYER END
+$Descr User 17000 15748
+encoding utf-8
+Sheet 1 1
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L eSim_PNP Q1
+U 1 1 66714FA3
+P 2850 2700
+F 0 "Q1" H 2750 2750 50 0000 R CNN
+F 1 "eSim_PNP" H 2800 2850 50 0000 R CNN
+F 2 "" H 3050 2800 29 0000 C CNN
+F 3 "" H 2850 2700 60 0000 C CNN
+ 1 2850 2700
+ -1 0 0 1
+$EndComp
+$Comp
+L eSim_PNP Q3
+U 1 1 66714FA4
+P 3600 3350
+F 0 "Q3" H 3500 3400 50 0000 R CNN
+F 1 "eSim_PNP" H 3550 3500 50 0000 R CNN
+F 2 "" H 3800 3450 29 0000 C CNN
+F 3 "" H 3600 3350 60 0000 C CNN
+ 1 3600 3350
+ 1 0 0 1
+$EndComp
+$Comp
+L eSim_NPN Q2
+U 1 1 66714FA5
+P 2850 3950
+F 0 "Q2" H 2750 4000 50 0000 R CNN
+F 1 "eSim_NPN" H 2800 4100 50 0000 R CNN
+F 2 "" H 3050 4050 29 0000 C CNN
+F 3 "" H 2850 3950 60 0000 C CNN
+ 1 2850 3950
+ -1 0 0 -1
+$EndComp
+$Comp
+L mosfet_p M1
+U 1 1 66714FA6
+P 3550 4650
+F 0 "M1" H 3500 4700 50 0000 R CNN
+F 1 "mosfet_p" H 3600 4800 50 0000 R CNN
+F 2 "" H 3800 4750 29 0000 C CNN
+F 3 "" H 3600 4650 60 0000 C CNN
+ 1 3550 4650
+ 1 0 0 1
+$EndComp
+$Comp
+L resistor R1
+U 1 1 66714FA7
+P 2800 4700
+F 0 "R1" H 2850 4830 50 0000 C CNN
+F 1 "8K" H 2850 4650 50 0000 C CNN
+F 2 "" H 2850 4680 30 0000 C CNN
+F 3 "" V 2850 4750 30 0000 C CNN
+ 1 2800 4700
+ 0 -1 -1 0
+$EndComp
+$Comp
+L eSim_Diode D2
+U 1 1 66714FA8
+P 3700 5250
+F 0 "D2" H 3700 5350 50 0000 C CNN
+F 1 "eSim_Diode" H 3700 5150 50 0000 C CNN
+F 2 "" H 3700 5250 60 0000 C CNN
+F 3 "" H 3700 5250 60 0000 C CNN
+ 1 3700 5250
+ 0 -1 1 0
+$EndComp
+$Comp
+L zener U2
+U 1 1 66714FA9
+P 4450 5400
+F 0 "U2" H 4400 5300 60 0000 C CNN
+F 1 "zener" H 4450 5500 60 0000 C CNN
+F 2 "" H 4500 5400 60 0000 C CNN
+F 3 "" H 4500 5400 60 0000 C CNN
+ 1 4450 5400
+ -1 0 0 1
+$EndComp
+$Comp
+L zener U4
+U 1 1 66714FAA
+P 5350 5400
+F 0 "U4" H 5300 5300 60 0000 C CNN
+F 1 "zener" H 5350 5500 60 0000 C CNN
+F 2 "" H 5400 5400 60 0000 C CNN
+F 3 "" H 5400 5400 60 0000 C CNN
+ 1 5350 5400
+ 1 0 0 1
+$EndComp
+$Comp
+L zener U3
+U 1 1 66714FAB
+P 5050 5650
+F 0 "U3" H 5000 5550 60 0000 C CNN
+F 1 "zener" H 5050 5750 60 0000 C CNN
+F 2 "" H 5100 5650 60 0000 C CNN
+F 3 "" H 5100 5650 60 0000 C CNN
+ 1 5050 5650
+ 0 1 1 0
+$EndComp
+$Comp
+L mosfet_p M2
+U 1 1 66714FAC
+P 4400 6250
+F 0 "M2" H 4350 6300 50 0000 R CNN
+F 1 "mosfet_p" H 4450 6400 50 0000 R CNN
+F 2 "" H 4650 6350 29 0000 C CNN
+F 3 "" H 4450 6250 60 0000 C CNN
+ 1 4400 6250
+ 1 0 0 1
+$EndComp
+$Comp
+L mosfet_p M3
+U 1 1 66714FAD
+P 5550 6250
+F 0 "M3" H 5500 6300 50 0000 R CNN
+F 1 "mosfet_p" H 5600 6400 50 0000 R CNN
+F 2 "" H 5800 6350 29 0000 C CNN
+F 3 "" H 5600 6250 60 0000 C CNN
+ 1 5550 6250
+ -1 0 0 1
+$EndComp
+$Comp
+L resistor R2
+U 1 1 66714FAE
+P 4600 6800
+F 0 "R2" H 4650 6930 50 0000 C CNN
+F 1 "500" H 4650 6750 50 0000 C CNN
+F 2 "" H 4650 6780 30 0000 C CNN
+F 3 "" V 4650 6850 30 0000 C CNN
+ 1 4600 6800
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R4
+U 1 1 66714FAF
+P 5450 6800
+F 0 "R4" H 5500 6930 50 0000 C CNN
+F 1 "500" H 5500 6750 50 0000 C CNN
+F 2 "" H 5500 6780 30 0000 C CNN
+F 3 "" V 5500 6850 30 0000 C CNN
+ 1 5450 6800
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R3
+U 1 1 66714FB0
+P 4600 7750
+F 0 "R3" H 4650 7880 50 0000 C CNN
+F 1 "500" H 4650 7700 50 0000 C CNN
+F 2 "" H 4650 7730 30 0000 C CNN
+F 3 "" V 4650 7800 30 0000 C CNN
+ 1 4600 7750
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R5
+U 1 1 66714FB1
+P 5450 7750
+F 0 "R5" H 5500 7880 50 0000 C CNN
+F 1 "500" H 5500 7700 50 0000 C CNN
+F 2 "" H 5500 7730 30 0000 C CNN
+F 3 "" V 5500 7800 30 0000 C CNN
+ 1 5450 7750
+ 0 -1 -1 0
+$EndComp
+$Comp
+L eSim_NPN Q4
+U 1 1 66714FB2
+P 4650 7250
+F 0 "Q4" H 4550 7300 50 0000 R CNN
+F 1 "eSim_NPN" H 4600 7400 50 0000 R CNN
+F 2 "" H 4850 7350 29 0000 C CNN
+F 3 "" H 4650 7250 60 0000 C CNN
+ 1 4650 7250
+ -1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q7
+U 1 1 66714FB3
+P 5300 7250
+F 0 "Q7" H 5200 7300 50 0000 R CNN
+F 1 "eSim_NPN" H 5250 7400 50 0000 R CNN
+F 2 "" H 5500 7350 29 0000 C CNN
+F 3 "" H 5300 7250 60 0000 C CNN
+ 1 5300 7250
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_PNP Q6
+U 1 1 66714FB4
+P 4850 3300
+F 0 "Q6" H 4750 3350 50 0000 R CNN
+F 1 "eSim_PNP" H 4800 3450 50 0000 R CNN
+F 2 "" H 5050 3400 29 0000 C CNN
+F 3 "" H 4850 3300 60 0000 C CNN
+ 1 4850 3300
+ -1 0 0 1
+$EndComp
+$Comp
+L eSim_PNP Q5
+U 1 1 66714FB5
+P 4850 2700
+F 0 "Q5" H 4750 2750 50 0000 R CNN
+F 1 "eSim_PNP" H 4800 2850 50 0000 R CNN
+F 2 "" H 5050 2800 29 0000 C CNN
+F 3 "" H 4850 2700 60 0000 C CNN
+ 1 4850 2700
+ -1 0 0 1
+$EndComp
+$Comp
+L eSim_PNP Q8
+U 1 1 66714FB6
+P 7100 2700
+F 0 "Q8" H 7000 2750 50 0000 R CNN
+F 1 "eSim_PNP" H 7050 2850 50 0000 R CNN
+F 2 "" H 7300 2800 29 0000 C CNN
+F 3 "" H 7100 2700 60 0000 C CNN
+ 1 7100 2700
+ 1 0 0 1
+$EndComp
+$Comp
+L eSim_PNP Q9
+U 1 1 66714FB7
+P 7100 3300
+F 0 "Q9" H 7000 3350 50 0000 R CNN
+F 1 "eSim_PNP" H 7050 3450 50 0000 R CNN
+F 2 "" H 7300 3400 29 0000 C CNN
+F 3 "" H 7100 3300 60 0000 C CNN
+ 1 7100 3300
+ 1 0 0 1
+$EndComp
+$Comp
+L eSim_NPN Q13
+U 1 1 66714FB8
+P 8300 3300
+F 0 "Q13" H 8200 3350 50 0000 R CNN
+F 1 "eSim_NPN" H 8250 3450 50 0000 R CNN
+F 2 "" H 8500 3400 29 0000 C CNN
+F 3 "" H 8300 3300 60 0000 C CNN
+ 1 8300 3300
+ -1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q11
+U 1 1 66714FB9
+P 7650 4300
+F 0 "Q11" H 7550 4350 50 0000 R CNN
+F 1 "eSim_NPN" H 7600 4450 50 0000 R CNN
+F 2 "" H 7850 4400 29 0000 C CNN
+F 3 "" H 7650 4300 60 0000 C CNN
+ 1 7650 4300
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q12
+U 1 1 66714FBA
+P 7850 6950
+F 0 "Q12" H 7750 7000 50 0000 R CNN
+F 1 "eSim_NPN" H 7800 7100 50 0000 R CNN
+F 2 "" H 8050 7050 29 0000 C CNN
+F 3 "" H 7850 6950 60 0000 C CNN
+ 1 7850 6950
+ -1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q14
+U 1 1 66714FBB
+P 8700 6950
+F 0 "Q14" H 8600 7000 50 0000 R CNN
+F 1 "eSim_NPN" H 8650 7100 50 0000 R CNN
+F 2 "" H 8900 7050 29 0000 C CNN
+F 3 "" H 8700 6950 60 0000 C CNN
+ 1 8700 6950
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_NPN Q16
+U 1 1 66714FBC
+P 9800 6950
+F 0 "Q16" H 9700 7000 50 0000 R CNN
+F 1 "eSim_NPN" H 9750 7100 50 0000 R CNN
+F 2 "" H 10000 7050 29 0000 C CNN
+F 3 "" H 9800 6950 60 0000 C CNN
+ 1 9800 6950
+ -1 0 0 -1
+$EndComp
+$Comp
+L resistor R6
+U 1 1 66714FBD
+P 7800 7550
+F 0 "R6" H 7850 7680 50 0000 C CNN
+F 1 "50" H 7850 7500 50 0000 C CNN
+F 2 "" H 7850 7530 30 0000 C CNN
+F 3 "" V 7850 7600 30 0000 C CNN
+ 1 7800 7550
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R12
+U 1 1 66714FBE
+P 10200 7600
+F 0 "R12" H 10250 7730 50 0000 C CNN
+F 1 "30" H 10250 7550 50 0000 C CNN
+F 2 "" H 10250 7580 30 0000 C CNN
+F 3 "" V 10250 7650 30 0000 C CNN
+ 1 10200 7600
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R7
+U 1 1 66714FBF
+P 8150 4800
+F 0 "R7" H 8200 4930 50 0000 C CNN
+F 1 "1K" H 8200 4750 50 0000 C CNN
+F 2 "" H 8200 4780 30 0000 C CNN
+F 3 "" V 8200 4850 30 0000 C CNN
+ 1 8150 4800
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R8
+U 1 1 66714FC0
+P 8750 3350
+F 0 "R8" H 8800 3480 50 0000 C CNN
+F 1 "1K" H 8800 3300 50 0000 C CNN
+F 2 "" H 8800 3330 30 0000 C CNN
+F 3 "" V 8800 3400 30 0000 C CNN
+ 1 8750 3350
+ 1 0 0 -1
+$EndComp
+$Comp
+L resistor R10
+U 1 1 66714FC1
+P 9200 3650
+F 0 "R10" H 9250 3780 50 0000 C CNN
+F 1 "20" H 9250 3600 50 0000 C CNN
+F 2 "" H 9250 3630 30 0000 C CNN
+F 3 "" V 9250 3700 30 0000 C CNN
+ 1 9200 3650
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R9
+U 1 1 66714FC2
+P 9100 2750
+F 0 "R9" H 9150 2880 50 0000 C CNN
+F 1 "50" H 9150 2700 50 0000 C CNN
+F 2 "" H 9150 2730 30 0000 C CNN
+F 3 "" V 9150 2800 30 0000 C CNN
+ 1 9100 2750
+ 0 1 1 0
+$EndComp
+$Comp
+L eSim_Diode D4
+U 1 1 66714FC3
+P 10150 7200
+F 0 "D4" H 10150 7300 50 0000 C CNN
+F 1 "eSim_Diode" H 10150 7100 50 0000 C CNN
+F 2 "" H 10150 7200 60 0000 C CNN
+F 3 "" H 10150 7200 60 0000 C CNN
+ 1 10150 7200
+ 0 -1 1 0
+$EndComp
+$Comp
+L eSim_Diode D3
+U 1 1 66714FC4
+P 9150 2450
+F 0 "D3" H 9150 2550 50 0000 C CNN
+F 1 "eSim_Diode" H 9150 2350 50 0000 C CNN
+F 2 "" H 9150 2450 60 0000 C CNN
+F 3 "" H 9150 2450 60 0000 C CNN
+ 1 9150 2450
+ 0 -1 1 0
+$EndComp
+$Comp
+L eSim_NPN Q17
+U 1 1 66714FC5
+P 10250 2950
+F 0 "Q17" H 10150 3000 50 0000 R CNN
+F 1 "eSim_NPN" H 10200 3100 50 0000 R CNN
+F 2 "" H 10450 3050 29 0000 C CNN
+F 3 "" H 10250 2950 60 0000 C CNN
+ 1 10250 2950
+ -1 0 0 -1
+$EndComp
+$Comp
+L resistor R13
+U 1 1 66714FC6
+P 10950 2500
+F 0 "R13" H 11000 2630 50 0000 C CNN
+F 1 "5K" H 11000 2450 50 0000 C CNN
+F 2 "" H 11000 2480 30 0000 C CNN
+F 3 "" V 11000 2550 30 0000 C CNN
+ 1 10950 2500
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R14
+U 1 1 66714FC7
+P 10950 3950
+F 0 "R14" H 11000 4080 50 0000 C CNN
+F 1 "20K" H 11000 3900 50 0000 C CNN
+F 2 "" H 11000 3930 30 0000 C CNN
+F 3 "" V 11000 4000 30 0000 C CNN
+ 1 10950 3950
+ 0 -1 -1 0
+$EndComp
+$Comp
+L resistor R11
+U 1 1 66714FC8
+P 10200 3800
+F 0 "R11" H 10250 3930 50 0000 C CNN
+F 1 "12K" H 10250 3750 50 0000 C CNN
+F 2 "" H 10250 3780 30 0000 C CNN
+F 3 "" V 10250 3850 30 0000 C CNN
+ 1 10200 3800
+ 0 -1 -1 0
+$EndComp
+$Comp
+L mosfet_p M4
+U 1 1 66714FC9
+P 10300 4500
+F 0 "M4" H 10250 4550 50 0000 R CNN
+F 1 "mosfet_p" H 10350 4650 50 0000 R CNN
+F 2 "" H 10550 4600 29 0000 C CNN
+F 3 "" H 10350 4500 60 0000 C CNN
+ 1 10300 4500
+ -1 0 0 1
+$EndComp
+$Comp
+L zener U5
+U 1 1 66714FCA
+P 10900 3350
+F 0 "U5" H 10850 3250 60 0000 C CNN
+F 1 "zener" H 10900 3450 60 0000 C CNN
+F 2 "" H 10950 3350 60 0000 C CNN
+F 3 "" H 10950 3350 60 0000 C CNN
+ 1 10900 3350
+ 0 1 -1 0
+$EndComp
+$Comp
+L capacitor C1
+U 1 1 66714FCB
+P 6850 6700
+F 0 "C1" H 6875 6800 50 0000 L CNN
+F 1 "12pF" H 6875 6600 50 0000 L CNN
+F 2 "" H 6888 6550 30 0000 C CNN
+F 3 "" H 6850 6700 60 0000 C CNN
+ 1 6850 6700
+ 0 -1 -1 0
+$EndComp
+$Comp
+L eSim_NPN Q10
+U 1 1 66714FCC
+P 7100 6950
+F 0 "Q10" H 7000 7000 50 0000 R CNN
+F 1 "eSim_NPN" H 7050 7100 50 0000 R CNN
+F 2 "" H 7300 7050 29 0000 C CNN
+F 3 "" H 7100 6950 60 0000 C CNN
+ 1 7100 6950
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_Diode D1
+U 1 1 66714FCD
+P 3200 2300
+F 0 "D1" H 3200 2400 50 0000 C CNN
+F 1 "eSim_Diode" H 3200 2200 50 0000 C CNN
+F 2 "" H 3200 2300 60 0000 C CNN
+F 3 "" H 3200 2300 60 0000 C CNN
+ 1 3200 2300
+ 0 1 1 0
+$EndComp
+$Comp
+L eSim_NPN Q15
+U 1 1 66714FCE
+P 9050 4750
+F 0 "Q15" H 8950 4800 50 0000 R CNN
+F 1 "eSim_NPN" H 9000 4900 50 0000 R CNN
+F 2 "" H 9250 4850 29 0000 C CNN
+F 3 "" H 9050 4750 60 0000 C CNN
+ 1 9050 4750
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 2750 2900 2750 3750
+Wire Wire Line
+ 3800 4500 3800 4300
+Wire Wire Line
+ 3800 4300 3700 4300
+Wire Wire Line
+ 3700 3550 3700 4450
+Connection ~ 3700 4300
+Wire Wire Line
+ 3700 4850 3700 5100
+Wire Wire Line
+ 2750 4500 2750 4150
+Wire Wire Line
+ 3050 3950 3700 3950
+Connection ~ 3700 3950
+Wire Wire Line
+ 3200 2450 3200 2700
+Wire Wire Line
+ 3050 2700 3700 2700
+Wire Wire Line
+ 3700 5400 3700 7900
+Wire Wire Line
+ 2750 5500 3700 5500
+Wire Wire Line
+ 2750 5500 2750 4800
+Wire Wire Line
+ 3400 4650 3200 4650
+Wire Wire Line
+ 3200 4650 3200 5500
+Connection ~ 3200 5500
+Wire Wire Line
+ 4550 7450 4550 7550
+Wire Wire Line
+ 5400 7450 5400 7550
+Wire Wire Line
+ 4550 7050 4550 6900
+Wire Wire Line
+ 5400 6900 5400 7050
+Wire Wire Line
+ 4550 6450 4550 6600
+Wire Wire Line
+ 5400 6600 5400 6450
+Wire Wire Line
+ 4650 5950 4650 6100
+Wire Wire Line
+ 4650 5950 5300 5950
+Wire Wire Line
+ 5300 5950 5300 6100
+Connection ~ 5050 5950
+Wire Wire Line
+ 4550 6050 4650 6050
+Connection ~ 4650 6050
+Wire Wire Line
+ 5400 6050 5300 6050
+Connection ~ 5300 6050
+Wire Wire Line
+ 4150 5400 4100 5400
+Wire Wire Line
+ 4100 5400 4100 6250
+Connection ~ 4100 6250
+Wire Wire Line
+ 4650 5400 5150 5400
+Wire Wire Line
+ 5050 5450 5050 5400
+Connection ~ 5050 5400
+Wire Wire Line
+ 5700 6250 5900 6250
+Wire Wire Line
+ 5900 6250 5900 6500
+Wire Wire Line
+ 5900 6500 3300 6500
+Wire Wire Line
+ 4550 6550 4950 6550
+Wire Wire Line
+ 4950 6550 4950 7250
+Wire Wire Line
+ 4850 7250 5100 7250
+Connection ~ 4550 6550
+Connection ~ 4950 7250
+Wire Wire Line
+ 5650 5400 5800 5400
+Wire Wire Line
+ 5800 5400 5800 6250
+Connection ~ 5800 6250
+Wire Wire Line
+ 4550 7850 4550 7900
+Wire Wire Line
+ 5400 7900 5400 7850
+Wire Wire Line
+ 4550 7500 4250 7500
+Wire Wire Line
+ 4250 7500 4250 8200
+Connection ~ 4550 7500
+Wire Wire Line
+ 5400 7500 5650 7500
+Wire Wire Line
+ 5650 7500 5650 8200
+Connection ~ 5400 7500
+Wire Wire Line
+ 3700 2400 3700 3150
+Connection ~ 3200 2700
+Wire Wire Line
+ 4750 2900 4750 3100
+Wire Wire Line
+ 4750 3500 4750 5950
+Connection ~ 4750 5950
+Wire Wire Line
+ 4750 2100 4750 2500
+Wire Wire Line
+ 2750 2100 11500 2100
+Wire Wire Line
+ 3200 2100 3200 2150
+Wire Wire Line
+ 2750 2100 2750 2500
+Connection ~ 3200 2100
+Wire Wire Line
+ 2750 3350 3400 3350
+Connection ~ 2750 3350
+Wire Wire Line
+ 5050 2700 6900 2700
+Wire Wire Line
+ 5050 3300 6900 3300
+Wire Wire Line
+ 3700 2400 5300 2400
+Wire Wire Line
+ 5300 2400 5300 2700
+Connection ~ 5300 2700
+Connection ~ 3700 2700
+Wire Wire Line
+ 3200 3350 3200 3050
+Wire Wire Line
+ 3200 3050 5300 3050
+Wire Wire Line
+ 5300 3050 5300 3300
+Connection ~ 5300 3300
+Connection ~ 3200 3350
+Wire Wire Line
+ 7200 2100 7200 2500
+Connection ~ 4750 2100
+Wire Wire Line
+ 7200 2900 7200 3100
+Wire Wire Line
+ 7200 3500 7200 6750
+Wire Wire Line
+ 7200 7900 7200 7150
+Connection ~ 5400 7900
+Wire Wire Line
+ 5400 6950 6900 6950
+Connection ~ 5400 6950
+Wire Wire Line
+ 6700 6700 6550 6700
+Wire Wire Line
+ 6550 6700 6550 6950
+Connection ~ 6550 6950
+Wire Wire Line
+ 7000 6700 7200 6700
+Connection ~ 7200 6700
+Wire Wire Line
+ 7200 6250 6400 6250
+Wire Wire Line
+ 6400 6250 6400 8250
+Connection ~ 7200 6250
+Wire Wire Line
+ 10150 7900 10150 7700
+Connection ~ 7200 7900
+Wire Wire Line
+ 10150 7400 10150 7350
+Wire Wire Line
+ 10150 4700 10150 7050
+Wire Wire Line
+ 10150 6950 10000 6950
+Wire Wire Line
+ 9700 7300 9700 7150
+Wire Wire Line
+ 8800 7300 9700 7300
+Wire Wire Line
+ 8800 7300 8800 7150
+Wire Wire Line
+ 8800 6750 8800 6600
+Wire Wire Line
+ 8800 6600 9700 6600
+Wire Wire Line
+ 9700 6600 9700 6750
+Connection ~ 9000 7300
+Wire Wire Line
+ 8050 6950 8500 6950
+Wire Wire Line
+ 7750 7150 7750 7350
+Wire Wire Line
+ 7750 7900 7750 7650
+Connection ~ 7750 7900
+Wire Wire Line
+ 3700 5000 8250 5000
+Wire Wire Line
+ 8250 5000 8250 6950
+Connection ~ 8250 6950
+Connection ~ 3700 5000
+Wire Wire Line
+ 7750 4500 7750 6750
+Wire Wire Line
+ 7750 2100 7750 4100
+Connection ~ 7200 2100
+Wire Wire Line
+ 8200 3100 8200 3000
+Wire Wire Line
+ 8200 3000 7200 3000
+Connection ~ 7200 3000
+Wire Wire Line
+ 9150 3750 9150 4550
+Wire Wire Line
+ 9150 3850 8200 3850
+Wire Wire Line
+ 8200 3850 8200 3500
+Wire Wire Line
+ 8500 3300 8650 3300
+Wire Wire Line
+ 8950 3300 9150 3300
+Wire Wire Line
+ 9150 2950 9150 3450
+Connection ~ 9150 3300
+Wire Wire Line
+ 9150 2600 9150 2650
+Wire Wire Line
+ 9150 2100 9150 2300
+Connection ~ 7750 2100
+Connection ~ 9150 3850
+Wire Wire Line
+ 8850 4750 8350 4750
+Wire Wire Line
+ 8050 4750 7750 4750
+Connection ~ 7750 4750
+Wire Wire Line
+ 9150 4950 9150 6600
+Connection ~ 9150 6600
+Wire Wire Line
+ 3150 6250 4250 6250
+Wire Wire Line
+ 7450 4300 7200 4300
+Connection ~ 7200 4300
+Wire Wire Line
+ 10900 3550 10900 3750
+Wire Wire Line
+ 10900 7900 10900 4050
+Connection ~ 10150 7900
+Connection ~ 10900 7900
+Connection ~ 10150 6950
+Wire Wire Line
+ 10500 5100 10500 4500
+Wire Wire Line
+ 10500 4500 10450 4500
+Connection ~ 9150 5100
+Connection ~ 10500 5100
+Wire Wire Line
+ 10150 3900 10150 4300
+Wire Wire Line
+ 10150 3600 10150 3150
+Wire Wire Line
+ 10050 4350 10050 4250
+Wire Wire Line
+ 10050 4250 10150 4250
+Connection ~ 10150 4250
+Wire Wire Line
+ 10450 2950 10900 2950
+Wire Wire Line
+ 10900 2600 10900 3050
+Connection ~ 10900 2950
+Wire Wire Line
+ 10900 2100 10900 2300
+Connection ~ 9150 2100
+Connection ~ 10900 2100
+Wire Wire Line
+ 3300 6500 3300 6550
+Wire Wire Line
+ 10150 2750 10150 2100
+Connection ~ 10150 2100
+Connection ~ 3700 5500
+Connection ~ 4550 7900
+Wire Wire Line
+ 3700 7900 11400 7900
+Wire Wire Line
+ 9000 7300 9000 7900
+Connection ~ 9000 7900
+Wire Wire Line
+ 9150 5100 12200 5100
+$Comp
+L PORT U1
+U 1 1 667186FE
+P 5400 8200
+F 0 "U1" H 5450 8300 30 0000 C CNN
+F 1 "PORT" H 5400 8200 30 0000 C CNN
+F 2 "" H 5400 8200 60 0000 C CNN
+F 3 "" H 5400 8200 60 0000 C CNN
+ 1 5400 8200
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 2 1 66718826
+P 2900 6250
+F 0 "U1" H 2950 6350 30 0000 C CNN
+F 1 "PORT" H 2900 6250 30 0000 C CNN
+F 2 "" H 2900 6250 60 0000 C CNN
+F 3 "" H 2900 6250 60 0000 C CNN
+ 2 2900 6250
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 3 1 667188F1
+P 3050 6550
+F 0 "U1" H 3100 6650 30 0000 C CNN
+F 1 "PORT" H 3050 6550 30 0000 C CNN
+F 2 "" H 3050 6550 60 0000 C CNN
+F 3 "" H 3050 6550 60 0000 C CNN
+ 3 3050 6550
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 5 1 667189B4
+P 4000 8200
+F 0 "U1" H 4050 8300 30 0000 C CNN
+F 1 "PORT" H 4000 8200 30 0000 C CNN
+F 2 "" H 4000 8200 60 0000 C CNN
+F 3 "" H 4000 8200 60 0000 C CNN
+ 5 4000 8200
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 4 1 66718A6F
+P 11650 7900
+F 0 "U1" H 11700 8000 30 0000 C CNN
+F 1 "PORT" H 11650 7900 30 0000 C CNN
+F 2 "" H 11650 7900 60 0000 C CNN
+F 3 "" H 11650 7900 60 0000 C CNN
+ 4 11650 7900
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 6 1 66718B12
+P 12450 5100
+F 0 "U1" H 12500 5200 30 0000 C CNN
+F 1 "PORT" H 12450 5100 30 0000 C CNN
+F 2 "" H 12450 5100 60 0000 C CNN
+F 3 "" H 12450 5100 60 0000 C CNN
+ 6 12450 5100
+ -1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 7 1 66718BC1
+P 11750 2100
+F 0 "U1" H 11800 2200 30 0000 C CNN
+F 1 "PORT" H 11750 2100 30 0000 C CNN
+F 2 "" H 11750 2100 60 0000 C CNN
+F 3 "" H 11750 2100 60 0000 C CNN
+ 7 11750 2100
+ -1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 8 1 66718C6A
+P 6150 8250
+F 0 "U1" H 6200 8350 30 0000 C CNN
+F 1 "PORT" H 6150 8250 30 0000 C CNN
+F 2 "" H 6150 8250 60 0000 C CNN
+F 3 "" H 6150 8250 60 0000 C CNN
+ 8 6150 8250
+ 1 0 0 -1
+$EndComp
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sub b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sub
new file mode 100644
index 00000000..c35cd85f
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub.sub
@@ -0,0 +1,66 @@
+* Subcircuit CA3140_sub
+.subckt CA3140_sub net-_q7-pad3_ net-_m2-pad2_ net-_m3-pad2_ net-_d2-pad2_ net-_q4-pad3_ net-_m4-pad2_ net-_d1-pad1_ net-_c1-pad2_
+* c:\fossee\esim\library\subcircuitlibrary\ca3140_sub\ca3140_sub.cir
+.include D.lib
+.include PNP.lib
+.include PMOS-0.5um.lib
+.include NPN.lib
+q1 net-_q1-pad1_ net-_d1-pad2_ net-_d1-pad1_ Q2N2907A
+q3 net-_m1-pad3_ net-_q1-pad1_ net-_d1-pad2_ Q2N2907A
+q2 net-_q1-pad1_ net-_m1-pad3_ net-_q2-pad3_ Q2N2222
+m1 net-_d2-pad1_ net-_d2-pad2_ net-_m1-pad3_ net-_m1-pad3_ mos_p W=100u L=100u M=1
+r1 net-_d2-pad2_ net-_q2-pad3_ 8k
+d2 net-_d2-pad1_ net-_d2-pad2_ 1N4148
+* u2 net-_u2-padin_ net-_m2-pad2_ zener
+* u4 net-_u2-padin_ net-_m3-pad2_ zener
+* u3 net-_u2-padin_ net-_m2-pad3_ zener
+m2 net-_m2-pad1_ net-_m2-pad2_ net-_m2-pad3_ net-_m2-pad3_ mos_p W=100u L=100u M=1
+m3 net-_m3-pad1_ net-_m3-pad2_ net-_m2-pad3_ net-_m2-pad3_ mos_p W=100u L=100u M=1
+r2 net-_q4-pad1_ net-_m2-pad1_ 500
+r4 net-_c1-pad1_ net-_m3-pad1_ 500
+r3 net-_d2-pad2_ net-_q4-pad3_ 500
+r5 net-_d2-pad2_ net-_q7-pad3_ 500
+q4 net-_q4-pad1_ net-_m2-pad1_ net-_q4-pad3_ Q2N2222
+q7 net-_c1-pad1_ net-_m2-pad1_ net-_q7-pad3_ Q2N2222
+q6 net-_m2-pad3_ net-_q1-pad1_ net-_q5-pad1_ Q2N2907A
+q5 net-_q5-pad1_ net-_d1-pad2_ net-_d1-pad1_ Q2N2907A
+q8 net-_q13-pad1_ net-_d1-pad2_ net-_d1-pad1_ Q2N2907A
+q9 net-_c1-pad2_ net-_q1-pad1_ net-_q13-pad1_ Q2N2907A
+q13 net-_q13-pad1_ net-_q13-pad2_ net-_q13-pad3_ Q2N2222
+q11 net-_d1-pad1_ net-_c1-pad2_ net-_q11-pad3_ Q2N2222
+q12 net-_q11-pad3_ net-_d2-pad1_ net-_q12-pad3_ Q2N2222
+q14 net-_m4-pad2_ net-_d2-pad1_ net-_d2-pad2_ Q2N2222
+q16 net-_m4-pad2_ net-_d4-pad1_ net-_d2-pad2_ Q2N2222
+r6 net-_d2-pad2_ net-_q12-pad3_ 50
+r12 net-_d2-pad2_ net-_d4-pad2_ 30
+r7 net-_q11-pad3_ net-_q15-pad2_ 1k
+r8 net-_q13-pad2_ net-_r10-pad2_ 1k
+r10 net-_q13-pad3_ net-_r10-pad2_ 20
+r9 net-_d3-pad2_ net-_r10-pad2_ 50
+d4 net-_d4-pad1_ net-_d4-pad2_ 1N4148
+d3 net-_d1-pad1_ net-_d3-pad2_ 1N4148
+q17 net-_d1-pad1_ net-_q17-pad2_ net-_q17-pad3_ Q2N2222
+r13 net-_q17-pad2_ net-_d1-pad1_ 5k
+r14 net-_d2-pad2_ net-_r14-pad2_ 20k
+r11 net-_m4-pad3_ net-_q17-pad3_ 12k
+m4 net-_d4-pad1_ net-_m4-pad2_ net-_m4-pad3_ net-_m4-pad3_ mos_p W=100u L=100u M=1
+* u5 net-_r14-pad2_ net-_q17-pad2_ zener
+c1 net-_c1-pad1_ net-_c1-pad2_ 12pf
+q10 net-_c1-pad2_ net-_c1-pad1_ net-_d2-pad2_ Q2N2222
+d1 net-_d1-pad1_ net-_d1-pad2_ 1N4148
+q15 net-_q13-pad3_ net-_q15-pad2_ net-_m4-pad2_ Q2N2222
+a1 net-_u2-padin_ net-_m2-pad2_ u2
+a2 net-_u2-padin_ net-_m3-pad2_ u4
+a3 net-_u2-padin_ net-_m2-pad3_ u3
+a4 net-_r14-pad2_ net-_q17-pad2_ u5
+* Schematic Name: zener, NgSpice Name: zener
+.model u2 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u4 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u3 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Schematic Name: zener, NgSpice Name: zener
+.model u5 zener(v_breakdown=5.6 i_breakdown=2.0e-2 i_sat=1.0e-12 n_forward=1.0 limit_switch=FALSE )
+* Control Statements
+
+.ends CA3140_sub \ No newline at end of file
diff --git a/library/SubcircuitLibrary/CA3140_sub/CA3140_sub_Previous_Values.xml b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub_Previous_Values.xml
new file mode 100644
index 00000000..030989ed
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/CA3140_sub_Previous_Values.xml
@@ -0,0 +1 @@
+<KicadtoNgspice><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time" /><field2 name="Step Time" /><field3 name="Stop Time" /><field4 name="Start Combo">sec</field4><field5 name="Step Combo">sec</field5><field6 name="Stop Combo">sec</field6></tran></analysis><source /><model><u2 name="type">zener<field1 name="Enter Breakdown Voltage (default=5.6)">5.6</field1><field2 name="Enter Breakdown Current (default=2.0e-2)">2.0e-2</field2><field3 name="Enter Saturation Current (default=1.0e-12)">1.0e-12</field3><field4 name="Enter Forward Emission Coefficient (default=1.0)">1.0</field4><field5 name="Enter Switch for Limiting (default=FALSE)">FALSE</field5></u2><u4 name="type">zener<field6 name="Enter Breakdown Voltage (default=5.6)">5.6</field6><field7 name="Enter Breakdown Current (default=2.0e-2)">2.0e-2</field7><field8 name="Enter Saturation Current (default=1.0e-12)">1.0e-12</field8><field9 name="Enter Forward Emission Coefficient (default=1.0)">1.0</field9><field10 name="Enter Switch for Limiting (default=FALSE)">FALSE</field10></u4><u3 name="type">zener<field11 name="Enter Breakdown Voltage (default=5.6)">5.6</field11><field12 name="Enter Breakdown Current (default=2.0e-2)">2.0e-2</field12><field13 name="Enter Saturation Current (default=1.0e-12)">1.0e-12</field13><field14 name="Enter Forward Emission Coefficient (default=1.0)">1.0</field14><field15 name="Enter Switch for Limiting (default=FALSE)">FALSE</field15></u3><u5 name="type">zener<field16 name="Enter Breakdown Voltage (default=5.6)" /><field17 name="Enter Breakdown Current (default=2.0e-2)" /><field18 name="Enter Saturation Current (default=1.0e-12)" /><field19 name="Enter Forward Emission Coefficient (default=1.0)" /><field20 name="Enter Switch for Limiting (default=FALSE)" /></u5></model><devicemodel><q1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q1><q3><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q3><q2><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q2><m1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-0.5um.lib</field><field>100u</field><field>100u</field><field>1</field></m1><d2><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Diode\D.lib</field></d2><m2><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-0.5um.lib</field><field>100u</field><field>100u</field><field>1</field></m2><m3><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-0.5um.lib</field><field>100u</field><field>100u</field><field>1</field></m3><q4><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q4><q7><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q7><q6><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q6><q5><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q5><q8><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q8><q9><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\PNP.lib</field></q9><q13><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q13><q11><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q11><q12><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q12><q14><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q14><q16><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q16><d4><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Diode\D.lib</field></d4><d3><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Diode\D.lib</field></d3><q17><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q17><m4><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-0.5um.lib</field><field>100u</field><field>100u</field><field>1</field></m4><q10><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q10><d1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Diode\D.lib</field></d1><q15><field>C:\FOSSEE\eSim\library\deviceModelLibrary\Transistor\NPN.lib</field></q15></devicemodel><subcircuit /></KicadtoNgspice> \ No newline at end of file
diff --git a/library/SubcircuitLibrary/CA3140_sub/D.lib b/library/SubcircuitLibrary/CA3140_sub/D.lib
new file mode 100644
index 00000000..f53bf3e0
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/D.lib
@@ -0,0 +1,2 @@
+.model 1N4148 D(is=2.495E-09 rs=4.755E-01 n=1.679E+00 tt=3.030E-09 cjo=1.700E-12 vj=1 m=1.959E-01 bv=1.000E+02 ibv=1.000E-04)
+
diff --git a/library/SubcircuitLibrary/CA3140_sub/NPN.lib b/library/SubcircuitLibrary/CA3140_sub/NPN.lib
new file mode 100644
index 00000000..be5f3073
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/NPN.lib
@@ -0,0 +1,4 @@
+.model Q2N2222 NPN( Is=14.34f Xti=3 Eg=1.11 Vaf=74.03 Bf=400 Ne=1.307
++ Ise=14.34f Ikf=0.2847 Xtb=1.5 Br=6.092 Nc=2 Isc=0 Ikr=0 Rc=1 Cjc=7.306p
++ Mjc=0.3416 Vjc=0.75 Fc=0.5 Cje=22.01p Mje=0.377 Vje=0.75 Tr=46.91n Tf=411.1p
++ Itf=0.6 Vtf=1.7 Xtf=3 Rb=10)
diff --git a/library/SubcircuitLibrary/CA3140_sub/PMOS-0.5um.lib b/library/SubcircuitLibrary/CA3140_sub/PMOS-0.5um.lib
new file mode 100644
index 00000000..848e8b05
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/PMOS-0.5um.lib
@@ -0,0 +1,6 @@
+.model mos_p PMOS( TPG=-1 TOX=9.5n CJ=950u ETA=0.025 VMAX=0.3u
++ GAMMA=0.52 CGSO=0.35n LD=70n MJSW=0.25 PB=1
++ CGBO=0.45n XJ=0.2U CGDO=0.35n KAPPA=8.0 LEVEL=3
++ VTO=-0.6 NFS=6.50E11 THETA=0.2 CJSW=0.2n PHI=0.7
++ RSH=2.5 MJ=0.5 UO=130 KP=48u DELTA=0.25
++ NSUB=1.0E17 ) \ No newline at end of file
diff --git a/library/SubcircuitLibrary/CA3140_sub/PNP.lib b/library/SubcircuitLibrary/CA3140_sub/PNP.lib
new file mode 100644
index 00000000..7edda0ea
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/PNP.lib
@@ -0,0 +1,4 @@
+.model Q2N2907A PNP(Is=650.6E-18 Xti=3 Eg=1.11 Vaf=115.7 Bf=231.7 Ne=1.829
++ Ise=54.81f Ikf=1.079 Xtb=1.5 Br=3.563 Nc=2 Isc=0 Ikr=0 Rc=.715
++ Cjc=14.76p Mjc=.5383 Vjc=.75 Fc=.5 Cje=19.82p Mje=.3357 Vje=.75
++ Tr=111.3n Tf=603.7p Itf=.65 Vtf=5 Xtf=1.7 Rb=10)
diff --git a/library/SubcircuitLibrary/CA3140_sub/analysis b/library/SubcircuitLibrary/CA3140_sub/analysis
new file mode 100644
index 00000000..ebd5c0a9
--- /dev/null
+++ b/library/SubcircuitLibrary/CA3140_sub/analysis
@@ -0,0 +1 @@
+.tran 0e-00 0e-00 0e-00 \ No newline at end of file