Giter VIP home page Giter VIP logo

Comments (4)

enjoy-digital avatar enjoy-digital commented on August 23, 2024

Hi @zhangzq71,

the current driver allocates the DMA buffers in litepcie_pci_probe and then use this to configure the DMA descriptor on the hardware in litepcie_dma_writer_start and litepcie_dma_reader_start:

So currently the memory allocation is handled by the driver. If you want to do DMA on specific addresses, you'll need to program the DMA descriptors with a customized function.

from litepcie.

zhangzq71 avatar zhangzq71 commented on August 23, 2024

from litepcie.

enjoy-digital avatar enjoy-digital commented on August 23, 2024

The DMAs in LitePCIe are generating/receiving streams of data (similar to AXI Streams). So on the FPGA side, there are no MMAP/destination address, we only have DMAs channels with data sink and source. If you want to also do MMAP on the FPGA, you then have to add a stream to/from MMAP DMA and configure it over PCIe. Such modules can be the WishboneDMAReader/WishboneDMAWriter from https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/dma.py if you want to do DMA on the main bus of the SoC, or LiteDRAMDMAReader``/LiteDRAMDMAWriterfrom https://github.com/enjoy-digital/litedram/blob/master/litedram/frontend/dma.py if you want to do DMA directly to/from the DRAM memory.

from litepcie.

zhangzq71 avatar zhangzq71 commented on August 23, 2024

from litepcie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.