嵌入式项目开发过程.ppt
《嵌入式项目开发过程.ppt》由会员分享,可在线阅读,更多相关《嵌入式项目开发过程.ppt(73页珍藏版)》请在三一办公上搜索。
1、面向二十一世纪的嵌入式系统设计技术,第八讲:,嵌入式项目开发过程,Embedded System Project Management,主讲教员:徐欣,国防科大电子科学与工程学院嵌 入 式 系 统 开 放 研 究 小 组,主要内容,嵌入式设计生命周期选择过程划分决策,详细的硬件与软件设计,嵌入式硬件开发过程嵌入式软件开发过程软硬件协同设计过程,开发、调试环境与工具,嵌入式项目设计的各个阶段(图),嵌入式项目设计的七个具体阶段,产品定义,软件与硬件的划分迭代与实现,详细的硬件与软件设计硬件与软件集成产品测试与发布持续维护与升级,嵌入式项目开发过程中使用的工具,参见PDF文档中的Figure 1.
2、2,嵌入式项目设计生命周期(一)产品定义,工程师追求卓越的功能和性能,浪费时间和资源,决策层早期一般不允许工程师接触客户,损失了一些有用的建议和观点,理想的客户研究访问,首席:市场营销;第二成员:记录与提问其他技术人员:参与探讨并形成产品蓝图,列出必做适宜清单,找到设计产品的共同蓝图,嵌入式项目设计生命周期(二)硬件与软件的划分,观点:软硬件是可以互相替换的,如:浮点运算与浮点处理器(FPU)等,两种不同的划分策略,优化处理器能力和软件,通过ASIC设计找到解决途径,划分中需要考虑的许多需求,价格低、性能领先、市场竞争、知识产权等,CPU的选择将影响划分决策和开发工具选择,嵌入式项目设计生命周
3、期(三)迭代与实现,迭代与实现阶段的主要特点:,主要障碍可能还是在软硬件的详细划分上设计约束被深刻理解和建模保留软硬件划分之间的余地,软硬件设计人员之间的迭代,结构体系模拟器:Simulator,评估板或开发板:Evaluation Board目的:减小设计阶段后期风险,嵌入式项目设计生命周期(四),详细的硬件与软件设计文档管理,这里不详细讨论软硬件设计问题,大部分同学在其他课程中学到的C/C+/JAVA编程技术、数字设计和微处理器知识使他们有足够的机会解决设计中遇到的问题,文档管理与质量控制,设计复用和可视化减小设计修改成本,有助于测试和质量控制,嵌入式项目设计生命周期(五)硬件与软件集成,
4、Not a easy Problem,Big Endian/Little Endian引发的问题,调试过程及实时系统调试方法带来的一些问题等,嵌入式系统设计中软硬件集成的颠峰状态,由第一个硬件原型、应用软件、驱动代码、操作系统设计出完美的系统没有致命错误没有飞线,不用重新设计ASIC或FPGA没有太多的软件设计修改,嵌入式项目设计生命周期(六)产品测试与发布,嵌入式产品测试具有特殊的意义,人们或许可以容忍PC偶然死机,但是核电站报警系统?!导弹控制系统?!,PC外围硬件Is there any problem with you?,测试的目的,不仅是确信软件不会在关键时刻崩馈,还必须查明是否在运
5、行时能接近最优性能,尤其是用高级语言编写或多个开发人员编写的程序,每个微小的错误都可能是致命的,如轻微内存泄漏,长时间运行才能发现的问题等,嵌入式项目设计生命周期(七)产品维护和升级,产品维护的模式,维护/支持小组!设计小组,维护详细文档经验技巧上一代产品,产品升级的巨大代价,理解原设计人员的思路与代码,反向逆推并改进原始设计小组的工作需要非凡的技艺或强大的反向设计工具,否则,不如开始新的设计,这是原供应商和生产上所不愿意看到的,主要内容,嵌入式设计生命周期选择过程划分决策,详细的硬件与软件设计,嵌入式硬件开发过程嵌入式软件开发过程软硬件协同设计过程,开发、调试环境与工具,选择过程处理器平台,
6、选择处理器是一个复杂的工作,它不仅是一个简单的“优化”问题,必须通过四道关键测试:,是否便于实现,是否能够提供足够的性能是否有合适的操作系统支持,是否有大量合适的开发工具(和设计资源)支持,其他因素可能会影响这种选择,上市时间、企业对特定开发商的偏好或承诺等,How do we choose microprocessor?,Cost ofGoods,Real-timeConstraints,LegacyCode,PowerBudget,PerformanceTime toMarket,Landmines,ToolSupport,Clock SpeedBrute force method of
7、improving performanceBottleneck could be in software design orcompiler!Faster isnt always betterPerformance Clock speedTrade-off:,As clock speed,energy,Memory costs increaseOther peripheral devices will cost more,Evaluating processor performance,Clock speed:but instructions per cycle may differInstr
8、uctions/sec:but work per instruction maydiffer,Dhrystone:Synthetic benchmark,developed in1984,SPEC:realistic benchmarks,but oriented todesktops,EEMBC EDN Embedded Benchmark Consortium,www.eembc.org,Suites of benchmarks:automotive,consumerelectronics,networking,office automation,telecommunications,PC
9、,IR,von Neumann Architectureaddress,memory,data,200CPU,200,ADD r5,r1,r3,ADD r5,r1,r3,Harvard architectureaddress,data memoryprogram memory,dataaddressdata,PCCPU,von Neumann vs.Harvard,Harvard cant use self-modifying code.Harvard allows two simultaneous memoryfetches.,Most DSP use Harvard architectur
10、e forstreaming data:,greater memory bandwidth;more predictable bandwidth.,ARM vs.SHARC,ARM7 is von Neumann architecture,We will concentrate on ARM7,ARM9 is Harvard architecture,SHARC is modified Harvard architecture.,On chip memory(1Gbit)evenly split betweenprogram memory(PM)and data memory(DM)Progr
11、am memory can be used to store some data.Allows data to be fetched from both memory in parallel,uP Performance,Width of data path,performance(Width of Data Path)2,The most general categorization of processor performanceTypical data bus widths:4,8,16,32,64,128 bits wideWider data busses-greater data
12、processing capabilityData bus width trade-off,the wider data path:,Is more complex to design,Takes up more room on PC boardsGenerates greater amounts of energyRequires more costly memory designsIs not compatible with existing hardware,More on data path width,Data path width generally determines func
13、tionality4,8 bits-Appliances,modems,simple applications16 bits-Industrial controllers,automotive,32 bits-Telecomm,laser printers,high-performance apps64 bits-PCs,UNIX workstations,games128,256 bits(VLIW)-Next generation,Internal and external data paths may differ in size,Narrower memory is more econ
14、omicalMC68000:32-bit internal/16-bit externalMC68008:32-bit internal/8-bit external80C188:16-bit internal/8-bit external,Remember:An 8-bit processor can do almost everything a 64-bitprocessor can do,it will just take longer to accomplish,Processor Micro-architecture,On-chip instruction/data cache,ho
15、w big?Pipelines,Superscalar/VLIW,Trade-off-high performance costs money,powerAddress bus design,Address bus width:16-36 bits,Multiplexed,synchronous,asynchronous,Processor type:CISC,RISC,DSP,What is the nature of the algorithm to implement?Control rich:CISCData rich:RISC,Data transforms and mathemat
16、ical processing:DSP,More on address bus width,The amount of externally accessible memory is defined asthe Address Space of the processor,Can vary from 1KB for simple microcontrollers to over 60 GBin high performance processors,Size of the address space doesnt mean that you have thatmuch memory,it on
17、ly means that the capabilities exist todirectly access it,Processors with smaller address spaces can still manipulatelarger memory arrays with techniques such as PagingSpecial memory or I/O location used to swap in and outmemory pages,Example:An 8-bit Z80 processor with a 16-bit addressbus(64K)can a
18、ddress a 1Mbyte address space byswapping between one of 16,64Kbyte,memory pages,Single or Multiple processors,Combine CISC,RISC and DSP in a singledesign,Tight coupling or loose couplingArchitecture,Code design,compiler capabilitiesDebug tool availabilitySystem simulation tools,Integration of functi
19、ons,Microprocessor or microcontroller?Review:,A microprocessor contains the basic CPU functionality,and moreA microcontroller combines the CPU core with peripheral devicesThe microprocessor is usually the leading edge of performance,Lowest level of integrationHighest cost,Higher levels of integratio
20、n imply,Lower system costsGreater reliabilityLess powerFaster,Higher processor cost,As uP matures the core moves into the uC families,CPU CoreRAMROMFLASHTimersWatchdog,CoprocessorLCD Controller,DMACSSAP490B$100KNRE,FLASHPCI BusBridge,Real-timeClockCacheA/D ConverterSerial PortsEthernetParallel Ports
21、,主要内容,嵌入式设计生命周期选择过程划分决策,详细的硬件与软件设计,嵌入式硬件开发过程嵌入式软件开发过程软硬件协同设计过程,开发、调试环境与工具,划分决策,软件与硬件的双重性,软件与硬件的分离:基于开发成本和性能的决策,新的硬件描述语言:HDLHandel-C协同设计过程,Hardware/Software Partitioning,Definition,The process of deciding,for each subsystem,whetherthe required functionality is more advantageouslyimplemented in hardwa
22、re or software,Goal,To achieve a partition that will give us the requiredperformance within the overall system requirements(insize,weight,power,cost,etc.),This is a multivariate optimization problem thatwhen automated,is an NP-hard problem,HW/SW Partitioning Issues,Partitioning into hardware and sof
23、tware affectsoverall system cost and performanceHardware implementation,Provides higher performance via hardwarespeeds and parallel execution of operationsIncurs additional expense of fabricating ASICs,Software implementation,May run on high-performance processors at lowcost(due to high-volume produ
24、ction),Incurs high cost of developing and maintaining(complex)software,Partitioning Approaches,Start with all functionality in software and moveportions into hardware which are time-critical andcan not be allocated to software(software-oriented partitioning),Start with all functionality in hardware
25、and moveportions into software implementation(hardware-oriented partitioning),主要内容,嵌入式设计生命周期选择过程划分决策,详细的硬件与软件设计,嵌入式硬件开发过程嵌入式软件开发过程软硬件协同设计过程,开发、调试环境与工具,软硬件设计过程中的文档管理,需求分析文档(产品定义阶段),总体方案设计(选择过程和软硬件划分)概要设计文档(软硬件初步设计)详细设计文档(软硬件详细设计),测试需求文档(模块测试及联调准备)系统测试报告(测试小组)使用说明文档/源程序注释,总体方案设计,项目概述(来自需求分析文档),功能与指标描述
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 嵌入式 项目 开发 过程

链接地址:https://www.31ppt.com/p-2963826.html