From 256ae2d1d96ba441cef57d8bb84f81fc1395f67f Mon Sep 17 00:00:00 2001 From: Alessandro Comodi Date: Tue, 12 Feb 2019 15:56:24 +0100 Subject: [PATCH] prjxray/util: better assertion message Signed-off-by: Alessandro Comodi --- prjxray/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/prjxray/util.py b/prjxray/util.py index a3316bff..0bad38a9 100644 --- a/prjxray/util.py +++ b/prjxray/util.py @@ -1,7 +1,6 @@ import os import re from .roi import Roi -from prjxray.grid import BlockType def get_db_root(): @@ -198,8 +197,8 @@ def gen_tile_bits(tile_segbits, tile, strict=False, verbose=False): for bit in tile_segbits[block_type][tag]: # 31_06 word_column, word_bit, isset = bit - assert word_column <= frames, "ERROR: bit out of bound --> word_column = %s; frames = %s" % ( - word_column, frames) + assert word_column <= frames, "ERROR: bit out of bound --> tag: %s; word_column = %s; frames = %s" % ( + tag, word_column, frames) yield word_column + baseaddr, word_bit + bitbase, tag