Xilinx / Vitis_Libraries

Vitis Libraries
https://docs.xilinx.com/r/en-US/Vitis_Libraries
Apache License 2.0
894 stars 356 forks source link

Is KEY_TYPE in database/L1/tests/hw/compound_sort not compatible with float or double data types? #171

Open zhangchenqi123 opened 1 year ago

zhangchenqi123 commented 1 year ago

Hi there,

I have a question about the KEY_TYPE in the database/L1/tests/hw/compound_sort directory. Is it not compatible with float or double data types? I tried changing KEY_TYPE to float, but the sorted data became integers instead. Is KEY_TYPE used to change the width of the original ap_uint<32> integer data type?

Thank you for your help.

zhangchenqi123 commented 1 year ago

I print the elements in the in_strm and out_strm,the elements in the in_strm are floating numbers but the elements in the out_strm are integer numbers. image