mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
ice40: reduce ABC9 internal fanout warnings with a param for CI->I3
This commit is contained in:
parent
da6abc0149
commit
b178761551
6 changed files with 26 additions and 32 deletions
|
@ -139,7 +139,8 @@ static void run_ice40_opts(Module *module)
|
|||
log("Optimized $__ICE40_CARRY_WRAPPER cell back to logic (without SB_CARRY) %s.%s: CO=%s\n",
|
||||
log_id(module), log_id(cell), log_signal(replacement_output));
|
||||
cell->type = "$lut";
|
||||
cell->setPort("\\A", { cell->getPort("\\I0"), inbit[0], inbit[1], cell->getPort("\\I3") });
|
||||
auto I3 = cell->getPort(cell->getParam(ID(I3_IS_CI)).as_bool() ? ID(CI) : ID(I3));
|
||||
cell->setPort("\\A", { cell->getPort("\\I0"), inbit[0], inbit[1], I3 });
|
||||
cell->setPort("\\Y", cell->getPort("\\O"));
|
||||
cell->unsetPort("\\B");
|
||||
cell->unsetPort("\\CI");
|
||||
|
@ -148,6 +149,7 @@ static void run_ice40_opts(Module *module)
|
|||
cell->unsetPort("\\CO");
|
||||
cell->unsetPort("\\O");
|
||||
cell->setParam("\\WIDTH", 4);
|
||||
cell->unsetParam("\\I3_IS_CI");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue