

MemDaughterCard
6502-based multi-tasking hardware and software project
- Size
- 87 × 67 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 13
- Nets
- 57
- Pads
- 240
- Tracks, vias
- 890, 0
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 10 Sep 2024
- Updated
- 7 Nov 2026
Overview
MemDaughterCard is an open-source printed circuit board by danstruthers, from the danstruthers/hydra-16 repository on GitHub. It is a 2-layer board of 87 × 67 mm with 13 parts on 57 nets, routed with 890 tracks and 0 vias.
It is built around the 74HC139D. Its parts include 5 capacitors, 5 ICs and 3 connectors.
Main components
1README
README.mdHydra 16
A multitasking 65C02 computer and its operating system, HydraOS.
The Hydra-16's hardware gives each of 16 tasks its own 32K of RAM, zero page and stack included, with its own RAM and ROM bank selections, so a task switch is one register write. HydraOS runs on it, Plan 9's way:
- One kernel in the BIOS ROM: a preemptive scheduler, one interrupt path, notes, memory and banks, and a jump table made from a specification. Everything else is a module of the paged ROM, run in place in a task of its own.
- A base to build on: the kernel, a serial console driver, the kernel's devices and Woz's monitor are the base (
base/), which HydraOS is built on and which boots on its own: write an OS of your own on it. - Everything a file: devices are file servers (the console's windows, the disks and HydraFS, sound, GPIO and I2C, the clock, the Vera X, and
/pc, a folder on the PC over the serial line), and each task has a namespace of its own, built by binds and mounts. - Shells and languages: rc, Plan 9's shell, and the core tools; HyForth (Forth 2012), the login shell; hylang (danlang, a lisp); HyBASIC (QuickBASIC's kind, every number exact); SDKs for C (cc65) and assembly, and
as, an assembler on the Hydra itself. - Tools: a screen editor (
edit), a debugger (db), a song player that plays ZSM songs and compiles scores as it plays.
The code is built with cc65 (https://cc65.github.io/), and the board is designed in KiCad 9 (https://www.kicad.org).
Quick start
cd base
node build.js the base alone: the kernel, ser, kdev, the monitor (bin/bios_*.bin, bin/prom0.bin)
node sim/run.js -i its monitor in your terminal (Ctrl-A x quits)
cd ../reborn
node build.js build HydraOS (needs Node.js and cc65): bin/bios_*.bin, bin/prom0.bin ...
node sim/run.js -i use the Hydra in your terminal, in the emulator (Ctrl-A x quits)
node sim/web.js the emulator in a browser: one file, bin/hydra-16.html, to open (in Git: no
Node.js needed to use it)
node sim/test.js the regression testsThe ROM images are in Git (reborn/bin/) and on each GitHub release, so the chips can be programmed without a toolchain.
Documentation
The Hydra-16 book is everything, in order: what the machine is, the board and how to build it (the parts, the layout, the quirks), the kernel and its calls, the drivers, the shell, the languages, the tools, the emulator, and the programming guide. It's also one PDF, to print.
| Chapter | |
|---|---|
| 1. The Hydra-16 at a glance | The ideas, the software in layers, and a first hour in the emulator |
| 2. The hardware | The architecture, the devices, the parts, building it, the layout, the quirks, the cards |
| 3. The base | The boot, the kernel, files and namespaces, the system calls, the monitor |
| 4. The drivers | The serial console, the kernel's devices, storage, sound, GPIO, video |
| 5. The shell: rc | Plan 9's shell |
| 6. The languages | HyForth, hylang, HyBASIC, and the numbers they share |
| 7. The tools | The core tools, the editors, the debugger, the assembler and disassembler |
| 8. The emulator | The emulator, the build, the tests, the PC tools |
| 9. The programming guide | Assembly, C, servers and drivers, libraries, your own OS, every system call |
How it was designed, and where it stands: the plan and the design notes.
Repository
| Folder | What |
|---|---|
base/ | The base: the kernel (the BIOS ROM), the system calls' specification, the console driver ser, the kernel's devices kdev, the monitor wozmon, the assembly SDK's core, the board's emulator and the tests' runner |
reborn/ | HydraOS, on the base: its modules, the SDKs, the ROM disk, the SD card's image, its tests |
docs/ | The book (its chapters, docs/build: the tools that make its parts list, layout drawings, call reference and PDF), and the design notes (docs/design) |
board/ | KiCad schematics and PCBs: the main board, the memory daughter card, the bus breakout card, the Vera X's glue board |
old/ | The old system (the 1.8C line: os_rom/, its programs, emulator, build and documents), frozen at HydraOS 1.0; node old/build.js test still builds and tests it |
Parts
13| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | .1uF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C1, C2, C3, C4, C5 |
| 4 | HM628512LP-7 | Package_DIP:DIP-32_W15.24mm_Socket_LongPads | IC1, IC2, IC3, IC4 |
| 1 | 74HC139 | Package_DIP:DIP-16_W7.62mm | U1 |
| 1 | Conn_01x24 | Connector_PinHeader_2.54mm:PinHeader_1x24_P2.54mm_Vertical | J2 |
| 1 | Conn_01x32 | Connector_PinHeader_2.54mm:PinHeader_1x32_P2.54mm_Vertical | J1 |
| 1 | E D C B A 9 8 7 6 5 4 3 2 1 0 | Connector_PinHeader_2.54mm:PinHeader_2x15_P2.54mm_Vertical | J3 |
More from danstruthers/hydra-16
3- 6 layers304.8 × 243.8 mm

- 2 layers88.9 × 67.3 mm

MemDaughterCard SurfaceMount
danstruthers/hydra-16
6502-based multi-tasking hardware and software project
18 parts1 - 2 layers106.7 × 105.4 mm

HydraBusBreakoutCard
danstruthers/hydra-16
6502-based multi-tasking hardware and software project
15 parts1
Similar boards
- 2 layers196.3 × 118.7 mm

Motherboard
Redherring32/OpenTendo
An Open-Source HardWare (OSHW) recreation of the original 1985 front-loading NES Motherboard
100 parts860 - 4 layers64.7 × 52.2 mm

- 2 layers106.1 × 155 mm

Motherboard
Redherring32/OpenTendo-TopLoader
An Open Source HardWare (OSHW) recreation of the 1993 toploading NES motherboard (Also known as NES-101)
84 parts94 - 2 layers216 × 150 mm

Motherboard-101
artemisamsx/artemisa
Schematics, PCB designs and HDL simulations to build a 8-bits MSX computer
124 parts67 - 4 layers214 × 170 mm

.C68
ProbablyNotArtyom/Blitz
Blitz is a 68030 based homebrew computer I designed over the course of nearly 3 years, starting in late 2017.
185 parts51GPL-2.0 - 2 layers172.7 × 63.5 mm

- 2 layers177.8 × 130.8 mm

- 2 layers127 × 96.5 mm

Questions
How big is the MemDaughterCard PCB?
It measures 87 × 67 mm and has 2 copper layers, 1.6 mm thick.
What parts does the MemDaughterCard use?
13 parts, built around the 74HC139D. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the MemDaughterCard KiCad files?
From the danstruthers/hydra-16 repository on GitHub, at the commit this page was made from: the board is board/MemoryDaughterCard/MemDaughterCard.kicad_pcb and its schematic board/AddressDecode.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the MemDaughterCard design in my own project?
Its repository states no licence, so its author keeps all rights: ask danstruthers before reusing the design.