cornell-zhang / hcl-dialect

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

[Backend] Support generating memref.subview + array of FIFOs #204

Closed chhzh123 closed 10 months ago

chhzh123 commented 10 months ago

This PR adds codegen support for memref.subview and array of FIFOs. To generate array of FIFOs, the array should be annotated with <"stream:100;SST">, where 100 is the FIFO depth, S means the first dimension is a spatial dimension, and T means the last dimension is a temporal dimension, which will be collapsed as hls::stream.