From 8bdf04a29d16e7b4b228784157ed9e9af2002feb Mon Sep 17 00:00:00 2001 From: Alessandro Comodi Date: Wed, 9 Jan 2019 18:14:23 +0100 Subject: [PATCH] 005-tilegrid/add_tdb.py: Added ps7 tdb There is an hack to be fixed that selects only the first bit of the tdb lines. It has to be corrected Signed-off-by: Alessandro Comodi --- fuzzers/005-tilegrid/add_tdb.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fuzzers/005-tilegrid/add_tdb.py b/fuzzers/005-tilegrid/add_tdb.py index f5954860..fef89a34 100644 --- a/fuzzers/005-tilegrid/add_tdb.py +++ b/fuzzers/005-tilegrid/add_tdb.py @@ -58,8 +58,10 @@ def load_db(fn): # FIXME: add offset to name # IOB_X0Y101.DFRAME:27.DWORD:3.DBIT:3 00020027_003_03 parts = l.split(' ') - assert len(parts) == 2, "Unresolved bit: %s" % l - tagstr, addrstr = parts + # FIXME: need to check that all bits in part have same baseaddr, for now only the first bit is taken + #assert len(parts) == 2, "Unresolved bit: %s" % l + tagstr = parts[0] + addrstr = parts[1] frame, wordidx, bitidx = parse_addr(addrstr) bitidx_up = False @@ -107,6 +109,9 @@ def run(fn_in, fn_out, verbose=False): if os.path.exists("monitor/build/segbits_tilegrid.tdb"): # FIXME: height tdb_fns.append(("monitor/build/segbits_tilegrid.tdb", 30, 101)) + if os.path.exists("ps7/build/segbits_tilegrid.tdb"): + # FIXME: height + tdb_fns.append(("ps7/build/segbits_tilegrid.tdb", 42, 2)) for (tdb_fn, frames, words) in tdb_fns: for (tile, frame, wordidx) in load_db(tdb_fn):