Hello, I have got vivado 2014.2 and zedboard..
I want to control the leds by the switches, but also to use the switches for other purpose in vhdl , how i do this? And also, where can I find the location of the switches /less?
Hello, I have got vivado 2014.2 and zedboard..
I want to control the leds by the switches, but also to use the switches for other purpose in vhdl , how i do this? And also, where can I find the location of the switches /less?
It is not clear exactly what you are trying to implement but I will suggest a couple of options.
You could set up both an 8 bit GPIO input port, connected to the ZedBoard switches, and an 8 bit GPIO output port, connected to the ZedBoard LEDs, and then write 'C' code to read from the 'switches' GPIO port and then write to the 'LEDs' GPIO port. You could do this using either the Zynq PS (Processing System) GPIO or by instantiating AXI GPIO IP blocks in the PL (Programable Logic). In either case the easiest thing to do is let the Vivado tools set the port addresses and use the logical addresses defined. There are a couple of good examples on how to do this using the PS GPIO in two of Adam Taylor's blog entries:
The other approach would be to design an HDL (VHDL or Verilog) block of logic that would take the input from the switches and output them directly to the LEDs without processor involvement.
-Gary
thanks!
thanks!