mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #776 from mmicko/unify_noflatten
Unify usage of noflatten among architectures
This commit is contained in:
commit
7a2db03aa7
|
@ -95,8 +95,8 @@ struct SynthAchronixPass : public ScriptPass {
|
||||||
run_to = args[argidx].substr(pos+1);
|
run_to = args[argidx].substr(pos+1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-flatten") {
|
if (args[argidx] == "-noflatten") {
|
||||||
flatten = true;
|
flatten = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-retime") {
|
if (args[argidx] == "-retime") {
|
||||||
|
|
|
@ -129,7 +129,7 @@ struct SynthCoolrunner2Pass : public ScriptPass
|
||||||
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
|
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_label("flatten", "(unless -noflatten)") && flatten)
|
if (flatten && check_label("flatten", "(unless -noflatten)"))
|
||||||
{
|
{
|
||||||
run("proc");
|
run("proc");
|
||||||
run("flatten");
|
run("flatten");
|
||||||
|
|
|
@ -52,6 +52,9 @@ struct SynthGowinPass : public ScriptPass
|
||||||
log(" -nobram\n");
|
log(" -nobram\n");
|
||||||
log(" do not use BRAM cells in output netlist\n");
|
log(" do not use BRAM cells in output netlist\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
|
log(" -noflatten\n");
|
||||||
|
log(" do not flatten design before synthesis\n");
|
||||||
|
log("\n");
|
||||||
log(" -retime\n");
|
log(" -retime\n");
|
||||||
log(" run 'abc' with -dff option\n");
|
log(" run 'abc' with -dff option\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
|
@ -62,13 +65,14 @@ struct SynthGowinPass : public ScriptPass
|
||||||
}
|
}
|
||||||
|
|
||||||
string top_opt, vout_file;
|
string top_opt, vout_file;
|
||||||
bool retime, nobram;
|
bool retime, flatten, nobram;
|
||||||
|
|
||||||
void clear_flags() YS_OVERRIDE
|
void clear_flags() YS_OVERRIDE
|
||||||
{
|
{
|
||||||
top_opt = "-auto-top";
|
top_opt = "-auto-top";
|
||||||
vout_file = "";
|
vout_file = "";
|
||||||
retime = false;
|
retime = false;
|
||||||
|
flatten = true;
|
||||||
nobram = true;
|
nobram = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +108,10 @@ struct SynthGowinPass : public ScriptPass
|
||||||
nobram = true;
|
nobram = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (args[argidx] == "-noflatten") {
|
||||||
|
flatten = false;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
extra_args(args, argidx, design);
|
extra_args(args, argidx, design);
|
||||||
|
@ -127,7 +135,7 @@ struct SynthGowinPass : public ScriptPass
|
||||||
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
|
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_label("flatten") && check_label("flatten", "(unless -noflatten)"))
|
if (flatten && check_label("flatten", "(unless -noflatten)"))
|
||||||
{
|
{
|
||||||
run("proc");
|
run("proc");
|
||||||
run("flatten");
|
run("flatten");
|
||||||
|
|
|
@ -131,8 +131,8 @@ struct SynthIntelPass : public ScriptPass {
|
||||||
nobram = true;
|
nobram = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-flatten") {
|
if (args[argidx] == "-noflatten") {
|
||||||
flatten = true;
|
flatten = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-retime") {
|
if (args[argidx] == "-retime") {
|
||||||
|
|
Loading…
Reference in New Issue