diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-26 10:04:01 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-26 10:04:01 -0700 |
commit | 799b18263f70872115978f11d234b013dc9b79de (patch) | |
tree | a2f4c2cdef78c1b80b2d74a27a6cd9c0e7d1e41b /techlibs/ecp5 | |
parent | 5db96b8aec7be2fb864d0f41ef21bb5168fa6b5c (diff) | |
parent | 4ce329aefd34c53ab2b96cd79540c3e528661037 (diff) | |
download | yosys-799b18263f70872115978f11d234b013dc9b79de.tar.gz yosys-799b18263f70872115978f11d234b013dc9b79de.tar.bz2 yosys-799b18263f70872115978f11d234b013dc9b79de.zip |
Merge branch 'koriakin/xc7nocarrymux' into xaig
Diffstat (limited to 'techlibs/ecp5')
-rw-r--r-- | techlibs/ecp5/synth_ecp5.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/techlibs/ecp5/synth_ecp5.cc b/techlibs/ecp5/synth_ecp5.cc index b271500f1..c80ad0b08 100644 --- a/techlibs/ecp5/synth_ecp5.cc +++ b/techlibs/ecp5/synth_ecp5.cc @@ -76,7 +76,7 @@ struct SynthEcp5Pass : public ScriptPass log(" -nodram\n"); log(" do not use distributed RAM cells in output netlist\n"); log("\n"); - log(" -nomux\n"); + log(" -nowidelut\n"); log(" do not use PFU muxes to implement LUTs larger than LUT4s\n"); log("\n"); log(" -abc2\n"); @@ -96,7 +96,7 @@ struct SynthEcp5Pass : public ScriptPass } string top_opt, blif_file, edif_file, json_file; - bool noccu2, nodffe, nobram, nodram, nomux, flatten, retime, abc2, abc9, vpr; + bool noccu2, nodffe, nobram, nodram, nowidelut, flatten, retime, abc2, abc9, vpr; void clear_flags() YS_OVERRIDE { @@ -108,7 +108,7 @@ struct SynthEcp5Pass : public ScriptPass nodffe = false; nobram = false; nodram = false; - nomux = false; + nowidelut = false; flatten = true; retime = false; abc2 = false; @@ -176,8 +176,8 @@ struct SynthEcp5Pass : public ScriptPass nodram = true; continue; } - if (args[argidx] == "-nomux") { - nomux = true; + if (args[argidx] == "-nowidelut" || args[argidx] == "-nomux") { + nowidelut = true; continue; } if (args[argidx] == "-abc2") { @@ -275,12 +275,11 @@ struct SynthEcp5Pass : public ScriptPass if (abc9) { run("abc9 -lut +/ecp5/abc_5g.lut -box +/ecp5/abc_5g.box -W 200"); } else { - if (nomux) + if (nowidelut) run("abc -lut 4 -dress"); else run("abc -lut 4:7 -dress"); } - run("clean"); } |