projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f8981
)
Class Num is re-exported by CLasH.HardwareTypes, so no need to use the one in Prelude
author
Christiaan Baaij
<christiaan.baaij@gmail.com>
Thu, 13 Aug 2009 07:55:33 +0000
(09:55 +0200)
committer
Christiaan Baaij
<christiaan.baaij@gmail.com>
Thu, 13 Aug 2009 07:55:33 +0000
(09:55 +0200)
Alu.hs
patch
|
blob
|
history
diff --git
a/Alu.hs
b/Alu.hs
index e1aff99e98bbafc444ef29035dcaed1c2817781f..7171a6549d4a216f7ffb876eacdc4d8db5e22571 100644
(file)
--- a/
Alu.hs
+++ b/
Alu.hs
@@
-62,8
+62,8
@@
alu :: AluOp -> Word -> Word -> Word
{-# NOINLINE alu #-}
--alu High a b = a `hwand` b
--alu Low a b = a `hwor` b
-alu High a b = a
P.
+ b
-alu Low a b = a
P.
- b
+alu High a b = a + b
+alu Low a b = a - b
type ExecState = State (RegisterBankState, Word, Word)
exec :: (RegAddr, Bit, AluOp) -> ExecState -> (ExecState, Word)