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

Add leToPlus function #111

Closed basile-henry closed 7 years ago

basile-henry commented 7 years ago

The leToPlus function enables the creation of simpler constraints. The SaturatingNum instance for Index has been changed to a weaker constraint: from (KnownNat n, 1 <= (n*2), (n*2) <= (n^2)) to (KnownNat n, 1 <= n).

christiaanb commented 7 years ago

Thanks!