I’m wondering for HLS overlays that use arbitrary precision fixed-point types, what is the proper way to format the data in Python? Say I have these types:
typedef ap_fixed<16, 6, AP_TRN_ZERO, AP_SAT> FIX_16; typedef ap_fixed<8, 1, AP_TRN_ZERO, AP_SAT> FIX_8;
How do I define values in Python such that they are appropriate for passing into a function using these types as arguments? Does defining an np.uint8/np.uint16 work? Also, how does HLS handle doing operations with arguments of both FIX_16 and FIX_8 types (e.g. multiplying a FIX_16 and FIX_8 number into a FIX_16 output)?
Thanks in advance for any help.