AnasSarkiz/Game-Boy-Enhance
This code defines a hardware schematic featuring a CPU with associated power, clock, and interface components, including specialized chips, crystals, connectors, and passive components, all structured for circuit design and simulation.
- Version
- 1.0.3
- License
- unset
- Stars
- 0
s4/POWER-CORE-REVIEW.md
# Connected power, CPU and interface stage
Entry: `power-core.circuit.tsx`. This is an **incomplete console**, with 112 populated components, six schematic sheets/sections and routing disabled on a 110 × 110 mm, four-layer placement board. Minimum via settings remain 0.45/0.30 mm. No manufacturing outputs are released.
## Implemented and checked
The exact JLCPCB imports supply all component footprints and courtyards. The S4 CPU retains C5197687 geometry but orders **T113M4020DC0 / C41411351**. The audit compares 313 connected endpoints across 50 net groups: 40 reference-derived groups plus ten game-input groups. Documented reset, board-ID and USB solder-tail/internal-path mappings are applied independently in the audit. It checks procurement identities, every CPU supply/ground role, NC106, courtyard separation and emitted DRC diagnostics.
The two TI TLV62569PDDCR stages include inductors, input/output capacitors, feedback resistors, feed-forward capacitors, enable pulls, power-good sequencing and the status LED. Nominal calculated outputs are 3.318 V and 0.906 V. Feedback lower resistors are 100 kΩ, below TI's 200 kΩ recommendation. The retained 10 pF feed-forward capacitors differ from TI's 6.8 pF example; loop stability and load transients still need qualification. [TI datasheet, section 8.2](https://www.ti.com/lit/ds/symlink/tlv62569.pdf)
CPU supply inputs now require connections; pins 28/30 are internal-LDO outputs, pins 91/129 require ground, and pin 106 must remain unconnected. Exact S4 voltage tolerances are not asserted. R11.1 moves from 3.3 V to 1.8 V because RESET belongs to VCC-RTC. The family document requires reset hold after rails settle; the retained RC network has not been proven to meet startup or brownout timing. [Allwinner tables 4-2/5-2 and section 5.12](https://dl.linux-sunxi.org/T113-S3/T113-S3_Datasheet_v1.6_20220303.pdf)
Both clocks use standard crystal primitives/symbols with unchanged imported footprints. The 24 MHz part has a catalog load specification of 8 pF. The RTC part is 32.768 kHz/12.5 pF; its imported 1.0 × 1.8 mm lands at 2.5 mm spacing agree with the Epson drawing. External capacitors remain 10 pF and 18 pF respectively; actual stray capacitance, drive and startup margins require measurement. [Main clock catalog](https://www.lcsc.com/product-detail/C7294624.html), [Epson manufacturer drawing](https://datasheet.lcsc.com/datasheet/pdf/d4d1bd2e87b2e72a8e8e7fe7d590f4c0.pdf?productCode=C32346)
The CPU decoupler rows retain their radial distance from the reference. Extra spacing runs along each edge. Bulk capacitors and crystals/load capacitors have explicit layout overrides to clear imported courtyards and shorten clock connections. These are placement changes; high-frequency return paths remain unrouted.
The pre-route DXIN analysis totals 10.46 mm across its three estimated branches. This is not a routed clock length or a timing pass. The routing-difficulty report flags a region near C23 at an estimated 16% failure probability; this is a solver heuristic, not a measured outcome. Both reports are refreshed for the 112-component stage and retained for later fanout/routing. These checks do not exercise a router.
## What remains
- **R8/R9 are the two remaining reference components**, because neither their values nor the monitored input are defined. The ADC measurement function remains unfinished; it is not designated DNP.
- USB-C power/recovery, the 512 MB SD storage and clock-gated FEL button, boot/ID pulls, and all ten game inputs are connected. [INTERFACE-REVIEW.md](INTERFACE-REVIEW.md) records manufacturer checks, pin mappings and deviations.
- HDMI/audio, a powered controller USB host port, debug header, USB input-current management and firmware are unfinished console functions.
- Exact S4 package/ground-land approval, all voltage limits, sequencing, load budgets, brownout reset, regulator stability, effective decoupling and thermal performance remain open.
- No routed copper, ground planes, fanout result, impedance check or prototype test exists. Netlist agreement and placement DRC cannot prove operating functionality or assembly shorts.
## Reproduce
```sh
# To refresh reference positions, use KiCad's Python with pcbnew:
# <KiCad Python> scripts/extract-s4-placement.py
bun run generate:s4:core
bun run typecheck
bun run audit:s4:imports
bun run check:s4:netlist
bun run check:s4:placement
bun run build:s4:core
bun run audit:s4:core
bun run preview:s4:sheets
```
`audit:s4:core` fails on emitted errors **or warnings**, independently of the CLI exit status. The isolated CPU preview is separately retained as a negative test: `audit:s4:cpu` expects exactly 22 missing-required-connection errors after its build, rather than treating the deliberately unwired fixture as a valid circuit.