Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Arbitrary Fixed-Point Numbers #37

Open
chhzh123 opened this issue Jan 3, 2022 · 2 comments
Open

Support for Arbitrary Fixed-Point Numbers #37

chhzh123 opened this issue Jan 3, 2022 · 2 comments

Comments

@chhzh123
Copy link

chhzh123 commented Jan 3, 2022

Hi, thanks for your excellent work to improve the scalability and performance of HLS, which is very helpful for hardware accelerator development.

After looking through your paper and code, I am wondering if there are any supports for arbitrary fixed-point numbers in ScaleHLS. I only found one test case involving a fixed integer in your repo (https://github.com/hanchenye/scalehls/blob/master/test/EmitHLSCpp/test_signature.mlir#L36). Though you have included the <ap_fixed> library in the generated C++ HLS code, it seems the fixed-point arithmetics have not been implemented in MLIR. Then how can users do quantization in ScaleHLS?

@hanchenye
Copy link
Collaborator

Hi @chhzh123, thanks for your interest! Unfortunately, currently ScaleHLS only supports the built-in types implemented in MLIR and cannot model the ap_fixed types of Xilinx. A related discussion happened here which you can refer to a bit.

@chhzh123
Copy link
Author

chhzh123 commented Jan 3, 2022

Thanks for your quick reply! The attached discussion is very helpful. I will stay tuned for the updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants