3.6.1.16 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 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 Top-level Driver Options in Pointer Arguments' AXI4 Target Interface Pragma ecc
true|false
Yes false
Specifies if Error Correction Code is enabled. Set to true
for enabling ECC for AXI4 Target Interface. See Error Correction Code for more information about Error Correction Code.- 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) ... }