Documentation of HLS interfaces

So I got a new Pynq (we’ll see about warrant claim on the previous one).

I changed return type to 4 bit char using ap_uint to get rid of that warning that made me nervous:

#include “ap_int.h”

ap_uint<4> add(char a) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=a

    return (ap_uint<4>) (a & 0xf);

}

Aaaand… IT’S WORKING, I can set the LED’s on off using the 4 bits.
THANK YOU.

Is there a way of repeating this exercise but output to IO’s instead of LED’s?
I.e. just use the “shield_dp0_dp13” module and connect it to my “scalar_add” block?


And also, create that constraints file thingy if I manage to find the correct constraints.

(I use the AXI_GPIO block just to magically get the shield_dp0_dp13 block, just like I did with leds, otherwise I wouldn’t know how to create it, lol)