Assorted fixes.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2018-10-22 09:08:34 -07:00
parent e7370d6fdc
commit 7eadae4ded
4 changed files with 8 additions and 5 deletions

View File

@ -57,8 +57,8 @@ test -z "$(fgrep CRITICAL vivado.log)"
${XRAY_BITREAD} -F $XRAY_ROI_FRAMES -o design.bits -z -y design.bit
${XRAY_SEGPRINT} -zd design.bits >design.segp
${XRAY_DIR}/tools/segprint2fasm.py design.segp design.fasm
${XRAY_DIR}/tools/fasm2frame.py design.fasm design.frm
${XRAY_DIR}/utils/bits2fasm.py --verbose design.bits > design.fasm
${XRAY_DIR}/utils/fasm2frames.py design.fasm design.frm
# Hack to get around weird clock error related to clk net not found
# Remove following lines:
#set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets clk_IBUF]

View File

@ -108,7 +108,7 @@ class FasmDisassembler(object):
verbose=verbose):
yield fasm_line
if len(bitdata[frame]) > 0 and verbose:
if len(bitdata[frame][1]) > 0 and verbose:
# Some bits were not decoded, add warning and annotations to
# FASM.
yield fasm.FasmLine(
@ -117,7 +117,7 @@ class FasmDisassembler(object):
comment=" In frame 0x{:08x} {} bits were not converted.".
format(
frame,
len(bitdata[frame]),
len(bitdata[frame][1]),
))
for bit in bitdata[frame][1]:

View File

@ -40,7 +40,7 @@ def main():
parser.add_argument('--db_root', help="Database root.", **db_root_kwargs)
parser.add_argument('bits_file', help='')
parser.add_argument(
'verbose',
'--verbose',
help='Print lines for unknown tiles and bits',
action='store_true')
parser.add_argument(

View File

@ -236,6 +236,9 @@ def mksegment(tile_name, block_name):
def tile_segnames(grid):
ret = []
for tile_name, tile in grid['tiles'].items():
if 'bits' not in tile:
continue
for block_name in tile['bits'].keys():
ret.append(mksegment(tile_name, block_name))
return ret