3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00

Merge pull request from smunaut/issue_708

Make return value of $clog2 signed
This commit is contained in:
Clifford Wolf 2018-12-05 09:19:44 -08:00 committed by GitHub
commit 1bb728e24f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1913,7 +1913,7 @@ skip_dynamic_range_lvalue_expansion:;
if (arg_value.bits.at(i) == RTLIL::State::S1)
result = i + 1;
newNode = mkconst_int(result, false);
newNode = mkconst_int(result, true);
goto apply_newNode;
}