in sopc the LEDs are only output.
In Quartus i have a Blockdiagram with the nios-system and outputs connected to the leds (in the pin assignment they are connected as well) the Blockdiagramm is set as top level entity.
Another thing i tried is this:
# define Buttons (volatile char *) 0x00040000# define LEDs (char *) 0x00041010
void main()
{ while (1)
*LEDs = *Buttons;
}
Nothing happens...
And another question, i have all unused pins set as input. there is a 7-segment display on the board which i do not use. but two of the lighsts are on.. how can this be?