Forum Discussion
Altera_Forum
Honored Contributor
12 years agoFPGA to HPS Bridge access
Hello everyone, I've been trying to send data from FPGA to HPS. I have a few soft IP cores in the FPGA and I want the HPS to read signal data from one of these cores (2 signals of 16 bit width...
Altera_Forum
Honored Contributor
12 years agoThank you so much BadOmen.
I can successfully write to the peripherals via the bridge. However, I'm having problems reading data from those one of those peripherals. This particular PIO is defined as 'input' in Qsys and exported into the top level module where it is assigned a signal. I want to read this signal value in the HPS/DS-5. I used functions (alt_read_byte()) from the socal.h but it returns with a constant garbage value (28). I then assigned this pin the value '1' (in top level design) and was hoping I will read value '1' at the same peripheral address (in DS-5) but again saw the same '28'. Peripherals defined as 'output' (in Qsys) works correctly when function alt_write/read are used, but not for the 'input' peripherals. Is there another way to do this? or is the function I'm using wrong?