UCLA-VAST / tapa

TAPA is a dataflow HLS framework that features fast compilation, expressive programming model and generates high-frequency FPGA accelerators.
https://tapa.rtfd.io
MIT License
144 stars 27 forks source link

Is there a way to concatenate the output of multiple ostreams? #153

Open lifeformg opened 4 months ago

lifeformg commented 4 months ago

For example, there are N PEs, each designed as a task, and their outputs are connected to N streams. Now I need to calculate the sum of their outputs. What is an efficient way to implement this? My current idea:

  1. Create a new task with N istreams and 1 ostream to calculate the sum in this task. However, I am not sure if connecting too many istreams to one task will cause issues.
  2. Chain sum, each PE passes the sum of the previous pe's output and its own output to the next pe. Obviously, this will take a lot of cycles. Is there any smarter way to implement this?