Observe results in the report file – Altera Nios II C2H Compiler User Manual

Page 33

Advertising
background image

Altera Corporation

9.1

2–11

November 2009

Nios II C2H Compiler User Guide

Getting Started Tutorial

1

If you copy or move a C2H project to a different directory, you
must make sure you have the generated C source files and C2H
makefile fragments in the new location. If you regenerate your
accelerator in the new location, the C2H Compiler recreates
these files for you. This is the simplest way, although not the
fastest, to ensure that you have these files.

If you want to avoid regenerating, simply copy or move the two
files when you copy or move your original C source files. Copy
or move the files, alt_c2h_<function_name>.c and
c2h_accelerator_base_addresses.h,

to the subdirectory in the

new project location corresponding to their original location.

Observe Results in the Report File

The C2H Compiler produces a detailed build report in the C2H view. The
build report contains information about accelerator performance and
resource utilization, which you can use to optimize your C code for the
C2H Compiler. This section introduces the main features of the report file.

Inspect the report by performing the following steps:

1.

Click the C2H view in the Nios II IDE. You can double click the C2H
tab to view the report in full-screen mode.

2.

In the C2H view, expand c2h_tutorial_sw, do_dma(), Build report.

1

For designs with multiple accelerators, a build report appears
under each function listed in the C2H view.

3.

Expand the Glossary section. This section defines the terminology
used in the rest of the report.

Advertising