3.6.1.18 Legacy AXI4 Slave Interface for Global Variable
(Ask a Question)- Syntax
#pragma HLS interface variable(<var_name>) type(axi_slave) concurrent_access(true|false)
- Description
- This pragma specifies the legacy AXI4 slave interface for a global struct. When the
concurrent_access
option is set to true (default to false), the external logic can read/write the AXI4 slave interface while the SmartHLS module is running. The concurrent access will however reduce the SmartHLS module's throughput to access the memory. For more details. see the Legacy AXI4 Slave Interface section. This pragma is ignored if the enclosing function is not specified as the top-level. - Parameters
Parameter Value Optional Default Description variable
string No - Variable name type
axi_slave
No - Interface type concurent_access
true|false
Yes false
Enable/disable concurrent access - Position
- Before the global variable declaration.
- Examples
#pragma HLS interface variable(b) type(axi_slave) concurrent_access(true) int b[SIZE]