aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz/Sim/Vivado.hs
diff options
context:
space:
mode:
authorYann Herklotz <git@ymhg.org>2019-05-07 15:01:23 +0100
committerYann Herklotz <git@ymhg.org>2019-05-07 15:01:23 +0100
commite811ba886d9adaed746abe1c9f37c1a87e58a964 (patch)
tree7397a9833508654e142b4cce1a62eb22baf5efe7 /src/VeriFuzz/Sim/Vivado.hs
parent70497d189ffb8ce8ad582e4eee941e3526eb9d72 (diff)
downloadverismith-e811ba886d9adaed746abe1c9f37c1a87e58a964.tar.gz
verismith-e811ba886d9adaed746abe1c9f37c1a87e58a964.zip
Add support for multiple modules
Had to manually change module names, as Yosys does not change the module name at instantiation. This is done using sed.
Diffstat (limited to 'src/VeriFuzz/Sim/Vivado.hs')
-rw-r--r--src/VeriFuzz/Sim/Vivado.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VeriFuzz/Sim/Vivado.hs b/src/VeriFuzz/Sim/Vivado.hs
index 6ede8b5..1994a57 100644
--- a/src/VeriFuzz/Sim/Vivado.hs
+++ b/src/VeriFuzz/Sim/Vivado.hs
@@ -50,7 +50,7 @@ runSynthVivado sim (SourceInfo top src) = do
writefile vivadoTcl . vivadoSynthConfig top . toTextIgnore $ synthOutput
sim
writefile "rtl.v" $ genSource src
- run_ "sed" ["s/^module/(* use_dsp48=\"no\" *) module/;", "-i", "rtl.v"]
+ run_ "sed" ["s/^module/(* use_dsp=\"no\" *) module/;", "-i", "rtl.v"]
echoP "Vivado: run"
execute_ SynthFail
dir