+{-# LANGUAGE FlexibleContexts,GADTs,ExistentialQuantification,LiberalTypeSynonyms #-}
+
module Bits where
+import qualified Data.Param.FSVec as FSVec
+import qualified Data.TypeLevel as TypeLevel
+
--class Signal a where
-- hwand :: a -> a -> a
-- hwor :: a -> a -> a
displaysig Low = "0"
-- The plain Bit type
-data Bit = High | Low -- | DontCare
+data Bit = High | Low
deriving (Show, Eq, Read)
-- A function to prettyprint a bitvector
lows = Low : lows
highs = High : highs
+type BitVec len = FSVec.FSVec len Bit
+
-- vim: set ts=8 sw=2 sts=2 expandtab: