aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz.hs
diff options
context:
space:
mode:
authorYann Herklotz <git@ymhg.org>2019-04-03 19:53:56 +0100
committerYann Herklotz <git@ymhg.org>2019-04-03 19:53:56 +0100
commit31325e890e8a7807ec5a3d996c3789baad0e8dc4 (patch)
treec3df20e33ff945c1ec10fc132ff7a12127176703 /src/VeriFuzz.hs
parent6776d38b11186e97101995eb2c071096cc1d648b (diff)
downloadverismith-31325e890e8a7807ec5a3d996c3789baad0e8dc4.tar.gz
verismith-31325e890e8a7807ec5a3d996c3789baad0e8dc4.zip
Generate Verilog instead of ModDecl
Diffstat (limited to 'src/VeriFuzz.hs')
-rw-r--r--src/VeriFuzz.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VeriFuzz.hs b/src/VeriFuzz.hs
index e008d62..b6b134b 100644
--- a/src/VeriFuzz.hs
+++ b/src/VeriFuzz.hs
@@ -113,10 +113,10 @@ checkEquivalence src dir = shellyFailDir $ do
-- | Run a fuzz run and check if all of the simulators passed by checking if the
-- generated Verilog files are equivalent.
-runEquivalence :: Gen ModDecl -> Text -> Int -> IO ()
+runEquivalence :: Gen Verilog -> Text -> Int -> IO ()
runEquivalence gm t i = do
m <- Hog.sample gm
- let srcInfo = makeSrcInfo m
+ let srcInfo = SourceInfo "top" m
rand <- generateByteString 20
shellyFailDir $ do
mkdir_p (fromText "output" </> fromText n)