Pass scalar output from PL to PS using s_axilite

Hi All,

I am using PYNQ Z2 v2.6 for accelerating some image processing algorithm.

I would like to know how can I use s_axilite for a scalar value. I am processing pixels from an image and I will be returning a scalar value. My ip is taking rows and cols using s_axilite, therefore I added an additional port to return my final result using s_axilite. But the problem here is that all my ports are only write. I want my result port to be read/write. As the ip will be writing the result value into the register and it will be read from the PS.

How can this be acheived?

Thanks in Advance
Srijith Krishnan