3.6.1.20 Default All Interfaces to Use AXI4 Target
(Ask a Question)- Syntax
#pragma HLS interface default type(axi_target)
- Description
- This pragma specifies the default interface to AXI4 target for all arguments and Module Control Interface. This pragma is ignored if the enclosing function is not specified as the top-level.
- Parameters
Parameter Value Optional Default Description type
axi_target No - Interface type - Position
- At the beginning of the function definition block.
- Examples
// The following two functions have the same interface configurations. // Without using default interface pragma: int fun(int a, int b[10], int c[20], int d[30]) { #pragma HLS function top #pragma HLS interface control type(axi_target) #pragma HLS interface argument(a) type(axi_target) #pragma HLS interface argument(b) type(axi_target) #pragma HLS interface argument(c) type(axi_target) dma(true) #pragma HLS interface argument(d) type(axi_initiator) ptr_addr_interface(axi_target) ... } // Use default interface pragma: int fun(int a, int b[10], int c[20], int d[30]) { #pragma HLS function top #pragma HLS interface default type(axi_target) #pragma HLS interface argument(c) type(axi_target) dma(true) // Note that 'ptr_addr_interface(axi_target)' can be omitted when default interface is set to axi_target. #pragma HLS interface argument(d) type(axi_initiator) ... }