Partition Memory¶
Syntax
#pragma HLS memory partition variable`(<arg_name>) type(complete|none) dim(<int>)
Description
This pragma specifies a variable to be partitioned. Dimension 0 corresponds to the right-most dimension of an array and higher dimensions correspond to leftward dimensions.
Parameters
| Parameter | Value | Optional | Default | Description | 
|---|---|---|---|---|
| 
 | String | No | Variable name | |
| 
 | 
 | Yes | 
 | Partition type | 
| 
 | Integer | Yes | 0 | Partition dimension | 
Position
Before the global / local variable declaration.
Examples
#pragma HLS memory partition variable(b) type(none)
int b[100];
int fun(int *a) {
  ...
  #pragma HLS memory partition variable(c) dim(1)
  int c[100][100];
  ...
}