How do I add multiple AXI4 Master Interfaces to a reference design in HDL Coder?
4 views (last 30 days)
Show older comments
MathWorks Support Team
on 14 May 2019
Edited: MathWorks Support Team
on 29 Feb 2024
How do I add multiple AXI4 Master Interfaces to a reference design in HDL Coder?
Accepted Answer
MathWorks Support Team
on 18 Jan 2024
Edited: MathWorks Support Team
on 29 Feb 2024
To add multiple AXI4 Master interfaces, add multiple calls of 'addAXI4MasterInterface' to the reference design definition file (plugin_rd.m). For example:
hRD.addAXI4MasterInterface(...
'InterfaceID', 'AXI4 Master 1', ...
'ReadSupport', true, ...
'WriteSupport', true, ...
'MaxDataWidth', 128, ...
'AddrWidth', 32, ...
'InterfaceConnection', 'axi_interconnect_1/S01_AXI',...
'TargetAddressSegments', {{'mig_7series_0/memmap/memaddr',2*1024^3,2*1024^3}});
hRD.addAXI4MasterInterface(...
'InterfaceID', 'AXI4 Master 2', ...
'ReadSupport', true, ...
'WriteSupport', true, ...
'MaxDataWidth', 128, ...
'AddrWidth', 32, ...
'InterfaceConnection', 'axi_interconnect_1/S02_AXI',...
'TargetAddressSegments', {{'mig_7series_0/memmap/memaddr',2*1024^3,2*1024^3}});
To learn more about 'addAXI4MasterInterface', please run the below command in the MATLAB R2018b command window to get its release specific documentation:
web(fullfile(docroot, 'hdlcoder/ref/hdlcoder.referencedesign.addaxi4masterinterface.html'))
Please follow the below link to search for the required information regarding the current release:
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!