10-30-2018 02:45 AM - edited 10-30-2018 02:54 AM
Hi,
I'm learning how to use DMA, VDMA. So I choose the loopback mode to verify them and I need to make the pattern. In Dma, I easily create the pattern to test transmit in loopback mode, I just need to make to for loop to put the pattern into Tx Buffer. My pattern includes two packets, each packet has the 8-bit length like this:
//MAX_PK_LENGTH = 8 bit for (Index = 0; Index < 2*MAX_PK_LENGTH; Index++){ *(TxBufferPtr+Index) = Value; xil_printf ("TX addr: %x and value: %x\n\r", (unsigned int)(TxBufferPtr+Index),(unsigned int)TxBufferPtr[Index]); Value = (Value+1) & 0xFF;
for (Index = 0; Index < 2*MAX_PK_LENGTH; Index++){ if (RxBufferPtr[Index] != Value){ xil_printf("Data error %d: %x/%x\r\n", Index, (unsigned int)RxBufferPtr[Index], (unsigned int)Value); } xil_printf ("RX addr: %x and value: %x \n\r", (unsigned int)(RxBufferPtr+Index),(unsigned int)RxBufferPtr[Index]); Value = (Value+1) & 0xFF; }
11-07-2018 12:18 AM
Hi @skyfall133,
The Test Pattern Generator as an example design you can use.
I also wrote the Video Beginner Series 4 showing the TPG IP in simulation.
Regards,
11-01-2018 09:21 AM
Hi @skyfall133,
I would use the solution with the VDMA, this is the easiest way for me. Yes you should be able to do as per your suggestion.
Let me know if you have any issue doing this.
Best Regards,
11-07-2018 12:07 AM - edited 11-07-2018 12:10 AM
@florentw thanks for the reply,
I am doing that. If I have any issue, I will tell you.
11-07-2018 12:18 AM
Hi @skyfall133,
The Test Pattern Generator as an example design you can use.
I also wrote the Video Beginner Series 4 showing the TPG IP in simulation.
Regards,
11-14-2018 07:32 AM
HI @skyfall133,
Do you have any update on this?
If your question is answered or your issue is solved, please mark the response which helped as solution (click on the button "Accept as solution" below the reply)
If this is not solved/answered, please reply in the topic giving more information on your current status.
Best Regards,