From 52ea944012a43f3b00f60023108ed7dd8b38eafb Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Thu, 17 Feb 2022 08:15:48 -0500 Subject: [PATCH] pass jny: fixed the signed output for param value output --- backends/jny/jny.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.30.2