mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-09 04:31:25 +00:00
add morphCell instead of type assignments, test_cell passes for all cells
This commit is contained in:
parent
d2107a9ee4
commit
1be8f8023a
33 changed files with 129 additions and 99 deletions
|
@ -46,7 +46,7 @@ static RTLIL::IdString formal_flavor(RTLIL::Cell *cell)
|
|||
static void set_formal_flavor(RTLIL::Cell *cell, RTLIL::IdString flavor)
|
||||
{
|
||||
if (cell->type != ID($check)) {
|
||||
cell->type = flavor;
|
||||
cell = cell->module->morphCell(flavor, cell);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -423,7 +423,7 @@ struct ChformalPass : public Pass {
|
|||
if (cell->getPort(ID::ARGS).empty()) {
|
||||
module->remove(cell);
|
||||
} else {
|
||||
cell->type = ID($print);
|
||||
cell = cell->module->morphCell(ID($print), cell);
|
||||
cell->setPort(ID::EN, combined_en);
|
||||
cell->unsetPort(ID::A);
|
||||
cell->unsetParam(ID(FLAVOR));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue