Author Topic: Need help with XDMA Stream  (Read 3060 times)

0 Members and 1 Guest are viewing this topic.

Offline notoothTopic starter

  • Contributor
  • Posts: 20
  • Country: vn
Need help with XDMA Stream
« on: July 27, 2023, 08:37:05 pm »
Can anyone tell me what is wrong with this block design? It is supposed to return the multiplication of 2 float numbers, but I always get 0.
« Last Edit: July 27, 2023, 08:45:16 pm by notooth »
 

Online asmi

  • Super Contributor
  • ***
  • Posts: 2800
  • Country: ca
Re: Need help with XDMA Stream
« Reply #1 on: July 27, 2023, 08:41:15 pm »
I see nothing wrong because I see no block design ^-^

Offline notoothTopic starter

  • Contributor
  • Posts: 20
  • Country: vn
Re: Need help with XDMA Stream
« Reply #2 on: July 27, 2023, 08:46:16 pm »
I have just attached the picture of the block design.
 

Online asmi

  • Super Contributor
  • ***
  • Posts: 2800
  • Country: ca
Re: Need help with XDMA Stream
« Reply #3 on: July 28, 2023, 02:10:55 am »
That block is Ultrascale+ only, so I can't help with that because I have no experience with it. I can only offer some general suggestions like using ILA to see what is going on.

Offline notoothTopic starter

  • Contributor
  • Posts: 20
  • Country: vn
Re: Need help with XDMA Stream
« Reply #4 on: July 29, 2023, 02:26:24 pm »
I tried to do the following with ILA:
In the Hardware window, I clicked Run Trigger Immediate
In a terminal, I run a command to send 256-bit data to /dev/xdma0_h2c_0
In the Waveform window, I clicked Run trigger immediate for this ILA core
But I did not see any change of xdma_0_m_axis_h2c_tdata_0 sinal. What did I do wrong?
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4966
  • Country: au
    • send complaints here
Re: Need help with XDMA Stream
« Reply #5 on: July 29, 2023, 11:37:37 pm »
Run Trigger Immediate
....
What did I do wrong?
Take some steps back and learn the parts one at a time.
https://docs.xilinx.com/r/en-US/ug908-vivado-programming-debugging/Running-the-Trigger

Test things in small parts rather than asking "why doesn't this big complex thing that no-one else has ever built before not work the way I expect it to".
 

Offline notoothTopic starter

  • Contributor
  • Posts: 20
  • Country: vn
Re: Need help with XDMA Stream
« Reply #6 on: July 30, 2023, 12:19:55 pm »
Take some steps back and learn the parts one at a time.
https://docs.xilinx.com/r/en-US/ug908-vivado-programming-debugging/Running-the-Trigger

That was exactly the document that I learned, but I have not got the idea how to capture data of m_axis_h2c_tdata_0 interface when I wrote data to /dev/xdma0_h2c_0.
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4966
  • Country: au
    • send complaints here
Re: Need help with XDMA Stream
« Reply #7 on: July 30, 2023, 09:19:19 pm »
Take some steps back and learn the parts one at a time.
https://docs.xilinx.com/r/en-US/ug908-vivado-programming-debugging/Running-the-Trigger
That was exactly the document that I learned, but I have not got the idea how to capture data of m_axis_h2c_tdata_0 interface when I wrote data to /dev/xdma0_h2c_0.
If you can't take what that document describes and figure out how to capture a write, then you need to go back further. What is a write? what does it look like in simulation? what should it look like on the logic analyser?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf