从与非门到处理器From NAND to a processor
一条主链:晶体管 → 画布 → 流片 → 电路 → 处理器 → 容器;讲清 NAND/LATCH、晶体管代币、处理器、画布流片与电路调用。One chain: transistor → canvas → tapeout → circuit → processor → container — NAND/LATCH, transistor tokens, processors, the canvas and how circuits are called.
一条主链
晶体管 → 画布 → 流片 → 电路 → 处理器 → 容器。这一章把每个「积木」摆出来,每块一两句话就够。
逻辑门:NAND 与 LATCH
- NAND(与非门):两个输入都是 1 时输出 0,其他都输出 1。只用 NAND 就能搭出任意逻辑电路——加法器、比较器,甚至整颗 CPU。
- LATCH(锁存器):记住 1 位状态,每次「心跳」更新。没有它,电路只能算当前输入,记不住上一步。
TapeOut 只提供这两种元件。宣言的说法:一颗基础元件,一格记忆,两样能搭出整个宇宙。
晶体管代币
NAND 与 LATCH 上链后做成代币,官方统称晶体管。
- ERC-1155:适合「同一种东西有很多份、彼此完全一样」的资产;
- 先 Mint(铸造) 出来,也能在市场上买卖;
- 每台处理器有自己的晶体管合约,例如 TapeOut
0xCC42…808、Behemoth0xE2Df…550c、Genesis0x1d23…DFE6。
不同处理器的晶体管不是同一种东西:买之前确认是哪台的 NAND/LATCH,否则可能流片不到想要的地方,也可能不能挖矿。
处理器:晶体管的「发行厂」
处理器(界面也叫「项目」)由工厂合约创建,是一座「晶体管工厂 + 电路编号系统」:
- 谁都能开,创建费 0.001 BNB;
- 创建时写死晶体管总量、铸造单价与收入分成;他人铸造的收入要你到详情页手动提取;
- 按创建顺序编号,从 0 开始,只增不改;
- 2026-09-25 读工厂合约,共 1,043 台;只有 Behemoth(#1) 与 TapeOut(#30) 上的电路能参与 PoD 挖矿。
| 编号 | 链上名称 | 通常叫法 | 说明 |
|---|---|---|---|
| 0 | Genesis CPU | 创世处理器 | tape://4246.0.tape 示例网站就在它上面 |
| 1 | Blonskr_No1 | Behemoth(巨兽) | 对标 Intel 4004 的链上 CPU;挖矿系数 P=6 |
| 30 | TapeOut | TapeOut | 官方默认流片处理器;挖矿系数 P=1 |
画布与流片
画布(Canvas) 是官网的电路设计工具:把 NAND、LATCH 拖上去,从一个输出拉线到另一个输入,就完成一次连接。画布在你自己的浏览器里实时仿真,不上链、不花钱,随便试错。
满意后点「流片上链」:
- 用到的晶体管代币真实销毁;
- 链上生成一枚 ERC-721 电路 NFT,每枚独一无二;
- 电路逻辑以「哪个门接哪个门」的数据(官方称「网表」)存在链上。
两点注意:一笔流片装不下太大的电路,数据超约 4 万字节会失败,大电路要拆成几张;若用过 Yosys/ABC,可把导出的 BLIF 文件直接导入画布。流片不可逆,烧掉的晶体管回不来。
电路:一个永远开着的函数
电路流片后就是一个谁都能调用的函数:
- 调用是只读查询(view call),不发交易、不花 Gas、不用连钱包;电路里没有「调用别人」的操作,也没有可写状态——宣言说,收下一个陌生人的电路,「最坏的结果就是它返回一个错误的答案」。
- 画布允许把已有电路当「黑盒」拖进新设计复用,这叫引用(REF),宣言称之为「乐高化的处理器制作」。
REF 与挖矿:协议允许引用,但当前 PoD 挖矿禁止带引用的电路(原因见「$BEM 与挖矿」一章)。
容器、名字与挖矿:先认识一下
- 电路容器:每枚电路可开一个链上账户,存资产、挂网站、收消息;
- .tape 名字:如
4246.0.tape,表示「0 号处理器上的第 4246 枚电路」; - PoD 挖矿:合格电路可当「矿机」,按规则分配 $BEM。
One chain
Transistor → canvas → tapeout → circuit → processor → container. This chapter lays out each building block; one or two lines each is enough.
Logic gates: NAND and LATCH
- NAND: output 0 only when both inputs are 1, otherwise 1. NAND alone can build any logic circuit — adders, comparators, even a whole CPU.
- LATCH: remembers one bit of state, updated on each "heartbeat". Without it a circuit can only compute from the current inputs and cannot recall the previous step.
TapeOut ships only these two parts. The manifesto puts it: one basic element and one cell of memory — from these two you can build the whole universe.
Transistor tokens
Once NAND and LATCH go on-chain they become tokens, collectively called transistors.
- ERC-1155: suits assets where one kind has many identical copies;
- they are minted first, and can also be traded on the market;
- every processor has its own transistor contract, e.g. TapeOut
0xCC42…808, Behemoth0xE2Df…550c, Genesis0x1d23…DFE6.
Transistors from different processors are not the same thing: before buying, check which processor's NAND/LATCH you are getting, or you may tape out to the wrong place or fail to mine.
Processors: a transistor "issuing plant"
A processor (also called a "project" in the UI) is created by the factory contract — a transistor factory plus circuit numbering system:
- anyone can open one for 0.001 BNB;
- at creation the total transistor supply, mint price and revenue share are fixed; revenue from others minting is claimed manually on the detail page;
- processors are numbered in creation order, from 0, only growing;
- as of 2026-09-25 the factory contract shows 1,043 processors; only circuits on Behemoth (#1) and TapeOut (#30) can join PoD mining.
| No. | On-chain name | Common name | Note |
|---|---|---|---|
| 0 | Genesis CPU | Genesis | the tape://4246.0.tape example site lives on it |
| 1 | Blonskr_No1 | Behemoth | on-chain CPU matching the Intel 4004; mining factor P=6 |
| 30 | TapeOut | TapeOut | the default tapeout processor; mining factor P=1 |
Canvas and tapeout
The canvas is the site's circuit design tool: drag NAND and LATCH in, pull a wire from one output to another input, and you have made a connection. It simulates in your own browser, off-chain and free — retry as much as you like.
When happy, press "tape out on-chain":
- the transistor tokens you used are really burned;
- an ERC-721 circuit NFT is minted, each one unique;
- the logic is stored on-chain as data (which gate feeds which), officially the netlist.
Two things to know: one tapeout transaction cannot hold a huge circuit — data over roughly 40,000 bytes fails, so large circuits are split into several; and with Yosys/ABC you can import an exported BLIF file straight into the canvas. Tapeout is irreversible: burned transistors do not come back.
A circuit: a function that is always on
After tapeout a circuit becomes a function anyone can call:
- calls are read-only (a view call): no transaction, no gas, no wallet. A circuit has no "call someone else" operation and no writable state — so, the manifesto says, taking in a stranger's circuit "at worst returns a wrong answer";
- the canvas lets you drag an existing circuit in as a "black box" and reuse it — this is referencing (REF), which the manifesto calls "LEGO-style processor building".
REF and mining: the protocol allows references, but current PoD mining bars circuits that contain references (see the "$BEM & Mining" chapter).
Containers, names and mining: a first look
- Circuit container: each circuit can open an on-chain account to hold assets, host a site and receive messages;
- .tape names: e.g.
4246.0.tape, meaning circuit #4246 on processor 0; - PoD mining: a qualified circuit can act as a "miner" and share $BEM by the rules.