hardware: the dorm build -- no soldering, twenty two chips, three breadboards
ci / linux-arm64 (push) Successful in 4m42s

The whole logical machine fits on breadboards.  bringup.md section 8 lists it: a 28C256
for the program, another for microcode, an AS6C62256 that holds both the 64 cell ring and
the 496 entry stack, four 161 for ip, two for dp, one for the stack pointer and one for
the microcode step counter, a 299 for the rotate, a 273, two 138s, a 244 and a 245, two
to four 688 for the end compare, a 16550 for serial and a handful of glue -- twenty two
chips, every one of them DIP and every one of them plugged in.

Two simplifications make that possible without a soldering iron: the stack lives in the
unused part of the SRAM instead of eight 74LS670s, and the serial link stays at TTL level
into a CH340 module, which removes the MAX232, the DE-9 and its five capacitors.  The
power comes from a breadboard module fed by a power bank, the ROM is burnt in the CH341A
ZIF socket, and the only instrument that matters is a forty CNY eight channel logic
analyser.

What has to wait for a bench: the 90 V rail for the neon panel, the plate and case, the
card edge cartridge and the final PCB.  So the dorm build has a clear finish line -- the
calculator answering on a terminal -- and the good looking machine is a second stage at
home.  bom.md puts the dorm build at around 450 CNY.
This commit is contained in:
dsh committed 2026-11-25 14:25:45 +08:00
1 parent f87189a20f
commit a808e1b403
2 files changed
+60

No files matched your search

+7
View File
@@ -53,6 +53,13 @@
| **标准** | 本 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. 不在这张表里的
| 项 | 说明 |
+53
View File
@@ -194,3 +194,56 @@ build/Release/r8forge_tape_pack hello.rot8 -o hello.bin --eprom --raw --verify
**这一步的唯一目的:把"取指"这件事从抽象变具体。** 8 颗灯跟着纸带一格一格变,比看 500 行
Verilog 有用得多。
## 8. 宿舍版:全程不焊,插到"计算器跑起来"为止
**可以完全不锡焊。** 逻辑部分全是 DIP 直插,电源、串口、烧片器、逻辑分析仪都是带排针的模块。
做到"计算器在终端上跑起来"大约需要 **3 块面包板、20 来片 IC**,桌面占 **25 × 18 cm**。
### 8.1 全机 IC 清单(宿舍版,含现代替代)
| 部位 | 件 | 片数 | 焊接 | 备注 |
|---|---|---|---|---|
| **程序** | 28C256(DIP-28) | 1 | ✗ | 烧好直接插;0.6 英寸宽,跨两块板 |
| **微码** | 28C256 或 28C64(DIP-28) | 1 | ✗ | 微码控制字 |
| **数据** | **AS6C62256**(32K×8,DIP-28) | 1 | ✗ | 64 格环 + 496 层栈,一片全包 |
| **`ip`** | 74LS161 / 74HCT161 | 4 | ✗ | 16 位 |
| **`dp`** | 74LS161 | 2 | ✗ | 6 位 |
| **栈指针** | 74LS161 | 1 | ✗ | 用 SRAM 当栈,见 §8.3 |
| **拍计数** | 74LS161 | 1 | ✗ | 微序列 |
| **移位/右旋** | 74LS299 / 74HC299(DIP-20) | 1 | ✗ | `+` 一条指令搞定 |
| **当前格锁存** | 74LS273 | 1 | ✗ | 读改写用 |
| **译码** | 74LS138 | 2 | ✗ | 操作码 + 拍号 |
| **总线** | 74LS244 / 74LS245 | 2 | ✗ | 输入拨码 + 数据总线 |
| **终点比较** | 74LS688 | 2~4 | ✗ | 早期只比低 12 位(4096 条够 `hello`),后面补满 16 位 |
| **串口** | **16550**(DIP-40) | 1 | ✗ | **不用 MAX232**:TTL 直接接 CH340 模块 |
| **胶合** | 74LS00/04/08/32/14 | 3~4 | ✗ | |
| **合计** | | **≈ 22 片** | **全部直插** | |
### 8.2 模块(都带排针,插上就用)
| 件 | 说明 | 约价 |
|---|---|---|
| CH340 / CP2102 **USB-TTL 模块**(4 针排针) | 直接接 16550 的 `RxD/TxD`,**不需要 MAX232** | ¥8 |
| **USB 逻辑分析仪 8 通道** | 调试计数器/ROM/微码的唯一实用工具 | ¥40 |
| **面包板电源模块** + 充电宝 | 5 V 双轨,隔离市电 | ¥10 |
| **CH341A 烧片器** | 自带 ZIF 座,芯片插进去就烧 | ¥25 |
| 面包板 830 孔 ×3 | 一块放程序/微码,一块放数据通路,一块放计数与胶合 | ¥60 |
| 杜邦线 + 单股线 + 剥线钳 | | ¥35 |
### 8.3 两个宿舍版简化
1. **栈放 SRAM 里**(`ttl-schematic.md` §7 的方案):省掉 8 片 74LS670,只多一根指针 ✓
2. **串口去掉 RS-232 电平**:16550 的 TTL `TxD/RxD` 直接进 CH340 模块 ✓ 省掉 MAX232 + DE-9 + 5 个电容 ✓
### 8.4 哪些必须等"有工作台"
| 项 | 为什么 |
|---|---|
| **氖灯高压(90 V)** | 宿舍桌上摆 90 V 不合适 ✗ 面包板阶段**全部用 LED**,氖灯留给面板版 |
| **面板 / 机箱 / 卡带(卡边座 + 小 PCB)** | 要钻孔、要焊卡带、要丝印 |
| **最终 PCB** | 要焊接 |
**所以宿舍版的目标是**:在桌上把它跑起来 —— 串口接电脑,`12 34 + .` 打出 `0046` ✓
"好看"的那台(面板 + 氖灯 + 卡带 + 外壳)是回家后的第二阶段。