Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Writing software for interaction with custom IP

Hi people,

How do I go about programming an SoPC using Nios II IDE? I know this is a very vague question, but i'll try to be more precise.

I have an architecture that requires start, clock and reset signals..it outputs a 16 digit binary number and a done signal after certain clock cycles, which varies every time (the no. of clock cycles and output).

I've added this as a component in the SoPC, which consists of required peripherals and components including a 16 bit pio for displaying it onto an led. My component's signals are interfaced to the avalon bus.

Now, how do I go about interacting with my component using the IDE? I have to provide it with a start signal and read the data as and when it becomes available, and then display it on the led of DE1 board. I tried going through all the software development tutorials but i couldn't find this part of the interaction scenario.

Thank you!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It's probably better that you post this question on the nios forum (http://www.niosforum.com/).

    The simplest, though by no means comprehensive, answer is that if you want the Nios II processor to "see" your component, you'll need to design an Avalon MM (memory mapped) interface to it.

    Cheers and Good luck!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I shall do that.

    Thank you!

    btw, my component is mapped onto the avalon slave interface.