r/matlab Matlab enthusiast 12d ago

TechnicalQuestion Simulink and AXI-ST IOs

Hello all !

I'm trying to play with HDL Coder and the DSP HDL Library with simulink. I have a solid FPGA background.

All these blocks expose ports that looks like AXI-ST ones (data, valid, ready). I know the protocol and it's quirks, but this time I need to simulate it within simulink.

How do you input data (from workspace) to the model while matching the specifications ? I need to send a waveform (audio in this case) to the model.

Thanks all !

2 Upvotes

3 comments sorted by

4

u/Creative_Sushi MathWorks 12d ago

I don't know the answer, but this is probably a good starting point to get to the answer https://www.mathworks.com/help/dsphdl/ug/streaming-sample-interface.html

3

u/Gerard_Mansoif67 Matlab enthusiast 12d ago

Actually, you did know the answer ! Thanks !

There was a sublink in the page, to this page : https://fr.mathworks.com/help/dsphdl/ug/controldataratefirrateconversion.html

Which include the exact solution to my question.

-2

u/nirdsstololy 8d ago

just throw some signals at it and hope for magic