mirror of https://github.com/YosysHQ/yosys.git
compress constant ratio
This commit is contained in:
parent
8b08f81d19
commit
8687e5f4fb
|
@ -54,7 +54,7 @@ code
|
|||
int c_const_int = c_const.as_int(c_const_signed);
|
||||
int b_const_int_shifted = b_const_int << offset;
|
||||
// Calculate the constant and compress the width to fit the value
|
||||
Const const_ratio = b_const_int_shifted / c_const_int;
|
||||
Const const_ratio = b_const_int_shifted / c_const_int;
|
||||
const_ratio.compress(b_const_signed | c_const_signed);
|
||||
|
||||
// Integer values should be lesser than 64 bits
|
||||
|
|
Loading…
Reference in New Issue