mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-19 00:19:32 +00:00
Merge pull request #5844 from YosysHQ/lofty/abc-refactor-5
abc_new: integration testing via synth_gatemate
This commit is contained in:
commit
ab316c14d2
15 changed files with 292 additions and 33 deletions
|
|
@ -1652,7 +1652,7 @@ static void replace_zbufs(Design *design)
|
|||
if (sig[i] == State::Sz) {
|
||||
Wire *w = mod->addWire(NEW_ID);
|
||||
Cell *ud = mod->addCell(NEW_ID, ID($tribuf));
|
||||
ud->set_bool_attribute(ID(aiger2_zbuf));
|
||||
ud->set_bool_attribute(ID::aiger2_zbuf);
|
||||
ud->setParam(ID::WIDTH, 1);
|
||||
ud->setPort(ID::Y, w);
|
||||
ud->setPort(ID::EN, State::S0);
|
||||
|
|
|
|||
|
|
@ -50,6 +50,17 @@ struct AbcNewPass : public ScriptPass {
|
|||
experimental();
|
||||
}
|
||||
|
||||
void on_register() override
|
||||
{
|
||||
RTLIL::constpad["abc_new.script.speed"] = "+&st; &dch -r;" \
|
||||
"&nf; &st; &syn2; &if -g -K 6; &synch2 -r;" \
|
||||
"&nf; &st; &syn2; &if -g -K 6; &synch2 -r;" \
|
||||
"&nf; &st; &syn2; &if -g -K 6; &synch2 -r;" \
|
||||
"&nf; &st; &syn2; &if -g -K 6; &synch2 -r;" \
|
||||
"&nf; &st; &syn2; &if -g -K 6; &synch2 -r;" \
|
||||
"&nf";
|
||||
}
|
||||
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
|
|
@ -110,6 +121,11 @@ struct AbcNewPass : public ScriptPass {
|
|||
}
|
||||
extra_args(args, argidx, d);
|
||||
|
||||
// If no script provided, use a default.
|
||||
if (abc_exe_options.find("-script") == std::string::npos) {
|
||||
d->scratchpad_set_string("abc9.script", RTLIL::constpad["abc_new.script.speed"]);
|
||||
}
|
||||
|
||||
log_header(d, "Executing ABC_NEW pass.\n");
|
||||
log_push();
|
||||
run_script(d, run_from, run_to);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue