Jump to content
  • 0

DMA sample duplicates


Stefanski881

Question

Hi, i am using the EclypseZ7 with the Zmod scope 1410-105.

My project is based on this example, just in a more basic form  https://digilent.com/reference/programmable-logic/eclypse-z7/demos/ddr-streaming. Basically I just want to stream samples continuously into the memory.

So far it works fine, but when I am reading the samples from the memory, I saw that I get sample duplicates very regularly. Using ILAs I found that the duplication takes place after the AXI SmartConnect IP.

I am using the AXI Direct Memory Access IP in Scather/Gather Mode und I have connected it through the AXI SmartConnect to the ZYNQ7 Processing System. The scope is using 100 MSps and is directly  connected to a AXI-Stream Clock Converter, which converts the clock from 100 MHz to 133 MHz (DDR PLL). In between is a packetizer, which just counts the samples and generates a tlast signal. Using faster/slower clocks doesnt solve the problem, but it changes he pattern. For example with 133 MHz every 2nd sample is duplicated. With 118 MHz every 4th or 5th sample is duplicated. When I am lowering the samplerate it works fine and I get the correct signal, but I need the device to run on 100MSps.

I hope I could explain my problem good enough. If not I can elaborate on it or provide more information.

Thanks in advance.

 

Block.thumb.PNG.11ec33786a503304487f5c914cee6585.PNG

Sampling.png

Edited by Stefanski881
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @Stefanski881,

Interesting. Does the design meet timing? An intermittent failure like this might mean that data doesn't have enough time to make it to the next register. Any related critical warnings and warnings would be helpful. There are likely various small optimizations that could help.

Thanks,

Arthur

Link to comment
Share on other sites

  • 0

Hey @artvvb, sorry for the late response, I was sick the past week. I dont have any critical warnings. You can see the normal warnings below, that might be related, I was looking into them myself but I am missing some knowledge to fully understand were the problem might come from or what warning could be an issue. 

Timing.PNG

smart.PNG

cdc.PNG

Edited by Stefanski881
Link to comment
Share on other sites

  • 0

I solved the problem. It wasnt any timing issue what so ever. The traitor was the packetizer all along. Basically my rvalid signal was delayed by one clock cycle which caused all the problems.

Sorry for wasting your time, it was a very simple mistake, but still thank you for responding!

Edited by Stefanski881
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...