velxio/test/test_intel/autosearch
David Montero d5ab6ba6b9 test_intel: phase D — 4002 RAM chip (basic skeleton)
The 4002 is the data/IO partner of the 4004/4040. 16-pin DIP, 80
nibbles (4 registers × 16 main chars + 4 status chars each), plus
4 dedicated output port pins driven by the WMP instruction.

This skeleton:
- Pin contract registered (D0..D3, O0..O3, SYNC, CL, RESET, CM,
  VDD, VSS).
- Storage allocated (main[4][16] + status[4][4] arrays).
- SYNC + own timer + CM-strobe gating tracks the SRC chip-select
  latch at X2/X3 (compile-time RAM4002_CHIP_PAIR selects which of
  4 chip pairs this instance responds to).
- RESET clears storage and drops output port to 0.

Not yet implemented (Phase D-2 follow-up): full SRC + WRM/RDM/WR0..3/
RD0..3 round-trip with the 4004. The 4004 chip currently stubs
those I/O instructions, so even though the 4002's address-latching
works, no data ever flows. Requires modifying 4004.c to drive the
bus during X2/X3 of SRC and during M2 of the I/O group.

Tests: 2/2 passing (pin contract + RESET behaviour). Total
test_intel: 111→113 passing. The 4-chip 4004 ecosystem (4001 +
4002 + 4004 + canvas-deployable variants) now exists.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 00:38:36 +02:00
..
pdfs autosearch: Intel 8086 + 8282 spec + reference impls 2026-04-30 03:53:36 +02:00
00_README.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
01_velxio_chip_capabilities.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
02_intel_chips_overview.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
03_emulation_strategy.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
04_open_source_emulator_references.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
05_open_questions.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
06_8080_authoritative_spec.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
07_reference_implementations_8080.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
08_27c256_eprom_pinout.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
09_hm62256_sram_pinout.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
10_z80_authoritative_spec.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
11_z80_reference_implementations.md autosearch — Research notes for Intel + Z80 custom-chip emulation 2026-04-29 22:24:02 +02:00
12_4004_authoritative_spec.md autosearch: Intel 4004/4040 spec + reference impls 2026-04-29 22:37:16 +02:00
13_4040_authoritative_spec.md autosearch: Intel 4004/4040 spec + reference impls 2026-04-29 22:37:16 +02:00
14_4004_4040_reference_implementations.md autosearch: Intel 4004/4040 spec + reference impls 2026-04-29 22:37:16 +02:00
15_8086_authoritative_spec.md autosearch: Intel 8086 + 8282 spec + reference impls 2026-04-30 03:53:36 +02:00
16_8086_reference_implementations.md autosearch: Intel 8086 + 8282 spec + reference impls 2026-04-30 03:53:36 +02:00
17_8282_pinout.md autosearch: Intel 8086 + 8282 spec + reference impls 2026-04-30 03:53:36 +02:00
18_complete_emulation_plan.md test_intel: phase D — 4002 RAM chip (basic skeleton) 2026-05-01 00:38:36 +02:00