Skip to the content
2 layers190.5 × 127 mmTest4004, the printed circuit board in 3D

Intel 8080 Emulator on 4004 Evaluation Board

Size
190.5 × 127 mm
Copper layers
2
Thickness
1.6 mm
Parts
140
Nets
169
Pads
620
Tracks, vias
1,881, 146
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
21 Mar 2023
Updated
4 Mar 2026

Overview

Test4004 is an open-source printed circuit board by ryomuk, from the ryomuk/emu8080on4004 repository on GitHub, published under the MIT licence. It is a 2-layer board of 190.5 × 127 mm with 140 parts on 169 nets, routed with 1,881 tracks and 146 vias.

It is built around the 74LS00SC, 74LS02PC and 74LS04PC, with the 74LS161DC among its other parts. Its parts include 38 resistors, 38 diodes, 25 capacitors, 20 ICs and 6 connectors. It belongs with the computers and single-board computers and retro computing and games boards of this library.

Main components

4

README

README.md

emu8080on4004

Intel 8080 Emulator on 4004 Evaluation Board

This document is written mostly in Japanese. If necessary, please use a translation service such as DeepL (I recommend this) or Google.

概要

自作の4004実験用ボードと,その上で動作する8080エミュレータです.Palo Alot Tiny BASIC(4K整数型BASIC)や,Grant Searle's BASIC(8K浮動小数点BASIC)の8080移植版がほぼそのまま動くレベルの機能が実現できています.動作速度は8080実機の1/700程度です.

制限事項等

  • P(パリティ)フラグの実装は正確ではありません.{J,C,R}{PO,PE}実行時にAレジスタの値から計算されます.
  • DAA命令の実装は正確ではありません.
  • IN命令(コントロールレジスタ)はACC=0xFF(データあり)を返します.
  • IN命令(データレジスタ)は4004ボードのソフトウェアで実装されたUARTのGETCHARを呼ぶので,入力されるまで止まります.
  • OUT命令はAレジスタを4004ボードのシリアルポートに出力します.
  • 割り込み関連命令(DI, EI)は未実装です.

実験ボードの仕様

ブレッドボード版プロトタイプの仕様

  • CPU: Intel 4004
  • Clock: 740kHz
  • DATA RAM: 4002-1 x 2 + 4002-2 x 2 (計320bit x 4)
  • Program Memory
    • ROM: AT28C64B (8k x 8bit EEPROM)
      • 000H〜EFFHの3.75KB利用可能
    • RAM: HM6268(4k x 4bit SRAM)x 2個
      • 物理メモリ F00H〜FFDHの254byte x 16バンク (上記を論理メモリ 000H〜FDFHにマッピングしてアクセス)
  • 通信ポート: 9600bps Software Serial UART (TTL level)

Rev.2.1版の仕様(ブレッドボード版との差分)

  • Program Memory
    • DATA RAM: ピンヘッダの設定により4002-1 x 4の構成も可能ですが,その場合はソフトウェアでRAM2, RAM3をアクセスしている部分を修正する必要があります.
    • ROM: AT28C64B, AT28C256, 2764, 27256をDIPスイッチで選択可能なように設計しましたが,動作確認はAT28C64Bで実施.それ以外は未確認です.
    • RAM: HM624256(1Mbit(256k x 4bit) SRAM)x 2個
      • 物理メモリ F00H〜FFDHの254byte x 256バンク (上記を論理メモリ 0000H〜FDFFHにマッピングしてアクセス)

ToDO

  • メモリ64KBに拡張 → Rev.2.1で実現(2023/4/12)
  • プリント基板作成 → Rev.2.1で実現(2023/4/12)
  • IN命令時にTESTキーを使ったSTOPボタン相当の機能の実装

動画

Youtubeで関連動画を公開しています.

ブログ

関連する情報が書いてあるかも.

4004関連開発事例

データシート

開発環境

画像集

  • ブレッドボード版のプロトタイプ
  • プロトタイプでPalo Alto BASIC実行
  • Rev.2.1基板
  • ブレッドボード版とRev.2.1基板
  • 8K BASIC 起動画面

更新履歴

  • 2023/3/21: 初版公開
  • 2023/4/3: SUBフラグ(NEC uPD8080A, uCOM-80用)に関するコードを削除
  • 2023/4/12: 基板(Rev.2.1)に合わせていろいろ更新.ブレッドボード版はprototypeフォルダに移動
  • 2023/4/15: emu.asmにレジスタ表示しながらの連続実行とTESTボタンでの停止機能を追加
  • 2023/4/16: ADC, ACIにバグ(0+FFH+Carrry(1)でCarryが立たない)があったので修正.

Parts

140
QtyValueFootprintReferences
161N4148000_MyFootprint:D_DO-35_SOD27_P2.54mm_Vertical_AnodeUpD1, D2, D3, D4, D22, D23, D24, D25, D26, D27, D28, D29, D30, D31, D32, D33
16LED000_MyFootprint:LED_D3.0mmD6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21
150.1uF000_MyFootprint:C_Disc_D4.3mm_W1.9mm_P5.00mmC1, C2, C5, C6, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23
1010k000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR8, R10, R20, R21, R22, R23, R24, R25, R26, R27
94.7k000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R7, R32, R33, R34, R35
6100k000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR12, R28, R29, R30, R31, R37
4100k000_MyFootprint:R_Array_SIP5RN1, RN2, RN3, RN4
41k000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR6, R9, R11, R13
4MountingHole000_MyFootprint:MountingHole_3mmH1, H2, H3, H4
30.01uF000_MyFootprint:C_Disc_D4.3mm_W1.9mm_P5.00mmC8, C9, C10
31uF000_MyFootprint:C_Disc_D4.7mm_W2.5mm_P5.00mmC3, C7, C11
2110000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR14, R15
24002-1000_MyFootprint:DIP-16_W7.62mmU7, U8
24002-2(or-1)000_MyFootprint:DIP-16_W7.62mmU5, U6
2470000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR36, R38
247uF000_MyFootprint:CP_Radial_D6.3mm_P2.50mmC24, C25
25.6k000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR18, R19
274LS00000_MyFootprint:DIP-14_W7.62mmU10, U14
2820000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR16, R17
2HM624256000_MyFootprint:DIP-28_W10.16mmU17, U18
2TLP2958000_MyFootprint:DIP-8_W7.62mmU1, U2
1+5V000_MyFootprint:Banana_Jack_1PinJ4
1-10V000_MyFootprint:Banana_Jack_1PinJ6
110uF000_MyFootprint:CP_Radial_D4.0mm_P1.50mmC4
128C64B000_MyFootprint:DIP_Socket-28_W11.9_W12.7_W15.24_W17.78_W18.5_3M_228-1277-00-0602JU16
14004_CPU000_MyFootprint:DIP_Socket-16_W4.3_W5.08_W7.62_W10.16_W10.9_3M_216-3340-00-0602JU4
14093B000_MyFootprint:DIP-14_W7.62mmU3
14289_MEMORY_IF000_MyFootprint:DIP_Socket-40_W11.9_W12.7_W15.24_W17.78_W18.5_3M_240-1280-00-0602JU20
147k000_MyFootprint:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR5
15.185MHz000_MyFootprint:Crystal_HC49-U_VerticalY1
150pF000_MyFootprint:C_Disc_D4.3mm_W1.9mm_P5.00mmC12
174H04000_MyFootprint:DIP-14_W7.62mmU9
174LS02000_MyFootprint:DIP-14_W7.62mmU15
174LS04000_MyFootprint:DIP-14_W7.62mmU13
174LS161000_MyFootprint:DIP-16_W7.62mmU12
174LS541000_MyFootprint:DIP-20_W7.62mmU19
1DS0026CN000_MyFootprint:DIP-8_W7.62mmU11
1GND000_MyFootprint:Banana_Jack_1PinJ5
1PORT2000_MyFootprint:PinHeader_2x04_P2.54mm_VerticalJ3
1Pin Header 3P000_MyFootprint:PinHeader_1x03_P2.54mm_VerticalJ2
1RED000_MyFootprint:LED_D3.0mmD37
1RESET000_MyFootprint:SW_PUSH_6mm_H4.3mmSW2
1SW_DIP_x04000_MyFootprint:SW_DIP_SPSTx04_Slide_6.7x11.72mm_W7.62mm_P2.54mm_LowProfileSW3
1SW_DPDT000_MyFootprint:SW_DPDT_Toggle_with_mountSW4
1TLG101000_MyFootprint:LED_D3.0mmD38
1TLR101000_MyFootprint:LED_D3.0mmD34
1UART(TTL)000_MyFootprint:PinHeader_1x06_P2.54mm_HorizontalJ1
1YELLOW000_MyFootprint:LED_D3.0mmD5
1Zener12V000_MyFootprint:D_DO-35_SOD27_P7.62mm_HorizontalD36
1Zener6.2V000_MyFootprint:D_DO-35_SOD27_P7.62mm_HorizontalD35
1~{TEST}000_MyFootprint:SW_PUSH_6mm_H4.3mmSW1

Similar boards

  • 2 layers370.8 × 298.5 mm8 Bit Computer, the printed circuit board in 3D

    8 Bit Computer

    The-Invent0r/8-bit-Computer-PCB

    These are the KiCAD files for my 8-Bit Computer.

    323 parts142
  • 2 layers155.2 × 78.6 mm80ColumnCard, the printed circuit board in 3D

    80ColumnCard

    btb/80ColumnCard

    An Apple II 80-Column Card. Based on the Videx Videoterm

    47 parts43Apache-2.0
  • 4 layers308 × 225.4 mmE800j rev c, the printed circuit board in 3D

    E800j rev c

    codepainters/e800j

    Elwro 800 Junior replica

    483 parts16
  • 2 layers624.6 × 303.9 mmSPU2, the printed circuit board in 3D

    SPU2

    rraider/Seminarkurs2021

    Entwicklung eines turingvollständigen, primitiven Microcontroller in der Software Digital

    736 parts7MIT
  • 2 layersNewBrain Original, the printed circuit board in 3D

    NewBrain Original

    flypie/NewBrain

    Newbury/Grundy NewBrain schematics

    209 parts5GPL-3.0
  • 2 layers221.5 × 149.5 mmZX1, the printed circuit board in 3D

    ZX1

    misterblack1/zenith_zt1

    Information gathered on the Zenith ZT-1 / ZT-10 / ZT-11 and ZTX/ZT-x-A variants

    140 parts5
  • 2 layers400.9 × 280.5 mmAleste520v4, the printed circuit board in 3D

    Aleste520v4

    lucedoriente/Aleste520ex

    Western version of 1993 Z80 russian computer

    345 parts4GPL-3.0
  • 2 layers190.5 × 127 mmSBC4040, the printed circuit board in 3D

    SBC4040

    ryomuk/SBC4040

    Single Board Computer using Intel 4040

    149 parts3MIT

Questions

How big is the Test4004 PCB?

It measures 190.5 × 127 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Test4004 use?

140 parts, built around the 74LS00SC, 74LS02PC, 74LS04PC and 74LS161DC. 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 Test4004 KiCad files?

From the ryomuk/emu8080on4004 repository on GitHub, at the commit this page was made from: the board is hardware/rev2.1/test4004.kicad_pcb and its schematic hardware/rev2.1/ClockGen.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Test4004 design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).