pass jny: fixed the signed output for param value output
authorAki Van Ness <aki@yosyshq.com>
Thu, 17 Feb 2022 13:15:48 +0000 (08:15 -0500)
committerN. Engelhardt <nakengelhardt@gmail.com>
Fri, 8 Apr 2022 06:05:15 +0000 (08:05 +0200)
backends/jny/jny.cc

index 752ff6312427ab53603bd2f7300998ff0bbc0a41..5a83c5578e985d826889f5bb6a0ec2666ff58e53 100644 (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 {