- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to learn how to interface user logic or a custom component.
I builded a simple Nios II system, just Nios, memories, system ID, etc etc. After compile it in the sopc builder, then I go back to the Quartus and place this system in my schematic design. Then I add external logic to the system, and it kind of doesn't synthesize, I mean the Nios systems works, but the user logic outside the Nios system does nothing. (why?) Then, I am trying to make a simple custom component to add it to the Nios system, I'm doing kind of a PIO port, just to learn the basics of how to interface the component to the Nios system. I created my VHDL, added to the Nios system in the sopc builder, then compiled it, and then I went back to quartus, and my PIO port appeared in the system. Then I compiled it in the quertus to generate the system. Then I generate a kernel and a filesystem to run uClinux in my system. THEN, I see in the nios2_system.h that, in fact there's the base address asigned for my PIO output, something like: # define user_pio 0x08000805 I conected some LED's to my PIO to turn them on and thus know if my component works well or not. THEN, I make my application project for linux, I just write some bits to that address, but LEDs don't turn on. (It's very frustrating after all these steps.) So if someone can help me, or have any suggestions that can help me, I will appreciate it so much.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you assigned the output pins for the LEDs correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by kalle leo@Apr 26 2006, 03:03 AM have you assigned the output pins for the leds correctly?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14688)
--- quote end ---
--- Quote End --- yes, since I conected the same LED ports to a working PIO and they turn on. But when I connect the same LED ports to my PIO they don't turn on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hm, maybe its the write operation? Have you run a simulation of the system? Maybe there is a problem with addressing or timing in the interface from nios to your logic. Or maybe your component simply doesnt work. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now it works... I think there was a problem with my PC or the development enviroment itself.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page