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

[Simulation] TaskFlow-based IPs Simulation in HCL-dialect #198

Open hecmay opened 1 year ago

hecmay commented 1 year ago

===== IP Simulator Design =====

syntax = "proto3";

message Param {
  string name = 1;
  string data_type = 2;
  int32 bit_width = 3;
  int32 int_width = 4;
  int32 frac_width = 5;
  float value = 6;
}

message ObjectList {
  repeated Param objects = 1;
}

===== Tentative Implementation Plan =====

Add a TaskFlow hook to the HCL dialect after lowering to LLVM IR. The hook will be responsible for: