一、教材知识总结:
- Y86-64指令如下图(即p246页图):
- Y86-64指令编码计算方式:
- Y86-64的实现顺序:
- 取指:取指阶段从内存读取指令字节,地址为程序计数器的值。
- 译码:译码阶段从寄存器文件读入最多两个操作数,得到相应的值,并读入指令指明的寄存器。
- 执行:执行阶段,ALU要么执行指令指明的操作,计算内存引用的有效地址,要么增加或减少栈指针。
- 访存:访存阶段可以将数据写入内存,或者从内存读出数据。
- 写回:写回阶段最多可以写两个结果到寄存器文件。
- 更新PC:将PC设置成下一条指令的地址。
- HCL与HDL的区别:
- HCL:硬件控制语言
- HDL:硬件描述语言
- 逻辑门种类:
- 与:AND用“&&”表示
- 或:OR用“||”表示
- 非:NOT用“!”表示
- 与、或、非三种逻辑门可以用一种与非门或者或非门实现
- 与非和与的组合可以概括大部分计算