3.6.1.8 Replicate Function
(Ask a Question)- Syntax
#pragma HLS function replicate
- Description
- This pragma specifies a function to be replicated every time it is called. By default, when the circuit is not pipelined, SmartHLS™ creates a single instance for each function which is shared across multiple calls to the function. When using this pragma on the function, SmartHLS will create a new instance of the function for every function call.
- Position
- At the beginning of the function definition block.
- Examples
int sum(int *a) { #pragma HLS function replicate ... }