3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-06 19:21:23 +00:00

Add SF2 IO buffer insertion

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-01-17 14:38:37 +01:00
parent 9b277fc21e
commit db5765b443
6 changed files with 171 additions and 3 deletions

View file

@ -60,6 +60,9 @@ struct SynthSf2Pass : public ScriptPass
log(" -noflatten\n");
log(" do not flatten design before synthesis\n");
log("\n");
log(" -noiobs\n");
log(" run synthesis in \"block mode\", i.e. do not insert IO buffers\n");
log("\n");
log(" -retime\n");
log(" run 'abc' with -dff option\n");
log("\n");
@ -70,7 +73,7 @@ struct SynthSf2Pass : public ScriptPass
}
string top_opt, edif_file, vlog_file, json_file;
bool flatten, retime;
bool flatten, retime, iobs;
void clear_flags() YS_OVERRIDE
{
@ -80,6 +83,7 @@ struct SynthSf2Pass : public ScriptPass
json_file = "";
flatten = true;
retime = false;
iobs = true;
}
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
@ -122,6 +126,10 @@ struct SynthSf2Pass : public ScriptPass
retime = true;
continue;
}
if (args[argidx] == "-noiobs") {
iobs = false;
continue;
}
break;
}
extra_args(args, argidx, design);
@ -191,6 +199,13 @@ struct SynthSf2Pass : public ScriptPass
run("clean");
}
if (check_label("map_iobs"))
{
if (iobs || help_mode)
run("sf2_iobs", "(unless -noiobs)");
run("clean");
}
if (check_label("check"))
{
run("hierarchy -check");