Dear all,
I am making a design for an RFSoC device using SoC Blockset add-on.
I have deployed the design, now I want to save data from the FPGA using host interface script (https://www.mathworks.com/help/hdlcoder/ug/generate-host-interface-script-to-probe-and-rapidly-prototype-hdl-ip-core.html) generated during the build by SoC Builder tool.
In this script I removed register interfaces, as my design has none of them yet (I also wonder why they were generated), and left only one interface (AXI4-Stream), to record data from the last IP in the design (which further streams data to the PS, but this is not the scope of the question). The host interface script and the setup functions are attached, I did not alter the "addAXI4StreamInterface" and "DUTPort" setup, they are left in the form in which they were generated.
There is no logic in the script yet, I just tried to run it to see whether the connection is established successfully and whether the interface setup works fine.
However, when I run the host interface script, I get the following error:
>> gs_Top_interface
Error using fpgaio.interface.InterfaceBase/mapPort
Unable to map port(s) "data_PS_Interface_512StreamRead0".
Error in fpgaio.FPGA/mapPort
Error in gs_Top_setup (line 18)
mapPort(hFPGA, h_data_PS_Interface_512StreamRead0);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
gs_Top_interface (line 3)
gs_Top_setup(hFPGA);
^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Error using fpgaio.interface.AXI4Stream/validatePort
Port width "128" for port "data_PS_Interface_512StreamRead0" is too large for interface "PS_Interface_512StreamRead0". The port width must be less than or equal to
the interface's "WriteDataWidth or ReadDataWidth" value of "32". Change the data type on the port to have smaller width.
In the top model and in the FPGA model the signal that I want to record using this script looks like this:
I might be wrong, but it seems like the "addAXI4StreamInterface" and "DUTPort" configuration in the setup script is incorrect.
Do you have any ideas on how to resolve this? Thank you!