Connect AXI4 Master to multiple slaves

21 views (last 30 days)
John
John on 26 Nov 2025 at 18:47
Commented: John on 3 Dec 2025 at 16:59
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?

Answers (1)

Wang Chen
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
  1 Comment
John
John 2 minutes ago
I am using an Altera Qsys reference design. I was hoping to not have to create a second AXI master interface because then I would have to duplicate the logic in the Simulink model for the simplified axi4 master interface. I think i might just manually create the connection in platform designer after Matlab creates the IP core but that is less than ideal.

Sign in to comment.

Tags

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!