cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

[Backend] Fix VHLS CodeGen immediate data type casting #209

Closed hecmay closed 4 years ago

hecmay commented 4 years ago

Issue: the immediate const number is not cast by the code generator when it has bitwidth of 32-bits. And we can fix it by enforcing the type casting regardless of the bitwidth.