element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design Shared data cache between PS and custom IP
  • 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
  • State Not Answered
  • Replies 3 replies
  • Subscribers 354 subscribers
  • Views 381 views
  • Users 0 members are here
Related

Shared data cache between PS and custom IP

Former Member
Former Member over 9 years ago

Hello, I would like to use a share data cache (L2) between the PS and one custom IP.

I used the System Cache IP, connected to M_GP0.
The L2 cache should be placed before the DDR memory.

The architecture of the system is available here : http://img15.hostingpics.net/pics/171358architecture.png

The memory mapping is available here :
http://img15.hostingpics.net/pics/611571memorymapping.png

After looking with the ILA, no data is present on the while debugging with SDK

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 9 years ago

    I could not understand your architecture's picture: the PS is directly connected to an external DDR, and you say that it should be placed after the "System Cache IP"...

    Maybe you think on a Microblaze, instead of the PS, connected to the system_cache_0 through the axi_interconnect_0.

    In addition, you say that no data is present in the ILA while debugging with SDK. Is the complete system working without the ILA?

    I would suggest to try first a simple memory, instead of a custom IP.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Hello, thank you for your answer.
    Sorry for not being clear, I will try to explain it again....

    "I could not understand your architecture's picture: the PS is directly connected to an external DDR, and you say that it should be placed after the "System Cache IP"..."

    My idea was to access the DDR through a slave port of the PS (I discovered that the HP ports were more suitable for this so I use one of them instead).

    I finally succeed to acces the DDR memory from the M_AXI_GP0 port by making an adresss translation from PL region to DDR region with a custom module place inside the path (cf http://img15.hostingpics.net/pics/542935PLtoDDR.png).
    I choose this option because it was not possible to access directly the DDR from the address editor.

    "In addition, you say that no data is present in the ILA while debugging with SDK. Is the complete system working without the ILA?"

    Here I meant data coming from the M_GP0 port and going through System Cache, this problem was solved by  adding the addressTranslation module and modifying the linker script inside SDK. With the test architecture posted in this post, the memory address observed with the ILA correspond to the DDR region (0010_0000 to 3FFF_FFFF).

    Right now I'm a bit confused concerning the timings I got while executing my program (RSA decryption implemented with mini-gmp library)...

    The decryption is actually faster if I compare the architecture mentionned in this post with the same one without System Cache (around 9 seconds vs 2.65 seconds).
    Moreover, the decryption is also  faster (0.02 seconds vs 2.65 seconds) if the program is directly mapped in the DDR (with the linker script inside SDK) instead of accessing the DDR via the PL path.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • drozwood90
    0 drozwood90 over 9 years ago

    Hi there,

    I'm a bit confused as to why you are accessing the L2 cache instead of the DDR?  Is there a specific reason for this?  Using built in Zynq features you can readily access the DDR memory from either the PS or PL so it ends up a great place to allow the SNOOP controller to manage accesses / etc. making life a lot easier for you.

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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 © 2026 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