woai3c / nand2tetris

计算机系统要素-从零开始构建现代计算机
MIT License
2.62k stars 437 forks source link

[Bit.hdl] 值preOut从哪里获取的 #11

Closed LucasYao93 closed 4 years ago

LucasYao93 commented 4 years ago

CHIP Bit { IN in, load; OUT out;

PARTS:
Mux(a = preOut, b = in, sel = load, out = o1);
DFF(in = o1, out = preOut, out = out);

}

woai3c commented 4 years ago

DFF 触发器的特点是当前时钟的输出等于下一时钟的输出。 所以 a = preOut 里的 preOut 就是上一时钟的输出,out = preOut 就是把当前时钟的输出赋值给 preOut。

LucasYao93 commented 4 years ago

DFF 触发器的特点是当前时钟的输出等于下一时钟的输出。 所以 a = preOut 里的 preOut 就是上一时钟的输出,out = preOut 就是把当前时钟的输出赋值给 preOut。

了解了, 感谢