C2h performance metrics, C2h performance metrics –2 – Altera Nios II C2H Compiler User Manual

Page 116

Advertising
background image

5–2

9.1

Altera Corporation

Nios II C2H Compiler User Guide

November 2009

C2H Performance Metrics

Example 5–1

shows a typical nios2-c2h-generate-makefile command

line.

Example 5–1. nios2-c2h-generate-makefile command line

nios2-c2h-generate-makefile \

--sopcinfo=../../NiosII_stratix_1s40_standard.sopcinfo \
--app_dir=./ \
--accelerator=doDMA,DMA.c \
--accelerator=analyze,../../../finite.c,1,0 \
--use_existing_accelerators

f

For more detail about nios2-c2h-generate-makefile, refer to the

Nios II

Software Build Tools Reference

chapter of the

Nios II Software Developer’s

Handbook

.

1

You must use the

--c2h

flag when calling

nios2-app-generate-makefile

in order to make your application

with C2H. This flag causes the static C2H make rules to be
included in your application makefile. These rules in turn
include the c2h.mk fragment generated by this command.

f

For more information about nios2-app-generate-makefile,
refer to the

Nios II Software Build Tools Reference

chapter of

the

Nios II Software Developer’s Handbook

.

C2H
Performance
Metrics

The C2H Compiler produces a detailed report during software
compilation. This report shows hardware structure, resource usage, and
throughput. Using the build report you can view the resource usage and
scheduling information for each accelerated function.

--analyze_only

Disables hardware generation, SOPC Builder system
generation, and Quartus II compilation for all
accelerators in the application. Building the project with
this option only updates the report files. Defaults to 0.

--use_existing_accelerators

Disables all hardware generation steps. The build
behaves as if

c2h.mk

did not exist, with the exception

of possible accelerator linking as specified in the

--accelerator

option. Defaults to 0.

Table 5–1. nios2-c2h-generate-makefile Command Line Arguments (Part 2 of 2)

Argument Name

Meaning

Advertising