mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-02 08:10:46 +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
|
@ -155,9 +155,9 @@ void demorgan_worker(
|
|||
|
||||
//Change the cell type
|
||||
if(cell->type == ID($reduce_and))
|
||||
cell->type = ID($reduce_or);
|
||||
cell = m->morphCell(ID($reduce_or), cell);
|
||||
else if(cell->type == ID($reduce_or))
|
||||
cell->type = ID($reduce_and);
|
||||
cell = m->morphCell(ID($reduce_and), cell);
|
||||
//don't change XOR
|
||||
|
||||
//Add an inverter to the output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue