Thank 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?