Forum Discussion

EastGun-A's avatar
EastGun-A
Icon for New Contributor rankNew Contributor
3 years ago
Solved

pcie DMA memory read & write TLP

Hello, while studying the pcie protocol, I was confused about DMA and PIO, so I asked a question. Thank you so much for always responding kindly. PIO seems to work like the existing pcie spec, but D...
  • Wincent_Altera's avatar
    3 years ago

    Hi


    In the context of PCIe (Peripheral Component Interconnect Express), a Memory Write (MWr) Transaction Layer Packet (TLP) is used to transfer data from the initiator (the device initiating the transaction) to the target (the device receiving the transaction).

    During a Memory Write transaction, the data is indeed used in the DMA (Direct Memory Access) process. DMA allows devices to transfer data directly to and from system memory without involving the CPU. The data sent in the MWr TLP is typically stored in a specific memory location or register within the target device.

    So, the data carried by the MWr TLP is not unnecessary. It serves the purpose of updating or modifying data in the target device's memory or registers, and DMA facilitates this data transfer without CPU intervention.


    Regards,

    Wincent_Intel