mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 04:01:25 +00:00
Merge
This commit is contained in:
commit
ea76abdaee
10 changed files with 167 additions and 21 deletions
|
@ -51,6 +51,10 @@ struct Clk2fflogicPass : public Pass {
|
|||
log(" -nolower\n");
|
||||
log(" Do not automatically run 'chformal -lower' to lower $check cells.\n");
|
||||
log("\n");
|
||||
log(" -nopeepopt\n");
|
||||
log(" Do not automatically run 'peepopt -formalclk' to rewrite clock patterns\n");
|
||||
log(" to more formal friendly forms.\n");
|
||||
log("\n");
|
||||
}
|
||||
// Active-high sampled and current value of a level-triggered control signal. Initial sampled values is low/non-asserted.
|
||||
SampledSig sample_control(Module *module, SigSpec sig, bool polarity, bool is_fine) {
|
||||
|
@ -121,6 +125,7 @@ struct Clk2fflogicPass : public Pass {
|
|||
void execute(std::vector<std::string> args, RTLIL::Design *design) override
|
||||
{
|
||||
bool flag_nolower = false;
|
||||
bool flag_nopeepopt = false;
|
||||
|
||||
log_header(design, "Executing CLK2FFLOGIC pass (convert clocked FFs to generic $ff cells).\n");
|
||||
|
||||
|
@ -131,10 +136,20 @@ struct Clk2fflogicPass : public Pass {
|
|||
flag_nolower = true;
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-nopeepopt") {
|
||||
flag_nopeepopt = true;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
||||
if (!flag_nopeepopt) {
|
||||
log_push();
|
||||
Pass::call(design, "peepopt -formalclk");
|
||||
log_pop();
|
||||
}
|
||||
|
||||
bool have_check_cells = false;
|
||||
|
||||
for (auto module : design->selected_modules())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue