005-tilegrid/generate_full.py: simplified assertion

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2019-01-11 12:46:48 +01:00
parent 9e6c62cb4c
commit f79aa011c1
1 changed files with 3 additions and 5 deletions

View File

@ -226,11 +226,9 @@ def make_segments(database, tiles_by_grid, tile_baseaddrs, verbose=False):
baseaddr=baseaddr)
def process_int():
if "INT" not in tile_type:
assert 0
else:
create_segment_for_int_lr(
database, segments, tile_name, tiles_by_grid, verbose)
assert "INT" in tile_type, "Tile is not of type INT_L/R"
create_segment_for_int_lr(
database, segments, tile_name, tiles_by_grid, verbose)
def process_default():
verbose and nolr(tile_type) not in (