Forum Discussion

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

Altera/Microtronix C12 Evaluation Kit questions

"hello_led" example worked fine, but when I tried to test a simple VHDL code without using SOPC and Nios II processor, it didn't work. The code simply try to toggle the LEDs by buttons or a counter

proc_1: process (clk, button, cnt)

begin

if rising_edge(CLK) then

cnt <= cnt + 1;

end if;

user_led(2 downto 1) <= button(4 downto 3);

user_led(10 downto 3) <= cnt(22 downto 15);

I have checked pin assignments for buttons, leds and clk.

I tried to down load the "sof" file using the USB cable and the "pof" file using a ByteBlaster cable. Downloads returned no error but the code won&#39;t run. What have I missed?

Thanks for any suggestions.

2 Replies

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

    I have a quick suggestion, don&#39;t know if it will help.

    Go into the "Device & Pin Options..." window on the device selection page. Go to the "Unused Pins" tab and make sure the the "As inputs, tri-stated" option is selected.

    This may not be your problem, but I&#39;ve seen it a few times in the past with symptoms similar to yours.

    Dennis Scott

    Microtronix Datacom Ltd.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    That is exactly the problem! I just called an Altera support engineer from Future Electronics, he told me that this is common problem for Altera Nios kits.

    Thanks