




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Embedded System Designlecture 10-Processor(2)_hazard_board_verificatioonJun WANG1ContentsLearnt from last test exampleHazardStructureDataArithmeticSoftware solutionNOPHardware solutionData forwardingLOADSoftware solutionNOPHardware solutionStallControlBoard verification2Example of test pattern (text
2、ure simulation)LOAD gr1, gr0, 0LOAD gr2, gr0, 1NOPNOPNOPADD gr3, gr1, gr2NOPNOPNOPSTORE gr3, gr0, 2HALT3Simulation results (texture)Please test by yourself, and analyse itLOAD gr1, gr0, 0LOAD gr2, gr0, 1NOPNOPNOPADD gr3, gr1, gr2NOPNOPNOPSTORE gr3, gr0, 2HALT4HazardsSituations that prevent starting
3、the next instruction in the next cycleStructure hazardsA required resource is busyData hazardNeed to wait for previous instruction to complete its data read/writeControl hazardDeciding on control action depends on previous instruction5Structure HazardsConflict for use of a resourceIn X86(by intel) p
4、ipeline with a single memoryLoad/store requires data accessInstruction fetch would have to stall for that cycleWould cause a pipeline “bubble”So called von Neumann structureIn ARM/MIPS pipelineseparate instruction/data cachesSo called Harvard structure6Data HazardsAn instruction depends on completio
5、n of data access by a previous instruction7SolutionSoftwareInsert 3 NOPsHardwareData forwardFor arithmetic opData forward & StallFor LOAD8Data forwardingData forwarding happens in ID stage, always check id_ir to decide reg_A/B9Cant always forwarding“LOAD” can still cause hazardsince data was accesse
6、d from data memoryafter reg_C10SolutionSoftwareInsert 3 NOPsHardwareJoint usage of Data forwarding & StallData forwarding to solve 2nd and 3rd NOPsStall to sove 1st NOP11StallStall the pipeline by keeping an instruction in the same stageStall happens in IF stage, always compare id_ir with i_datain t
7、o decide pc and id_ir 12Control HazardWhen CPU decide to branch, other instructions are still in pipeline!During the time from branch instruction fetch to branch address generate (from IF to ID to EX to IF, 3 stages), the 3 instructions followed by branch are in pipeline.The computing results by the
8、m are uselessShould be flushed or will impact the following instructions computing 13SolutionSoftwareInsert 3 NOPsInsert independent operationsHardwareFlushingI am not going to more detail1415SummaryHazardStructureDataArithmeticSoftware solutionNOPHardware solutionData forwardingLOADSoftware solutio
9、nNOPHardware solutionStallControl (optional)Software solutionNOPIndependent operationHardware solutionFlushing15Use hazard to understand test patternControl Hazard is an optional topic, you do not need to implement hazard by verilogbut your implementation is highly recommended and scoredSubmit by 8t
10、h JanData hazard (including forwarding and stall) you MUST finish by 8th Jan, and submitBoth design and testUnderstand how to write test pattern for your verilogAlways insert 3 NOPsBut please be more smart16Memory implementationWrite verilog by yourselfUse Core_Gernerate to generate IPGet the verilo
11、g built inIf you can use board evaluation in your final project, big plus can give you!17Concept behindSystem on ChipSOCFrom SOB to SOCSystem on board to system on chipSOCProcessorARM/DSP/MIPS/X86Program with C/C+MemoryFPGA/ASICYour own verilogTherefore, software and hardware division is a problemNe
12、w design methodologySW/HW Co-designKey of embedded system designLets move to next semesterSOPC: (P: programmable)Newly FPGA, the state-of-art all programmable device, can cover everything with low cost solution, and acceptable performance, TryASIC for further1819Example: Digital camera hardware block diagramEmbedded System DesignProcessorCoreMemoryInterfacePIOInterfaceUSBControllerADCDSPImageCodecSDRAMSRAMFlashSPILCDControllerRTCSoC19ReviewEvaluation10% attendance30% Lab50% Project10% ExamExamOpen bookReview20ReviewWhat we have learntHow a given speci
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 手房买卖合同发布点赞莫惊慌
- 家政服务三方合同
- 营销策划 -盒你·更新美好 -企业定制礼盒项目创意简报
- 汽水饮料售卖合同范本
- 腌制食品采购合同范本
- 街区爆破拆除合同范本
- 油漆承包协议合同范本
- 联系人合同范本
- 扩建猪棚合同范本
- 外贸合同范本实例框架
- 工业机器人现场编程实训报告模板
- 2024医疗机构重大事故隐患判定清单(试行)学习课件
- 一般行业生产经营单位主要负责人和安全管理人员安全培训考核规范
- 养老院建筑设计说明书
- JJG 705-2014液相色谱仪行业标准
- 计划书绿色背景
- 肝性脑病的治疗及护理
- 北师大版数学三年级下册-第3单元《找规律》教案
- 西安市西绕城高速路上桥群机械拆除工程施工方案样本
- 山东省2023年高考物理模拟(一模、二模)试题知识点训练:电磁学(多选题)
- 武汉-南昌1000千伏特高压交流输变电工程水土保持方案
评论
0/150
提交评论