Xilinx / Vitis_Libraries

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

Can't C Synthesis with Quantitive lib bs_model #94

Open dajovu2020 opened 2 years ago

dajovu2020 commented 2 years ago

Already include bs_model.hpp in Vitis HLS project. But when we did C Synthesis, there is the error message as below.

ERROR: [HLS 207-812] 'bs_model.hpp' file not found (dut.cpp:18:10)

Are there anything that we need to modfiy? Thanks.

dajovu2020 commented 2 years ago

The development environment is Vitis HLS 2021.2 in Windows.

We also add the -cflags in Project synthesis setting. "-DDPRAGMA -I D:/Vitis_Libraries-master/Vitis_Libraries-master/quantitative_finance/L1/include"

zhenhong-xilinx commented 2 years ago

I suppose the dut.cpp include path should be "xf_fintech/bs_model.hpp" instead of "bs_model.hpp"

dajovu2020 commented 2 years ago

thanks, it's fixed already.