mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-15 13:28:59 +00:00
Merge pull request #709 from smunaut/issue_708
Make return value of $clog2 signed
This commit is contained in:
commit
1bb728e24f
|
@ -1913,7 +1913,7 @@ skip_dynamic_range_lvalue_expansion:;
|
||||||
if (arg_value.bits.at(i) == RTLIL::State::S1)
|
if (arg_value.bits.at(i) == RTLIL::State::S1)
|
||||||
result = i + 1;
|
result = i + 1;
|
||||||
|
|
||||||
newNode = mkconst_int(result, false);
|
newNode = mkconst_int(result, true);
|
||||||
goto apply_newNode;
|
goto apply_newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue