powerpoint presentation · designers must not rely on the absence or characteristics of any...

32
基于模型的多媒体应用性能和功耗预测 PTAS004 Shi Steven, 资深固件工程师,英特尔 Cremer Illia , 系统建模工程师,英特尔

Upload: others

Post on 12-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

基于模型的多媒体应用性能和功耗预测

PTAS004

Shi Steven, 资深固件工程师,英特尔 Cremer Illia , 系统建模工程师,英特尔

2

议程

• 问题介绍和设计挑战

• 方案 – 系统级建模

• 负载建模与时钟分析

• 平台/体系结构建模与功耗预测

• 总结/问答

本课程演示文稿(PDF)发布在技术课程目录网站: intel.com/go/idfsessionsBJ 该网址同时打印于会议指南中专题讲座日程页的上方

3

议程

• 问题介绍和设计挑战

• 方案 – 系统级建模

• 负载建模与时钟分析

• 平台/体系结构建模与功耗预测

• 总结/问答

4

问题介绍和设计挑战

• 最大化利用多核能力 – 并行化与任务同步是关键

– 难以在实现阶段解决

• 片上系统(SoC)开发中集成众多IP核

– IP核有不同的格式和接口

• 预测系统性能

– 识别性能瓶颈并监测其产生原因

– 在确定体系结构设计前,尽量早地做系统级仿真

5

设计挑战 - 约束

• 功耗限制 – 能耗始终是设计的关键要素

– 必须在早期设计就考虑如何优化

• 上市时间

– 越来越多的功能和服务集成在了一起

– 开发的周期必须可控

– 一个星期的推迟也会造成巨大的损失

• 成本

– 开发硬件原型非常昂贵

6

方案需求

现有设计工具需要调整以应对系统设计挑战

快速仿真(仿真更多的应用场景&交互)

硬件与软件分离建模

与已有的代码和工具集成

激发创新(新功能&服务)

7

议程

• 问题介绍和设计挑战

• 方案 – 系统级建模

• 负载建模与时钟分析

• 平台/体系结构建模与能耗预测

• 总结/问答

8

方案 – 系统级建模

• 快速仿真(仿真更多的应用场景&交互) – 提高抽象层次,从周期准确级(Cycle-Accurate)上升到事务处理级(Transaction-Level Models)

• 硬件与软件分离建模

– 软硬件分离建模,并仿真出软件在具体平台上运行的情形

• 与已有的代码和工具集成

– 使用SystemC来轻松集成C/C++算法

• 激发创新(新功能&服务)

– 无需依赖预先定义的组件

9

Intel® CoFluent™ Studio

• 建模与仿真框架

• 输入:

– 图:基于UML/SysML或Intel® CoFluent™标记图

– C/C++代码:算法和数据类型定义

– 时钟参数、注释

• 输出:

– 自动生成SystemC事务处理级代码并注入插桩

• 行为和性能的分析工具

10

用途

• 早期设计中体系结构探索与性能分析

• 项目成员中共享可演示执行的规范

• 加快创建虚拟平台的设备模型

• 在验证环境中重用SystemC代码

通过支持早期设计中体系结构的探索, Intel® CoFluent™ Studio解决了设计中的主要挑战

11

议程

• 问题介绍和设计挑战

• 方案 – 系统级建模

• 负载建模与时钟分析

• 平台/体系结构建模与能耗预测

• 总结/问答

12

负载建模

• 依据以下方式来对负载和使用案例建模: – UML/SysML – Intel® CoFluent™图形记号

• 一体化视图:控制流和数据流

• 并行与层次结构描述

• 注意:负载建模是完全独立于运行平台的

13

时钟与C/C++代码

• 加入各个功能的运行时间来分析系统性能

• 加入了C/C++结构来定义交互数据的类型

• 行为 VS. 功能

– 行为模型:没有C/C++/Matlab 代码的算法,只有以图示标号为基础的建模

– 功能模型:使用C/C++/Matlab 代码来刻画算法,并处理真实数据

• SystemC代码生成并支持在多个工具环境中编译使用

14

多媒体应用实例

• 负载建模

– 音频/视频的解码和播放

Video Player

Sce

nari

o Con

trol

ler

Audio Player

Audio Source

MP3 Decoder

Video Source

Video Processing

Video Decoder

Video Display

Video Output

Audio Output

15

多媒体播放器负载

16

不同功能的函数有不同程度的并行定义

多媒体播放器负载

17

不同的同步关系使用不同类型的同步定义

多媒体播放器负载

不同功能的函数有不同程度的并行定义

18

在操作模块中定义C/C++算法

多媒体播放器负载

不同功能的函数有不同程度的并行定义

不同的同步关系使用不同类型的同步定义

19

负载模型仿真

在没有具体平台约束的情况下使用负载模型来做功能上的验证仿真

在仿真中评测延时、死锁、缓冲和流水线设计

Timelines “y=f(t)” charts

“y=f(x)” charts Tables

20

议程

• 问题介绍和设计挑战

• 方案 – 系统级建模

• 负载建模与时钟分析

• 平台/体系结构建模与能耗预测

• 总结/问答

21

平台/体系结构建模与能耗预测

• 负载模型有不少优点,但它是基于“完美世界”的仿真…

– 没有调度的约束

– 没有并发的约束

– 没有资源共享的约束

• 平台与体系结构的模型是用来定义约束和可用资源的

• 平台的模型是独立于负载模型的,可被不同的负载复用

22

平台模型的创建

• 和负载建模一样,使用类似于Eclipse*的图形开发环境来对平台模型的组件与互连建模

• 建模基于一般的处理器,总线,存储器和调度器

• 可对调度、性能、功耗的参数做定制

• 可选择调度和仲裁策略

23

多媒体应用平台

处理器

互连

存储器

24

体系结构模型的建立

• 体系结构建模

– 依据软硬件不同的划分策略将负载映射到平台

– 任务分配到不同的处理核

– 功能模块间通信的路由

– 任务优先级的定义

• 性能评测

– 延时

– 系统功耗

– 处理器利用率

25

仿真结果 – 软/硬件划分

• 体系结构1:所有功能都映射到处理器去执行

• 体系结构2:视频的滤波函数映射到硬件加速器

• 时序和体系结构剖面的分析表结果:

– 得益于视频滤波计算的分担,体系结构2的显示延时有25%的下降

– 因为处理器和协处理器的频繁交互,总线利用率从2%提高到了20%

26

仿真结果 – 功耗优化

• 功耗不优化 VS. 功耗优化

• 有了功耗优化,功耗的峰值变平滑了

功耗和性能的评估是设计体系结构的关键

27

议程

• 问题介绍和设计挑战

• 方案 – 系统级建模

• 负载建模与时钟分析

• 平台/体系结构建模与能耗预测

• 总结/问答

28

总结 • 现有设计工具需要调整以应对系统设计挑战

• 通过支持早期设计中体系结构的探索, Intel® CoFluent™ Studio解决了设计中的主要挑战

• 在没有具体平台约束的情况下使用负载模型来做功能上的验证仿真

• 功耗和性能的评估是设计体系结构的关键

29

更多资讯…

• 通过以下链接了解更多关于Intel® CoFluent™ Studio的信息并免费下载 Intel CoFluent Reader:

– http://cofluent.intel.com/

• 通过以下链接了解更多关于Intel ® 软件开发工具的信息:

– http://software.intel.com/en-us/intel-sdp-home/

30

Glossary

• UML: Unified Modeling Language (www.uml.org) • SysML: Systems Modeling Language

(www.sysml.org)

31

Legal Disclaimer INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. • A "Mission Critical Application" is any application in which failure of the Intel Product could result, directly or indirectly, in

personal injury or death. SHOULD YOU PURCHASE OR USE INTEL'S PRODUCTS FOR ANY SUCH MISSION CRITICAL APPLICATION, YOU SHALL INDEMNIFY AND HOLD INTEL AND ITS SUBSIDIARIES, SUBCONTRACTORS AND AFFILIATES, AND THE DIRECTORS, OFFICERS, AND EMPLOYEES OF EACH, HARMLESS AGAINST ALL CLAIMS COSTS, DAMAGES, AND EXPENSES AND REASONABLE ATTORNEYS' FEES ARISING OUT OF, DIRECTLY OR INDIRECTLY, ANY CLAIM OF PRODUCT LIABILITY, PERSONAL INJURY, OR DEATH ARISING IN ANY WAY OUT OF SUCH MISSION CRITICAL APPLICATION, WHETHER OR NOT INTEL OR ITS SUBCONTRACTOR WAS NEGLIGENT IN THE DESIGN, MANUFACTURE, OR WARNING OF THE INTEL PRODUCT OR ANY OF ITS PARTS.

• Intel may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined". Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. The information here is subject to change without notice. Do not finalize a design with this information.

• The products described in this document may contain design defects or errors known as errata which may cause the product to deviate from published specifications. Current characterized errata are available on request.

• Intel product plans in this presentation do not constitute Intel plan of record product roadmaps. Please contact your Intel representative to obtain Intel's current plan of record product roadmaps.

• Intel processor numbers are not a measure of performance. Processor numbers differentiate features within each processor family, not across different processor families. Go to: http://www.intel.com/products/processor_number.

• Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order. • Copies of documents which have an order number and are referenced in this document, or other Intel literature, may be

obtained by calling 1-800-548-4725, or go to: http://www.intel.com/design/literature.htm • Intel, CoFluent, Sponsors of Tomorrow and the Intel logo are trademarks of Intel Corporation in the United States and other

countries.

• *Other names and brands may be claimed as the property of others. • Copyright ©2013 Intel Corporation.

32

Risk Factors The above statements and any others in this document that refer to plans and expectations for the first quarter, the year and the future are forward-looking statements that involve a number of risks and uncertainties. Words such as “anticipates,” “expects,” “intends,” “plans,” “believes,” “seeks,” “estimates,” “may,” “will,” “should” and their variations identify forward-looking statements. Statements that refer to or are based on projections, uncertain events or assumptions also identify forward-looking statements. Many factors could affect Intel’s actual results, and variances from Intel’s current expectations regarding such factors could cause actual results to differ materially from those expressed in these forward-looking statements. Intel presently considers the following to be the important factors that could cause actual results to differ materially from the company’s expectations. Demand could be different from Intel's expectations due to factors including changes in business and economic conditions; customer acceptance of Intel’s and competitors’ products; supply constraints and other disruptions affecting customers; changes in customer order patterns including order cancellations; and changes in the level of inventory at customers. Uncertainty in global economic and financial conditions poses a risk that consumers and businesses may defer purchases in response to negative financial events, which could negatively affect product demand and other related matters. Intel operates in intensely competitive industries that are characterized by a high percentage of costs that are fixed or difficult to reduce in the short term and product demand that is highly variable and difficult to forecast. Revenue and the gross margin percentage are affected by the timing of Intel product introductions and the demand for and market acceptance of Intel's products; actions taken by Intel's competitors, including product offerings and introductions, marketing programs and pricing pressures and Intel’s response to such actions; and Intel’s ability to respond quickly to technological developments and to incorporate new features into its products. The gross margin percentage could vary significantly from expectations based on capacity utilization; variations in inventory valuation, including variations related to the timing of qualifying products for sale; changes in revenue levels; segment product mix; the timing and execution of the manufacturing ramp and associated costs; start-up costs; excess or obsolete inventory; changes in unit costs; defects or disruptions in the supply of materials or resources; product manufacturing quality/yields; and impairments of long-lived assets, including manufacturing, assembly/test and intangible assets. Intel's results could be affected by adverse economic, social, political and physical/infrastructure conditions in countries where Intel, its customers or its suppliers operate, including military conflict and other security risks, natural disasters, infrastructure disruptions, health concerns and fluctuations in currency exchange rates. Expenses, particularly certain marketing and compensation expenses, as well as restructuring and asset impairment charges, vary depending on the level of demand for Intel's products and the level of revenue and profits. Intel’s results could be affected by the timing of closing of acquisitions and divestitures. Intel’s current chief executive officer plans to retire in May 2013 and the Board of Directors is working to choose a successor. The succession and transition process may have a direct and/or indirect effect on the business and operations of the company. In connection with the appointment of the new CEO, the company will seek to retain our executive management team (some of whom are being considered for the CEO position), and keep employees focused on achieving the company’s strategic goals and objectives. Intel's results could be affected by adverse effects associated with product defects and errata (deviations from published specifications), and by litigation or regulatory matters involving intellectual property, stockholder, consumer, antitrust, disclosure and other issues, such as the litigation and regulatory matters described in Intel's SEC reports. An unfavorable ruling could include monetary damages or an injunction prohibiting Intel from manufacturing or selling one or more products, precluding particular business practices, impacting Intel’s ability to design its products, or requiring other remedies such as compulsory licensing of intellectual property. A detailed discussion of these and other factors that could affect Intel’s results is included in Intel’s SEC filings, including the company’s most recent Form 10-Q, report on Form 10-K and earnings release. Rev. 1/17/13