projects
/
matthijs
/
master-project
/
cλash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Really revert all of the recent rotating changes.
[matthijs/master-project/cλash.git]
/
clash
/
Data
/
Param
/
Integer.hs
diff --git
a/clash/Data/Param/Integer.hs
b/clash/Data/Param/Integer.hs
index b4b1ec8a9a5e89bb40fa2bde5e0f225413a7e1e2..a57c0aa0f853b5e8f9a2bbf39747ef7ccf872b12 100644
(file)
--- a/
clash/Data/Param/Integer.hs
+++ b/
clash/Data/Param/Integer.hs
@@
-2,12
+2,18
@@
module Data.Param.Integer
( Signed(..)
, Unsigned(..)
, Index (..)
( Signed(..)
, Unsigned(..)
, Index (..)
+ , HWBits(..)
) where
import Types
) where
import Types
+import qualified Data.Bits as B
newtype (NaturalT nT) => Signed nT = Signed Integer
newtype (NaturalT nT) => Unsigned nT = Unsigned Integer
newtype (NaturalT nT) => Signed nT = Signed Integer
newtype (NaturalT nT) => Unsigned nT = Unsigned Integer
-newtype (NaturalT upper) => Index upper = Index Integer
\ No newline at end of file
+newtype (PositiveT upper) => Index upper = Index Integer
+
+class (B.Bits a) => HWBits a where
+ shiftL :: a -> a -> a
+ shiftR :: a -> a -> a