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

[API][Docs] Add tutorials for HeteroCL module #69

Closed seanlatias closed 5 years ago

seanlatias commented 5 years ago

In this PR, a tutorial for HeteroCL module is added. Moreover, the following bugs are fixed.

  1. Now users can write multiple return statements within a hardware module.
  2. Users can use the return statement inside a for loop.

For more details, please check the test file.