mirror of https://github.com/YosysHQ/yosys.git
abc9_ops: use new 'design -delete' and 'select -unset'
This commit is contained in:
parent
a52f779eca
commit
043ad8e76c
|
@ -309,15 +309,10 @@ struct Abc9Pass : public ScriptPass
|
||||||
run("abc9_ops -prep_dff_unmap"); // create $abc9_unmap design
|
run("abc9_ops -prep_dff_unmap"); // create $abc9_unmap design
|
||||||
run("techmap -map %$abc9_map"); // techmap user design into submod + $_DFF_[NP]_
|
run("techmap -map %$abc9_map"); // techmap user design into submod + $_DFF_[NP]_
|
||||||
run("setattr -mod -set whitebox 1 -set abc9_flop 1 -set abc9_box 1 *_$abc9_flop");
|
run("setattr -mod -set whitebox 1 -set abc9_flop 1 -set abc9_box 1 *_$abc9_flop");
|
||||||
if (!help_mode) {
|
run("design -delete $abc9");
|
||||||
// TODO: Need a way to delete saved designs?
|
run("design -delete $abc9_map");
|
||||||
auto it = saved_designs.find("$abc9_map");
|
run("select -unset $abc9_flops");
|
||||||
delete it->second;
|
run("select -unset $abc9_cells");
|
||||||
saved_designs.erase(it);
|
|
||||||
// TODO: Need a way to delete selections
|
|
||||||
active_design->selection_vars.erase(ID($abc9_flops));
|
|
||||||
active_design->selection_vars.erase(ID($abc9_cells));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,12 +418,7 @@ struct Abc9Pass : public ScriptPass
|
||||||
if (dff_mode || help_mode) {
|
if (dff_mode || help_mode) {
|
||||||
run("techmap -wb -map %$abc9_unmap", "(only if -dff)"); // techmap user design from submod back to original cell
|
run("techmap -wb -map %$abc9_unmap", "(only if -dff)"); // techmap user design from submod back to original cell
|
||||||
// ($_DFF_[NP]_ already shorted by -reintegrate)
|
// ($_DFF_[NP]_ already shorted by -reintegrate)
|
||||||
if (!help_mode) {
|
run("design -delete $abc9_unmap");
|
||||||
// TODO: Need a way to delete saved designs?
|
|
||||||
auto it = saved_designs.find("$abc9_unmap");
|
|
||||||
delete it->second;
|
|
||||||
saved_designs.erase(it);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1204,7 +1204,8 @@ struct Abc9OpsPass : public Pass {
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -prep_dff_hier\n");
|
log(" -prep_dff_hier\n");
|
||||||
log(" derive all cells with a type instantiating an (* abc9_flop *) module.\n");
|
log(" derive all cells with a type instantiating an (* abc9_flop *) module.\n");
|
||||||
log(" store such modules in named selection '$abc9_flops'.\n");
|
log(" store such modules in named selection '$abc9_flops'. store one cell\n");
|
||||||
|
log(" instantiating each derived module into named selection '$abc9_cells'.\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -prep_dff_map\n");
|
log(" -prep_dff_map\n");
|
||||||
log(" within (* abc9_flop *) modules, move all $specify{2,3}/$specrule cells\n");
|
log(" within (* abc9_flop *) modules, move all $specify{2,3}/$specrule cells\n");
|
||||||
|
|
Loading…
Reference in New Issue