diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2022-02-27 09:57:10 +0100 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2022-05-18 17:32:56 +0200 |
commit | f4d1426229e0843d55a7ac2a10760acecf9c6710 (patch) | |
tree | 7912276260474807286ed98c7516f05a7dba0c28 /techlibs/anlogic/synth_anlogic.cc | |
parent | d7dc2313b915d3c316630104a86eb754744fdd57 (diff) | |
download | yosys-f4d1426229e0843d55a7ac2a10760acecf9c6710.tar.gz yosys-f4d1426229e0843d55a7ac2a10760acecf9c6710.tar.bz2 yosys-f4d1426229e0843d55a7ac2a10760acecf9c6710.zip |
anlogic: Use `memory_libmap` pass.
Diffstat (limited to 'techlibs/anlogic/synth_anlogic.cc')
-rw-r--r-- | techlibs/anlogic/synth_anlogic.cc | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/techlibs/anlogic/synth_anlogic.cc b/techlibs/anlogic/synth_anlogic.cc index 5da14c26b..a3c1e0434 100644 --- a/techlibs/anlogic/synth_anlogic.cc +++ b/techlibs/anlogic/synth_anlogic.cc @@ -166,19 +166,17 @@ struct SynthAnlogicPass : public ScriptPass run("synth -run coarse"); } - if (!nobram && check_label("map_bram", "(skip if -nobram)")) + if (check_label("map_ram")) { - run("memory_bram -rules +/anlogic/brams.txt"); - run("techmap -map +/anlogic/brams_map.v"); - run("setundef -zero -params t:EG_PHY_BRAM"); - run("setundef -zero -params t:EG_PHY_BRAM32K"); - } - - if (!nolutram && check_label("map_lutram", "(skip if -nolutram)")) - { - run("memory_bram -rules +/anlogic/lutrams.txt"); - run("techmap -map +/anlogic/lutrams_map.v"); - run("setundef -zero -params t:EG_LOGIC_DRAM16X4"); + std::string args = ""; + if (nobram) + args += " -no-auto-block"; + if (nolutram) + args += " -no-auto-distributed"; + if (help_mode) + args += " [-no-auto-block] [-no-auto-distributed]"; + run("memory_libmap -lib +/anlogic/lutrams.txt -lib +/anlogic/brams.txt" + args, "(-no-auto-block if -nobram, -no-auto-distributed if -nolutram)"); + run("techmap -map +/anlogic/lutrams_map.v -map +/anlogic/brams_map.v"); } if (check_label("map_ffram")) |