Run make format.

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2019-02-12 14:03:53 +01:00
parent d18a6df1f8
commit e87d6c603f
2 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,7 @@ import re
from .roi import Roi
from prjxray.grid import BlockType
def get_db_root():
# Used during tilegrid db bootstrap
ret = os.getenv("XRAY_DATABASE_ROOT", None)
@ -184,7 +185,8 @@ def gen_tile_bits(tile_segbits, tile, strict=False, verbose=False):
'''
for block_type in tile_segbits:
assert block_type.value in tile["bits"], "block type %s is not present in current tile" % block_type.value
assert block_type.value in tile[
"bits"], "block type %s is not present in current tile" % block_type.value
block = tile["bits"][block_type.value]
@ -196,7 +198,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 --> word_column = %s; frames = %s" % (
word_column, frames)
yield word_column + baseaddr, word_bit + bitbase, tag

View File

@ -17,7 +17,8 @@ import parsedb
import glob
def make_tile_mask(tile_segbits, tile_name, tilej, strict=False, verbose=False):
def make_tile_mask(
tile_segbits, tile_name, tilej, strict=False, verbose=False):
'''
Return dict
key: (address, bit index)