log(" -nordff\n");
log(" passed to 'memory'. prohibits merging of FFs into memory read ports\n");
log("\n");
+ log(" -noshare\n");
+ log(" do not run SAT-based resource sharing\n");
+ log("\n");
log(" -run <from_label>[:<to_label>]\n");
log(" only run the commands between the labels (see below). an empty\n");
log(" from label is synonymous to 'begin', and empty to label is\n");
}
string top_module, fsm_opts, memory_opts;
- bool autotop, flatten, noalumacc, nofsm, noabc;
+ bool autotop, flatten, noalumacc, nofsm, noabc, noshare;
virtual void clear_flags() YS_OVERRIDE
{
noalumacc = false;
nofsm = false;
noabc = false;
+ noshare = false;
}
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
memory_opts += " -nordff";
continue;
}
+ if (args[argidx] == "-noshare") {
+ noshare = true;
+ continue;
+ }
break;
}
extra_args(args, argidx, design);
run("wreduce");
if (!noalumacc)
run("alumacc");
- run("share");
+ if (!noshare)
+ run("share");
run("opt");
if (!nofsm)
run("fsm" + fsm_opts);