IPT-C2H-NIOS Altera, IPT-C2H-NIOS Datasheet - Page 80

no-image

IPT-C2H-NIOS

Manufacturer Part Number
IPT-C2H-NIOS
Description
C2H COMPILER FOR NIOS II
Manufacturer
Altera
Series
Nios®IIr
Type
Nios IIr
Datasheet

Specifications of IPT-C2H-NIOS

Function
C to Hardware Compiler
License
Initial License
Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
FPGA
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
Not applicable / Not applicable
Scheduling
Example 3–33. Dependency Graph for a Function Containing a Loop
int transform_and_hash_matrix(int *matrix,
{
}
3–40
Nios II C2H Compiler User Guide
int n_words = length * width;
int hash = 1;
int i;
for (i=0; i<n_words; i++)
{
}
return hash;
...perform some transform...
hash = ...some hash calculation...
For the purposes of scheduling, the C2H Compiler treats a loop and its
dependencies as a unit. No lines of code past the loop block execute until
the whole loop completes.
the function transform_and_hash_matrix(), shown in
Example
Figure 3–19. Dependency Graph for a Function Containing a Loop
As shown in
n_words, and so the C2H Compiler does not schedule the loop until after
the assignment to n_words completes. The return statement outside
the loop depends on hash, which is assigned inside the loop. As a result,
the C2H Compiler does not schedule the return statement until the loop
completes.
In this case, the state machine for transform_and_hash_matrix()
has three states. However, the state machine does not complete in three
clock cycles, because State 1 consists of a sub-state-machine, which
requires multiple clock cycles to complete.
int length, int width)
3–33.
Figure
3–19, some part of the for loop depends on
9.1
Figure 3–19
shows the dependency graph for
Altera Corporation
November 2009

Related parts for IPT-C2H-NIOS