mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Add SF2 IO buffer insertion
Signed-off-by: Clifford Wolf <[email protected]>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user