There is a nice project:
http://zynqgeek.blogspot.com/2012/09/creating-custom-peripheral.html
But how can I use this port (register) assigned to external pins? For example, write to the LEDs and read the switches.
And how can I write my independent HDL code, for example, just reflect on LED0 (LD0) the state of the switch0 (SW0).
I'm used to FPGAs and the ISE environment, but I'm having some trouble trying to do these simple tasks with the Zynq.