电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

作业2—lab2指令集流水化实验—计算机体系结构

作业2—lab2指令集流水化实验—计算机体系结构_第1页
1/7
作业2—lab2指令集流水化实验—计算机体系结构_第2页
2/7
作业2—lab2指令集流水化实验—计算机体系结构_第3页
3/7
Lab2 指令集流水化实验报告学号:12281166 姓名:崔雪莹Exercise 1: What is hex code for NOP or SLL R0, R0, R0 00 00 00 00 H .Exercise 2: By looking at the binary code of the instruction, discover the following fields: Rs: 00100 , Rt: 00011 , Rd 00101 , 16-bit Imm (Imm16) 0010 1000 0010 0000 , Shift amount 00000 , Function Code 100000 , Write MemWrite 0 and RegWrite 1 for this instruction。 What is use of 16-bit Immediate field in this instruction? 16 位立即数是对 branch 指令来说的跳转目的地址的偏移地址, add 指令没有作用 。 If the same instruction were a Branch instruction, the immediate field would have represented a Branch Offset。 What is the potential Target Address 43092 立即数十进 制表示为 10272 ,目的地址为 10272*4+2025=43092 Exercise 3: LW Instruction Rs: 01000 , Rt 00111 , Rd 32 ( 00000 ) , 16-bit Imm (Imm16) 1111 1111 0011 1000 , Shift amount 29 ( 11101 ) , Function Code 100011 , Write MemWrite 0 and RegWrite 1 for this instruction. What is use of Function filed and Shift Amount in this instruction? 操作数表明操作为 LW 读操作,是指令操作的唯一标记 , 移位量是相对与移位指 令来说移几位,在 LW 指令没有作用 。 If the same instruction were a Branch instruction , the immediate field would have represented a Branch Offset。 What is the potential Target Address 1204 , ( — 200 * 4 ) +2025=1204 .Exercise 4: Branch Target Found Adress 1204 , Is It same as EX。3 是 ? B input to ALU -200 , Why? 因为对于 I 型指令只有 rs , rt 和立即数 , 没有 rd ,是 rs 和立即数 Imm 运算的结果进行操作,所 以 B 最终送 ALU 的是立即数而不是 rt , ALUOut 800 , ALUOP = ADD , Why 因为立即数是 偏移量 , 所以运算器是对 R8 和 — 200 求和,得到的为目的地址 。 LMD 525252 , Rdest 7 why this? 因为没有 ...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

作业2—lab2指令集流水化实验—计算机体系结构

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部