cornell-zhang / hcl-dialect

HeteroCL-MLIR dialect for accelerator design
https://cornell-zhang.github.io/heterocl/index.html
Other
38 stars 17 forks source link

[Op] Support get_slice/set_slice for integer numbers #34

Closed chhzh123 closed 2 years ago

chhzh123 commented 2 years ago

Vivado HLS provides range selection for arbritray precision integers. We also need to support that by providing new operators GetIntSlice and SetIntSlice.

ap_range_ref ap_(u)int::range (unsigned Hi, unsigned Lo)
ap_range_ref ap_(u)int::operator () (unsigned Hi, unsigned Lo)
chhzh123 commented 2 years ago

See the issue in HeteroCL repo.