mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Improvements in SF2 flow and demo
Signed-off-by: Clifford Wolf <[email protected]>
This commit is contained in:
@@ -63,6 +63,9 @@ struct SynthSf2Pass : public ScriptPass
|
||||
log(" -noiobs\n");
|
||||
log(" run synthesis in \"block mode\", i.e. do not insert IO buffers\n");
|
||||
log("\n");
|
||||
log(" -noclkbuf\n");
|
||||
log(" do not inser clock buffers, only simpe IO buffers\n");
|
||||
log("\n");
|
||||
log(" -retime\n");
|
||||
log(" run 'abc' with -dff option\n");
|
||||
log("\n");
|
||||
@@ -73,7 +76,7 @@ struct SynthSf2Pass : public ScriptPass
|
||||
}
|
||||
|
||||
string top_opt, edif_file, vlog_file, json_file;
|
||||
bool flatten, retime, iobs;
|
||||
bool flatten, retime, iobs, clkbuf;
|
||||
|
||||
void clear_flags() YS_OVERRIDE
|
||||
{
|
||||
@@ -84,6 +87,7 @@ struct SynthSf2Pass : public ScriptPass
|
||||
flatten = true;
|
||||
retime = false;
|
||||
iobs = true;
|
||||
clkbuf = true;
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
@@ -130,6 +134,10 @@ struct SynthSf2Pass : public ScriptPass
|
||||
iobs = false;
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-noclkbuf") {
|
||||
clkbuf = false;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
extra_args(args, argidx, design);
|
||||
@@ -201,8 +209,10 @@ struct SynthSf2Pass : public ScriptPass
|
||||
|
||||
if (check_label("map_iobs"))
|
||||
{
|
||||
if (iobs || help_mode)
|
||||
run("sf2_iobs", "(unless -noiobs)");
|
||||
if (help_mode)
|
||||
run("sf2_iobs [-noclkbuf]", "(unless -noiobs)");
|
||||
else if (iobs)
|
||||
run(clkbuf ? "sf2_iobs" : "sf2_iobs -noclkbuf");
|
||||
run("clean");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user