Tutorial, Tutorial design, Tutorial –4 – Altera Nios II C2H Compiler User Manual

Page 26

Advertising
background image

2–4

9.1

Altera Corporation

Nios II C2H Compiler User Guide

November 2009

Tutorial

OpenCore Plus hardware evaluation supports the tethered mode of
operation for C2H. In tethered mode the accelerator runs indefinitely, as
long as the target board remains connected to the host computer by an
Altera download cable

You need to purchase a license for the Nios II C-to-Hardware
Acceleration Compiler only when you are completely satisfied with the
functionality and performance of your accelerated Nios II system, and
want to take your design to production.

f

For more information on OpenCore Plus hardware evaluation, see

AN 320: OpenCore Plus Evaluation of Megafunctions

.

Tutorial

This section guides you through the steps to accelerate a function using
the C2H Compiler. You create a new software project in the Nios II IDE
using the provided example design files, accelerate a function, and
observe the performance improvement.

This tutorial guides you through the steps to implement the example
design. These steps start with a C source file and end with a running
application that includes an accelerated function. The steps you perform
are described in the following sections:

1.

“Set up the Hardware for the Project” on page 2–5

2.

“Create the Software Project” on page 2–6

3.

“Run the Project as Software Only” on page 2–7

4.

“Create and Configure a Hardware Accelerator” on page 2–8

5.

“Rebuild the Project” on page 2–10

6.

“Observe Results in the Report File” on page 2–11

7.

“Observe the Accelerator in SOPC Builder” on page 2–14

Tutorial Design

The hardware design for this tutorial is based on the standard hardware
example design provided with the Nios II EDS. The software design is a
C file named dma_c2h_tutorial.c, which is available for download from
the Altera website. You can run the tutorial design on any Nios
development board available from Altera.

Advertising