Design laptop mainboard from an empty board
- Tools
- KiCad, Freerouting, Python, pdftotext, pdftoppm
- Time limit
- 8 hours
Agent is asked to design a new mainboard for the MNT Pocket Reform, schematic and board, ready to order, that drops into laptops people already own.
Agent Input
What the agent is given: the instruction and its input files.
We're making a mainboard for the MNT Pocket Reform that drops into laptops people already own. Owners keep everything else: the case and side panels, the keyboard, the charger and headset/switch boards, the display, the CPU module and the software. Only the mainboard is new, and it hasn't been designed yet. Design it, schematic and board, ready to order.
The KiCad 10 project is in /workspace/project (keep its file names). It has the board outline, the mounting holes and
standoffs, and every connector placed where the case and the cables need it, plus our footprint, symbol and 3D-model
libraries. None of those parts may move.
/workspace/product is the rest of the laptop:
case/: the enclosure models. Nothing on the board may touch them.boards/: the KiCad projects of the case plates (the side panels among them), the keyboard, the charger and the headset/switch board.connectors.md: the pinouts of the display's cable, the modules' DisplayPort cable, the debug header and the two M.2 slots.modules/: for each CPU module we support, its adapter board (the module side of the slot and of its display cable) and its Linux devicetree, plus the slot's template. The board has to work with both modules.firmware/: the source of the system controller's and the keyboard's firmware.
Each folder's source is listed in /workspace/product/README.md.
The devicetrees and the firmware ship as they are, so the board has to match them.
Above all, the laptop has to turn on from its keyboard.
J3 is a USB 3 port in both plug orientations. J14 is the charging port: the firmware accepts up to 20 V from a USB-PD charger there.
Parts come from our approved list, /workspace/datasheets/approved_parts.csv, with the vendors' documents beside it. Any
resistor or capacitor value is fine. Give every other part its LCSC number, in the LCSC field the placed parts already
have. All parts go on the top side: our assembler doesn't do the bottom.
The board is built on our fab's standard 1.0 mm 6-layer stack (JLC06101H-3313), top to bottom. The project already has it set:
| Layer | Thickness | Dielectric constant |
|---|---|---|
| F.Cu | 0.035 mm | |
| prepreg 3313 | 0.0994 mm | 4.1 |
| In1.Cu | 0.0152 mm | |
| core | 0.25 mm | 4.6 |
| In2.Cu | 0.0152 mm | |
| prepreg 7628 | 0.2028 mm | 4.4 |
| In3.Cu | 0.0152 mm | |
| core | 0.25 mm | 4.6 |
| In4.Cu | 0.0152 mm | |
| prepreg 3313 | 0.0994 mm | 4.1 |
| B.Cu | 0.035 mm |
Solder mask is 0.015 mm over the tracks and 0.03 mm over bare laminate, dielectric constant 3.8.
The process allows track and clearance 0.15 mm, and tracks down to 0.1 mm where a pair's impedance needs them; via 0.35 mm with a 0.2 mm hole, hole to copper 0.2 mm, hole to hole 0.25 mm and copper to edge 0.05 mm. Through vias only.
The supplies carry these loads, all at once, except that system power from J1 never exceeds 4 A:
| Supply | Loads |
|---|---|
| System power, from J1 | 4 A at most |
| 5 V | the CPU module 2 A, each USB-C port's VBUS (J3, J14) 1.5 A, the keyboard's USB (J6) 0.5 A, the speaker amplifier 0.4 A, HDMI's 5 V 55 mA |
| 3.3 V | each M.2 card (J10, J12) 2 A, the USB hub 0.1 A and 0.31 A into its 1.1 V core supply, the display's backlight (J13) 0.5 A, the microSD card 0.2 A, the 1.8 V rail 0.15 A |
| Always-on 3.3 V | the system controller 52 mA and its flash 25 mA, the keyboard (J5) 0.2 A, the Qwiic connector (J20) 0.1 A |
| Charging | 3 A from J14 to the charger (J1 pins 3 and 4) |
At these loads, copper and ground may lose at most 3 % of each supply on its way to each load, and no track, via or pour may rise more than 20 °C (IPC-2221).
Hand the board in clean: schematic and board agree, no shorts, and no DRC or ERC error under the project's own rules
and settings.
KiCad 10 (kicad-cli, the pcbnew Python module), Freerouting 2.5.0 (freerouting, an autorouter that reads a Specctra
.dsn file and writes a .ses session, both of which pcbnew can export and import), Python with numpy, scipy, shapely
and OCP (OpenCascade, for the case models), pdftotext and pdftoppm are installed.
You have 28800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.

Grading & Reference Solution
How the submission is scored, and a human expert-authored reference solution.
Gates
The project is there and KiCad 10 can run on it.
- Files present×2 · The board and the root schematic of the project.
- KiCad runs×4 · Zone refill and DRC, board load, ERC and netlist export, under the start's rules.
Stack, outline and fixed parts kept; schematic and board one design; nothing shorted.
- Stack as built · Six-layer stack: layers, order, thicknesses, materials.
- Through vias only · No blind or buried vias.
- Outline unchanged · The board outline.
- Fixed parts in place · Holes, standoffs, module slot and every fixed connector at their start positions.
- Same parts · Same parts in both; holes, standoffs and netless board-only parts may be missing from schematic.
- Same connections · The parts are joined the same way in schematic and board.
- No short · Copper items of different nets touching, as DRC finds them.
- No track crossing · Tracks of different nets crossing on one layer.
- Every part on top · Every assembled part on top; test points and fiducials may be underneath.
Powers the module, can be switched on, nothing overdriven or overheating.
- Module powered · Module's connected 5 V pins on one regulated supply; DC solve of copper and ground, all design loads at once.
- System controller powered · RP2040 IOVDD on an always-on supply, so the laptop can be switched on.
- No part past its absolute maximum · Every rail vs each part's datasheet absolute max, with 20 V charger on J14 VBUS and through diodes it feeds.
- Turns on from the keyboard · From copper: RP2040 runs (RUN not low, TESTEN not high, flash and crystal wired), hears keyboard UART, reaches PCA9557 at firmware address; keyboard, expander, flash powered while off; power-on output switches module 5 V.
- No copper far over its rating · Every via, track, pour at design currents vs its 20 °C-rise current (IPC-2221 outer-layer formula, all layers).
Scored Categories
Supplies, their regulators and every chip's supply pins vs firmware, modules, datasheets.
- Supplies×11 · Work. J1 system power to regulators (direct or ideal diode) with ground; J14 VBUS to charger; seven rails (switched module 5 V, modem 3.3 V, backlight, display 1.8 V, hub 3.3 V and core, always-on standby 3.3 V, audio 3.3 V); fixed connectors' power and ground.
- Regulators×9 · Work. Each of nine rails' regulator or switch meets its datasheet (set-point, parts, enable) and carries its loads.
- Other regulators · Kept. Every other fitted regulator or switch meets its datasheet.
- Supply pins of the required chips×11 · Work. Supply pins on datasheet-allowed rails, grounds on ground, for 11 required chips (RP2040, flash, hub, USB-C mux, PD controller, HDMI ESD, USB-UART, codec, both expanders, RTC).
- Supply pins of other parts×16 · Kept. Same for fitted optional parts (translators, EEPROM, regulators, switches, ESD, oscillators).
Rail copper solved at design currents; capacitors at the pins.
- Category gate: copper within its rise · Gate: every via, track, pour on rails at load and charging path at 3 A vs IPC-2221 20 °C-rise current, unless it would pass on an outer layer. Fail scores 0.
- Voltage drop×9 · Work. DC solve of each rail's copper and ground: system, 5 V, both USB-C VBUS, 3.3 V, SSD 3.3 V, hub core, standby, 1.8 V.
- Current rating×10 · Work. Same nine rails plus charging path: nothing over its IPC-2221 20 °C-rise rating at design currents.
- Decoupling, required chips and connectors×13 · Work. Datasheet capacitance on its own rail at each supply pin of the 11 chips, J12 (modem) and J2.
- Decoupling, optional chips×4 · Kept. The same for the four optional chips, where fitted.
- Switching loops×5 · Kept. Bucks' input and high-frequency input capacitors, inductor, boot capacitor, catch diode at their pins.
The microSD card, the SSD and the system controller's flash.
- microSD lines×7 · Work. D0–D3, CMD, CLK from module 1.8 V to card supply level; card detect to module, pulled up, other side grounded.
- PCIe pairs×3 · Work. TX, RX, reference clock module to SSD slot. Along copper: skew; 2D-solved differential impedance (≤ 2 mm or 10 % outside window); ground beside (no split, ≤ 1 mm over holes).
- SSD slot×3 · Work. 3.3 V switched by PCIe power bit, PERST# from each module PCIe reset, decoupling.
- Flash lines×6 · Kept. RP2040's six QSPI lines to its flash (needed by the turn-on check).
The board is wired and its parts sit where they must.
- Key connections made · Work, scored as a share. Key's point-to-point links made in copper through series parts; ground groups count once; merged signals count none.
- Every connection made · Kept. Every connection in the board's own netlist.
- Parts inside the outline · Kept.
- Regulator parts placed×3 · Kept. Bucks' feedback dividers, VCC capacitors and LDO capacitors at their pins.
- Nothing too tall under the cards · Kept. Parts under the module and under an M.2 card.
USB, display, HDMI, DisplayPort, Ethernet, peripherals vs firmware, devicetrees, datasheets.
- Category gate: fast links mostly right · Gate: 10 fast links (module USB to hub, DSI, HDMI, DisplayPort, Ethernet, five USB links); a bad pair fails its link. Over half failing scores 0.
- USB×18 · Work. Module USB 2/3 to hub, both USB-C SuperSpeed lanes (J14 via mux), keyboard and modem on hub ports, USB 2 switches per mode, hub resistors, RP2040 27 Ω, CC, PD, SBU, each port's switched current-limited VBUS and capacitance. Pairs measured as for PCIe.
- MIPI DSI×6 · Work. Four data lanes and clock, module cable to display cable, each a pair; lanes timed to the clock.
- Panel×2 · Work. Panel enable/PWM from expander and controller, pulled up to 3.3 V; backlight enable from module.
- HDMI×9 · Work. Three TMDS pairs and clock through both ESD pins; DDC, CEC, hot plug via level shifter with pulls; 5 V from TPD12S521 switch.
- DisplayPort×7 · Work. Four lanes J9 to USB-C, P to + in every carrying mux mode, matched; AUX via capacitors, biased; hot plug.
- Ethernet×7 · Work. Pairs A–D via magnetics to connector, centre taps both sides (75 Ω on cable side), connector grounds and shell.
- Peripherals×29 · Work. Controller I2C (one pull-up per line to standby 3.3 V), keyboard and module UARTs, SPI, wake, LED, power switch; module I2C to codec and RTC (always-on); five audio lines, headphone, mic, speaker, headset ground; USB bridge and debug UARTs; SIM and seven modem lines.
- Translators and USB resistors×2 · Kept. Translators' direction and enable held, A side ≤ B side; RP2040 USB series resistors at its pins.
The three crystals, the resets and the straps.
- Category gate: crystals wired short · Gate: each crystal's nets plus resistors joining them. Any longer scores 0.
- Crystals×3 · Work. Hub 24 MHz (1 MΩ across, case grounded), RP2040 12 MHz, RTC 32.768 kHz, each with its load.
- Resets and straps×10 · Work. Hub reset and straps (plain USB 3 hub), RP2040 RUN, TESTEN, boot switch, expander at 0x19 reset high, mux at 0x54 on 3.3 V I2C, modem reset and power-off, display and codec resets, module boot select.
- EEPROM write protect · Kept. Not left floating, where an EEPROM is fitted.
- Crystals placed×3 · Kept. Each crystal at its chip.
ESD protection, the parts list, KiCad's DRC and ERC.
- USB-C ESD · Work. ESD on every SuperSpeed and USB 2 line of both USB-C connectors.
- HDMI ESD circuit · Work. The TPD12S521's bypass capacitor, bias and grounds.
- ESD parts placed×2 · Kept. The USB-C and HDMI ESD parts at their connectors.
- Approved parts×3 · Kept. Non-passives on approved list by LCSC number and footprint; resistors and capacitors in listed packages; pads where footprints have them.
- DRC clean · Kept. KiCad DRC, project rules (shorts in G2, open connections in P04, footprint self-pad items aside).
- ERC clean · Kept. KiCad ERC, the start's own unconnected pins apart.
- Schematic fields agree · Kept. Value, footprint, LCSC number and fitting match between schematic and board.
