Mathematical operator resources – Altera Nios II C2H Compiler User Manual

Page 102

Advertising
background image

4–8

9.1

Altera Corporation

Nios II C2H Compiler User Guide

November 2009

Resources

or a write. However, when an Avalon-MM master port is shared among
two or more dereference statements, it might need to support both
directions.

In

Example 4–1 on page 4–5

, the connection pragmas forced the C2H

Compiler to create a single, shared Avalon-MM master port called

Master Resource 0

. If the connection pragmas were omitted from the

example software, all dereference operations would have resulted in a
single Avalon-MM master port resource connecting to all Avalon-MM
memory slave ports.

f

For more information about connection pragmas, refer to “Optimizing
Memory Connections”
in the

Optimizing Nios II C2H Compiler Results

chapter of the Embedded Design Handbook.

Mathematical Operator Resources

As mentioned in

Chapter 3, C-to-Hardware Mapping Reference

, the data

types used in the C code determine the width of the logic which the C2H
Compiler generates. The resources section of the C2H build report shows
the width of all the resources listed. The resources section also shows the
degree of pipelining on each operator resource. This information helps
you understand the accelerator scheduling information shown in the
Performance section.

Figure 4–3

illustrates the information presented in the C2H build report

for mathematical operator resources in

Example 4–1 on page 4–5

.

Advertising