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 Modifying a peripheral and adding new design files
  • 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 6 replies
  • Subscribers 358 subscribers
  • Views 1109 views
  • Users 0 members are here
Related

Modifying a peripheral and adding new design files

chipslinger
chipslinger over 13 years ago

I've gotten through a few of the tutorials. This has been challenging as there always seems to be some little thing that doesn't go correctly and I spend a bunch of time figuring out some obscure part of the toolset. It's very humbling. I'm not exactly proud of the time I've spent, but at least I've gotten somewhere. I haven't used the Xilinx toolset in a few years, which doesn't help.

I have a 32-address register bank defined and can access it via the SDK! Alright! I've edited the peripheral vhdl file (I call it bus_interface.vhd) and user_logic.vhd file and have created a third vhdl file with part of my logic. There are a bunch of other files that I need to add in later on after I've finished simulation. I'm using the peripheral file (bus_interface.vhd) as the top level file in my peripheral and have connected the sub-modules from within this file.

Now I'm stuck. I'm having difficulty figuring out:
1. How can I add in the new files (and in what tool)?
2. Are the files added into the library part or into the project?
3. How do I refresh the design so that the new files are actually integrated into the design?
4. How do I connect the device pins to the peripheral? (I think I just found a note that talks about this, but I thought I'd ask so that the response covers the full topic).

Thanks in advance!

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

    I am trying to do the same. How do u add files?

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

    chipslinger,

    Did you look at this how-to I did yet?

    http://zedboard.org/content/creating-custom-peripheral

    I believe the answer is in there for you.

    Also, I like your avatar - LM741 is a classic!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • chipslinger
    0 chipslinger over 13 years ago

    Yes, I have looked at the tutorial. Very nicely done. I went through it carefully and it was very helpful. I don't think I could have gotten as far without having this as my guide.

    I probably did not explain what I'm doing very well.

    The tutorial shows how to create a simple register.

    What I did was take the generated register set, add in new i/o signals, new logic, and new components that are in separate files. So, what was once a register set, is now a series of peripherals, like SPI controllers, debounced i/o ports, etc... I guess I could incorporate all these into a single top level file, but it would be a mess. So, the peripheral, which was once two files, is now three files, and will eventually be maybe 10 files.

    Where and how do I add these files into the project?
    I'm also not clear on what steps actually "refresh" the project files. I'm presuming that the tools do some magic to refresh subdirectories, etc.... and if I just change the files, they won't necessarily be incorporated into a rebuild. I'd feel better if I understood a bit more about what's going on "under the hood." So, once they're added into the project, what do I need so that the systems is refreshed?

    Thanks.

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

    I think I am on the same path as chipslinger. I modified the user_logic and the simple_register files to try and get a 32 bit port out for reading. I was not sure where the port would come out but was hoping that by creating a new top level in planahead, new ports would appear in the system_stub.vhd, but nothing appeared to change.

    My goal is to use the simple register design as a starting point to interface my vhdl code with the processor.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • chipslinger
    0 chipslinger over 13 years ago

    OK. So a few things have to happen to make this work.
    (1) You have to do a "CLEAN" and delete all intermediate files (e.g., in XPS, Project -> Clean all generated files"
    (2) You have to manually add any new files to the .PRJ and .PAO files. I couldn't find another way to add the files into the project without manually editing these files....

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

    In "Peripheral Implementation Support" tag, click the second item "Generate ISE and XST project file .....", and XPS will create a complete project which can be modified by ISE.
    Once u go back to ISE, I am sure u can do any complicated logic design.

    • 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