(export (version "E")
  (design
    (source "/home/anton/DATA/www/SEDwebsite/_build/SEDwebsite/EE4109-2024-2025/designExample/HearingLoop/SLiCAPnotebooks/Vamp/kicad/dual-stage_p/dual-stage_p.kicad_sch")
    (date "2024-12-19T00:08:30+0100")
    (tool "Eeschema 8.0.7-8.0.7-0~ubuntu24.04.1")
    (sheet (number "1") (name "/") (tstamps "/")
      (title_block
        (title "Dual-stage_p")
        (company)
        (rev)
        (date)
        (source "dual-stage_p.kicad_sch")
        (comment (number "1") (value ""))
        (comment (number "2") (value ""))
        (comment (number "3") (value ""))
        (comment (number "4") (value ""))
        (comment (number "5") (value ""))
        (comment (number "6") (value ""))
        (comment (number "7") (value ""))
        (comment (number "8") (value ""))
        (comment (number "9") (value "")))))
  (components
    (comp (ref "A1")
      (value "~")
      (description "SLiCAP command (.lib, .param, .model. subckt}")
      (fields
        (field (name "command") ".source V1")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "SLiCAP command (.lib, .param, .model. subckt}"))
      (libsource (lib "SLiCAP") (part "Command") (description "SLiCAP command (.lib, .param, .model. subckt}"))
      (property (name "command") (value ".source V1"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "8c0b4fa7-62c9-41ad-a483-7a992c7e25d3"))
    (comp (ref "A2")
      (value "~")
      (description "SLiCAP command (.lib, .param, .model. subckt}")
      (fields
        (field (name "command") ".param L_s=120m R_s=875 R_t=10k tau_i=15.9u C_ell=10p")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "SLiCAP command (.lib, .param, .model. subckt}"))
      (libsource (lib "SLiCAP") (part "Command") (description "SLiCAP command (.lib, .param, .model. subckt}"))
      (property (name "command") (value ".param L_s=120m R_s=875 R_t=10k tau_i=15.9u C_ell=10p"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "abefb95b-cdd7-4ce9-bb5e-0892bed8a393"))
    (comp (ref "A3")
      (value "~")
      (description "SLiCAP command (.lib, .param, .model. subckt}")
      (fields
        (field (name "command") ".param W={2*W_P} L={L_P} ID={2*ID_P} ID_o={0.6*I_fb} W_o=220n L_o=180n")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "SLiCAP command (.lib, .param, .model. subckt}"))
      (libsource (lib "SLiCAP") (part "Command") (description "SLiCAP command (.lib, .param, .model. subckt}"))
      (property (name "command") (value ".param W={2*W_P} L={L_P} ID={2*ID_P} ID_o={0.6*I_fb} W_o=220n L_o=180n"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "b0a55d72-a692-4321-a1a3-482b2be1272c"))
    (comp (ref "A4")
      (value "~")
      (description "SLiCAP command (.lib, .param, .model. subckt}")
      (fields
        (field (name "command") ".detector V_out")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "SLiCAP command (.lib, .param, .model. subckt}"))
      (libsource (lib "SLiCAP") (part "Command") (description "SLiCAP command (.lib, .param, .model. subckt}"))
      (property (name "command") (value ".detector V_out"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "0e1d17a4-039a-494a-a7bc-57d2bb21f6ab"))
    (comp (ref "A5")
      (value "~")
      (description "SLiCAP command (.lib, .param, .model. subckt}")
      (fields
        (field (name "command") ".lgref Gm_M1_X1")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "SLiCAP command (.lib, .param, .model. subckt}"))
      (libsource (lib "SLiCAP") (part "Command") (description "SLiCAP command (.lib, .param, .model. subckt}"))
      (property (name "command") (value ".lgref Gm_M1_X1"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "a93a7ccb-6d10-4a89-943e-30848d298633"))
    (comp (ref "C1")
      (value "{tau_i/R_i}")
      (description "Capacitor")
      (fields
        (field (name "model") "C")
        (field (name "vinit") "0")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Capacitor"))
      (libsource (lib "SLiCAP") (part "C") (description "Capacitor"))
      (property (name "model") (value "C"))
      (property (name "vinit") (value "0"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "041c9d79-43b8-421b-8523-b78ea442afa0"))
    (comp (ref "C2")
      (value "{C_ell}")
      (description "Capacitor")
      (fields
        (field (name "model") "C")
        (field (name "vinit") "0")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Capacitor"))
      (libsource (lib "SLiCAP") (part "C") (description "Capacitor"))
      (property (name "model") (value "C"))
      (property (name "vinit") (value "0"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "14344925-5bca-42f8-b9f8-984adccc0e96"))
    (comp (ref "L1")
      (value "{L_s}")
      (description "Inductor")
      (fields
        (field (name "model") "L")
        (field (name "iinit") "0")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Inductor"))
      (libsource (lib "SLiCAP") (part "L") (description "Inductor"))
      (property (name "model") (value "L"))
      (property (name "iinit") (value "0"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "9222dd30-128d-4eb0-a102-8fd6480b5b7b"))
    (comp (ref "R1")
      (value "{R_s}")
      (description "Resistor (cannot have zero resistance)")
      (fields
        (field (name "model") "R")
        (field (name "noisetemp") "0")
        (field (name "noiseflow") "0")
        (field (name "dcvar") "0")
        (field (name "dcvarlot") "0")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Resistor (cannot have zero resistance)"))
      (libsource (lib "SLiCAP") (part "R") (description "Resistor (cannot have zero resistance)"))
      (property (name "model") (value "R"))
      (property (name "noisetemp") (value "0"))
      (property (name "noiseflow") (value "0"))
      (property (name "dcvar") (value "0"))
      (property (name "dcvarlot") (value "0"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "b0fca7e9-baa4-4373-8045-ee7d745275c2"))
    (comp (ref "R2")
      (value "{R_t}")
      (description "Resistor (cannot have zero resistance)")
      (fields
        (field (name "model") "R")
        (field (name "noisetemp") "0")
        (field (name "noiseflow") "0")
        (field (name "dcvar") "0")
        (field (name "dcvarlot") "0")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Resistor (cannot have zero resistance)"))
      (libsource (lib "SLiCAP") (part "R") (description "Resistor (cannot have zero resistance)"))
      (property (name "model") (value "R"))
      (property (name "noisetemp") (value "0"))
      (property (name "noiseflow") (value "0"))
      (property (name "dcvar") (value "0"))
      (property (name "dcvarlot") (value "0"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "0e439eae-a9a6-4431-852f-62fc7865eea1"))
    (comp (ref "R3")
      (value "{R_i}")
      (description "Resistor (cannot have zero resistance)")
      (fields
        (field (name "model") "R")
        (field (name "noisetemp") "0")
        (field (name "noiseflow") "0")
        (field (name "dcvar") "0")
        (field (name "dcvarlot") "0")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Resistor (cannot have zero resistance)"))
      (libsource (lib "SLiCAP") (part "R") (description "Resistor (cannot have zero resistance)"))
      (property (name "model") (value "R"))
      (property (name "noisetemp") (value "0"))
      (property (name "noiseflow") (value "0"))
      (property (name "dcvar") (value "0"))
      (property (name "dcvarlot") (value "0"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "0dcb01cb-2e91-4771-a269-d900d74f1795"))
    (comp (ref "V1")
      (value "0")
      (description "Independent voltage source")
      (fields
        (field (name "noise") "0")
        (field (name "dc") "0")
        (field (name "dcvar") "0")
        (field (name "model") "V")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Independent voltage source"))
      (libsource (lib "SLiCAP") (part "V") (description "Independent voltage source"))
      (property (name "noise") (value "0"))
      (property (name "dc") (value "0"))
      (property (name "dcvar") (value "0"))
      (property (name "model") (value "V"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "d5ebeceb-1fd1-4db6-84b8-d402ab08cb1f"))
    (comp (ref "X1")
      (value "~")
      (description "Differential-pair MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)")
      (fields
        (field (name "model") "CMOS18PD")
        (field (name "W") "{W}")
        (field (name "L") "{L}")
        (field (name "ID") "{ID}")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Differential-pair MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)"))
      (libsource (lib "SLiCAP") (part "XMD") (description "Differential-pair MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)"))
      (property (name "model") (value "CMOS18PD"))
      (property (name "W") (value "{W}"))
      (property (name "L") (value "{L}"))
      (property (name "ID") (value "{ID}"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "e3f3e4f5-84e7-457b-bdb1-1986c6ce23fc"))
    (comp (ref "X2")
      (value "~")
      (description "MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)")
      (fields
        (field (name "model") "CMOS18N")
        (field (name "W") "{W_o}")
        (field (name "L") "{L_o}")
        (field (name "ID") "{ID_o}")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)"))
      (libsource (lib "SLiCAP") (part "XM") (description "MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)"))
      (property (name "model") (value "CMOS18N"))
      (property (name "W") (value "{W_o}"))
      (property (name "L") (value "{L_o}"))
      (property (name "ID") (value "{ID_o}"))
      (property (name "Sheetname") (value ""))
      (property (name "Sheetfile") (value "dual-stage_p.kicad_sch"))
      (sheetpath (names "/") (tstamps "/"))
      (tstamps "af00fc85-2494-427b-ab29-55b817b7e3ed")))
  (libparts
    (libpart (lib "SLiCAP") (part "C")
      (description "Capacitor")
      (fields
        (field (name "Reference") "C?")
        (field (name "Value") "?")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Capacitor")
        (field (name "model") "C")
        (field (name "vinit") "0"))
      (pins
        (pin (num "1") (name "1") (type "passive"))
        (pin (num "2") (name "2") (type "passive"))))
    (libpart (lib "SLiCAP") (part "Command")
      (description "SLiCAP command (.lib, .param, .model. subckt}")
      (fields
        (field (name "Reference") "A?")
        (field (name "Value"))
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "SLiCAP command (.lib, .param, .model. subckt}")
        (field (name "command") "?")))
    (libpart (lib "SLiCAP") (part "L")
      (description "Inductor")
      (fields
        (field (name "Reference") "L?")
        (field (name "Value") "?")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Inductor")
        (field (name "model") "L")
        (field (name "iinit") "0"))
      (pins
        (pin (num "1") (name "1") (type "passive"))
        (pin (num "2") (name "2") (type "passive"))))
    (libpart (lib "SLiCAP") (part "R")
      (description "Resistor (cannot have zero resistance)")
      (fields
        (field (name "Reference") "R?")
        (field (name "Value") "?")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Resistor (cannot have zero resistance)")
        (field (name "model") "R")
        (field (name "noisetemp") "0")
        (field (name "noiseflow") "0")
        (field (name "dcvar") "0")
        (field (name "dcvarlot") "0"))
      (pins
        (pin (num "1") (name "1") (type "passive"))
        (pin (num "2") (name "2") (type "passive"))))
    (libpart (lib "SLiCAP") (part "V")
      (description "Independent voltage source")
      (fields
        (field (name "Reference") "V?")
        (field (name "Value") "?")
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Independent voltage source")
        (field (name "noise") "0")
        (field (name "dc") "0")
        (field (name "dcvar") "0")
        (field (name "model") "V"))
      (pins
        (pin (num "1") (name "p") (type "power_out"))
        (pin (num "2") (name "n") (type "power_out"))))
    (libpart (lib "SLiCAP") (part "XM")
      (description "MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)")
      (fields
        (field (name "Reference") "X?")
        (field (name "Value"))
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)")
        (field (name "model") "?")
        (field (name "W") "{W}")
        (field (name "L") "{L}")
        (field (name "ID") "{ID}"))
      (pins
        (pin (num "1") (name "D") (type "unspecified"))
        (pin (num "2") (name "G") (type "unspecified"))
        (pin (num "3") (name "S") (type "unspecified"))
        (pin (num "4") (name "B") (type "unspecified"))))
    (libpart (lib "SLiCAP") (part "XMD")
      (description "Differential-pair MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)")
      (fields
        (field (name "Reference") "X?")
        (field (name "Value"))
        (field (name "Footprint"))
        (field (name "Datasheet"))
        (field (name "Description") "Differential-pair MOSFET (small-signal N or P channel subcircuit with parameters W,  L, and ID)")
        (field (name "model") "?")
        (field (name "W") "{W}")
        (field (name "L") "{L}")
        (field (name "ID") "{ID}"))
      (pins
        (pin (num "1") (name "D1") (type "unspecified"))
        (pin (num "2") (name "D2") (type "unspecified"))
        (pin (num "3") (name "G1") (type "unspecified"))
        (pin (num "4") (name "G2") (type "unspecified")))))
  (libraries
    (library (logical "SLiCAP")
      (uri "/home/anton/SLiCAP/kicad/SLiCAP.kicad_sym")))
  (nets
    (net (code "1") (name "/in")
      (node (ref "L1") (pin "2") (pinfunction "2") (pintype "passive"))
      (node (ref "R2") (pin "1") (pinfunction "1") (pintype "passive"))
      (node (ref "X1") (pin "3") (pinfunction "G1") (pintype "unspecified")))
    (net (code "2") (name "/out")
      (node (ref "C1") (pin "1") (pinfunction "1") (pintype "passive"))
      (node (ref "C2") (pin "1") (pinfunction "1") (pintype "passive"))
      (node (ref "X2") (pin "1") (pinfunction "D") (pintype "unspecified")))
    (net (code "3") (name "0")
      (node (ref "C2") (pin "2") (pinfunction "2") (pintype "passive"))
      (node (ref "R2") (pin "2") (pinfunction "2") (pintype "passive"))
      (node (ref "R3") (pin "2") (pinfunction "2") (pintype "passive"))
      (node (ref "V1") (pin "2") (pinfunction "n") (pintype "power_out"))
      (node (ref "X1") (pin "2") (pinfunction "D2") (pintype "unspecified"))
      (node (ref "X2") (pin "3") (pinfunction "S") (pintype "unspecified"))
      (node (ref "X2") (pin "4") (pinfunction "B") (pintype "unspecified")))
    (net (code "4") (name "Net-(L1-Pad1)")
      (node (ref "L1") (pin "1") (pinfunction "1") (pintype "passive"))
      (node (ref "R1") (pin "1") (pinfunction "1") (pintype "passive")))
    (net (code "5") (name "Net-(V1-p)")
      (node (ref "R1") (pin "2") (pinfunction "2") (pintype "passive"))
      (node (ref "V1") (pin "1") (pinfunction "p") (pintype "power_out")))
    (net (code "6") (name "Net-(X1-D1)")
      (node (ref "X1") (pin "1") (pinfunction "D1") (pintype "unspecified"))
      (node (ref "X2") (pin "2") (pinfunction "G") (pintype "unspecified")))
    (net (code "7") (name "Net-(X1-G2)")
      (node (ref "C1") (pin "2") (pinfunction "2") (pintype "passive"))
      (node (ref "R3") (pin "1") (pinfunction "1") (pintype "passive"))
      (node (ref "X1") (pin "4") (pinfunction "G2") (pintype "unspecified")))))