3.6.1.24 Partition Top-Level Interface
(Ask a Question)- Syntax
#pragma HLS memory partition argument(<arg_name>) type(block|cyclic|complete|struct_fields|none) dim(<int>) factor(<int>)
- Description
- This pragma specifies a top-level argument to be partitioned. Dimension 1 corresponds to the left-most dimension of an array and higher dimensions correspond to right-ward dimensions. The
dim
parameter is only applicable forblock|cyclic|complete
types. Ifdim
is 0, the specified partitioning will be applied to all dimensions. Thefactor
parameter is only applicable forblock|cyclic
types to specify the number of partitions.factor
must be larger than 1. For more details about the pragma options, see .User-Specified Memory Partitioning - Parameters
Parameter Value Optional Default Description argument
string No - Argument name type
block, cyclic, complete, struct_fields, none
Yes complete
Partition type dim
integer Yes 0 Partition dimension factor
integer Yes - Number of partitions - Position
- At the beginning of the function definition block.
- Examples
int sum(int *a, int *b) { #pragma HLS function top #pragma HLS memory partition argument(a) type(cyclic) dim(2) factor(4) #pragma HLS memory partition argument(b) }