mirror of https://github.com/YosysHQ/yosys.git
Update backends/btor/btor.cc; credit @boqwxp
Co-Authored-By: Alberto Gonzalez <61295559+boqwxp@users.noreply.github.com>
This commit is contained in:
parent
6d4f01c3fa
commit
dde3dfd72e
|
@ -433,8 +433,7 @@ struct BtorWorker
|
|||
if (cell->type == "$neg") btor_op = "neg";
|
||||
log_assert(!btor_op.empty());
|
||||
|
||||
int width = GetSize(cell->getPort(ID::Y));
|
||||
width = std::max(width, GetSize(cell->getPort(ID::A)));
|
||||
int width = std::max(GetSize(cell->getPort(ID::A)), GetSize(cell->getPort(ID::Y)));
|
||||
|
||||
bool a_signed = cell->hasParam("\\A_SIGNED") ? cell->getParam("\\A_SIGNED").as_bool() : false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue