Configure Argument as Memory InterfaceΒΆ
Syntax
#pragma LEGUP interface argument(<arg_name>) type(memory) depth(<int>)
Description
This pragma specifies the memory interface type for an array/struct argument.
The array size can be specified or overridden (over the declared size in C++) by specifying the depth
option.
More details in Top-Level RTL Interface section.
Parameters
Parameter | Type | Optional | Default | Description |
---|---|---|---|---|
argument |
String | No | Argument name | |
type |
memory |
No | Interface type | |
depth |
Integer | Yes | Overrides the array size |
Position
At the beginning of the function definition block.
Examples
int fun(int a[], int b[]) {
#pragma LEGUP interface argument(a) type(memory) depth(100)
#pragma LEGUP interface argument(b) type(memory)
...
}