mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-11 13:40:53 +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
|
@ -170,14 +170,14 @@ struct Coolrunner2SopPass : public Pass {
|
|||
if (has_invert)
|
||||
{
|
||||
auto cell = std::get<0>(x);
|
||||
if (cell->type == ID(FDCP)) cell->type = ID(FDCP_N);
|
||||
else if (cell->type == ID(FDCP_N)) cell->type = ID(FDCP);
|
||||
else if (cell->type == ID(FTCP)) cell->type = ID(FTCP_N);
|
||||
else if (cell->type == ID(FTCP_N)) cell->type = ID(FTCP);
|
||||
else if (cell->type == ID(FDCPE)) cell->type = ID(FDCPE_N);
|
||||
else if (cell->type == ID(FDCPE_N)) cell->type = ID(FDCPE);
|
||||
else if (cell->type == ID(LDCP)) cell->type = ID(LDCP_N);
|
||||
else if (cell->type == ID(LDCP_N)) cell->type = ID(LDCP);
|
||||
if (cell->type == ID(FDCP)) cell = cell->module->morphCell(ID(FDCP_N), cell);
|
||||
else if (cell->type == ID(FDCP_N)) cell = cell->module->morphCell(ID(FDCP), cell);
|
||||
else if (cell->type == ID(FTCP)) cell = cell->module->morphCell(ID(FTCP_N), cell);
|
||||
else if (cell->type == ID(FTCP_N)) cell = cell->module->morphCell(ID(FTCP), cell);
|
||||
else if (cell->type == ID(FDCPE)) cell = cell->module->morphCell(ID(FDCPE_N), cell);
|
||||
else if (cell->type == ID(FDCPE_N)) cell = cell->module->morphCell(ID(FDCPE), cell);
|
||||
else if (cell->type == ID(LDCP)) cell = cell->module->morphCell(ID(LDCP_N), cell);
|
||||
else if (cell->type == ID(LDCP_N)) cell = cell->module->morphCell(ID(LDCP), cell);
|
||||
else log_assert(!"Internal error! Bad cell type!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue