aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz/Sim
diff options
context:
space:
mode:
authorYann Herklotz <git@ymhg.org>2019-04-03 18:26:56 +0100
committerYann Herklotz <git@ymhg.org>2019-04-03 18:26:56 +0100
commita640c7e87b0891402c5e51d8b96cac91d6ab1570 (patch)
tree18cfb7f617b56eb0dcbe29d5d3035a6f7391d9f0 /src/VeriFuzz/Sim
parent29804187ac1aeb6d53985e11e9591dc52633bac0 (diff)
downloadverismith-a640c7e87b0891402c5e51d8b96cac91d6ab1570.tar.gz
verismith-a640c7e87b0891402c5e51d8b96cac91d6ab1570.zip
Add quick fix to run without dsp48
Diffstat (limited to 'src/VeriFuzz/Sim')
-rw-r--r--src/VeriFuzz/Sim/Vivado.hs3
-rw-r--r--src/VeriFuzz/Sim/XST.hs2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/VeriFuzz/Sim/Vivado.hs b/src/VeriFuzz/Sim/Vivado.hs
index fef0c83..0bfbd11 100644
--- a/src/VeriFuzz/Sim/Vivado.hs
+++ b/src/VeriFuzz/Sim/Vivado.hs
@@ -39,10 +39,11 @@ runSynthVivado sim (SourceInfo top src) outf = do
dir <- pwd
writefile vivadoTcl . vivadoSynthConfig top $ toTextIgnore outf
writefile "rtl.v" $ genSource src
+ run_ "sed" ["s/^module/(* use_dsp48=\"no\" *) module/;", "-i", "rtl.v"]
echoP "Vivado: run"
logger_ dir "vivado"
$ timeout
(vivadoPath sim)
["-mode", "batch", "-source", toTextIgnore vivadoTcl]
echoP "Vivado: done"
- where vivadoTcl = "vivado_" <> fromText top <.> "tcl"
+ where vivadoTcl = fromText ("vivado_" <> top) <.> "tcl"
diff --git a/src/VeriFuzz/Sim/XST.hs b/src/VeriFuzz/Sim/XST.hs
index 9019db8..026f5e7 100644
--- a/src/VeriFuzz/Sim/XST.hs
+++ b/src/VeriFuzz/Sim/XST.hs
@@ -65,6 +65,6 @@ runSynthXST sim (SourceInfo top src) outf = do
]
echoP "XST: done"
where
- modFile = "xst_" <> fromText top
+ modFile = fromText $ "xst_" <> top
xstFile = modFile <.> "xst"
prjFile = modFile <.> "prj"