Defined at: servo_micro.py:530
<class 'servo_micro.UsbConnector'>, <class 'pcbdl.base.Part'>
Variable Name: usb
Value: 1981568-1
Part Number: 1981568-1
Package: TE_1981568-1
6 logical pins (9 real pins):
Defined at: servo_micro.py:531
<class 'servo_micro.UsbEsdDiode'>, <class 'pcbdl.base.Part'>
Variable Name: usb_esd
Value: TPD2E001DRLR
Part Number: TPD2E001DRLR
Package: SOP50P170X60-5N
5 logical pins (5 real pins):
Defined at: servo_micro.py:540
<class 'servo_micro.MIC5504'>, <class 'servo_micro.Regulator'>, <class 'pcbdl.base.Part'>
Variable Name: reg3300
Value: MIC5504-3.3YMT
Part Number: MIC5504-3.3YMT
Package: SON65P100X100X40-5T48X48N
4 logical pins (5 real pins):
Defined at: servo_micro.py:542
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 2.2uF
Part Number: CY2.2u
Package: CAPC1005X71L
2 logical pins (2 real pins):
Defined at: servo_micro.py:548
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 10uF
Part Number: CY10u
Package: CAPC1608X80L
2 logical pins (2 real pins):
Defined at: servo_micro.py:549
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:550
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 1000pF
Part Number: CY1000p
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:555
<class 'servo_micro.TLV70018DSER'>, <class 'servo_micro.Regulator'>, <class 'pcbdl.base.Part'>
Variable Name: reg1800
Value: TLV70018DSER
Part Number: TLV70018DSER
Package: SON50P150X150X80-6L
6 logical pins (6 real pins):
Defined at: servo_micro.py:556
<class 'servo_micro.DoubleDiode'>, <class 'pcbdl.base.Part'>
Variable Name: drop_diode
Value: 240-800MV
Part Number: 240-800MV
Package: SOT95P247X115-3L
3 logical pins (3 real pins):
Defined at: servo_micro.py:560
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:564
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 1uF
Part Number: CY1u
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:566
<class 'servo_micro.ServoEC'>, <class 'servo_micro.STM32F072'>, <class 'pcbdl.base.Part'>
Variable Name: ec
Value: STM32F072CBU6TR
Part Number: STM32F072CBU6TR
Package: QFN05P_7-1X7-1_0-6_49N
46 logical pins (49 real pins):
Defined at: servo_micro.py:572
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:573
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:574
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 4.7uF
Part Number: CY4.7u
Package: CAPC1005X71L
2 logical pins (2 real pins):
Defined at: servo_micro.py:578
<class 'pcbdl.small_parts.L'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Inductor
Value: 600@100MHzH
Part Number: FERRITE_BEAD-185-00019-00
Package: INDC1005L
2 logical pins (2 real pins):
Defined at: servo_micro.py:579
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 1uF
Part Number: CY1u
Package: CAPC1005X71L
2 logical pins (2 real pins):
Defined at: servo_micro.py:580
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100pF
Part Number: CY100p
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:583
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:584
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 4.7uF
Part Number: CY4.7u
Package: CAPC1005X71L
2 logical pins (2 real pins):
Defined at: servo_micro.py:589
<class 'servo_micro.ProgrammingConnector'>, <class 'servo_micro.make_connector.<locals>.Connector'>, <class 'pcbdl.base.Part'>
Variable Name: prog
Value: FH34SRJ-8S-0.5SH(50)
Part Number: FH34SRJ-8S-0.5SH(50)
Package: HRS_FH34SRJ-8S-0-5SH
9 logical pins (10 real pins):
Defined at: servo_micro.py:594
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:597
<class 'servo_micro.FET'>, <class 'pcbdl.base.Part'>
Variable Name: boot0_q
FET Transistor
Value: CSD13381F4
Part Number: CSD13381F4
Package: DFN100X60X35-3L
3 logical pins (3 real pins):
Defined at: servo_micro.py:599
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 51.1kΩ
Part Number: R51.1k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:600
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 51.1kΩ
Part Number: R51.1k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:613
<class 'servo_micro.ServoConnector'>, <class 'servo_micro.make_connector.<locals>.Connector'>, <class 'pcbdl.base.Part'>
Variable Name: dut
Value: AXK850145WG
Part Number: AXK850145WG
Package: AXK850145WG
44 logical pins (50 real pins):
Defined at: servo_micro.py:617
<class 'servo_micro.I2cIoExpander'>, <class 'pcbdl.base.Part'>
Variable Name: io
Value: TCA6416ARTWR
Part Number: TCA6416ARTWR
Package: QFN50P400X400X080-25N
25 logical pins (25 real pins):
Defined at: servo_micro.py:618
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:621
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 4.7kΩ
Part Number: R4.7k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:622
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 4.7kΩ
Part Number: R4.7k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:624
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:627
<class 'servo_micro.LevelShifter1'>, <class 'servo_micro.LevelShifter'>, <class 'pcbdl.base.Part'>
Variable Name: mfg_mode_shifter
Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B
Value: SN74AVC1T45DRLR
Part Number: SN74AVC1T45DRLR
Package: SOP50P170X60-6N
6 logical pins (6 real pins):
Defined at: servo_micro.py:630
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:630
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 4.7kΩ
Part Number: R4.7k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:633
<class 'pcbdl.small_parts.TP'>, <class 'pcbdl.small_parts.OnePinPart'>, <class 'pcbdl.base.Part'>
Test Point
Value: TP
Part Number: TP
Package: TP075
1 logical pins (1 real pins):
Defined at: servo_micro.py:645
<class 'pcbdl.small_parts.TP'>, <class 'pcbdl.small_parts.OnePinPart'>, <class 'pcbdl.base.Part'>
Test Point
Value: TP
Part Number: TP
Package: TP075
1 logical pins (1 real pins):
Defined at: servo_micro.py:648
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:649
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 0Ω
Part Number: R0
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:652
<class 'servo_micro.JtagConnector'>, <class 'servo_micro.make_connector.<locals>.Connector'>, <class 'pcbdl.base.Part'>
Variable Name: jtag_connector
Value: HDR_2X5_50MIL-210-00939-00-SAMTEC_FTSH-105-01
Part Number: HDR_2X5_50MIL-210-00939-00-SAMTEC_FTSH-105-01
Package: SAMTEC_FTSH-105-01-L-DV-K
9 logical pins (10 real pins):
Defined at: servo_micro.py:659
<class 'servo_micro.LevelShifter4'>, <class 'servo_micro.LevelShifter'>, <class 'pcbdl.base.Part'>
Variable Name: shifter1
Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B
Value: SN74AVC4T774RSVR
Part Number: SN74AVC4T774RSVR
Package: QFN40P265X185X55-16N
16 logical pins (16 real pins):
Defined at: servo_micro.py:660
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:661
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:664
<class 'servo_micro.LevelShifter4'>, <class 'servo_micro.LevelShifter'>, <class 'pcbdl.base.Part'>
Variable Name: shifter2
Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B
Value: SN74AVC4T774RSVR
Part Number: SN74AVC4T774RSVR
Package: QFN40P265X185X55-16N
16 logical pins (16 real pins):
Defined at: servo_micro.py:665
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:666
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:669
<class 'servo_micro.Mux'>, <class 'pcbdl.base.Part'>
Variable Name: jtag_mux
Value: 313-00929-00
Part Number: 313-00929-00
Package: SOT65P210X110-6L
6 logical pins (6 real pins):
Defined at: servo_micro.py:670
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:674
<class 'servo_micro.OutputBuffer'>, <class 'pcbdl.base.Part'>
Variable Name: jtag_output_buffer
Value: SN74LVC1G126YZPR
Part Number: SN74LVC1G126YZPR
Package: BGA5C50P3X2_141X91X50L
5 logical pins (5 real pins):
Defined at: servo_micro.py:675
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:720
<class 'servo_micro.LevelShifter4'>, <class 'servo_micro.LevelShifter'>, <class 'pcbdl.base.Part'>
Variable Name: s
Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B
Value: SN74AVC4T774RSVR
Part Number: SN74AVC4T774RSVR
Package: QFN40P265X185X55-16N
16 logical pins (16 real pins):
Defined at: servo_micro.py:721
<class 'servo_micro.LevelShifter4'>, <class 'servo_micro.LevelShifter'>, <class 'pcbdl.base.Part'>
Variable Name: s
Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B
Value: SN74AVC4T774RSVR
Part Number: SN74AVC4T774RSVR
Package: QFN40P265X185X55-16N
16 logical pins (16 real pins):
Defined at: servo_micro.py:729
<class 'servo_micro.PowerSwitch'>, <class 'pcbdl.base.Part'>
Variable Name: power_switch
Value: ADP194ACBZ-R7
Part Number: ADP194ACBZ-R7
Package: BGA4C40P2X2_80X80X56
4 logical pins (4 real pins):
Defined at: servo_micro.py:730
<class 'servo_micro.PowerSwitch'>, <class 'pcbdl.base.Part'>
Variable Name: power_switch
Value: ADP194ACBZ-R7
Part Number: ADP194ACBZ-R7
Package: BGA4C40P2X2_80X80X56
4 logical pins (4 real pins):
Defined at: servo_micro.py:734
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 4.7kΩ
Part Number: R4.7k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:734
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 4.7kΩ
Part Number: R4.7k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:739
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:740
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:729
<class 'servo_micro.PowerSwitch'>, <class 'pcbdl.base.Part'>
Variable Name: power_switch
Value: ADP194ACBZ-R7
Part Number: ADP194ACBZ-R7
Package: BGA4C40P2X2_80X80X56
4 logical pins (4 real pins):
Defined at: servo_micro.py:730
<class 'servo_micro.PowerSwitch'>, <class 'pcbdl.base.Part'>
Variable Name: power_switch
Value: ADP194ACBZ-R7
Part Number: ADP194ACBZ-R7
Package: BGA4C40P2X2_80X80X56
4 logical pins (4 real pins):
Defined at: servo_micro.py:734
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 4.7kΩ
Part Number: R4.7k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:734
<class 'pcbdl.small_parts.R'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Resistor
Value: 4.7kΩ
Part Number: R4.7k
Package: RESC0603X23L
2 logical pins (2 real pins):
Defined at: servo_micro.py:739
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:740
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:764
<class 'servo_micro.AnalogSwitch'>, <class 'pcbdl.base.Part'>
Variable Name: spi1_mux
Dual Analog Switch IN DIRECTION L NC -> COM H NO -> COM
Value: TS3A24159
Part Number: TS3A24159
Package: BGA10C50P4X3_186X136X50L
10 logical pins (10 real pins):
Defined at: servo_micro.py:765
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:780
<class 'servo_micro.LevelShifter2'>, <class 'servo_micro.LevelShifter'>, <class 'pcbdl.base.Part'>
Variable Name: s
Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B
Value: SN74AVC2T245RSWR
Part Number: SN74AVC2T245RSWR
Package: QFN40P145X185X55-10N
10 logical pins (10 real pins):
Defined at: servo_micro.py:781
<class 'servo_micro.LevelShifter2'>, <class 'servo_micro.LevelShifter'>, <class 'pcbdl.base.Part'>
Variable Name: s
Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B
Value: SN74AVC2T245RSWR
Part Number: SN74AVC2T245RSWR
Package: QFN40P145X185X55-10N
10 logical pins (10 real pins):
Defined at: servo_micro.py:788
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:789
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:788
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:789
<class 'pcbdl.small_parts.C'>, <class 'pcbdl.small_parts.JellyBean'>, <class 'pcbdl.base.Part'>
Capacitor
Value: 100nF
Part Number: CY100n
Package: CAPC0603X33L
2 logical pins (2 real pins):
Defined at: servo_micro.py:512
Variable Name: vbus_in
7 connections:
Defined at: servo_micro.py:513
Variable Name: gnd
75 connections:
Defined at: servo_micro.py:532
3 connections:
Defined at: servo_micro.py:533
4 connections:
Defined at: servo_micro.py:539
Variable Name: input_rail
51 connections:
Defined at: servo_micro.py:554
Variable Name: pp1800
6 connections:
Defined at: servo_micro.py:558
4 connections:
Defined at: servo_micro.py:576
4 connections:
Defined at: servo_micro.py:591
3 connections:
Defined at: servo_micro.py:596
Variable Name: boot0
4 connections:
Defined at: servo_micro.py:599
3 connections:
Defined at: servo_micro.py:602
2 connections:
Defined at: servo_micro.py:603
2 connections:
Defined at: servo_micro.py:606
Variable Name: vref
5 connections:
Defined at: servo_micro.py:607
Variable Name: vref
7 connections:
Defined at: servo_micro.py:610
3 connections:
Defined at: servo_micro.py:611
3 connections:
Defined at: servo_micro.py:621
4 connections:
Defined at: servo_micro.py:622
4 connections:
Defined at: servo_micro.py:623
2 connections:
Defined at: servo_micro.py:626
4 connections:
Defined at: servo_micro.py:630
5 connections:
Defined at: servo_micro.py:631
2 connections:
Defined at: servo_micro.py:633
2 connections:
Defined at: servo_micro.py:634
2 connections:
Defined at: servo_micro.py:635
2 connections:
Defined at: servo_micro.py:636
2 connections:
Defined at: servo_micro.py:638
2 connections:
Defined at: servo_micro.py:640
2 connections:
Defined at: servo_micro.py:641
2 connections:
Defined at: servo_micro.py:642
2 connections:
Defined at: servo_micro.py:643
2 connections:
Defined at: servo_micro.py:644
2 connections:
Defined at: servo_micro.py:645
2 connections:
Defined at: servo_micro.py:649
2 connections:
Defined at: servo_micro.py:654
3 connections:
Defined at: servo_micro.py:656
Variable Name: jtag_vref
6 connections:
Defined at: servo_micro.py:672
2 connections:
Defined at: servo_micro.py:677
2 connections:
Defined at: servo_micro.py:678
2 connections:
Defined at: servo_micro.py:681
2 connections:
Defined at: servo_micro.py:682
2 connections:
Defined at: servo_micro.py:685
2 connections:
Defined at: servo_micro.py:686
2 connections:
Defined at: servo_micro.py:687
2 connections:
Defined at: servo_micro.py:690
2 connections:
Defined at: servo_micro.py:691
2 connections:
Defined at: servo_micro.py:692
2 connections:
Defined at: servo_micro.py:695
2 connections:
Defined at: servo_micro.py:696
3 connections:
Defined at: servo_micro.py:697
4 connections:
Defined at: servo_micro.py:699
3 connections:
Defined at: servo_micro.py:700
2 connections:
Defined at: servo_micro.py:701
3 connections:
Defined at: servo_micro.py:708
2 connections:
Defined at: servo_micro.py:709
2 connections:
Defined at: servo_micro.py:710
2 connections:
Defined at: servo_micro.py:715
3 connections:
Defined at: servo_micro.py:716
3 connections:
Defined at: servo_micro.py:734
3 connections:
Defined at: servo_micro.py:734
3 connections:
Defined at: servo_micro.py:742
2 connections:
Defined at: servo_micro.py:745
2 connections:
Defined at: servo_micro.py:752
2 connections:
Defined at: servo_micro.py:757
2 connections:
Defined at: servo_micro.py:762
2 connections:
Defined at: servo_micro.py:734
3 connections:
Defined at: servo_micro.py:734
3 connections:
Defined at: servo_micro.py:742
2 connections:
Defined at: servo_micro.py:745
2 connections:
Defined at: servo_micro.py:752
2 connections:
Defined at: servo_micro.py:757
2 connections:
Defined at: servo_micro.py:762
2 connections:
Defined at: servo_micro.py:767
3 connections:
Defined at: servo_micro.py:769
2 connections:
Defined at: servo_micro.py:770
2 connections:
Defined at: servo_micro.py:772
3 connections:
Defined at: servo_micro.py:773
3 connections:
Defined at: servo_micro.py:784
Variable Name: vref
3 connections:
Defined at: servo_micro.py:791
2 connections:
Defined at: servo_micro.py:793
2 connections:
Defined at: servo_micro.py:795
2 connections:
Defined at: servo_micro.py:797
2 connections:
Defined at: servo_micro.py:799
2 connections:
Defined at: servo_micro.py:784
Variable Name: vref
3 connections:
Defined at: servo_micro.py:791
2 connections:
Defined at: servo_micro.py:793
2 connections:
Defined at: servo_micro.py:795
2 connections:
Defined at: servo_micro.py:797
2 connections:
Defined at: servo_micro.py:799
2 connections:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 | #!/usr/bin/env python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ Full reimplementation of servo micro in pcbdl. Servo Micro's information page (including pdf schematics made in orthodox tools) can be found at: https://chromium.googlesource.com/chromiumos/third_party/hdctools/+/refs/heads/master/docs/servo_micro.md """ from pcbdl import * # Start of things that should really be in a generic library # It's a TODO to make a library. Until then, 300 lines to start a new schematic from scratch with no library is probably not bad. def make_connector(pin_count): class Connector(Part):# CN2, J3, J4 REFDES_PREFIX = "CN" PINS = [] for i in range(pin_count): i += 1 # 1 indexed pin = Pin(i, "P%d" % i) Connector.PINS.append(pin) return Connector class UsbConnector(Part):# CN1 REFDES_PREFIX = "CN" part_number = "1981568-1" package = "TE_1981568-1" PINS = [ "VBUS", ("DM", "D-"), ("DP", "D+"), "ID", "GND", Pin("G", numbers=("G1", "G2", "G3", "G4")), ] class FET(Part):# Q4 """FET Transistor""" REFDES_PREFIX = "Q" PINS = [ Pin("D", "D"), Pin("G", "G"), Pin("S", "S"), ] class Regulator(Part):# U3, U7 REFDES_PREFIX = "U" PINS = [ Pin("IN", type=PinType.POWER_INPUT), Pin("OUT", type=PinType.POWER_OUTPUT), Pin("GND", type=PinType.POWER_INPUT), ] class MIC5504(Regulator):# U3 part_number = "MIC5504-3.3YMT" package = "SON65P100X100X40-5T48X48N" PINS = [ Pin("4", "IN"), Pin("1", "OUT"), Pin("3", "EN"), Pin(("2", "G1"), ("GND", "PAD")), ] class TLV70018DSER(Regulator):# U7 part_number = "TLV70018DSER" package = "SON50P150X150X80-6L" PINS = [ Pin("1", "IN"), Pin("3", "OUT"), Pin("6", "EN"), Pin("4", "NC1"), Pin("5", "NC2"), Pin("2", "GND"), ] class UsbEsdDiode(Part):# D1 REFDES_PREFIX = "D" part_number = "TPD2E001DRLR" package = "SOP50P170X60-5N" PINS = [ Pin("1", "VCC", type=PinType.POWER_INPUT), Pin("4", "GND", type=PinType.POWER_INPUT), Pin("3", "P1"), Pin("5", "P2"), Pin("2", "NC"), ] class DoubleDiode(Part):# D2 REFDES_PREFIX = "D" part_number = "240-800MV" package = "SOT95P247X115-3L" PINS = ["A1", "A2", "K"] class STM32F072(Part):# U6 REFDES_PREFIX = "U" part_number = "STM32F072CBU6TR" package = "QFN05P_7-1X7-1_0-6_49N" PINS = [ Pin(("24", "48"), "VDD", type=PinType.POWER_INPUT), Pin("1", "VBAT", type=PinType.POWER_INPUT), Pin("9", "VDDA", type=PinType.POWER_INPUT), Pin("36", "VDDIO2", type=PinType.POWER_INPUT), Pin(("23", "35", "47"), "VSS"), Pin("8", "VSSA"), Pin("49", "PAD"), Pin("44", "BOOT0"), Pin("7", "NRST"), ] for i in range(8): PINS.append(Pin(i + 10, "PA%d" % i)) PINS += [ Pin("29", "PA8"), Pin("30", "PA9"), Pin("31", "PA10"), Pin("32", "PA11"), Pin("33", "PA12"), Pin("34", "PA13"), Pin("37", "PA14"), Pin("38", "PA15"), Pin("18", "PB0"), Pin("19", "PB1"), Pin("20", "PB2"), Pin("39", "PB3"), Pin("40", "PB4"), Pin("41", "PB5"), Pin("42", "PB6"), Pin("43", "PB7"), Pin("45", "PB8"), Pin("46", "PB9"), Pin("21", "PB10"), Pin("22", "PB11"), Pin("25", "PB12"), Pin("26", "PB13"), Pin("27", "PB14"), Pin("28", "PB15"), Pin("2", "PC13"), Pin("3", ("PC14", "OSC32_IN")), Pin("4", ("PC15", "OSC32_OUT")), Pin("5", ("PF0", "OSC_IN")), Pin("6", ("PF1", "OSC_OUT")), ] for pin in PINS: if pin.names[0].startswith("PA"): pin.well_name = "VDD" if pin.names[0].startswith("PB"): pin.well_name = "VDDA" if pin.names[0].startswith("PC"): pin.well_name = "VDDA" if pin.names[0].startswith("PF"): pin.well_name = "VDDA" class I2cIoExpander(Part):# U9 REFDES_PREFIX = "U" part_number = "TCA6416ARTWR" package = "QFN50P400X400X080-25N" PINS = [ Pin("23", "VCCI"), Pin("21", "VCCP"), Pin("9", "GND"), Pin("25", "PAD"), Pin("19", "SCL"), Pin("20", "SDA"), Pin("22", "INT_L"), Pin("24", "RESET_L"), Pin("18", "A0"), ] for i in range(8): PINS.append(Pin(i + 1, "P0%d" % i)) for i in range(8): PINS.append(Pin(i + 10, "P1%d" % i)) class Mux(Part):# U1 REFDES_PREFIX = "U" part_number = "313-00929-00" package = "SOT65P210X110-6L" PINS = [ Pin("5", "VCC"), Pin("2", "GND"), Pin("3", ("0", "IN0")), Pin("1", ("1", "IN1")), Pin("6", ("S0", "SEL")), Pin("4", ("Y", "OUT")), ] class OutputBuffer(Part):# U10 REFDES_PREFIX = "U" part_number = "SN74LVC1G126YZPR" package = "BGA5C50P3X2_141X91X50L" PINS = [ Pin("A2", "VCC"), Pin("C1", "GND"), Pin("B1", ("A", "IN")), Pin("A1", ("OE", "SEL")), Pin("C2", ("Y", "OUT")), ] class LevelShifter(Part):# U45, U59, U4, U55, U56, U57, U14 """ Bidirectional Level Shifter DIR=0 : B->A DIR=1 : A->B """ REFDES_PREFIX = "U" PINS = [ "VCCA", "VCCB", "GND", ] @property def direction_AB(self): return self.VCCA.net @property def direction_BA(self): return self.GND.net class LevelShifter1(LevelShifter):# U14 __doc__ = LevelShifter.__doc__ part_number = "SN74AVC1T45DRLR" package = "SOP50P170X60-6N" PINS = [ Pin("1", "VCCA", type=PinType.POWER_INPUT), Pin("6", "VCCB", type=PinType.POWER_INPUT), Pin("3", "A"), Pin("4", "B"), Pin("5", "DIR"), Pin("2", "GND", type=PinType.POWER_INPUT), ] class LevelShifter2(LevelShifter):# U4, U45 __doc__ = LevelShifter.__doc__ part_number = "SN74AVC2T245RSWR" package = "QFN40P145X185X55-10N" PINS = [ Pin("7", "VCCA", type=PinType.POWER_INPUT), Pin("6", "VCCB", type=PinType.POWER_INPUT), Pin("2", "OE_L"), Pin("8", "A1"), Pin("9", "A2"), Pin("5", "B1"), Pin("4", "B2"), Pin("10", "DIR1"), Pin("1", "DIR2"), Pin("3", "GND", type=PinType.POWER_INPUT), ] class LevelShifter4(LevelShifter):# U56, U59, U57, U55 __doc__ = LevelShifter.__doc__ part_number = "SN74AVC4T774RSVR" package = "QFN40P265X185X55-16N" PINS = [ Pin("14", "VCCA", type=PinType.POWER_INPUT), Pin("13", "VCCB", type=PinType.POWER_INPUT), Pin("7", "OE_L"), Pin("1", "A1"), Pin("2", "A2"), Pin("3", "A3"), Pin("4", "A4"), Pin("12", "B1"), Pin("11", "B2"), Pin("10", "B3"), Pin("9", "B4"), Pin("15", "DIR1"), Pin("16", "DIR2"), Pin("5", "DIR3"), Pin("6", "DIR4"), Pin("8", "GND", type=PinType.POWER_INPUT), ] class AnalogSwitch(Part):# U5 """ Dual Analog Switch IN DIRECTION L NC -> COM H NO -> COM """ REFDES_PREFIX = "U" part_number = "TS3A24159" package = "BGA10C50P4X3_186X136X50L" PINS = [ Pin("D2", ("V+", "VCC")), Pin("A2", "GND"), Pin("B1", ("IN1", "SEL1")), Pin("C1", "COM1"), Pin("A1", "NC1"), Pin("D1", "NO1"), Pin("B3", ("IN2", "SEL2")), Pin("C3", "COM2"), Pin("A3", "NC2"), Pin("D3", "NO2"), ] class PowerSwitch(Part):# U23, U24, U42, U43 REFDES_PREFIX = "U" part_number = "ADP194ACBZ-R7" package = "BGA4C40P2X2_80X80X56" PINS = [ Pin("A1", ("IN", "IN1")), Pin("A2", ("OUT", "OUT1")), Pin("B1", "EN"), Pin("B2", "GND"), ] # End of things that should be in a generic library # Maybe this connector could be in a library too, since it's not too specific to this servo schematic class ServoConnector(make_connector(pin_count=50)):# J3 part_number = "AXK850145WG" package = "AXK850145WG" pin_names_match_nets = True pin_names_match_nets_prefix = "DUT_" PINS = [ ("P1", "GND"), ("P2", "SPI2_CLK", "SPI2_SK"), ("P3", "SPI2_CS"), ("P4", "SPI2_MOSI", "SPI2_DI"), ("P5", "SPI2_MISO", "SPI2_DO"), ("P6", "SPI2_VREF"), ("P7", "SPI2_HOLD_L"), ("P8", "GND"), ("P9", "SPI1_CLK", "SPI1_SK"), ("P10", "SPI1_CS"), ("P11", "SPI1_MOSI", "SPI1_DI"), ("P12", "SPI1_MISO", "SPI1_DO"), ("P13", "SPI1_VREF"), ("P14", "EC_RESET_L", "COLD_RESET_L"), ("P15", "GND"), ("P16", "UART2_SERVO_DUT_TX", "UART2_RXD"), ("P17", "UART2_DUT_SERVO_TX", "UART2_TXD"), ("P18", "UART2_VREF"), ("P19", "SD_DETECT_L"), ("P20", "GND"), ("P21", "JTAG_TCK"), ("P22", "PWR_BUTTON"), ("P23", "JTAG_TMS"), ("P24", "JTAG_TDI"), ("P25", "JTAG_TDO"), ("P26", "JTAG_RTCK"), ("P27", "JTAG_TRST_L"), ("P28", "JTAG_SRST_L", "WARM_RESET_L"), ("P29", "JTAG_VREF"), ("P30", "REC_MODE_L", "GOOG_REC_MODE_L"), ("P31", "GND"), ("P32", "UART1_SERVO_DUT_TX", "UART1_RXD"), ("P33", "UART1_DUT_SERVO_TX", "UART1_TXD"), ("P34", "UART1_VREF"), ("P35", "I2C_3.3V"), ("P36", "GND"), ("P37", "I2C_SDA"), ("P38", "I2C_SCL"), ("P39", "HPD"), ("P40", "FW_WP", "MFG_MODE"), ("P41", "PROC_HOT_L", "FW_UPDATE_L", "FW_UP_L"), ("P42", "GND"), ("P43", "DEV_MODE"), ("P44", "LID_OPEN"), ("P45", "PCH_DISABLE_L", "CPU_NMI"), ("P46", "KBD_COL1"), ("P47", "KBD_COL2"), ("P48", "KBD_ROW1"), ("P49", "KBD_ROW2"), ("P50", "KBD_ROW3"), ] _postprocess_pin = Pin.second_name_important # The following part definitions are only related to this circuit class ProgrammingConnector(make_connector(8)):# CN2 part_number = "FH34SRJ-8S-0.5SH(50)" package = "HRS_FH34SRJ-8S-0-5SH" PINS = [ ("P1", "GND"), ("P2", "UART_TX"), ("P3", "UART_RX"), ("P6", "NRST"), ("P8", "BOOT0"), Pin("G", numbers=("G1", "G2")), ] _postprocess_pin = Pin.second_name_important class JtagConnector(make_connector(10)):# J4 part_number = "HDR_2X5_50MIL-210-00939-00-SAMTEC_FTSH-105-01" package = "SAMTEC_FTSH-105-01-L-DV-K" pin_names_match_nets = True pin_names_match_nets_prefix = "DUT_JTAG_" PINS = [ ("P1", "VCC"), ("P2", "TMS", "SWDIO"), ("P3", "GND"), ("P4", "TCK", "SWDCLK"), ("P5", "GND"), ("P6", "TDO", "SWO"), ("P7", "KEY"), ("P8", "TDI"), ("P9", "GNDDetect"), ("P10", "RESET"), ] _postprocess_pin = Pin.second_name_important class ServoEC(STM32F072):# U6 pin_names_match_nets = True PINS = [ Pin(("PA0", "UART3_TX")), Pin(("PA1", "UART3_RX")), Pin(("PA2", "UART1_TX")), Pin(("PA3", "UART1_RX")), Pin(("PA4", "SERVO_JTAG_TMS")), Pin(("PA5", "SPI1_MUX_SEL")), Pin(("PA6", "SERVO_JTAG_TDO_BUFFER_EN")), Pin(("PA7", "SERVO_JTAG_TDI")), Pin(("PA8", "UART1_EN_L")), Pin(("PA9", "EC_UART_TX")), Pin(("PA10", "EC_UART_RX")), Pin(("PA11", "USB_DM")), Pin(("PA12", "USB_DP")), Pin(("PA13", "SERVO_JTAG_TRST_L")), Pin(("PA14", "SPI1_BUF_EN_L")), Pin(("PA15", "SPI2_BUF_EN_L")), Pin(("PB0", "UART2_EN_L")), Pin(("PB1", "SERVO_JTAG_RTCK")), Pin(("PB2", "SPI1_VREF_33")), Pin(("PB3", "SPI1_VREF_18")), Pin(("PB4", "SPI2_VREF_33")), Pin(("PB5", "SPI2_VREF_18")), Pin(("PB6", "SERVO_JTAG_TRST_DIR")), Pin(("PB7", "SERVO_JTAG_TDI_DIR")), Pin(("PB8", "MASTER_I2C_SCL")), Pin(("PB9", "MASTER_I2C_SDA")), Pin(("PB10", "UART2_TX")), Pin(("PB11", "UART2_RX")), Pin(("PB12", "SERVO_SPI_CS")), Pin(("PB13", "SERVO_TO_SPI1_MUX_CLK")), Pin(("PB14", "SERVO_TO_SPI1_MUX_MISO")), Pin(("PB15", "SERVO_SPI_MOSI")), Pin(("PC13", "RESET_L")), Pin(("PC14", "SERVO_JTAG_TMS_DIR")), Pin(("PC15", "SERVO_JTAG_TDO_SEL")), Pin(("PF0", "JTAG_BUFOUT_EN_L")), Pin(("PF1", "JTAG_BUFIN_EN_L")), ] _postprocess_pin = Pin.second_name_important # Start of actual schematic vbus_in = Net("VBUS_IN")# VBUS_IN gnd = Net("GND")# GND def decoupling(value="100n", package=None): if package is None: package = "CAPC0603X33L" if "u" in value: package = "CAPC1005X71L" if "0u" in value: package = "CAPC1608X80L" return C(value, to=gnd, package=package, part_number="CY" + value) #defined_at: not here old_R = R def R(value, to): return old_R(value, package="RESC0603X23L", part_number="R" + value, to=to) #defined_at: not here # usb stuff usb = UsbConnector()# CN1 usb_esd = UsbEsdDiode()# D1 Net("USB_DP") << usb.DP << usb_esd.P1# USB_DP Net("USB_DM") << usb.DM << usb_esd.P2 >> usb_esd.NC# USB_DM vbus_in << usb.VBUS << usb_esd.VCC gnd << usb.GND << usb.G << usb_esd.GND # We could make this type-c instead! # 3300 regulator pp3300 = Net("PP3300")# PP3300 reg3300 = MIC5504()# U3 vbus_in << ( reg3300.IN, decoupling("2.2u"),# C9 reg3300.EN, ) gnd << reg3300.GND pp3300 << ( reg3300.OUT, decoupling("10u"),# C10 decoupling(),# C12 decoupling("1000p"),# C15 ) # 1800 regulator pp1800 = Net("PP1800")# PP1800 reg1800 = TLV70018DSER()# U7 drop_diode = DoubleDiode()# D2 pp3300 << drop_diode.A1 << drop_diode.A2 Net("PP1800_VIN") << (# PP1800_VIN drop_diode.K, reg1800.IN, decoupling(),# C22 reg1800.EN ) gnd << reg1800.GND pp1800 << reg1800.OUT << decoupling("1u", "CAPC0603X33L")# C19 ec = ServoEC()# U6 usb.DP << ec usb.DM << ec # ec power pp3300 << ( ec.VBAT, decoupling(),# C2 ec.VDD, decoupling(),# C5 decoupling("4.7u"),# C1 ) Net("PP3300_PD_VDDA") << (# PP3300_PD_VDDA ec.VDDA, L("600@100MHz", to=pp3300, package="INDC1005L", part_number="FERRITE_BEAD-185-00019-00"),# FB1 decoupling("1u"),# C4 decoupling("100p"),# C7 ) pp3300 << ( ec.VDDIO2, decoupling(),# C6 decoupling("4.7u"),# C13 ) gnd << ec.VSS << ec.VSSA << ec.PAD # ec programming/debug prog = ProgrammingConnector()# CN2 gnd << prog.GND << prog.G Net("PD_NRST_L") << (# PD_NRST_L ec.NRST, prog.NRST, decoupling(),# C8 ) boot0 = Net("PD_BOOT0")# PD_BOOT0 boot0_q = FET("CSD13381F4", package="DFN100X60X35-3L")# Q4 # Use OTG + A-TO-A cable to go to bootloader mode Net("USB_ID") >> boot0_q.G >> R("51.1k", to=vbus_in) << usb.ID# R22, USB_ID boot0 << boot0_q.D << R("51.1k", to=vbus_in) << ec.BOOT0 << prog.BOOT0# R23 gnd << boot0_q.S Net("EC_UART_TX") << ec << prog.UART_TX# EC_UART_TX Net("EC_UART_RX") << ec << prog.UART_RX# EC_UART_RX ppdut_spi_vrefs = { 1: Net("PPDUT_SPI1_VREF"),# PPDUT_SPI1_VREF 2: Net("PPDUT_SPI2_VREF"),# PPDUT_SPI2_VREF } jtag_buffer_to_servo_tdo = Net("JTAG_BUFFER_TO_SERVO_TDO") >> ec.UART3_RX # also Net("UART3_TX")# JTAG_BUFFER_TO_SERVO_TDO servo_jtag_tck = Net("SERVO_JTAG_TCK") << ec.UART3_TX # also Net("UART3_TX")# SERVO_JTAG_TCK dut = ServoConnector()# J3 gnd << dut.GND pp3300 >> dut.pins["I2C_3.3V"] io = I2cIoExpander()# U9 pp3300 << io.VCCI << decoupling()# C25 gnd << io.GND << io.PAD gnd << io.A0 # i2c addr 7'H=0x20 Net("I2C_REMOTE_ADC_SDA") << R("4.7k", to=pp3300) << ec.MASTER_I2C_SDA << io.SDA << dut.I2C_SDA# R502, I2C_REMOTE_ADC_SDA Net("I2C_REMOTE_ADC_SCL") << R("4.7k", to=pp3300) << ec.MASTER_I2C_SCL << io.SCL << dut.I2C_SCL# R501, I2C_REMOTE_ADC_SCL Net("RESET_L") << io.RESET_L << ec# RESET_L pp1800 << io.VCCP << decoupling()# C20 dut_mfg_mode = Net("DUT_MFG_MODE") << dut# DUT_MFG_MODE mfg_mode_shifter = LevelShifter1()# U14 gnd << mfg_mode_shifter.GND Net("FW_WP_EN") << mfg_mode_shifter.VCCA << io.P00 << decoupling() << R("4.7k", to=gnd)# R48, C33, FW_WP_EN Net("FTDI_MFG_MODE") << io.P01 << mfg_mode_shifter.A# FTDI_MFG_MODE dut_mfg_mode << io.P02 io.P03 << TP(package="TP075") # spare# ANON_NET_U9_P03, TP1 Net("SPI_HOLD_L") << io.P04 >> dut.SPI2_HOLD_L# SPI_HOLD_L Net("DUT_COLD_RESET_L") << io.P05 >> dut# DUT_COLD_RESET_L Net("DUT_PWR_BUTTON") << io.P06 >> dut# DUT_PWR_BUTTON Net("DUT_GOOG_REC_MODE_L") << io.P10 >> dut# DUT_GOOG_REC_MODE_L dut_mfg_mode << io.P11 Net("HPD") << io.P12 >> dut# HPD Net("FW_UP_L") << io.P13 >> dut# FW_UP_L Net("DUT_LID_OPEN") << io.P14 >> dut# DUT_LID_OPEN Net("DUT_DEV_MODE") << io.P15 >> dut# DUT_DEV_MODE Net("PCH_DISABLE_L") << io.P16 >> dut# PCH_DISABLE_L io.P17 << TP(package="TP075") # spare# TP2, ANON_NET_U9_P17 mfg_mode_shifter.direction_AB << mfg_mode_shifter.DIR ppdut_spi_vrefs[2] >> mfg_mode_shifter.VCCB << decoupling()# C29 Net("DUT_MFG_MODE_BUF") << R("0", to=dut_mfg_mode) >> mfg_mode_shifter.B# R46, DUT_MFG_MODE_BUF # JTAG jtag_connector = JtagConnector()# J4 gnd >> jtag_connector.GND Net("DUT_WARM_RESET_L") << io.P07 >> dut << jtag_connector.RESET# DUT_WARM_RESET_L jtag_vref = Net("PPDUT_JTAG_VREF")# PPDUT_JTAG_VREF jtag_vref << dut.JTAG_VREF >> jtag_connector.VCC shifter1 = LevelShifter4()# U56 pp3300 >> shifter1.VCCA << decoupling()# C109 jtag_vref >> shifter1.VCCB << decoupling()# C108 gnd >> shifter1.GND shifter2 = LevelShifter4()# U55 pp3300 >> shifter2.VCCA << decoupling()# C111 jtag_vref >> shifter2.VCCB << decoupling()# C110 gnd >> shifter2.GND jtag_mux = Mux()# U1 pp3300 >> jtag_mux.VCC << decoupling()# C11 gnd >> jtag_mux.GND Net("SERVO_JTAG_TDO_SEL") << ec >> jtag_mux.SEL# SERVO_JTAG_TDO_SEL jtag_output_buffer = OutputBuffer()# U10 pp3300 >> jtag_output_buffer.VCC << decoupling()# C3 gnd >> jtag_output_buffer.GND Net("SERVO_JTAG_TDO_BUFFER_EN") << ec >> jtag_output_buffer.OE# SERVO_JTAG_TDO_BUFFER_EN Net("SERVO_JTAG_MUX_TDO") << jtag_mux.OUT >> jtag_output_buffer.IN# SERVO_JTAG_MUX_TDO jtag_buffer_to_servo_tdo << jtag_output_buffer.OUT Net("JTAG_BUFOUT_EN_L") << ec >> shifter1.OE_L# JTAG_BUFOUT_EN_L Net("JTAG_BUFIN_EN_L") << ec >> shifter2.OE_L# JTAG_BUFIN_EN_L pp3300 >> shifter1.A1 # spare Net("SERVO_JTAG_TRST_L") << ec << shifter1.A2# SERVO_JTAG_TRST_L Net("SERVO_JTAG_TMS") << ec << shifter1.A3# SERVO_JTAG_TMS Net("SERVO_JTAG_TDI") << ec << shifter1.A4# SERVO_JTAG_TDI shifter1.direction_AB >> shifter1.DIR1 # spare Net("SERVO_JTAG_TRST_DIR") << ec >> shifter1.DIR2# SERVO_JTAG_TRST_DIR Net("SERVO_JTAG_TMS_DIR") << ec >> shifter1.DIR3# SERVO_JTAG_TMS_DIR Net("SERVO_JTAG_TDI_DIR") << ec >> shifter1.DIR4# SERVO_JTAG_TDI_DIR shifter1.B1 # spare Net("DUT_JTAG_TRST_L") << dut << shifter1.B2# DUT_JTAG_TRST_L Net("DUT_JTAG_TMS") >> dut << shifter1.B3 << jtag_connector# DUT_JTAG_TMS Net("DUT_JTAG_TDI") << dut << shifter1.B4 >> shifter2.B3 >> jtag_connector# DUT_JTAG_TDI Net("DUT_JTAG_TDO") << dut >> shifter2.B1 >> jtag_connector# DUT_JTAG_TDO Net("DUT_JTAG_RTCK") << dut >> shifter2.B2# DUT_JTAG_RTCK Net("DUT_JTAG_TCK") << dut >> shifter2.B4 >> jtag_connector# DUT_JTAG_TCK shifter2.direction_BA >> shifter2.DIR1 shifter2.direction_BA >> shifter2.DIR2 shifter2.direction_BA >> shifter2.DIR3 shifter2.direction_AB >> shifter2.DIR4 Net("SERVO_JTAG_TDO") << shifter2.A1 >> jtag_mux.IN0# SERVO_JTAG_TDO Net("SERVO_JTAG_RTCK") >> ec << shifter2.A2# SERVO_JTAG_RTCK Net("SERVO_JTAG_SWDIO") << shifter2.A3 >> jtag_mux.IN1# SERVO_JTAG_SWDIO servo_jtag_tck << shifter2.A4 # SPI1 & 2 # TODO SERVO_TO_SPI1_MUX_CLK servo_spi_mosi = Net("SERVO_SPI_MOSI") << ec# SERVO_SPI_MOSI servo_spi_cs = Net("SERVO_SPI_CS") << ec# SERVO_SPI_CS # Since the circuits look so similar, we'll just have a loop spi_shifters = { 1: LevelShifter4(),# U57 2: LevelShifter4(),# U59 } for i, s in spi_shifters.items(): # Power supply vref = ppdut_spi_vrefs[i] vref << dut.pins["SPI%d_VREF" % i] power_switches = [ ("18", pp1800, PowerSwitch()),# U23, U43 ("33", pp3300, PowerSwitch()),# U24, U42 ] for voltage, input_rail, power_switch in power_switches: gnd << power_switch.GND Net("SPI%d_VREF_%s" % (i, voltage)) << ec >> power_switch.EN << R("4.7k", to=gnd)# R96, R61, SPI2_VREF_18, R60, SPI2_VREF_33, R95, SPI1_VREF_18, SPI1_VREF_33 input_rail << power_switch.IN vref << power_switch.OUT # Level shifter setup pp3300 >> s.VCCA << decoupling()# C120, C107 vref >> s.VCCB << decoupling()# C119, C106 gnd >> s.GND Net("SPI%d_BUF_EN_L" % i) << ec >> s.OE_L# SPI2_BUF_EN_L, SPI1_BUF_EN_L # MISO Net("DUT_SPI%d_MISO" % i) << dut >> s.B1# DUT_SPI1_MISO, DUT_SPI2_MISO s.direction_BA >> s.DIR1 # A side connected after this loop # MOSI servo_spi_mosi >> s.A2 s.direction_AB >> s.DIR2 Net("DUT_SPI%d_MOSI" % i) << dut >> s.B2# DUT_SPI2_MOSI, DUT_SPI1_MOSI # CS servo_spi_cs >> s.A3 s.direction_AB >> s.DIR3 Net("DUT_SPI%d_CS" % i) << dut >> s.B3# DUT_SPI1_CS, DUT_SPI2_CS # CLK # A side connected after this loop s.direction_AB >> s.DIR4 Net("DUT_SPI%d_CLK" % i) << dut >> s.B4# DUT_SPI2_CLK, DUT_SPI1_CLK spi1_mux = AnalogSwitch()# U5 pp3300 >> spi1_mux.VCC >> decoupling()# C14 gnd >> spi1_mux.GND Net("SPI1_MUX_SEL") << ec >> spi1_mux.SEL1 >> spi1_mux.SEL2# SPI1_MUX_SEL Net("SPI_MUX_TODUT_SPI1_MISO") >> spi1_mux.COM1 << spi_shifters[1].A1# SPI_MUX_TODUT_SPI1_MISO Net("SPI_MUX_TO_DUT_SPI1_CLK") << spi1_mux.COM2 >> spi_shifters[1].A4# SPI_MUX_TO_DUT_SPI1_CLK Net("SERVO_TO_SPI1_MUX_MISO") << spi1_mux.NO1 << spi_shifters[2].A1 >> ec# SERVO_TO_SPI1_MUX_MISO Net("SERVO_TO_SPI1_MUX_CLK") >> spi1_mux.NO2 >> spi_shifters[2].A4 << ec# SERVO_TO_SPI1_MUX_CLK jtag_buffer_to_servo_tdo << spi1_mux.NC1 servo_jtag_tck >> spi1_mux.NC2 # UART 1 & 2 uart_shifters = { 1: LevelShifter2(),# U45 2: LevelShifter2(),# U4 } for i, s in uart_shifters.items(): vref = Net("PPDUT_UART%d_VREF" % i)# PPDUT_UART2_VREF, PPDUT_UART1_VREF vref << dut.pins["UART%d_VREF" % i] # Power off to VCCA or VCCB provides isolation pp3300 >> s.VCCA << decoupling()# C76, C91 vref >> s.VCCB << decoupling()# C90, C77 gnd >> s.GND Net("UART%d_EN_L" % i) << ec >> s.OE_L# UART2_EN_L, UART1_EN_L Net("UART%d_TX" % i) << ec >> s.A1# UART1_TX, UART2_TX s.direction_AB >> s.DIR1 Net("UART%d_SERVO_DUT_TX" % i) >> dut << s.B1# UART2_SERVO_DUT_TX, UART1_SERVO_DUT_TX Net("UART%d_DUT_SERVO_TX" % i) << dut >> s.B2# UART1_DUT_SERVO_TX, UART2_DUT_SERVO_TX s.direction_BA >> s.DIR2 Net("UART%d_RX" % i) >> ec << s.A2# UART2_RX, UART1_RX global_context.autoname("servo_micro.refdes_mapping") |