pass jny: fixed missing quotes around the type value for the cell sort
authorAki Van Ness <aki@yosyshq.com>
Thu, 10 Mar 2022 16:04:44 +0000 (11:04 -0500)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 26 May 2022 02:36:44 +0000 (19:36 -0700)
(cherry picked from commit 5a016713cc78e5c1e6abf3c5d3acefcd42016167)

backends/jny/jny.cc

index 8025d42d26f47a857f487daf61dc03b10c279dbc..1cbfaaddc098f79032a00c603b0809d38650208d 100644 (file)
@@ -302,7 +302,7 @@ struct JnyWriter
         const auto _indent = gen_indent(indent_level);
 
         f << _indent << "{\n";
-        f << stringf("  %s\"type\": %s,\n", _indent.c_str(), sort.first.c_str());
+        f << stringf("  %s\"type\": \"%s\",\n", _indent.c_str(), sort.first.c_str());
         f << _indent << "  \"ports\": [\n";
 
         write_cell_ports(port_cell, indent_level + 2);