mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 10:50:25 +00:00
Improvements in SF2 flow and demo
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
d03780c3f4
commit
da5181a3df
4 changed files with 25 additions and 9 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue