参数资料
型号: IPT-C2H-NIOS
厂商: Altera
文件页数: 89/138页
文件大小: 0K
描述: C2H COMPILER FOR NIOS II
标准包装: 1
系列: Nios®II
类型: Nios II
功能: C 到硬件编译器
许可证: 初始许可证
C-to-Hardware Mapping Reference
Loop Latency and Cycles per Loop Iteration (CPLI)
There are two metrics that determine the efficiency of an accelerated loop:
loop latency and cycles per loop iteration (CPLI).
Loop latency is the amount of time required for the first iteration of a loop
to complete, assuming one clock cycle per state of the loop's state
machine. An iteration completes when it passes from the first state
through the last state, and so the loop latency is equal to the number of
states in the loop's state machine.
CPLI is the minimum possible period for issuing successive loop
iterations. A new iteration of the loop state machine is issued every CPLI
clock cycles, assuming one clock per state. After initial loop latency is
overcome, a loop's state machine produces results for each successive
iteration every CPLI clock cycles. CPLI is determined by the loop-carried
dependencies present in a loop.
In general, the goal of optimizing C code for the C2H Compiler is to
reduce both loop latency and CPLI to as close to 1 as possible for all loops
in the accelerator. Loop latency and CPLI values assume no stalling,
however, which is not always realistic (see section “Stalling” on
page 3–39 ). Inner loops, subfunction calls, and slow memory accesses all
cause stalling at runtime, which cannot be reflected in CPLI and loop
latency. Conceptually, C2H optimization techniques are similar to
traditional C compilers: Focus effort on minimizing loop latency and
CPLI for critical inner loops first; reduce execution time of subfunction
calls; and use fast memory for performance-critical sections of code.
Subfunction Pipelining
Each subfunction is implemented as a state machine, and a subfunction
call translates to a particular state within the containing function or loop.
In other words, a subfunction translates to a state machine within a state
machine. The fact that it is a distinct state machine allows it to be a shared
resource within the containing function.
If the subfunction does not contain loops or shared data dependencies,
the C2H Compiler can pipeline the subfunction. The subfunction has its
own state machine, but the datapath is pipelined as if it were the body of
a loop. When the outer state machine reaches the state to call the
subfunction, it can continue to execute other operations in parallel with
the inner state machine. Data sets from multiple subfunction calls are
pipelined in the subfunction’s state machine.The code in Example 3–38
contains a subfunction which is pipelined by the C2H Compiler.
Altera Corporation
November 2009
9.1
3–49
Nios II C2H Compiler User Guide
相关PDF资料
PDF描述
IPTR-DSPBUILDER DSP BUILDER SOFTWARE
IR11662SPBF IC CNTROL SMART RECTIFIER 8-SOIC
IR1166STRPBF IC MOSFET DRIVER N-CH 200V 8SOIC
IR11672ASPBF IC MOSFET DRIVER 200V 8-SOIC
IR1167ASTRPBF IC SMART SECONDARY DRIVER 8-SOIC
相关代理商/技术参数
参数描述
IPT-DSPBUILDER 功能描述:开发软件 DSP Builder MATLAB SIMULINK RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
IPTE-75GF-1000-70D 制造商: 功能描述: 制造商:undefined 功能描述:
IPTG06A18-11SZC 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector with Backshell to Accommodate
IPTG06A18-11SZCPH16 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector
IPTG06A18-11SZCPHM18 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector