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
AMD
  • Products
  • Manufacturers
  • AMD
  • More
  • Cancel
AMD
Forum Ideas: Capturing Data into RAM/BRAM/DDR3?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join AMD to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 22 subscribers
  • Views 2897 views
  • Users 0 members are here
  • zc702
  • vivado
  • z7k
  • xilinx;
Related

Ideas: Capturing Data into RAM/BRAM/DDR3?

14rhb
14rhb over 5 years ago

I would be really grateful for some initial ideas from the FPGA/E14 experts as to how I can do the following: I'm happy to struggle on learning and writing the scripts needed but I really haven't got an idea which method should be used. This learning is for my Z7k Logic Analyser: concepts where I eventually want to be able to capture the voltage changes on some input pins at a very high clock rate (say 100MHz) directly into RAM and in slower time to be able to sift through them using the PS to do analysis - for example to display the hexadecimal equivalent or if it were UART data to give the user the values in that.

 

I've explored the idea of BRAM and being able to read/write to it from the PS: Z7k Logic Analyser: progress update and I've also just managed to follow an online tutorial where the author implements a FIFO to pass DMA data to and read it back from: Z7k Logic Analyser: Progress Update #2

 

My current thinking is that I need to make my own AXI-4 IP block, as previously, that fills up with the serial data. I'm also thinking that will be limited somewhat due to limitations in BRAM sizes whereas the DDR3 on the ZC702 is massive and could store so much more of the signal.

 

Does anyone please have any suggestions on what could be the better approach? Thank you.

  • Sign in to reply
  • Cancel

Top Replies

  • 14rhb
    14rhb over 5 years ago +1
    I can see that I can make an AXI-4 stream IP block and set the AXI-4 interface to master i.e. it could perhaps tell the DMA controller it is full (via the interrupt) and then the DMA takes the data and…
  • avnrdf
    avnrdf over 5 years ago in reply to 14rhb +1
    How about a FIFO (which will use BRAM) that accepts the incoming data, followed by an AXI DMA core? The AXI DMA core resides in the PL (different from the PS DMA), and can be configured to operate using…
  • avnrdf
    avnrdf over 5 years ago in reply to 14rhb +1
    I think that you wouldn't need the DMA controller in the PS,T but yes there will be 2 DMA controllers. The FIFO could send an interrupt when its filling up, which could trigger the AXI DMA. I think the…
Parents
  • 14rhb
    14rhb over 5 years ago

    I can see that I can make an AXI-4 stream IP block and set the AXI-4 interface to master i.e. it could perhaps tell the DMA controller it is full (via the interrupt) and then the DMA takes the data and writes it to DDR3 RAM? Perhaps I can then edit the new IP block called myDataStream to save several bytes from the actual serial input before it issues the interrupt?

    image

    Would that sound like the right sort of approach?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • avnrdf
    avnrdf over 5 years ago in reply to 14rhb

    How about a FIFO (which will use BRAM) that accepts the incoming data, followed by an AXI DMA core? The AXI DMA core resides in the PL (different from the PS DMA), and can be configured to operate using descriptors (either in a BRAM or the main DDR), and send data from the FIFO to the DDR

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • avnrdf
    avnrdf over 5 years ago in reply to 14rhb

    How about a FIFO (which will use BRAM) that accepts the incoming data, followed by an AXI DMA core? The AXI DMA core resides in the PL (different from the PS DMA), and can be configured to operate using descriptors (either in a BRAM or the main DDR), and send data from the FIFO to the DDR

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • 14rhb
    14rhb over 5 years ago in reply to avnrdf

    Thank you avnrdf - that is just the sort of guidance I was hoping for. As a beginner I didn't really see the FIFO as BRAM (doh).

     

    So there will be two DMA controllers using the same DDR3 RAM? The one on the PS controlled via the Zynq and the new IP one that I place on the PS?

     

    In your knowledgable opinion, do you think the FIFO would need an interupt to the Zynq to signal it was full up or had some data ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • avnrdf
    avnrdf over 5 years ago in reply to 14rhb

    I think that you wouldn't need the DMA controller in the PS,T but yes there will be 2 DMA controllers. The FIFO could send an interrupt when its filling up, which could trigger the AXI DMA.

    I think the descriptors will need to be setup from the PS, and then you either make the FIFO generate an IRQ to the PS which enables the DMA (the FIFO will buffer samples during this time), or find a way to trigger the DMA directly.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • 14rhb
    14rhb over 5 years ago in reply to avnrdf

    Thank you again avnrdf for your help in explaining this. Knowing a correct approach is great and I can then work out the finer wiring and code required. It also gives me the areas I need to concentrate on - I used the FIFO in an example for DMA but didn't really delve into how it worked....I'll read up on it now.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • avnrdf
    avnrdf over 5 years ago in reply to 14rhb

    Good to hear that this has answered some questions!

     

    I'm got a plan to build a logic analyzer for Zynq - so some of this is based on how I've planned mine!

     

    One way is to have a buffer/FIFO on the front which gives the DMA engine enough time to kick in when triggered.

    My plan is to have another custom HDL core in front of that which acts as a circular buffer so that I can capture data before the trigger point. I'm also looking at doing something smart with the DMA descriptors to get the same functionality.

     

    Lastly, look at the opensource HDL & firmware of the ADI M2K (which has a logic analyzer): https://wiki.analog.com/resources/fpga/docs/hdl/m2k

    • Cancel
    • Vote Up +1 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