diff options
Diffstat (limited to 'backends/smt2')
| -rw-r--r-- | backends/smt2/smt2.cc | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/backends/smt2/smt2.cc b/backends/smt2/smt2.cc index 1ab39a405..48da3f4be 100644 --- a/backends/smt2/smt2.cc +++ b/backends/smt2/smt2.cc @@ -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)));  		} | 
