Next steps, Next steps –16 – Altera Nios II C2H Compiler User Manual

Page 38

Advertising
background image

2–16

9.1

Altera Corporation

Nios II C2H Compiler User Guide

November 2009

Next Steps

2.

Rebuild the project in the Nios II IDE.

1

You must rebuild the project to remove the hardware
accelerator from the SOPC Builder system hardware.

Figure 2–4. Removing a C2H Accelerator

Removing the accelerator removes the hardware accelerator component
from the SOPC Builder project, and replaces the C2H software wrapper
with the original, unaccelerated function. The next time you build the
project in the Nios II IDE, the C2H Compiler regenerates the SOPC
Builder system and recompiles the Quartus II project to generate a .sof
file without the accelerator hardware.

1

To remove an accelerator from the hardware system, you must
use the Remove C2H Accelerator command in the Nios II IDE.
Do not use SOPC Builder to manually delete the component
from the system. If you delete the component from the SOPC
Builder system using the SOPC Builder GUI, the C2H Compiler
produces undefined results the next time you build the software
project.

Next Steps

Congratulations! You have successfully converted an ANSI C function to
a hardware accelerator using the C2H Compiler and observed a
significant performance increase.

After accelerating a function and running it for the first time, your next
steps vary depending on your system requirements. If your starting goal
is to off-load a routine from the processor to reduce CPU load, you might
find that no additional action is required. If the hardware accelerator does
not meet performance or resource requirements, you can perform one or

Advertising