Hi Tobi
Sorry for my bad english.
The instructrions are right. But u have to arrange it in another order.
First of all u have to init the XGpio showing in following code:
int *userlogicaddress;
XGpio gpPB;
XGpio_Initialize(&gpPB, XPAR_LEDS_8BIT_DEVICE_ID); //setting led output
port
XGpio_SetDataDirection(&gpPB, 1, 0x00000000); // setting led port output
direction
userlogicaddress=(int *)XPAR_USERLOGICREADING_0_BASEADDR;
while (1)
{
dummy = *userlogicaddress; //reading from base address into dummy
XGpio_DiscreteWrite(&gpPB, 1, dummy); // writing dummy from inputs to
leds
}
At the moment i can not test this code, cause i dont have any
Microblaze-licence. Sorry.
Hope i could help u a little bit
Greetings
Martin