Altera Nios II C2H Compiler User Manual

Page 93

Advertising
background image

Altera Corporation

9.1

3–53

November 2009

Nios II C2H Compiler User Guide

C-to-Hardware Mapping Reference

Figure 3–26. Shared And Independent Resources

Another way of managing shared resources is to place the code that uses
the resource in a subfunction. For example, to ensure that a math-
intensive function uses no more than three multipliers, you could place
the multiply operation in three subfunctions

mul1()

,

mul2()

and

mul3()

. With pipelined subfunctions, the latency overhead of this

approach is not excessive. For further details, see

“Subfunction Calls” on

page 3–41

.

Advertising