prjxray/util: better assertion message

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2019-02-12 15:56:24 +01:00
parent e87d6c603f
commit 256ae2d1d9
1 changed files with 2 additions and 3 deletions

View File

@ -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