element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MiniZed Hardware Design Data transfer from PL to PS DDR
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 323 subscribers
  • Views 1869 views
  • Users 0 members are here
  • zynq
  • ddr
  • dma
  • Datamover
Related

Data transfer from PL to PS DDR

Waqas
Waqas over 2 years ago

We are using MiniZed Hardware in our project. We want to move some data from PL side to PS DDR through the control of PL side. We are using AXI datamover IP to transfer data from PL to PS DDR. However, we are not able to see any data in PS DDR after PL has provided data on Streaming Interface of AXI datamover IP.

 Can anyone suggest solution to this problem??

  • Sign in to reply
  • Cancel

Top Replies

  • brianmckee
    brianmckee over 2 years ago +1
    On an Altera FPGA design I did a couple of years ago I needed to grab data from a table and load it into the PL from DRAM. I used a built in AXI interface soft macro and coded my own AXI master. Even though…
Parents
  • dyessgg
    dyessgg over 2 years ago

    How are you mapping the memory on the PS side?  It soinds like you're running into a processor cache issue.  The cpu is reading stale data from tge cache.  You either need to map the shared memory as "device memory" or do explicit cache invalidate on the shared page(s).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • dyessgg
    dyessgg over 2 years ago

    How are you mapping the memory on the PS side?  It soinds like you're running into a processor cache issue.  The cpu is reading stale data from tge cache.  You either need to map the shared memory as "device memory" or do explicit cache invalidate on the shared page(s).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Waqas
    Waqas over 2 years ago in reply to dyessgg

    How can we map the shared memory as "device memory" or explicit cache invalidate on shared pages

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dyessgg
    dyessgg over 2 years ago in reply to Waqas

    How is the PS attempting to access the "shared" memory written by the PL?  I'm mmap in your userland Linux  code.  If that is the case (which I would HIGHLY discourage), you might be able to add MAP_SHARED as the flags argument.  I'm not 100% sure it would do the correct thing to map the physical memory (DDR) into the virtual address space of the process reading the memory and make it non-cacheable.

    The proper way to do this under Linux would be to reserve the shared DDR memory with Device Tree entries (scope of which is beyond this discussion).  You would then write a kernel module to access the shared memory on behalf of the process.  It would do a cache invalidate on the page and then copy from DDR into user space.  

    If you're doing this bare metal on the A-class cores, I believe Xilinx has a cache invalidate function you can call just before you attempt to read from the shared DDR.  I don't recall off the top of my head what it is.  Look for something like XilCache....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube