Files
ROT-8-Machine/docs/bom.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

3.7 KiB
Raw Blame History

总成本(BOM)

8 位 / 64 格、74LS 主板、氖灯面板、卡边卡带。价格按 2026 年淘宝散件估价(含税、不含运费), 单位人民币。

1. 主要器件

类别 件 数量 单价 小计
程序 27C512 UV EPROM(或用 29C010 flash 代) 2 15 30
28C64 微码 EEPROM 1 8 8
数据 6116 SRAM(2K×8,数据环 + 栈) 1 8 8
计数/寄存 74LS161 8 2 16
74LS273 2 2.5 5
74LS299(通用移位寄存器) 1 5 5
74LS244 2 2 4
74LS245 1 3 3
比较/译码 74LS688(ip 终点比较) 4 6 24
74LS138 2 2 4
74LS86 / 74LS00 / 04 / 08 / 32 5 1.8 9
串口 6850 ACIA 1 20 20
74LS4060 + MAX232 2 3 6
时钟 1 MHz 罐头晶振 1 5 5
面板灯 氖灯 NE-2(或 NH-4) 22 1~3 22~66
MPSA42 高压驱动 22 0.4 9
限流电阻 + 灯座 44 0.3 13
面板操作件 8 位拨动开关 8 1.5 12
按钮(STEP/START/HALT/RESET/SEND) 5 3 15
连接器 2×22 卡边座 1 8 8
DE-9 + 外壳 1 5 5
电源 5 V / 2 A 适配器 1 25 25
90 V 高压模块(氖灯) 1 30 30
DIP 插座 35 只 35 0.5 18
阻容、杜邦线、螺钉、铜柱 — — 40
小计(器件) ≈ ¥420

2. 结构件

件 说明 小计
PCB 160 × 100 mm 双层(打样 5 片起) 嘉立创 5 片 ≈ ¥75 15
面板 200 × 100 mm(铝,激光切割 + 丝印) 1 片 ≈ ¥60 60
外壳 220 × 130 × 70 mm(铝型材或木盒) ≈ ¥80 80
卡带 PCB × 5 + 卡带壳 5 × ¥3 15
脚垫、面板螺钉、铝柱 — 20
小计(结构) ≈ ¥190

3. 三档总价

配置 总计
精简 29C010 flash 代替 UV EPROM、NE-2 小氖灯、亚克力开架无外壳、单面板飞线 ≈ ¥400
标准 本 BOM 原样:UV EPROM + NE-2 + 铝面板 + 铝外壳 ≈ ¥650
豪华 NH-4 大氖灯、按钮内置氖灯、丝印铝面板、UV 擦片器、3 张备用卡带 ≈ ¥950

3.1 宿舍版(面包板全机,不焊)

配置 总计
宿舍版 22 片 IC 全直插(含 16550、AS6C62256、28C256)+ 3 块面包板 + CH340 模块 + 逻辑分析仪 + 电源模块,不焊、不开孔、不用氖灯 ≈ ¥450

目标:串口接电脑,把计算器跑起来(12 34 + . → 0046)。面板/氖灯/卡带/外壳留到有工作台时做。

4. 不在这张表里的

项 说明
烧片器 CH341A ≈ ¥20;能烧 27 系列的 TL866II ≈ ¥200
紫外擦片器 ≈ ¥40(只有用 UV EPROM 才需要,且是仪式的一部分)
万用表 / 烙铁 / 吸锡器 默认已有
示波器 调试氖灯高压时最好有;没有也能靠万用表和"亮不亮"定位
运费 / 打样等待 淘宝多店拼单约 ¥30,PCB 打样 3~5 天

5. 时间(比钱更贵)

阶段 估计
画原理图 + PCB 布局 8~12 h
面包板分块验证(IP→ROM→RAM→栈→I/O) 10~15 h
PCB 焊接 + 上电调试 15~20 h
面板开孔 + 装配 5~8 h
收尾(串口、卡带、文档) 3~5 h
合计 ≈ 40~60 h(按周末干,一个半月)

6. 一句总结

钱不是问题(¥400950),时间才是(4060 小时)。最贵的单品是外壳和面板(¥140), 最贵的器件是 6850 ACIA(¥20/片,越来越难买,可以先用 "16550 + 一小片 CPLD" 或 "MCU 桥"顶替,但那就没那么复古了)。