Function build configurations, Resources, Resources –3 – Altera Nios II C2H Compiler User Manual

Page 97

Advertising
background image

Altera Corporation

9.1

4–3

November 2009

Nios II C2H Compiler User Guide

Understanding the C2H View

Function Build Configurations

The function build configurations let you control the linking of individual
accelerated functions of a software project and the cache coherency
settings. This control is important for systems with multiple accelerators
per software project since cache coherency might not be an issue for all
the accelerated functions. While you work on a single accelerator, you can
compile the other accelerated functions in software-only mode, speeding
up C2H compilation.

Table 4–2

describes the available function build configurations.

Resources

The resources section of the build report shows information about the
resource usage of the accelerated function. The following are the
resources that can appear in this section of the build report:

Avalon-MM master ports

Multipliers

Dividers

Barrel shifters (variable shift)

Each of these resources has information about how they are configured in
the hardware and the line of source code that mapped to them. In the
following discussion of these resources, refer to

Example 4–1

.

Build software and
generate SOPC
Builder system

This configuration allows you to update the function accelerators in your system by forcing
SOPC Builder to regenerate the logic. SOPC Builder runs in the background and you can
view the process of the logic regeneration from the Nios II IDE console view.

Do not open SOPC Builder until logic generation is complete. The Nios II IDE coordinates
the software and hardware builds.

Once the SOPC Builder regeneration is complete, the Nios II IDE displays the updated
build information in the C2H view.

The logic regeneration only occurs if the accelerator did not previously exist or the
accelerated function source code changes. In order for these changes to take effect you
must compile the hardware design using the Quartus II software.

Build software,
generate SOPC
Builder system, and
run Quartus II
compilation

This configuration is a superset of

Build software and generate SOPC Builder system

.

Once SOPC Builder generates the system, Quartus II runs in the background and
compiles the hardware design. While the Quartus II software is running in the background
you can view the progress from the Nios II IDE console view.

Table 4–1. Project Build Configurations (Part 2 of 2)

Configuration

Meaning

Advertising