# The chip rule: what the PC-FX shares with the PC Engine line The rule (charter, "Cores and boards"; Aubrey 2026-10-21): CPUs always get their own core; other chips stay in their board until **a second family board** needs them, then they are extracted with history and pinned by both. The PC-FX is that second board for two PC Engine chips. | Chip | In the family today | PC-FX use | Second board? | Recommendation | | --- | --- | --- | --- | --- | | V810 | (new) | the CPU | Virtual Boy too | its own core, `v810-python` (CPU) | | **HuC6270 VDC** | `pcengine-python/src/pcengine_python/vdc/` (1,166 lines; the SuperGrafx's second VDC is a second instance from the base board, an add-on, not a second board) | two VDCs | **yes** | **extract now** into `huc6270-python` (open decision 1) | | **PSG (C6280)** | `pcengine-python/src/pcengine_python/psg/` | inside the HuC6230 SoundBox (OBSERVED: MAME's `huc6230` contains an `HuC6280 PSG` device; T15: "Very similar to PSG in PC-Engine") | **yes** | **extract with the VDC** into its own core (open decision 2) | | HuC6260 VCE | `pcengine-python/vce.py` | not present (the HuC6261 replaces it) | no | stays | | HuC6280 CPU | `huc6280-python` | not present | no | (already a core) | | HuC6261, HuC6272, HuC6271, HuC6230's ADPCM | (new) | here only | no (the PC-FXGA is the same chips on a PC card: a machine row of this board) | stay in pcfx-python | | CD drive, disc reading | `pcenginecd-python` (`scsi.py`, `disc.py`) | a different drive; same image formats | partly | no extraction; reuse `disc.py` by pin if its interface fits (cdrom.md, open decision 4) | ## What extracting the HuC6270 involves (read at pcengine-python 62d878c) pcengine-python already prepared for it: the VDC and PSG "sit behind import-boundary tests so a later extraction (PC-FX for the VDC family; nothing for the PSG) is a move, not a rewrite" (its `docs/start-here.md`; module state is forbidden, so a second VDC is a second instance). Three couplings remain, and each is a PC-FX need: 1. **Timing comes from the PC Engine's machine module.** `vdc/chip.py` and `vdc/sequencer.py` import `HSYNC_CLOCKS` and `LINE_CLOCKS` from `pcengine_python.machine` (237 and 1,365 master clocks; the VCE's line). On the PC-FX the HuC6261 drives the VDCs' sync and dot clock. The core needs the line geometry as a constructor parameter (a "video timing" value the board supplies), with the PC Engine's numbers as the PC Engine board's argument. 2. **The CPU port is 8-bit.** `Vdc.read/write(offset, ...)` decode ports 0-3 as select, unused, low byte, high byte (the HuC6280's ST0/ST1/ST2). The chip has a 16-bit data bus and an `8/16` pin (PFI's pinout); the PC-FX uses halfword ports. The core needs a 16-bit port mode (a constructor flag mirroring the pin), whose semantics (does a 16-bit VWR write behave as low-then-high?) are U21 and must be written from evidence, not guessed: Hudson's manual (HUD) describes the 16-bit mode, to be read at extraction. 3. **The pixel output** goes to the PC Engine's VCE path. The core's output must be the chip's own: VD0-VD7 plus SP8G per dot, which the PC Engine board feeds to the VCE and the PC-FX board to the HuC6261. And one wait: the PC Engine's VDC holds the CPU through `/BUSY` (chip.py's `_data_access`); on the PC-FX `/BUSY` goes to the V810's READY. The core already returns the delayed time; the boards translate it. ## Why now, and how Extraction moves files with history into `huc6270-python`, pinned by pcengine-python, supergrafx-python (through the base board), the PC Engine Rust tiers (later, by merges) and pcfx-python. pcengine-python's gates (its picture tests and lockstep recordings) must pass unchanged after the move; that is the extraction's exit test. The three couplings above are added as parameters with the PC Engine's values as defaults, so the PC Engine boards do not change behaviour. The same holds for the PSG with fewer couplings (its `write(offset, value, mclk)` interface and a 3.58 MHz clock both boards share). This is Aubrey's call (it touches public, released repositories: pcengine-python and its Rust tiers are public). The recommendation is to do it **when pcfx-python's build reaches its VDC milestone**, not before: the extraction is cheap now that the boundaries exist, and doing it at the moment of need keeps the PC Engine line undisturbed until a consumer actually imports the core.