clash-prelude-0.2: CAES Language for Synchronous Hardware

Safe HaskellNone
LanguageHaskell2010

CLaSH.Class.BitVector

Documentation

class BitVector a where Source

Associated Types

type BitSize a :: Nat Source

Methods

toBV :: KnownNat (BitSize a) => a -> Vec (BitSize a) Bit Source

fromBV :: KnownNat (BitSize a) => Vec (BitSize a) Bit -> a Source

Instances