Skip to content

buhe/bugu-computer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 9, 2022
df67644 · Jun 9, 2022
May 31, 2022
Jun 9, 2022
Jun 9, 2022
Jun 9, 2022
Jun 9, 2022
Jun 9, 2022
Jun 8, 2022
Jun 4, 2022
Jun 6, 2022

Repository files navigation

bugu computer

Untitled (3)

从与或非门开始构建一个计算机的教程(写给软件工程师)

作为一个软件工程师一定想过自己构建计算机,自己构建计算机是不是要连电路呀?得益于科技的发展,现在使用 verilog + Fpga 就可以了。本教程采用 verilog + Fpga 来从头构建一个最简单的计算机。

指令集采用 nand2tetris 的 Hack 。目标是运行如下汇编,不过也可以运行其他汇编因为是通用计算机。

// led.asm
// execute an infinite loop to
// read the button state and write the result

(LOOP)
@8193		//read BUT
D=M

@8192		//write LED
M=D

@LOOP
0;JMP

参考