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

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
Figure 3–16. Pointers Always Depend on Themselves
Example 3–31. Using Another Pointer to Avoid Self-Dependence
void foo(int * _ _ restrict_ _ my_ptr,
{
}
3–36
Nios II C2H Compiler User Guide
int a, b;
int * _ _ restrict__ my_ptr_b = my_ptr;
a
my_ptr[offset_a] = a + 7;
b
my_ptr_b[offset_b] = b + 8;
int offset_a,
int offset_b)
= my_ptr[offset_a];
= my_ptr_b[offset_b];
In this example, the C2H Compiler cannot schedule the two read
operations in parallel, because it assumes that the two address
expressions of my_ptr could overlap. Assuming that offset_a never
equals offset_b, to make these operations execute in parallel, you need
to declare another restricted pointer.
Figure 3–17
introduces a new restricted pointer, my_ptr_b, to prevent the data
dependency present in
shows the dependency graph for
9.1
Figure
3–16.
Example
Altera Corporation
3–31, which
November 2009

Related parts for IPT-C2H-NIOS