Forum Discussion

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

DE0-Nano-Programming

Helo,

just i wants to glow the leds of DE0-Nano, for that i wrote simple program, but error only coming.Any tutorials for programming?

Quartus II ananlysis and systhesis was unsuccessful.(quartus 10.1 i am using)

Thanks,

Alex.

5 Replies

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

    Try this:

    
    -- KEY0 - PIN_J15
    -- LED0 - PIN_A15
    LIBRARY IEEE;
    USE IEEE.STD_LOGIC_1164.all;
    ENTITY Test IS
    	PORT
    	(
    		KEY0	: IN	STD_LOGIC;
    		LED0	: OUT	STD_LOGIC
    	);
    END Test;
    ARCHITECTURE a OF Test IS
    BEGIN
    	LED0 <= KEY0;
    END a;
    
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    There is a 50 MHz incoming clock on the DE-Nano. I suggest dividing this down to 1 MHz with the PLL megafunction, then creating a 3 Hz tick signal from the 1 MHz clock. Then drive all eight LEDS with this 3 Hz heartbeat signal, alternating with the logical not every other LED. In this way, you can really see that the logic in the FPGA is fundamentally working, and all LED's are okay.

    	/*----------------------------------------------
    	   LED Outputs
    	----------------------------------------------*/	
    	LED_OUT(0) <= hb_led;
    	LED_OUT(1) <= not(hb_led);
    	LED_OUT(2) <= hb_led;
    	LED_OUT(3) <= not(hb_led);
    	LED_OUT(4) <= hb_led;
    	LED_OUT(5) <= not(hb_led);
    	LED_OUT(6) <= hb_led;
    	LED_OUT(7) <= not(hb_led);
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks, i copied and paste into my quartus window, but its showing error like

    Error: Quartus II Analysis & Synthesis was unsuccessful. 1 error, 0 warnings

    Error: Peak virtual memory: 222 megabytes

    Error: Processing ended: Tue Sep 18 10:56:06 2012

    Error: Elapsed time: 00:00:04

    Error: Total CPU time (on all processors): 00:00:02

    Sory for the lack of knowledge.

    Thanks,

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

    You need to look for the actual error message. It should be further up in the log window, and you can't miss it, it will be in red.