




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
航空航天大学计算机学院航空航天大学计算机学院CS617的21MachineMachineLanguageProgram(MIPS)GreatIdea#1:Levelsoftemp=v[k];v[k]=v[k+1];v[k+1]=temp;lw$t0,0($2)lw$t1,4($2)sw$t1,0($2)sw$t0,0000100111000110101011110101101011110101100000001001110011000110101011110101100000000101100000001001110001101010(e.g.blockdiagrams)LogicCircuitDescription(CircuitSchematicDiagrams)Weare Summer2012‐‐Lecture AssemblyLanguageProgram(e.g.Program(e.g.C)HardwareHardwareDesignrecodersmultiplexer Summer2012‐‐Lecture4CS617的21DatapathDatapathPartoftheprocessor;thehardwarenecessarytoperformalloperationsrequiredDependsonexactISA,RTLofMajorPCandRegisterFile(RegFileholdsInstructionandDataALUforoperations(ontwoExtender(sign/zeroSummer2012‐‐Lecture6FiveStagesoftheFiveStagesofthe2. 3.Execute4.Memory5. Summer2012‐‐Lecture7DatapathDatapathandRoutepartsofdatapathbasedonISAAddMUXestoselectfrommultipleAddcontrolsignalsforcomponentinputsandHowwidedoeseachoneneedtoForeachinstruction,assignappropriatevalueforcorrectroutingSummer2012‐‐Lecture8MIPS‐liteInstruction40MIPS‐liteInstruction401InstrFetchSummer2012‐‐Lecture9MIPS‐liteDatapathControl0→“zero”;1→“sign”•MemWr: 1→writememory0→busB;1→imm16 •MemtoReg:01→Mem“ADD”,“SUB”,“OR”0→+4;1→RegDstrd0→“rt”;1→10 RWRA=0032WrEn1Data1 Summer2012‐‐Lecture PCProcessorDesignProcessorDesignFivestepstodesignayzeinstructionsetSelectsetofdatapathclockmethodologytherequirements yzeimplementationofeachinstructiontodeterminesettingofcontrolpointsthateffectstheregistertransferAssemblethecontrol Summer2012‐‐Lecture CS617的21PurposeofPurposeofopcode rdfunct_sel ALUctrMemWrSummer2012‐‐LectureMIPS‐liteMIPS‐liteInstructionRegisterTransferLanguageelsePCPC+4 Summer2012‐‐Lecture MIPS‐liteMIPS‐liteControlSignalsControlALUsrc=RegB,ALUctr=“ADD”,RegDst=rd,ALUsrc=RegB,ALUctr=“SUB”,RegDst=rd,ALUsrc=Imm,ALUctr=“OR”,RegDst=rt, ALUsrc=Imm,ALUctr=“ADD”,RegDst=rt,ExtOp=“Sign”, ALUsrc=Imm, ALUsrc=RegB, Summer2012‐‐Lecture10100000001010001100XX0011100001XX111100000010000001XX011XGeneratingGeneratingBooleanIdea#1:TreatinstructionnamesasBooleanUsegatestogeneratesignalsthatare1whenitisaparticularinstructionand0otherwisebeq=Rtype=add=Summer2012‐‐LectureGeneratingGeneratingBooleanIdea#2:Useinstructionvariablestogeneratecontrolsignals–Makeeachcontrolsignalthecombinationofallinstructionsthatneedthatsignaltobea1MemWrite=RegWrite=add+sub+ori+Whataboutdon’tcares–Wantsimplerexpressions;settooftableSummer2012‐‐LectureControllerControllerUsethesetwoideastodesign “OR”Summer2012‐‐LectureANDANDControlLogicinSummer2012‐‐LectureORORControlLogicinSummer2012‐‐LectureGGCProram(AMachineLaPrgam01011000010101(e.g.blockLogicCircuitD(Circuit CS617的21SetupTime:howlongtheinputmustbestablebeforetheCLKtriggerforproperinputHoldTime:howlongtheinputmustbeaftertheCLKtriggerforproperinput“CLK‐to‐Q”Delay:howlongittakestheoutputtochange,measuredfromtheCLKSummer2012‐‐LectureTheCriticalTheCriticalThecriticalpathisthelongestdelayanytworegistersinaTheclockperiodmustbelongerthanthiscriticalpath,orthesignalwillnotpropagateproperlytothatnextregister3241+Summer2012‐‐LectureCriticalPathCLDelay+CLDelay+CLDelay+AdderumumClockWhatisthemaxfrequencyofthis–LimitedbyhowmuchtimeneededtogetcorrectNextStatetoRegisterMaxDelay=Setup+CLK‐to‐Q+CLMaxFreq=1/MaxSummer2012‐‐Lecture OldOneCompleteCycleforNewRegWrRdRs RwRaRbbusASetup Summer2012‐‐LectureClockingClocking............Storageelements(RegFile,Mem,PC)triggeredbysameclockCriticalpathdetermineslengthofclockThisincludesCLK‐to‐QdelayandsetupSofarwehavebuiltasinglecycleCPU–entireinstructionsareexecutedin1clockcycleUpnext:pipeliningtoexecuteinstructionsin5clock Summer2012‐‐Lecture Rs,Rt,Rd,Op,OneCompleteCycleforNewInstructionMemoryAccessOldOldNewNewValueOldbusA,OldOldRegWrRd NewRegisterFileAccessTimeNewValueALUN
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2030中国交通节能减排行业市场发展分析及发展前景与投融资研究报告
- 2025-2030中国亚马逊石行业市场现状供需分析及投资评估规划分析研究报告
- 2025-2030中国互联网+印刷行业深度分析及发展战略研究咨询报告
- 2025-2030中国书法绘画用品行业市场现状供需分析及投资评估规划分析研究报告
- 2025-2030中国丝绸市场营销创新策略及未来销售渠道趋势研究报告
- 2025-2030中国不锈钢机械格栅行业市场现状分析及竞争格局与投资发展研究报告
- 2025-2030中国上假肢行业市场发展趋势与前景展望战略分析研究报告
- 2025-2030中国三氟甲基磺酸酐行业市场发展分析及发展趋势与投资风险研究报告
- 2025-2030中国一次性套管针行业市场发展趋势与前景展望战略研究报告
- 2025-2030中国PDLC智能调光玻璃市场营销模式与前景方向分析研究报告
- 2024年中级电工考前必刷必练题库500题(含真题、必会题)
- 认识晶体(完整版)课件
- 小学五年级家长会-主题班会
- DB11T 211-2017 园林绿化用植物材料 木本苗
- DB11T 527-2021 配电室安全管理规范
- 《PLC应用技术(西门子S7-1200)第二版》全套教学课件
- 学校校园安全隐患排查手册
- 豪迈集团笔试在线测评题
- 社会团体财务报表
- 行政区划管理条例学习解读课件
- 2024年全国乡村医生考试复习题库及答案(共420题)
评论
0/150
提交评论