diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-02-28 13:54:50 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-02-28 13:54:50 +0100 |
commit | fbd52ec6dd610966111ebf2ed0e31548aead3dc6 (patch) | |
tree | c47ca9bfda6282e9f9a1ae29c72a60a971e64861 /backends/smt2 | |
parent | 1a6c02a5328b3267fef69d12146f1a66eb1c5062 (diff) | |
download | yosys-fbd52ec6dd610966111ebf2ed0e31548aead3dc6.tar.gz yosys-fbd52ec6dd610966111ebf2ed0e31548aead3dc6.tar.bz2 yosys-fbd52ec6dd610966111ebf2ed0e31548aead3dc6.zip |
Use hex addresses in smtbmc vcd mem traces
Diffstat (limited to 'backends/smt2')
-rw-r--r-- | backends/smt2/smtbmc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/smt2/smtbmc.py b/backends/smt2/smtbmc.py index b587981bc..5b5ade103 100644 --- a/backends/smt2/smtbmc.py +++ b/backends/smt2/smtbmc.py @@ -637,7 +637,7 @@ def write_vcd_trace(steps_start, steps_stop, index): assert len(tdata) == len(rdata) netpath = mempath[:] - netpath[-1] += "<%d>" % int(addr, 2) + netpath[-1] += "<%0*x>" % ((len(addr)+3) // 4, int(addr, 2)) vcd.add_net([topmod] + netpath, width) for i in range(steps_start, steps_stop): |