clash-prelude-0.3: CAES Language for Synchronous Hardware - Prelude library

Safe HaskellNone
LanguageHaskell2010

CLaSH.Sized.Unsigned

Synopsis

Documentation

resizeU :: KnownNat m => Unsigned n -> Unsigned m Source

A resize operation that is zero-extends on extension, and wraps on truncation.

Increasing the size of the number extends with zeros to the left. Truncating a number of length N to a length L just removes the left (most significant) N-L bits.