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

[Backend] Support different quantization and overflow mode for fixed point #166

Open
chhzh123 opened this issue Oct 31, 2022 · 0 comments
Open
Assignees
Labels
feature Feature that requires significant code change

Comments

@chhzh123
Copy link
Member

Currently we are using "wrap overflow mode + round zero quantization mode" for fixed point simulation (See the code snippet below).
https://github.com/cornell-zhang/heterocl/blob/95f3509a3df50c4e621f82a96ef10c0af388de48/python/heterocl/tensor.py#L321-L329

But we may need different quantization and overflow mode for different scenario, so we need to expose this API for users to select, and also generate correct code for both LLVM and HLS backend.

Based on the HLS manual, we have the following modes.
Screen Shot 2022-10-31 at 10 57 42 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature that requires significant code change
Projects
None yet
Development

No branches or pull requests

2 participants