Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
826 Views

Using the HPS to FPGA 32 bit registers

I reviewed the My First HPS to FPGA and I am starting to understand it. Using a c code program, the HPS writes to a register and the FPGA reads a register and transfers the bits to the LED GPIO.  

I want to do something similar but output to other GPIOs. My goal is as follows: Program the HPS to write 32bit integer data to a register that the FPGA can see. The FPGA will process the integer and when needed, return a value to another register for the HPS to read. The HPS will write data to two registers alternating as being qued by the single "input" register from the FPGA. I want to use the regular bridges at least for the HPS to FPGA data transfer. Is this as simple as setting the direction of the three registers and having the HPS and FPGA read and write to their respective registers? Are there any examples that use the non-lightweight bridge? I am still having trouble with Qsys. Thank you.
Tags (1)
0 Kudos
1 Reply
Highlighted
Valued Contributor III
6 Views

Hi there, just to be clear, are you talking about the Terasic tutorial? 

 

http://terasic.yubacollegecompsci.com/resources/my_first_hps-fpga.pdf 

 

?
0 Kudos