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 xillydemo edit
  • 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 355 subscribers
  • Views 650 views
  • Users 0 members are here
Related

Xillinux xillydemo edit

deaxman
deaxman over 12 years ago

How should I edit Xillydemo if I want to store values to user_r_mem_8_data to be read back in the terminal window? (Under /dev)  I know that xillydemo uses demoarray to store to this user_r_mem_8_data register.  Is the accepted practice to save what I want to demoarray?  should I do it on the bus clock or another clock?  Thanks a ton!

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

    Hi,

    I'm afraid I can't figure out what you want to accomplish, so I'll try some general comments.

    It's perfectly OK to read from /dev/xillybus_mem_8 as a sequential file. Using hexdump -C -n 32 /dev/xillybus_mem_8 will print out the first (actually, all) 32 bytes in the array. This relies on that a newly opened file always starts on address 0.

    So this is a simple way to print out the data to the terminal window.

    As for clocking: demoarray[] is an inferred synchronous RAM. You may replace it with a dual-clock RAM (inferred or explicitly instantiated) if you want to access its content with another clock. The side interfacing with the Xillybus IP core must be clocked with bus_clk however.

    I hope this helps.
       Eli

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

    Thanks!  Your reply was very helpful for the terminal side of the connection!  I should have specified in my question though that right now I'm trying to create the bit file to write to the FPGA.  This is being done as specified in the directions here: xillybus_getting_started_zynq       and it was recommended that I modify the xillydemo.v file and write to the user_r_mem_8_data register in verilog (or vhdl).  So I'm just not sure how to send the values into the register to be brought to the /dev folder.  Thanks!

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

    Please refer to section 4.4 in the Getting started with Xillybus on a Linux host guide, with emphasis on the memwrite demo program. The sources should be on Xillinux' file system at /usr/src/xillinux, or you may download them as part of the Linux bundle at

    http://xillybus.com/downloads/xillybus.tar.gz

    The memwrite program shows how to write to a specific address in the register space.

    Regards,
       Eli

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

    Thanks, I got it working based off of what you said, the problem I was having for most of the time was a problem with mem_8_data not wanting to accept writing and not knowing how to write to it.  Thanks again!

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

    Why does hexdump only return two unique digits repeating for all 32 slots?

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

    I just answered your question here:

    http://www.zedboard.org/content/terminal-read-zedboard

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

    Sorry I posted it twice, I figured it was more pertinent to this thread but I also wanted it to be very viewable.  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