I created my first program "Hello World" using MicroBlaze. I created hardware interface with MicroBlaze, UART, GPI and GPO. After hardware creation I programmed my FPGA Spartan 3E and on the terminal sreen is appeared the string "Hello World". Later I modified program as shown below:
So the string "Reading switches and writing to LED port" appears on the terminal screen and when I change switches position, the corrisponding LED lights.
Now I would create a source C file to read DIP switches state, therefore the state is visualized on the terminal screen. How could I do it?
I read that it's possible to use the xgpio.h library and function XGpio_SetDataDirection, XGpio_Initialize, XGpio_DiscreteRead and XGpio_DiscreteWrite, but when I create a new source c file including xgpio.h an error occurs: "no such file or directory". Why? Could someone help me?
I am using SDK by Xilinx.