Connect AXI4 Master to multiple slaves
21 views (last 30 days)
Show older comments
I defined an AXI4 Master Interface using the addAXI4MasterInterface method in my plugin_rd file. I want the master interface to connect to more than one slave device but it seems like the InterfaceConnection parameter only allows me to specify one port. I tried editing the qsys file for the reference design so that the IP core generated by HDL coder would connect to all the slave devices. However, this connection seems to get overwritten by the addAXI4MasterInterface function when workflow advisor creates the project. Is there a way to specify more than one interface connection for the AXI4 Master Interface?
0 Comments
Answers (1)
Wang Chen
on 1 Dec 2025 at 17:20
Hi John,
addAXI4MasterInterface method only support connecting to one slave device currently.
If you are creating AMD Vivado reference design, you can add an AXI Interconnect IP into your reference design, connecting the HDL Coder IP core's AXI Master interface to the AXI Interconnect IP, and then use the AXI Interconnect IP to fan out to multiple slave devices.
If you are creating Altera Qsys reference deisgn, because the AXI interconnect is implicit, you cannot connecting to multiple slave devices with this limitation. Alternatively, you can add multiple AXI Master interfaces to the HDL Coder IP core, by calling addAXI4MasterInterface method multiple times to register multiple AXI Master interfaces in the plugin_rd file.
https://www.mathworks.com/help/hdlcoder/ref/hdlcoder.referencedesign.addaxi4masterinterface.html
Thanks,
Wang
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!