Partition Top-Level Interface

Syntax

#pragma HLS memory partition argument(<arg_name>) type(complete|none) dim(<int>)

Description

This pragma specifies a top-level argument to be partitioned. Dimension 0 corresponds to the right-most dimension of an array and higher dimensions correspond to leftward dimensions. Note that this only applies to top level functions.

Parameters

Parameter

Value

Optional

Default

Description

argument

String

No

Argument name

type

complete|none

Yes

complete

Partition type

dim

Integer

Yes

0

Partition dimension

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(none)
#pragma HLS memory partition argument(b)
}