Skip to content

Commit

Permalink
Add -compat-int option to write_json for netlistsvg to work
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
  • Loading branch information
daniellimws committed Apr 16, 2020
1 parent dca0472 commit 3875736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib_verilog_diagrams.py
Expand Up @@ -218,7 +218,7 @@ def diagram_netlistsvg(ipath, opath, module='top', flatten=False):
run_yosys(
src=ipath,
cmd = """\
prep -top {top} {flatten}; cd {top}; write_json {ojson}
prep -top {top} {flatten}; cd {top}; write_json -compat-int {ojson}
""".format(top=module, flatten=flatten, ojson=ojson).strip())
assert path.exists(ojson), 'Output file {} was not created!'.format(ojson)

Expand Down

0 comments on commit 3875736

Please sign in to comment.