From: Aki Van Ness Date: Thu, 17 Feb 2022 13:15:48 +0000 (-0500) Subject: pass jny: fixed the signed output for param value output X-Git-Tag: yosys-0.17~42 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52ea944012a43f3b00f60023108ed7dd8b38eafb;p=yosys.git pass jny: fixed the signed output for param value output --- diff --git a/backends/jny/jny.cc b/backends/jny/jny.cc index 752ff6312..5a83c5578 100644 --- a/backends/jny/jny.cc +++ b/backends/jny/jny.cc @@ -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 {