aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz/Simulator/Icarus.hs
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2019-01-19 19:35:30 +0000
committerYann Herklotz <ymherklotz@gmail.com>2019-01-19 19:35:30 +0000
commit75e6abdcb78c70b7449e5fd7f48d8a3e6b3d164b (patch)
treef66bf170f9340c86797a623394e63d07ffe66ee8 /src/VeriFuzz/Simulator/Icarus.hs
parent4ba440d842e9a0502b429fbc04e2be41c8037a4c (diff)
downloadverismith-75e6abdcb78c70b7449e5fd7f48d8a3e6b3d164b.tar.gz
verismith-75e6abdcb78c70b7449e5fd7f48d8a3e6b3d164b.zip
Set column to 100
Diffstat (limited to 'src/VeriFuzz/Simulator/Icarus.hs')
-rw-r--r--src/VeriFuzz/Simulator/Icarus.hs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/VeriFuzz/Simulator/Icarus.hs b/src/VeriFuzz/Simulator/Icarus.hs
index 443f096..fdb1ad6 100644
--- a/src/VeriFuzz/Simulator/Icarus.hs
+++ b/src/VeriFuzz/Simulator/Icarus.hs
@@ -38,15 +38,11 @@ defaultIcarus = Icarus "iverilog" "vvp"
addDisplay :: [Stmnt] -> [Stmnt]
addDisplay s = concat $ transpose
- [ s
- , replicate l $ TimeCtrl 1 Nothing
- , replicate l . SysTaskEnable $ Task "display" ["%h", Id "y"]
- ]
+ [s, replicate l $ TimeCtrl 1 Nothing, replicate l . SysTaskEnable $ Task "display" ["%h", Id "y"]]
where l = length s
assignFunc :: [Port] -> ByteString -> Stmnt
-assignFunc inp bs =
- NonBlockAssign . Assign conc Nothing . Number (B.length bs * 4) $ bsToI bs
+assignFunc inp bs = NonBlockAssign . Assign conc Nothing . Number (B.length bs * 4) $ bsToI bs
where conc = RegConcat (portToExpr <$> inp)
runSimIcarus :: Icarus -> ModDecl -> [ByteString] -> Sh Int