clash-lang / clash-prelude

CLaSH prelude library containing datatypes and functions for circuit design
http://www.clash-lang.org/
Other
31 stars 27 forks source link

DataFlow: Introduce liftDF' #138

Open bgamari opened 6 years ago

bgamari commented 6 years ago

The current type of liftDF is rather unsatisfactory: Conceptually the "valid" and "data" signals are one unit, yet this is not reflected in their types. Moreover, there is little typing together the data and backpressure signals. Here I have added liftDF' which has the type I would have expected.