From e811ba886d9adaed746abe1c9f37c1a87e58a964 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 7 May 2019 15:01:23 +0100 Subject: 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. --- src/VeriFuzz/Sim/Vivado.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/VeriFuzz/Sim/Vivado.hs') 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 -- cgit