mirror of https://github.com/YosysHQ/yosys.git
Make return value of $clog2 signed
As per Verilog 2005 - 17.11.1. Fixes #708 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
ab97eddee9
commit
86ce43999e
|
@ -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 New Issue