官方科普:NAND 为通用门,LATCH 实现时序逻辑TapeOut Explainers: NAND as a Universal Gate, LATCH for Sequential Logic
TapeOut 官方科普继续更新:项目只提供 NAND 一种逻辑门,却足以实现全部逻辑——NOT 把同一信号接入 NAND 两个输入,占 1 个门;AND 为 NAND 后接 NOT,共 2 个门;OR 先反相再进 NAND,共 3 个门,因此 NAND 被称为通用门。另一条科普区分组合逻辑与时序逻辑:只由 NAND 构成的电路只看当前输入;LATCH 保存 1 bit 并每 tick 更新一次,接入电路后输出还取决于上一 tick 保存的状态,由此可构建计数器、寄存器与处理器。TapeOut's explainer series continues: TapeOut gives you only one kind of logic gate, NAND, and it is enough. NOT wires the same signal into both NAND inputs (1 gate), AND is a NAND followed by a NOT (2 gates), and OR inverts each input before feeding a NAND (3 gates) — which is why NAND is called a universal gate. Another post separates combinational from sequential logic: a circuit built only from NAND looks at nothing but the current input, while a LATCH holds 1 bit and updates once per tick, so the output depends on state saved from the last tick — enabling counters, registers and processors.
来源 · 5 条Sources · 5
- @TapeOutWorld
When you connect one gate's output to another gate's input on the canvas, what you're doing is simple On Chain, it's just a pointer assignment A record that says "this input connects to that output" A Circuit is just a lot of records like that
- @TapeOutWorld
A transistor in TapeOut is one NAND gate, taking up 7 bytes Every one is identical, so it's fungible, using ERC-1155 The Circuits built from them are all different, so each Circuit is an NFT Materials are interchangeable, each piece of work is its own
- @TapeOutWorld
Nobody can speed up TapeOut's clock Every BNB Chain block, the Circuits tick once Blocks are produced by validators together Nobody can make it go faster on their own A bit slow is fine, it's the same for everyone
- @TapeOutWorld
TapeOut gives you only one kind of logic gate, NAND, and it's enough NOT, wire the same signal into both inputs of a NAND, 1 gate AND, a NAND followed by a NOT, 2 gates OR, invert each input first, then feed them into a NAND, 3 gates That's why NAND is called a universal gate, every piece of combi
- @TapeOutWorld
A circuit built only from NAND looks at nothing but the current input, that's combinational logic A LATCH holds 1 bit and updates once per tick Wire it into a circuit, and the output depends not just on now but on the state saved from the last tick That's sequential logic Counters, registers, proc