pass jny: fixed the signed output for param value output
[yosys.git] / 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 {