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

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
Figure 3–9. Address Generation for a Read Operation
Altera Corporation
November 2009
Each of these signals is registered at the master port interface of the
hardware accelerator. Logic within the accelerator synchronizes these
signals to produce coherent Avalon-MM master transfers at the master
port.
Address Computation
Consider the pointer dereference in the following code which performs a
read operation:
The C2H Compiler generates logic of the following form to compute the
address signal:
Figure 3–9
dereference for a read operation.
In
sizeof(int) is 4, i must be multiplied by four, which is equivalent to
left-shifting by 2 bits. Bitwise shift operators require no logic elements to
compute, and the result is not registered. (See section
Operations and Assignments” on page
ptr_to_int_i_address feeds registers that drive the address signals
on the Avalon-MM master port. As soon as the address signal
ptr_to_int_i_address is valid, read-enable control logic asserts the
signal ptr_to_int_i_read, which initiates a transfer on the master
Figure
int j = *(ptr_to_int + i);
ptr_to_int_i_addr = ptr_to_int + i * sizeof(int);
3–9, first, the address expression is evaluated. Assuming
shows an example of the logic created for this pointer
9.1
3–3.) The signal
C-to-Hardware Mapping Reference
Nios II C2H Compiler User Guide
“Unregistered
3–21

Related parts for IPTR-C2H-NIOS