X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Adders.hs;h=f32f5d4f9fd89acaa71d4535c072dafeb5f78361;hb=d3305d889f7776f98205ab60c958e13fed68d528;hp=f35021c96fec00580168dc54c2ef4a2f7fe715a9;hpb=ed6bb401ef9c3726084f9477e01228466d34e29c;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Adders.hs b/Adders.hs index f35021c..f32f5d4 100644 --- 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; +mainIO f = Sim.simulateIO (Sim.stateless f) () show_add f = do print ("Sum: " ++ (displaysigs s)); print ("Carry: " ++ (displaysig c)) where