Files
ROT-8-Machine/README.md
T
dsh d0dc2d4d66 ROT-8-Machine: one physical ROT-8, split out of R8Forge
This repository is a machine, not a toolchain.  R8Forge keeps the language, the ISA
specification and the tools that assemble, pack and run tapes; this one keeps what it
takes to build the thing: the RTL and its testbench, the requirements note, the 34 chip
board wiring, the panel design and its mockups, the mechanics analysis, the bill of
materials, the buying guide and the order sheet, the bring up plan, and the microcode
directory that is still empty.

The equivalence test came with the RTL, since it needs both halves: it assembles a tape
with r8forge, packs it with tape_pack, runs it with tape_run --loop-stack --retest, then
compiles rtl/rot8.v with iverilog and requires the same OUT stream and the same step
count.  It takes those three binaries as parameters and its header says they must be
built for eight bit cells and sixty four cells, because an eleven bit packer feeding an
eight bit machine produces different output and looks like an RTL bug.

Verified here: hello 577 instructions 417 steps, calc 51378 instructions 166741 steps
with "12 34 + ." fed in, both agreeing with the interpreter.
2026-11-25 17:02:09 +08:00

2.3 KiB

ROT-8 Machine

一台真的 ROT-8:8 位 cell、64 格数据环、74LS 分立体、27C512 卡带、氖灯面板。 这里是"某台具体的机器"—— RTL、微码、原理图、面板、机械、采购、上电流程。

ISA 的权威定义不在这里,在 ../R8Forge/SPEC.md。 汇编器、tape_pack、tape_run、以及所有纸带也都在 R8Forge。 这个仓库只描述一种实现,并且只对"它和 R8Forge 的解释器输出一致"负责。

现在到哪了

状态
RTL(rtl/rot8.v) ✅ 与 tape_run --loop-stack --retest 逐字节一致(hello / term / calc / 全家桶)
微码(microcode/) ✗ 未开始 —— 下一步要做的核心工作
原理图 / PCB(kicad/) ✗ 未开始
面板(docs/panel.md) ✅ 设计定稿(8800 排法 + 环形 CELL + 全氖灯),有 mockup
机械(docs/mechanics.md) ✅ 分析完,定位外挂件(非必做)
采购(docs/buy.md / order.md / links.txt) ✅ 一车买齐 ≈ ¥280
面包板(docs/bringup.md) ✅ 第一块(IP + ROM + 灯)可开工;全机宿舍版 22 片不焊

从哪开始

  1. 想动手:docs/bringup.md —— 第一块面包板(≈¥120,一天能通)
  2. 想买件:docs/order.md + docs/links.txt
  3. 想懂设计:docs/requirements.md(需求、预算、载体)→ docs/ttl-schematic.md(34 片的主板接线)
  4. 想看它长什么样:img/panel-mockup-vintage.png
  5. 想跑 RTL:见 rtl/README.md(需要一份 R8Forge 的构建)

目录

rtl/        机器本身的 Verilog + testbench
microcode/  控制存储器(未开始)
docs/       需求、主板接线、面板、机械、采购、bring-up
tools/      生成图表的脚本(面板 mockup、bring-up 框图)
tests/      RTL 与解释器的对拍
img/        生成的图
kicad/      原理图与 PCB(未开始)

约定

  • 文档中文,RTL/脚本里的注释英文;数字必须能被 R8Forge 复现(步数、OUT 流)。
  • 面板原则:只显示状态,不显示数字;每样信息只有一种表示(见 docs/panel.md §3)。
  • 机器语义一个字都不改 —— 那是 R8Forge 的 SPEC 说了算,这里只负责"实现得一致"。