Forum Discussion

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

Verilog

Hello;

I am working on Altera's NiosII development kit (Cyclone Edition).Whenever I tried to run my verilog program the board's error LED blinks and the default factory written program starts runing.

These are my steps:

I write program e.g adder-subtractor in verilog.

Then compile it in Quartus II

Then i open the programmer tool and add my projects sof file

Click on Start.

The board waits for some seconds and then run its default program

I don't know whats the problem and how to solve it

Please help me.

Thanks

4 Replies

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

    --- Quote Start ---

    originally posted by basheer@Mar 24 2006, 08:50 AM

    hello;

    i am working on altera's niosii development kit (cyclone edition).whenever i tried to run my verilog program the board's error led blinks and the default factory written program starts runing.

    these are my steps:

    i write program e.g adder-subtractor in verilog.

    then compile it in quartus ii

    then i open the programmer tool and add my projects sof file

    click on start.

    the board waits for some seconds and then run its default program

    i don't know whats the problem and how to solve it

    please help me.

    thanks

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13745)

    --- quote end ---

    --- Quote End ---

    Have you set reserve all unused pins "as input tri-stated" in Device assignments -> device & pin options -> unused pins?

    The default value is output driving ground, this doesn&#39;t work for cyclone.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It worked.

    Thank u SOooooooooooooooooooooo Much.Now i am able to run my verilog program

    Thanks once again.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This happens on the Nios II development boards because there is a pin that drives out of the FPGA to the CPLD on the board. This pin when pulled low tells the CPLD to reprogram the board (look at the full featured design for the reconfig_n pin). So if you don&#39;t use the pin and don&#39;t have unused I/O set to input tristate, after downloading the pin goes low and the CPLD re-downloads a new hardware image out of flash.

    A side effect of this is if you flash program a design that causes this behavior you&#39;ll see the LEDs on your board flash on and off really fast (because you just created an never ending configuration loop). Not that I&#39;ve ever done this ....... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif