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

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
Memory Accesses
Example 3–10. Equivalent Pointers in a Loop
void equivalent_pointers(char *packed_data, int len)
{
}
Example 3–11. Nonequivalent Pointers
void nonequivalent_pointers(char *packed_data, int len)
{
}
3–18
Nios II C2H Compiler User Guide
int i = 0;
while (i < len)
{
}
int i = 0;
while (i < len)
{
}
char ms_nibble = *(packed_data) >> 4;
char ls_nibble = *(packed_data++) & 0x0f;
...
i++;
char ms_nibble = *(packed_data++) >> 4;
char ls_nibble = *(packed_data) & 0x0f;
...
i++;
Example 3–10
The C2H Compiler consolidates them into a single master port.
Example 3–11
Example 3–11
between the two pointer dereferences. In this case the address
expressions have different values, which translate to two separate master
ports.
demonstrates a case of non equivalent pointers.
is similar to
shows two dereferences that are identical inside of a loop.
9.1
Example
3–10, but packed_data increments
Altera Corporation
November 2009

Related parts for IPT-C2H-NIOS