← All tasks
EDA 03Reverse Engineering & Optimization

Close timing on a 14-layer SoC module

Tools
KiCad, ngspice, Python
Time limit
8 hours

Agent is asked to do the timing-closure pass on a routed 14-layer PolarFire SoC module so it can go to SI review and fabrication.

Agent Input

What the agent is given: the instruction and its input files.

instruction.md

Our 14-layer PolarFire SoC module is routed, but none of its interfaces has been timing-matched yet. Do the timing-closure pass so the board can go to SI review and then to fab. The KiCad project is in /workspace/project; save your work there, in its board file polarfire-som.kicad_pcb. The project and this request are the only sources.

Match each group to within the skew shown:

InterfaceGroupSkew
LPDDR4each byte lane: DQ, DMI and DQS1 ps
LPDDR4command, address and control (CA, CS, CKE, ODT) with CK2 ps
SDIO (Wi-Fi)clock, command and data1 ps
MIPI DSI1the four data lanes1 ps
MIPI CSI CAM0clock and data lanes1 ps
HDMI redriverprocessor to redriver inputs, clock included, end to end through the coupling capacitors1 ps
MIPI CSI CAM1clock and data lanes1.5 ps
HDMI0the three data lanes1.5 ps
eMMC, SD cardclock and data of each15 ps
USB ULPI, CrossLink video buses 0 and 1, memory mux, system-controller SPIeach bus with its clock and control lines (the ULPI clock end to end through its series resistor)10 ps
Every differential pairP to N1 ps

The memory and storage groups matter most (LPDDR4, eMMC, SD card, the memory mux and the system-controller SPI to its flash): the board cannot boot without its memory and its boot storage, so nothing else on it can even be tested.

Skew is measured along each signal's path, from pad centre to pad centre: copper the signal does not travel along, such as a duplicate track, does not count, and a new stub, loop or branch on a matched net fails its group. Where a track doubles back on itself, as meander legs do, keep its two parts at least 0.15 mm apart, copper edge to copper edge: closer, or touching, fails its group too. The package delays are already entered on the pads as pad-to-die lengths; count them at the inner-layer speed, with no uncertainty of their own. The solder mask's εr is 3.3. Treat delay on the outer layers as uncertain to ±4 % and on the inner layers to ±1 %: the matching has to hold across that range.

You own the routing: re-route, change layers or add through vias wherever you need to. Keep the circuit, the stackup and its through-via process, the impedance rules, and the positions of the ICs (the parts labelled U), the connectors (labelled J), the mounting holes (MP1 to MP4) and the board outline. Other parts may move. Leave DRC no worse than you found it.

You have 28800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.

/workspace/project/polarfire-som.kicad_pcb

Grading & Reference Solution

How the submission is scored, and a human expert-authored reference solution.

rubric

Gates

G1Submission correctness
Pass / fail

The board is there and KiCad can work with it.

  • Board present · polarfire-som.kicad_pcb is in the project folder.
  • KiCad reads the board · KiCad loads the board file.
  • Zones refill and DRC runs · KiCad refills every zone and runs DRC on the board.
G2Design integrity
Pass / fail

Circuit, routing, fixed parts and stack-up kept; nothing shorted.

  • No net changed · Each net joins the same pads it joined on the start.
  • No pad left without its net · Every pad keeps the net it had.
  • Part values unchanged · Every part keeps its value.
  • Nothing unconnected · DRC's count of unconnected items.
  • ICs, connectors and holes in place · Parts labelled U and J and mounting holes MP1–MP4 not moved.
  • Their pads unchanged · Positions, sizes, shapes, drills and layers of those parts' pads.
  • Outline unchanged · The board outline.
  • No new copper contact · New contact between two nets' copper, arcs included; a net on an unconnected eMMC ball is allowed.
  • No new KiCad short · New item pair joining two nets in KiCad's short report.
  • Stack-up unchanged · Layers, their order, thicknesses and materials.
  • Through vias only · Every via runs through the whole board.
  • Ground planes kept · Refilled ground copper on each of the six plane layers vs the start.

Scored Categories

P03Memory and storage
30.8%

Nine timing units, 86 nets: memory and boot storage groups.

  • No memory group left open · Gate: 9 groups, pad to pad, worst corner, vs start skew; any left open scores Memory and storage 0.
  • LPDDR4 byte lane×4 · DQ0–DQ7, DMI and DQS pair per lane: 11 nets, weight 11; DQS also matched P to N.
  • LPDDR4 command, address and control with CK · CA, CS, CKE and ODT with the CK pair: 11 nets, weight 11.
  • eMMC clock and data · 9 nets, weight 9.
  • SD card clock and data · 9 nets, weight 9.
  • Memory mux bus · The bus with its clock and control lines: 9 nets, weight 9.
  • System-controller SPI · The SPI to the NOR flash U3: 4 nets, weight 4.
  • Measure valid and sign-off clean · Part of each unit, not scored alone. No track doubling back within 0.15 mm or touching; no new stub, loop or branch. No sign-off fault: width not in the rule file for the net class (over 1 mm per net), > 2.5 mm uncoupled track added to a pair, crosstalk up > 10 points, added via > 1.25 × max(1 mm, start's farthest) from a ground via or of a size the start's process can't make, track on a reference plane, new DRC item.
P05Interfaces
23.1%

33 work units (9 buses, 24 stand-alone pairs, 130 nets); 16 kept pairs (32 nets) matched at start.

  • No interface group left open · Gate: 9 buses (not pairs), pad to pad, worst corner, vs start skew; any left open scores Interfaces 0.
  • SDIO (Wi-Fi) bus · Clock, command and data: 6 nets.
  • MIPI DSI1 data lanes · Four data lanes as a group; D2, D3 P to N (D0, D1 are kept units): 8 nets.
  • MIPI CSI CAM0 · Clock and data lanes as a group, and each pair P to N: 6 nets.
  • HDMI redriver inputs · Processor to redriver through coupling capacitors, clock included, group and each pair: 8 nets.
  • MIPI CSI CAM1 · Clock and data lanes as a group; D0, D1, D3 P to N (clock, D2 are kept units): 10 nets.
  • HDMI0 data lanes · Three data lanes as a group; TX0, TX2 P to N (TX1 is a kept unit): 6 nets.
  • USB ULPI bus · Bus with clock and control, clock end to end through its series resistor: 12 nets.
  • CrossLink video buses 0 and 1×2 · Each bus with its clock and control lines: 13 nets each.
  • Stand-alone pairs to match×24 · Pairs unmatched at start (PCIe, SGMII, Ethernet, USB, HDMI0 and DSI1 clocks, others), P to N: 2 nets each.
  • Pairs kept matched×16 · 11 pairs matched at start plus 5 inside unmatched buses (CAM1_C, CAM1_D2, DSI1_D0, DSI1_D1, HDMI0_TX1); a bus's fault not charged twice.
  • Measure valid and sign-off clean · Part of each unit, not scored alone. No track doubling back within 0.15 mm or touching; no new stub, loop or branch. No sign-off fault: width not in the rule file for the net class (over 1 mm per net), > 2.5 mm uncoupled track added to a pair, crosstalk up > 10 points, added via > 1.25 × max(1 mm, start's farthest) from a ground via or of a size the start's process can't make, track on a reference plane, new DRC item.
P02Power delivery
30.8%

15 kept units, one per rail: re-routing must not cut a pour or neck a supply track.

  • Supply rail DC paths kept×15 · DC resistance between every two pads of each rail vs the start, pours taken as equipotential.
P08Manufacturing and compliance
15.4%

13 kept units: DRC no worse than start off timing nets (timing-net items fail their unit).

  • No new DRC item of a scored kind×12 · One unit each: crossing, clearance, width, copper to edge, hole clearance, hole to hole, co-located holes, mask bridge, dangling track, dangling via, courtyards, starved thermals. New = more items and a new pair.
  • No new DRC item of other kinds · All other kinds, one unit. Excluded: via size, footprint library, silkscreen and text, isolated copper and slivers, pair gap, shorts (a gate).
polarfire-som.kicad_pcb (reference)