mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-21 22:55:51 +00:00
Fix minor Yosys issues
This commit is contained in:
parent
c26f38faeb
commit
dee059bee8
2 changed files with 24 additions and 18 deletions
|
|
@ -311,6 +311,9 @@ struct OptBalanceTreePass : public Pass {
|
|||
log(" -arith\n");
|
||||
log(" only convert arithmetic cells.\n");
|
||||
log("\n");
|
||||
log(" -logic\n");
|
||||
log(" only convert logic cells.\n");
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) override {
|
||||
log_header(design, "Executing OPT_BALANCE_TREE pass (cell cascades to trees).\n");
|
||||
|
|
@ -323,6 +326,10 @@ struct OptBalanceTreePass : public Pass {
|
|||
cell_types = {ID($add), ID($mul)};
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-logic") {
|
||||
cell_types = {ID($and), ID($or), ID($xor)};
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue