Forum Discussion

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

Help Please

Does anyone have any suggestions regarding the most straightforward (easiest) way to have a Nios processor evaluate inputs continuously during run time? Using Nios II software build tools for eclipse right now and doing run as hardware, it only evaluates input states once for each run. Thanks

4 Replies

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

    I doubt this is it, but the following code would do that:

    while (1)

    {

    //evaluate inputs here

    }

    If you can post some sample code of what you are trying to do it may help people understand the question better.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    checking the inputs in a while(true) loop will do. what do u exactly mean?

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

    thank you both. Ive had only a few programing classes, I've got refresh myself on these fundamentals. After running my program I thought I had to set up a Micro/0S or something, but both your suggestions work fine for now. This is for a senior design project, I'm trying to develop a digital synthesizer platform for guitar, as I'm an electronics engineering student this is expanding my boundaries.