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
  • 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
Path to Programmable
  • Challenges & Projects
  • Design Challenges
  • Path to Programmable
  • More
  • Cancel
Path to Programmable
Blog [PP-08] Lab 5 - Adding a peripheral in programmable logic
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kk99
  • Date Created: 10 Nov 2018 8:11 PM Date Created
  • Views 1314 views
  • Likes 4 likes
  • Comments 7 comments
  • path to programmable
  • fpga
  • avnet minized
  • minized
Related
Recommended

[PP-08] Lab 5 - Adding a peripheral in programmable logic

kk99
kk99
10 Nov 2018

In this lab we will create a Block RAM in the programmable logic which can be used to buffer data going between the PS and PL.

 

1. How to add BRAM from IP Catalog

Open block design with ZYNQ7 processing system. Choose the Add IP button on the shortcut bar of the diagram. From the IP Catalog select option AXI BRAM Controller.

image

Double click the AXI BRAM Controller and customize IP. We need to increase Data Width to 64 bits and change Support for AXI Narrow Bursts to Manual. Then click OK and choose option Run Connection Automation.

image

In the popup choose All Automation and click OK. This assistant has automatically added and connected a Block Memory Generator to IP block.

image

2. How to connect AXI interconnect and build

In this step we will enable master AXI interconnect on the PS, master clock from the PS. Then we will connect all IP to the PS.

 

Double click on the ZYNQ7 PS and select 32b GP AXI Master Ports. Please enable M AXI GP0 interface. We need to check if FCLK_CLK0. is set to 50MHz at Clock Configuration page.FCLK_CLK0.

image

image

image

Then please close OK and Run Connection Automation. Make sure that you choose a "New AXI Interconnect" Interconnect IP type. Now we need to check the address space for BRAM on the AXI interface. To do that please go to Window and choose option Address Editor.

image

Now we need to validate design. Please choose option Validate Design. After that we could save block design and generate bitstream.

  • Sign in to reply

Top Comments

  • michaelkellett
    michaelkellett over 6 years ago +3
    This is all very well, but could you please explain the point of it all. You've connected both ports of a block RAM to the Zynq processor - via an AXI block RAM controller - according to the introduction…
  • kk99
    kk99 over 6 years ago in reply to michaelkellett +2
    As you written, in this lab we have created BRAM module in PL (Programmable Logic) for which have access a PS (Processing System) via AXI interconnect. You learned here how to: - add a BRAM from IP Catalog…
  • michaelkellett
    michaelkellett over 6 years ago in reply to michaelkellett +2
    Have now looked at 6. The BRAM seems to be an isolated island in the logic with no connection to external logic and no ports available to connect to external logic. The BRAM seems to be accessible to the…
Parents
  • michaelkellett
    michaelkellett over 6 years ago

    This is all very well, but could you please explain the point of it all.

     

    You've connected both ports of a block RAM to the Zynq processor - via an AXI block RAM controller -  according to the introduction this will buffer data going between the PS to the PL.

     

    For those of us not steeped in Xlinx jargon,

     

    What are the PS and the PL and how does the block diagram, is this a complete thing, and what does it actually do ?

     

    I can't see any way that data gets out from the BRAM to Programmable Logic (my guess at what PL is).

     

    MK

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kk99
    kk99 over 6 years ago in reply to michaelkellett

    image

    As you written, in this lab we have created BRAM module in PL (Programmable Logic) for which have access a PS (Processing System) via AXI interconnect. You learned here how to:

    - add a BRAM from IP Catalog,

    - connect AXI peripherals to the Zynq PS.

    After that you could use this configuration in SDK which is done in next laboratory 6 (lab6), where we have example application which transfers data.

    Additionally you could create  your own, additional module in PL which uses data from BRAM.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 6 years ago in reply to kk99

    Thanks for explaining - I'll look at Lab6.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 6 years ago in reply to michaelkellett

    Have now looked at 6.

     

    The BRAM seems to be an isolated island in the logic with no connection to external logic and no ports available to connect to external logic.

     

    The BRAM seems to be accessible to the ARM core.

     

    The lab 6 screen dumps seem to show that you run some unknown code to test this connection and that it goes quicker if you use DMA.

     

    Do we ever get to the bit where the BRAM is actually connected to external logic - it seems to have no free ports to make this possible.

     

    MK

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kk99
    kk99 over 6 years ago in reply to michaelkellett

    image

    Yes, it is simple example how to use created in PL BRAM to transfer data from/to PS with usage of DMA in PS. The source of test application you could find here:

    https://github.com/Xilinx/linux-xlnx/blob/master/drivers/dma/dmatest.c


    If you created a additional logic which would like to have access for e.g. BRAM, you need just to connect this device as slave to Slave Interconnect. I suppose that it will be a purpose of laboratory number 7.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 6 years ago in reply to kk99

    Thanks for your patience (and responses).

     

    Looking forward to Lab 7 !

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kk99
    kk99 over 6 years ago in reply to michaelkellett

    You are welcome. Now I am going through the course syllabus and after that I will start my own modifications.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • kk99
    kk99 over 6 years ago in reply to michaelkellett

    You are welcome. Now I am going through the course syllabus and after that I will start my own modifications.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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