




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
航空航天大学计算机学院航空航天大学计算机学院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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 学院国际竞赛中的品牌建设与推广
- 数字化展览体验设计企业制定与实施新质生产力战略研究报告
- 高效投影幕布制造行业跨境出海战略研究报告
- 植被碳汇行业跨境出海战略研究报告
- 租金核减服务AI应用行业深度调研及发展战略咨询报告
- 特色小镇AI应用企业制定与实施新质生产力战略研究报告
- 高效真空绝热耐火容器企业制定与实施新质生产力战略研究报告
- 高效物体表面消毒剂企业制定与实施新质生产力战略研究报告
- 高效文档审阅软件企业制定与实施新质生产力战略研究报告
- 高效茶饮调配机行业深度调研及发展战略咨询报告
- 2024年中级电工考前必刷必练题库500题(含真题、必会题)
- DB11T 527-2021 配电室安全管理规范
- 学校校园安全隐患排查手册
- 医院智能化多媒体会议系统工程建设方案
- 2024年全国乡村医生考试复习题库及答案(共420题)
- DL∕T 5371-2017 水电水利工程土建施工安全技术规程
- GB/T 44143-2024科技人才评价规范
- JT-T-1223-2018落水人员主动报警定位终端技术要求
- 龙门吊基础施工方案 (定稿)
- 2024年芜湖职业技术学院单招职业适应性测试题库带答案
- 手术室患者身份识别制度
评论
0/150
提交评论