zhemao / zhemao.github.com

Github pages page
http://zhemao.github.com
Other
4 stars 1 forks source link

Access HPS pins from FPGA #27

Closed karthikbhat77 closed 9 years ago

karthikbhat77 commented 9 years ago

Hi Everybody,

I'm trying to read/write from/to HPS qspi flash from the FPGA. I figured out I have to loan these pins from HPS to FPGA.

So, I tried to have four pins which go to the HPS "LEDs" as GPIOs for FPGA and drove these PIOs to blink the LEDs. But, I don't see the LEDs blinking. It seems that the signals are not being written out on these pins.

If anybody can tell me more how this pin sharing works, please.

Thank you, Karthik.

zhemao commented 9 years ago

I don't think it works that way. You can't just hook up the HPS pins in verilog. The pins are physically connected to the HPS, so you need to do some setup to route them to the FPGA.

I found the following Altera documentation file that explains how to route HPS pins to the FPGA. It seems that the HPS LEDs don't support routing to the FPGA, but QSPI does.

https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/an/an706.pdf

This is outside of my expertise, so Google is your only friend here. Hope this helps, and good luck.