3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 01:54:10 +00:00

pass jny: fixed the signed output for param value output

This commit is contained in:
Aki Van Ness 2022-02-17 08:15:48 -05:00 committed by N. Engelhardt
parent 58e2870261
commit 52ea944012

View file

@ -304,7 +304,7 @@ struct JnyWriter
f << get_string(str);
} 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 {