HDL Coder and Bitstream Programming Insight Needed

7 Ansichten (letzte 30 Tage)
Thomas J Kelly
Thomas J Kelly am 23 Aug. 2024
Kommentiert: Sahas am 11 Mär. 2025 um 7:44
I am trying to program the DAC PL-DDR Transmit example ( https://www.mathworks.com/help/hdlcoder/ug/hdl-dac-PL-DDR4-transmit.html ) to my ZCU216 board. I have already asked a question about this a few days ago but will make this one more broad to give it a better chance of being answered.
When generating and programming the bitstream, I ensure that the AXI4 Stream Interface is 128 bits wide. However, when I run the addAXI4StreamInterface() function, a prequisite to writing to the port from MATLAB for testing purposes, I am getting data mismatch errors that can be resolved by changing the inteface width to 64 bits. So, clearly the programmed FPGA is expecting the function to request 64 bits and not 128.
My question is: what kind of troubleshooting steps are aviailable for an issue like this? Trying to explore these functions, you run into .p files quickly, so it's been impossible so far to see what's going on under the hood.
  5 Kommentare
Thomas J Kelly
Thomas J Kelly am 27 Aug. 2024
@Umar thanks for the insight, I'll keep working at it. What I meant by "strange" is that the example is fully worked in the link that I included, and the ZCU216 is explicitly listed as one of two compatible devices. So, I'm still confident that this is supposed to work in a straighforward way, and the issue is somewhere on my end.
Sahas
Sahas am 11 Mär. 2025 um 7:44
If the DAC PL-DDR Transmit Example worked as expected, I suggest trying the following troubleshooting steps:
  • Compare the interfaces of both the working and non-working designs to identify any specific blocks that could affect the data transfer width.
  • Check the Simulink "Model Settings" in both designs for any inconsistencies such as data types, bus widths, or other configuration options.
  • Try enforcing the 128-bit width using MATLAB’s "addAXI4StreamInterface". For more details, refer to this MathWorks documentation: https://www.mathworks.com/help/hdlcoder/ref/addaxi4streaminterface.html
  • Check if there are any data conversion blocks that could cause a bit-width mismatch.
I hope this helps!

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by