Forum Discussion
Agilex 5 MCDMA IP for PCIe
We are using the GTS AXI Multichannel DMA IP for PCI Express in an Agilex 5E device. It is configured as BAM+MCDMA with an AXI-MM user interface. Quartus version is 26.1.0.
Our simulation executes 5 write TLPs (incrementing byte addresses) followed by 1 read TLP. The read TLP reads the last write location. Writes and reads are going to external memory through DDR4 EMIF. Our simulation shows that the memory controller receives the requests as: write, write, read, write, write, write instead of 5 writes followed by a read.
Looking at the BAM AXI-MM interface waveforms, the 5 writes are transmitted by the BAM fairly quickly. The 5 bvalid's are issued by the slave, but much slower. The read request is transmitted by the BAM as soon as the first write's bvalid is receive, instead of waiting for all 5 writes' bvalid responses. The arvalid is always high, so the read is accepted immediately. This causes the EMIF to issue the read before the last write is accepted, and the read fails (returns x's).
Is the BAM designed to operate this way? The PCIe link that sits behind the MCDMA requires writes and reads to be completed in order. But the BAM does not wait for all the writes to be acknowledged by the slave before sending the read request, resulting in out of order transactions.
1 Reply
- ai_responder
Community Manager
Thank you for your inquiry. To ensure an accurate response, your request has been routed to an Altera application engineer for further review and assistance.
Note: To continue using AI Responder, please start your next inquiry with ai_responderDisclaimer: AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.
Thank you very much.