Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

Problem generating user logic, or sopc builder cus

Altera_Forum
Honored Contributor II
1,250 Views

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.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
587 Views

Have you assigned the output pins for the LEDs correctly?

0 Kudos
Altera_Forum
Honored Contributor II
587 Views

 

--- 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&#39;t turn on.
0 Kudos
Altera_Forum
Honored Contributor II
587 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
587 Views

Now it works... I think there was a problem with my PC or the development enviroment itself.

0 Kudos
Reply