aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/machxo2/synth_machxo2.cc
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2020-11-26 21:23:13 -0500
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-02-23 17:39:58 +0100
commit597a54dbd04542dc82b0183c31da55aa73ad41a6 (patch)
tree9204062baffd728e8993899251b0ff44338ca54c /techlibs/machxo2/synth_machxo2.cc
parent3697f351d58a1abe200457f252c41acb37da103a (diff)
downloadyosys-597a54dbd04542dc82b0183c31da55aa73ad41a6.tar.gz
yosys-597a54dbd04542dc82b0183c31da55aa73ad41a6.tar.bz2
yosys-597a54dbd04542dc82b0183c31da55aa73ad41a6.zip
machxo2: Add -noiopad option to synth_machxo2.
Diffstat (limited to 'techlibs/machxo2/synth_machxo2.cc')
-rw-r--r--techlibs/machxo2/synth_machxo2.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/techlibs/machxo2/synth_machxo2.cc b/techlibs/machxo2/synth_machxo2.cc
index 794f25d0a..c9ab23426 100644
--- a/techlibs/machxo2/synth_machxo2.cc
+++ b/techlibs/machxo2/synth_machxo2.cc
@@ -60,6 +60,9 @@ struct SynthMachXO2Pass : public ScriptPass
log(" -noflatten\n");
log(" do not flatten design before synthesis\n");
log("\n");
+ log(" -noiopad\n");
+ log(" do not insert IO buffers\n");
+ log("\n");
log(" -vpr\n");
log(" generate an output netlist (and BLIF file) suitable for VPR\n");
log(" (this feature is experimental and incomplete)\n");
@@ -71,7 +74,7 @@ struct SynthMachXO2Pass : public ScriptPass
}
string top_opt, blif_file, edif_file, json_file;
- bool flatten, vpr;
+ bool flatten, vpr, noiopad;
void clear_flags() override
{
@@ -81,6 +84,7 @@ struct SynthMachXO2Pass : public ScriptPass
json_file = "";
flatten = true;
vpr = false;
+ noiopad = false;
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
@@ -123,6 +127,10 @@ struct SynthMachXO2Pass : public ScriptPass
flatten = false;
continue;
}
+ if (args[argidx] == "-noiopad") {
+ noiopad = true;
+ continue;
+ }
if (args[argidx] == "-vpr") {
vpr = true;
continue;
@@ -175,7 +183,8 @@ struct SynthMachXO2Pass : public ScriptPass
if (check_label("map_ios"))
{
- run("iopadmap -bits -outpad $__FACADE_OUTPAD I:O -inpad $__FACADE_INPAD O:I -toutpad $__FACADE_TOUTPAD OE:I:O -tinoutpad $__FACADE_TINOUTPAD OE:O:I:B A:top");
+ if (!noiopad || help_mode)
+ run("iopadmap -bits -outpad $__FACADE_OUTPAD I:O -inpad $__FACADE_INPAD O:I -toutpad $__FACADE_TOUTPAD OE:I:O -tinoutpad $__FACADE_TINOUTPAD OE:O:I:B A:top", "(skip if '-noiopad')");
}
if (check_label("map_ffs"))