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.
5.7 KiB
5.7 KiB
下单清单(宿舍版,照着抄)
目标:把整台机器插在面包板上跑起来(串口 12 34 + . → 0046),不焊、不开孔。
数量 = 实用数量(含备用);目标价 = 检索到的量级,不是实时价。
A. 立创商城(阻容 + 能买到的 IC)
把这一列商品编号粘进立创的 BOM 配单框即可:
| 件 | 编号 / 料号 | 数量 | 目标价 |
|---|---|---|---|
| 74LS161(XD74LS161) | C609766 | 10 | ¥2~4 |
| 74LS299(SN74LS299N) | 3067278 | 2 | ¥6~10 |
| 28C256(AT28C256-15PU) | C613502 | 3 | ¥10~18 |
| 电阻 330 Ω 1/4 W | — | 30 | ¥0.05 |
| 电阻 10 kΩ | — | 20 | ¥0.05 |
| 电阻 100 kΩ | — | 10 | ¥0.05 |
| 瓷片电容 100 nF | — | 20 | ¥0.1 |
| 电解电容 1 µF | — | 10 | ¥0.2 |
| LED 红 5 mm | — | 30 | ¥0.2 |
| 圆孔 IC 座 DIP-16 | — | 10 | ¥0.5 |
| 圆孔 IC 座 DIP-20 | — | 2 | ¥0.8 |
| 圆孔 IC 座 DIP-28(宽体 0.6") | — | 4 | ¥1.5 |
| 圆孔 IC 座 DIP-40(宽体) | — | 2 | ¥2 |
| 排针 单排 40P | — | 2 | ¥1 |
立创没有的:74LS273/138/244/245/688/00/04/08/32/14、16550、AS6C62256 —— 去淘宝(B 单)。
B. 淘宝(74LS 散新 + 面包板 + 模块)
| 件 | 搜索词 | 数量 | 目标价 |
|---|---|---|---|
| 74LS161 | 74LS161 散新 DIP |
(立创已有,可跳过) | — |
| 74LS273 | 74LS273 散新 DIP |
3 | ¥1.5 |
| 74LS138 | 74LS138 散新 DIP |
3 | ¥1.5 |
| 74LS244 | 74LS244 散新 DIP |
3 | ¥1.5 |
| 74LS245 | 74LS245 散新 DIP |
3 | ¥2 |
| 74LS688 | 74LS688 DIP 比较器 |
5 | ¥6 |
| 74LS00 / 04 / 08 / 32 / 14 | 74LS00 散新 DIP 等 |
各 3 | ¥1.5 |
| 16550 | 16550AN DIP40 或 ST16C550 |
2 | ¥6~15 |
| AS6C62256 | AS6C62256 DIP28 或 62256 低功耗 |
3 | ¥8~12 |
| 面包板 | MB-102 面包板 830孔 |
3 | ¥18 |
| 杜邦线 | 杜邦线 公对公 65根 |
2 | ¥7 |
| 单股线 | 22AWG 单股 跳线 面包板 |
1 | ¥10 |
| 剥线钳 | 剥线钳 0.5-2.0 |
1 | ¥15 |
| CH340 模块 | CH340G USB转TTL 4针 |
2 | ¥8 |
| 逻辑分析仪 | USB 逻辑分析仪 8通道 24M |
1 | ¥40 |
| 1 MHz 有源晶振 | 1MHz 有源晶振 DIP14 |
2 | ¥5 |
| 1.8432 MHz 有源晶振 | 1.8432MHz 有源晶振 |
2 | ¥5 |
| 22 pF 瓷片(只有用无源晶体才要) | — | 4 | ¥0.1 |
| 1 µF 电解 / 100 kΩ(RC 慢速时钟) | — | 10 / 10 | ¥2 |
| CH341A | CH341A 编程器 |
1 | ¥25 |
| 面包板电源模块 | 面包板电源模块 3.3V 5V USB |
1 | ¥10 |
| 轻触按钮 | 6x6 轻触开关 带帽 |
10 | ¥0.3 |
| 拨码开关 | DIP 拨码开关 8位 |
2 | ¥2 |
| DIP-28 ZIF 座 | ZIF 28脚 测试座 |
1 | ¥12 |
C. 闲鱼(老件,先问货)
| 件 | 搜索词 | 数量 | 目标价 | 话术 |
|---|---|---|---|---|
| 6850 ACIA | MC6850P / SY6850 / 65C50 |
2 | ¥15~40 | 见下 |
| 27C512 UV | 27C512 紫外 擦除 DIP28 窗口 |
2 | ¥10~25 | 同上 |
| 28C64 | 28C64 DIP28 |
2 | ¥8~15 | — |
给卖家的话术(复制粘贴):
你好,请问 [MC6850P] 还有货吗?方便拍一张引脚和丝印的照片吗? 主要是看引脚有没有氧化、丝印有没有被打磨过。另外是原装拆机还是散新?
D. 只做第一块面包板(最小单,≈ ¥120)
如果只想先跑 stage 1(IP + ROM + 8 灯):
| 件 | 数量 | 约价 |
|---|---|---|
| 28C256(C613502,或淘宝散新) | 2 | ¥24 |
| 74LS161 | 2 | ¥4 |
| 74LS14 | 1 | ¥2 |
| LED 红 + 330 Ω | 8 + 8 | ¥3 |
| 10 kΩ / 100 nF / 1 µF | 各几个 | ¥3 |
| 轻触按钮 | 3 | ¥2 |
| 面包板 830 孔 | 2 | ¥36 |
| 杜邦线 + 单股线 | ¥17 | |
| 面包板电源模块 + 充电宝(若有) | 1 | ¥10 |
| CH341A | 1 | ¥25 |
| 合计 | ≈ ¥125 |
E. 合计
| 单 | 金额 |
|---|---|
| 立创(A) | ≈ ¥200 |
| 淘宝(B) | ≈ ¥250 |
| 闲鱼(C,可选) | ≈ ¥80~150 |
| 宿舍全机 | ≈ ¥450~600 |
| 只要第一块面包板(D) | ≈ ¥125 |
G. 核对购物车时发现的三条
- 面包板阶段不需要 IC 座 —— 芯片直插面包板即可;插座是给焊好的 PCB 用的。真要买就等 PCB 阶段, 而且 28 脚件是 宽体 0.6",别买成窄体(0.3")。
- 晶振分两种:无源晶体(HC-49,两脚)自己不振,要配 22 pF ×2 + 反相器做皮尔斯振荡; 有源晶振(4 脚)直接出方波 ✓ 机器主时钟和串口时钟都建议买有源,省一堆调试。
- 机器主时钟要单独买:1 MHz 有源晶振。1.8432 MHz 那颗是给串口的(÷16÷12 = 9600), 机器主频从 1 MHz 分不出 153.6 kHz。
G.1 实际下单记录(2026-11-25,一车买齐)
宿舍版全套(22 片 IC + 3 块面包板 + 烧片器 + 逻辑分析仪 + CH340 + 阻容灯线)实付约 ¥280, 比预算 ¥450 低,因为 74LS 全部走的淘宝散新(¥0.3~2/片)。
| 店铺 | 内容 | 金额 |
|---|---|---|
| 宏讯丰电子 | 全部 74LS + 16550 + 688 | ≈ ¥60 |
| 晶振批发店 | 1 MHz / 1.8432 MHz 有源晶振各 2 | ≈ ¥8 |
| 现密斯 / risym | 电阻(330 / 10k / 100k)、LED、拨码、1 µF | ≈ ¥42 |
| MCUNODE / 谨诚 | 100 nF、轻触开关、CH340、逻辑分析仪、杜邦线、电源模块、CH341A、面包板 ×3 | ≈ ¥170 |
没有买的(对,就是不用买):IC 座(面包板直插)、22 pF(用的是有源晶振)、MAX232(TTL 直连 CH340)、74LS245、74LS670。
到货后第一步:bringup.md §2 的引脚表 → IP + 28C256 + 8 颗灯。
F. 下单顺序建议
- 先下 D(或 A+B 里的 stage 1 部分) —— 一周到货,周末就能插第一块;
- 同时闲鱼问 6850/27C512(可能要等);
- 剩下的 B 单等第一块通了再下,免得一次买一堆放着。