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:
648708a
)
Give Adders a mainIO to to interactive simulation.
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Fri, 30 Jan 2009 09:29:45 +0000
(10:29 +0100)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Fri, 30 Jan 2009 09:29:45 +0000
(10:29 +0100)
Adders.hs
patch
|
blob
|
history
diff --git
a/Adders.hs
b/Adders.hs
index f35021c96fec00580168dc54c2ef4a2f7fe715a9..f32f5d4f9fd89acaa71d4535c072dafeb5f78361 100644
(file)
--- a/
Adders.hs
+++ b/
Adders.hs
@@
-1,8
+1,9
@@
module Adders where
import Bits
+import qualified Sim
import Language.Haskell.Syntax
-main
= do show_add exp_adder; show_add rec_adder;
+main
IO f = Sim.simulateIO (Sim.stateless f) ()
show_add f = do print ("Sum: " ++ (displaysigs s)); print ("Carry: " ++ (displaysig c))
where