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
      • 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
Avnet Boards General Xillinux
  • 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 7 replies
  • Subscribers 358 subscribers
  • Views 525 views
  • Users 0 members are here
Related

Xillinux

deaxman
deaxman over 12 years ago

In order to use Xillinux and Xillybus to moniter registers through the linux command terminal with /dev/something what do I have to do on the FPGA side, I figure I need to add the Xillybus IP but each time I load the bit file with impact it shuts down the PS (Xillinux) side and the logo disappears.  How can I load a design, (e.g. switch on --> led on is a common one) and have the terminal tell me the state of the switches?  Any documentation on this or examples?  I've read all of the xillinux documentation and it helped on the Xillinux side but nothing on the PL side or about creating a custom bit file and reading the registers defined in the HDL code used to create it.  Thanks a ton!

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

    Hi,

    Section 5.1 in the Xillinux guide explains how to integrate custom logic with Xillybus. To make a long story short, the boot.bin file should be generated with the new bitfile included, and then copied to the SD card (overwriting the existing one).

    Loading a bitfile with Impact doesn't work, as you've noted.

    Regards,
       Eli

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • deaxman
    0 deaxman over 12 years ago

    Great! I saw that a little while ago I think but I thought they were talking about something else since it wasn't the normal way I'm used to writing a bit file.  Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • deaxman
    0 deaxman over 12 years ago

    So to do this I should modify Xillydemo.v?  They say add extra hdl files but synthesis to a bit file only uses one hdl file right?  So I either need to replace or change xillydemo but it has the IP connections etc in it so it seems like changing it is the only alternative?  Is this true?  Thanks!

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

    Xillydemo is the top level module of the entire project, and as you can see in the sources, it instantiates other modules (which are in other files).

    To integrate your own logic into the project, the common way to go is adding some HDL files and instantiate your module(s) in the Xillydemo module + rewire and possibly add FIFOs as necessary. This requires some knowledge in Verilog or VHDL, or course.

    The general idea is to squeeze in the application logic instead of the loopback wiring. If you bring yourself to understand how the original Xillydemo module is put together, it's hopefully obvious what to do.

    Regards,
       Eli

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • deaxman
    0 deaxman over 12 years ago

    Works great now, I figure I probably need to impliment a FIFO of some kind to access the registers from Xillinux through /dev

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

    Well, sort of. If you want to access registers (i.e. reads and writes with addresses), you probably want to use something in the style of /dev/xillybus_mem_8, which has a memory access interface on the FPGA side. You may also consider using Xillybus Lite, which is also included in the Xillinux bundle

    Eli

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • deaxman
    0 deaxman over 12 years ago

    Thanks!

    • 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