From fbd52ec6dd610966111ebf2ed0e31548aead3dc6 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 28 Feb 2017 13:54:50 +0100 Subject: [PATCH] Use hex addresses in smtbmc vcd mem traces --- backends/smt2/smtbmc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2