nturley / netlistsvg

draws an SVG schematic from a JSON netlist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yosys JSON output format change

rjordans opened this issue · comments

It seems that the Yosys JSON output produced by the write_json command changed a bit which breaks netlistsvg in many cases.

The main difference is in printing of numbers to the JSON output. Originally this was as a decimal number, after the change this is as a quoted binary string.

The original formatting can be produced by using the -compat-int option of the write_json command.

The Yosys change: YosysHQ/yosys@20ce411

A fix for this should probably either:

  • Update the docs to use the -compat-int flag
  • Switch to the newer format
  • Add support for the new format but keep the old format as accepted alternative