3.6.1.15 AXI4 Target Interface for Pointer Argument
(Ask a Question)- Syntax
#pragma HLS interface argument(<arg_name>) type(axi_target) num_elements(<int>) dma(true|false) requires_copy_in(true|false)
- Description
- This pragma specifies the AXI4 target interface type for a pointer (including array, struct, class types) argument. For more details, see the 3.5.1.18.3.3 AXI4 Target Interface section. This pragma is ignored if the enclosing function is not specified as the top-level.
- Parameters
Parameter Value Optional Default Description argument
string No - Argument name type
axi_target
No - Interface type num_elements
integer Yes - Specifies the number of elements of the argument array. Can override the array size in the argument. dma, requires_copy_in
true|false
Yes false
Specifies the transfer method and copy-in behaviour in the top-level driver function. See 3.5.1.19.5.1 Top-level Driver Options in Pointer Arguments' AXI4 Target Interface Pragma - Position
- At the beginning of the function definition block.
- Examples
int fun(int a[], int b[101]) { #pragma HLS function top #pragma HLS interface argument(a) type(axi_target) num_elements(100) dma(true) requires_copy_in(false) #pragma HLS interface argument(b) type(axi_target) ... }