From 38757361b0a1d9e40de476a69342683b5b1954b2 Mon Sep 17 00:00:00 2001 From: Daniel Lim Wee Soong Date: Thu, 16 Apr 2020 17:08:42 +0800 Subject: [PATCH] Add -compat-int option to write_json for netlistsvg to work Signed-off-by: Daniel Lim Wee Soong --- sphinxcontrib_verilog_diagrams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinxcontrib_verilog_diagrams.py b/sphinxcontrib_verilog_diagrams.py index 972db9f..a0001f9 100644 --- a/sphinxcontrib_verilog_diagrams.py +++ b/sphinxcontrib_verilog_diagrams.py @@ -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)