diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-04-30 13:02:56 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-04-30 13:02:56 +0200 |
commit | b4c1d3084ffb2b0a5ec2207cb46004fd89cdae80 (patch) | |
tree | 3f50c0e92ca6bc2d58c728b7c210b62d95c2dd56 | |
parent | d9a2b43014696fe07c96c822b1009503d052ffc4 (diff) | |
download | yosys-b4c1d3084ffb2b0a5ec2207cb46004fd89cdae80.tar.gz yosys-b4c1d3084ffb2b0a5ec2207cb46004fd89cdae80.tar.bz2 yosys-b4c1d3084ffb2b0a5ec2207cb46004fd89cdae80.zip |
Add "synth_intel --noiopads"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r-- | techlibs/intel/synth_intel.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/techlibs/intel/synth_intel.cc b/techlibs/intel/synth_intel.cc index dfed7a285..c51949bd4 100644 --- a/techlibs/intel/synth_intel.cc +++ b/techlibs/intel/synth_intel.cc @@ -59,6 +59,9 @@ struct SynthIntelPass : public ScriptPass { log(" from label is synonymous to 'begin', and empty to label is\n"); log(" synonymous to the end of the command list.\n"); log("\n"); + log(" -noiopads\n"); + log(" do not use altsyncram cells in output netlist\n"); + log("\n"); log(" -nobram\n"); log(" do not use altsyncram cells in output netlist\n"); log("\n"); @@ -74,7 +77,7 @@ struct SynthIntelPass : public ScriptPass { } string top_opt, family_opt, vout_file, blif_file; - bool retime, flatten, nobram; + bool retime, flatten, nobram, noiopads; virtual void clear_flags() YS_OVERRIDE { @@ -85,6 +88,7 @@ struct SynthIntelPass : public ScriptPass { retime = false; flatten = true; nobram = false; + noiopads = false; } virtual void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE @@ -119,6 +123,10 @@ struct SynthIntelPass : public ScriptPass { run_to = args[argidx].substr(pos+1); continue; } + if (args[argidx] == "-noiopads") { + noiopads = true; + continue; + } if (args[argidx] == "-nobram") { nobram = true; continue; @@ -216,7 +224,8 @@ struct SynthIntelPass : public ScriptPass { if (check_label("map_cells")) { - run("iopadmap -bits -outpad $__outpad I:O -inpad $__inpad O:I"); + if (!noiopads) + run("iopadmap -bits -outpad $__outpad I:O -inpad $__inpad O:I", "(unless -noiopads)"); if(family_opt=="max10") run("techmap -map +/intel/max10/cells_map.v"); else if(family_opt=="a10gx") |