aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/efinix/synth_efinix.cc
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2022-03-06 02:21:53 +0100
committerMarcelina Koƛcielnicka <mwk@0x04.net>2022-05-18 17:32:56 +0200
commit9d11575856e2345d2a6ae68f6b944d256d1e131a (patch)
tree65656d85d93c9dc8acea4499287921633cdfdc31 /techlibs/efinix/synth_efinix.cc
parentf4d1426229e0843d55a7ac2a10760acecf9c6710 (diff)
downloadyosys-9d11575856e2345d2a6ae68f6b944d256d1e131a.tar.gz
yosys-9d11575856e2345d2a6ae68f6b944d256d1e131a.tar.bz2
yosys-9d11575856e2345d2a6ae68f6b944d256d1e131a.zip
efinix: Use `memory_libmap` pass.
Diffstat (limited to 'techlibs/efinix/synth_efinix.cc')
-rw-r--r--techlibs/efinix/synth_efinix.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/techlibs/efinix/synth_efinix.cc b/techlibs/efinix/synth_efinix.cc
index ace56bee9..bbc389444 100644
--- a/techlibs/efinix/synth_efinix.cc
+++ b/techlibs/efinix/synth_efinix.cc
@@ -158,11 +158,13 @@ struct SynthEfinixPass : public ScriptPass
run("synth -run coarse");
}
- if (!nobram || check_label("map_bram", "(skip if -nobram)"))
+ if (check_label("map_ram"))
{
- run("memory_bram -rules +/efinix/brams.txt");
+ std::string args = "";
+ if (nobram)
+ args += " -no-auto-block";
+ run("memory_libmap -lib +/efinix/brams.txt" + args);
run("techmap -map +/efinix/brams_map.v");
- run("setundef -zero -params t:EFX_RAM_5K");
}
if (check_label("map_ffram"))