retroclash-lib-0.1.2.2: Code shared across the code samples in the book "Retrocomputing with Clash"
Safe HaskellSafe-Inferred
LanguageHaskell2010

RetroClash.BCD

Documentation

type Digit = Index 10 Source #

type BCD n = Vec n Digit Source #

type BCDSize n = CLog 10 (2 ^ n) Source #

toBCD :: forall n. KnownNat n => Unsigned n -> BCD (BCDSize n) Source #

type ShiftAdd n = (Vec (BCDSize n) (Unsigned 4), Unsigned n) Source #