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

[Docs] Add a tutorial for bit operations #108

Closed seanlatias closed 5 years ago

seanlatias commented 5 years ago

Link to the tutorial. http://heterocl.csl.cornell.edu/doc/tutorials/tutorial_02_imperative.html#bit-operations

This PR also fixes a bug when applying a GetBit operation with other expressions. Previously, this operation will be simplified to false, which is incorrect.