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

Simplify type of window/windowD #123

Open thoughtpolice opened 7 years ago

thoughtpolice commented 7 years ago

Closes #110.

christiaanb commented 7 years ago

Mmm... I remember at $WORK that a definition like this for window might lead to serious space-leaks. I know I said in #110 that iterate might be a suitable implementation, but I want to investigate whether this leads to spaceleaks or not before merging.

thoughtpolice commented 7 years ago

I can check that out later. Perhaps it might also be possible to work around it too -- the simplified type would be nice...