Remove the accelerator, Remove the accelerator –15 – Altera Nios II C2H Compiler User Manual

Page 37

Advertising
background image

Altera Corporation

9.1

2–15

November 2009

Nios II C2H Compiler User Guide

Getting Started Tutorial

a.

If the Programmer window is not still open, on the Tools menu
click Programmer. The Programmer window lists the file
standard.sof

.

b.

Turn on the Program/Configure box for standard.sof.

1

If you don't have a license for the C2H Compiler, the Quartus II
software generates a time-limited .sof file with a different name.
In this case, select standard.sof and click Delete, then click Add
and open the time-limited .sof file.

c.

Click Start. The programmer downloads the new configuration
data to the FPGA.

3.

Return to the Nios II IDE window.

4.

In the C/C++ Projects view, right-click the c2h_tutorial_sw project,
point to Run As and click Nios II Hardware. The Nios II IDE
downloads the accelerated program to the board and runs it.

5.

Observe the execution time in the Console view.

Example 2–2

shows

timing results of approximately 8470 milliseconds. The results you
see might be different, depending on your target board.

Example 2–2. Execution Results with Hardware Acceleration

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: 8470 ms

Remove the Accelerator

You can remove an accelerator from a design by performing the following
steps in the Nios II IDE.

1.

Right-click the function name in the C2H view and click Remove
C2H Accelerator

, as shown in

Figure 2–4

.

Advertising