mirror of https://github.com/openXC7/prjxray.git
Run make format.
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
parent
d18a6df1f8
commit
e87d6c603f
|
|
@ -3,6 +3,7 @@ import re
|
||||||
from .roi import Roi
|
from .roi import Roi
|
||||||
from prjxray.grid import BlockType
|
from prjxray.grid import BlockType
|
||||||
|
|
||||||
|
|
||||||
def get_db_root():
|
def get_db_root():
|
||||||
# Used during tilegrid db bootstrap
|
# Used during tilegrid db bootstrap
|
||||||
ret = os.getenv("XRAY_DATABASE_ROOT", None)
|
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:
|
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]
|
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]:
|
for bit in tile_segbits[block_type][tag]:
|
||||||
# 31_06
|
# 31_06
|
||||||
word_column, word_bit, isset = bit
|
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
|
yield word_column + baseaddr, word_bit + bitbase, tag
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,8 @@ import parsedb
|
||||||
import glob
|
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
|
Return dict
|
||||||
key: (address, bit index)
|
key: (address, bit index)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue