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

no-image

IPTR-C2H-NIOS

Manufacturer Part Number
IPTR-C2H-NIOS
Description
IP CORE Renewal Of IPT-C2H-NIOS
Manufacturer
Altera
Datasheet

Specifications of IPTR-C2H-NIOS

Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
Nios II
Features
ANSI C Compliance, Straightforward C-to-Hardware Mapping, Reporting Of Generated Results
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
na
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 IPTR-C2H-NIOS