mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3655 from jix/smt2_fix_b_op_width
smt2: Fix operation width computation for boolean producing cells
This commit is contained in:
commit
0f2cb80a26
|
@ -462,7 +462,10 @@ struct Smt2Worker
|
|||
int width = GetSize(sig_y);
|
||||
|
||||
if (type == 's' || type == 'S' || type == 'd' || type == 'b') {
|
||||
width = max(width, GetSize(cell->getPort(ID::A)));
|
||||
if (type == 'b')
|
||||
width = GetSize(cell->getPort(ID::A));
|
||||
else
|
||||
width = max(width, GetSize(cell->getPort(ID::A)));
|
||||
if (cell->hasPort(ID::B))
|
||||
width = max(width, GetSize(cell->getPort(ID::B)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue