




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
(精品word)作业2—lab2指令集流水化实验—计算机体系结构 (精品word)作业2—lab2指令集流水化实验—计算机体系结构 (精品word)作业2—lab2指令集流水化实验—计算机体系结构 Lab2指令集流水化实验报告 学号:12281166姓名:崔雪莹 Exercise1: WhatishexcodeforNOPorSLLR0,R0,R000000000H. Exercise2: Bylookingatthebinarycodeoftheinstruction,discoverthefollowingfields: Rs:00100,Rt:00011,Rd00101,16-bitImm(Imm16)0010100000100000,Shiftamount00000,FunctionCode100000,WriteMemWrite0andRegWrite1forthisinstruction。Whatisuseof16-bitImmediatefieldinthisinstruction?16位立即数是对branch指令来说的跳转目的地址的偏移地址,add指令没有作用。 IfthesameinstructionwereaBranchinstruction,theimmediatefieldwouldhaverepresentedaBranchOffset。WhatisthepotentialTargetAddress43092立即数十进制表示为10272,目的地址为10272*4+2004=43092 Exercise3: LWInstruction Rs:01000,Rt00111,Rd32(00000),16-bitImm(Imm16)1111111100111000,Shiftamount29(11101),FunctionCode100011,WriteMemWrite0andRegWrite1forthisinstruction.WhatisuseofFunctionfiledandShiftAmountinthisinstruction?操作数表明操作为LW读操作,是指令操作的唯一标记,移位量是相对与移位指令来说移几位,在LW指令没有作用。 IfthesameinstructionwereaBranchinstruction,theimmediatefieldwouldhaverepresentedaBranchOffset。WhatisthepotentialTargetAddress1204,(—200*4)+2004=1204. Exercise4: BranchTargetFoundAdress1204,IsItsameasEX。3是?BinputtoALU-200,Why?因为对于I型指令只有rs,rt和立即数,没有rd,是rs和立即数Imm运算的结果进行操作,所以B最终送ALU的是立即数而不是rt,ALUOut800,ALUOP=ADD,Why因为立即数是偏移量,所以运算器是对R8和—200求和,得到的为目的地址。LMD525252,Rdest7whythis?因为没有rd,但是是取800地址的内容,回送到R7里。 RegWrite1,MemWrite0,WhataretwovaluesattheinputofverylastMUXintheWBstage525252,800,Whichvalueisselected525252,why因为最终写回的是525252的值,而不是ALU运算的结果800.FinalRegisterFileValues。R7,525252,R8,1000。 Exercise5: SWinstruction Rs:01000,Rt00111,Rd32(00000),16-bitImm(Imm16)1111111100111000,,Shiftamount28(11100),FunctionCode101011,WriteMemWrite1andRegWrite0forthisinstruction.WhatisuseofFunctionfiledandShiftAmountinthisinstruction?操作数表明操作为SW读操作,是指令操作的唯一标记,移位量是相对与移位指令来说移几位,在SW指令没有作用。 IfthesameinstructionwereaBranchinstruction,theimmediatefieldwouldhaverepresentedaBranchOffset.WhatisthepotentialTargetAddress1204,(-200*4)+2004=1204。 Exercise6:

17****21
实名认证
内容提供者


最近下载