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

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
Tutorial
Example 2–1. Execution Results as Software-Only Implementation
This simple program copies 1048576 bytes of data from a source buffer to a
destination buffer.
The program performs 100 iterations of the copy operation, and calculates
the time spent.
Copy beginning
SUCCESS: Source and destination data match. Copy verified.
Total time: 86520 ms
2–8
Nios II C2H Compiler User Guide
2.
Create and Configure a Hardware Accelerator
In this section, you create an accelerator for the do_dma() function. To
create the hardware accelerator, perform the following steps:
1.
2.
3.
1
4.
Observe the execution time in the Console view.
results of approximately 86000 milliseconds. The results you see
might be different, depending on the memory characteristics of the
target board and the clock speed of the example design.
Open the dma_c2h_tutorial.c source file in the Nios II IDE editor, if
it is not already open.
In the source file, double-click the name of the do_dma() function
to select it.
Right-click do_dma and click Accelerate with the Nios II
C2H Compiler. The C2H view appears in the bottom pane of Nios II
IDE.
Set the build options for the new accelerator, as shown in
a.
In this example, for simplicity, the do_dma() function exists in
the same file as the rest of the application code. However, a good
practice is to isolate functions for acceleration into a separate C
file. The project makefile cannot determine specifically what
part of a file has changed. As a result, if an accelerated function
coexists in the same file with other unaccelerated code, the
C2H Compiler is forced to rebuild the accelerator, even if you
edit unrelated code.
Click the + icon to expand c2h_tutorial_sw in the C2H view.
9.1
Example 2–1
Altera Corporation
November 2009
Figure
shows
2–1.

Related parts for IPTR-C2H-NIOS