mirror of https://github.com/YosysHQ/yosys.git
pass jny: fixed the signed output for param value output
This commit is contained in:
parent
58e2870261
commit
52ea944012
|
@ -304,7 +304,7 @@ struct JnyWriter
|
||||||
|
|
||||||
f << get_string(str);
|
f << get_string(str);
|
||||||
} else if ((v.flags & RTLIL::ConstFlags::CONST_FLAG_SIGNED) == RTLIL::ConstFlags::CONST_FLAG_SIGNED) {
|
} else if ((v.flags & RTLIL::ConstFlags::CONST_FLAG_SIGNED) == RTLIL::ConstFlags::CONST_FLAG_SIGNED) {
|
||||||
f << stringf("\"%dsd %d\"", v.size(), v.as_int());
|
f << stringf("\"%dsd %d\"", v.size(), v.as_int(true));
|
||||||
} else if ((v.flags & RTLIL::ConstFlags::CONST_FLAG_REAL) == RTLIL::ConstFlags::CONST_FLAG_REAL) {
|
} else if ((v.flags & RTLIL::ConstFlags::CONST_FLAG_REAL) == RTLIL::ConstFlags::CONST_FLAG_REAL) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue