From 4fd742befd948c39c3bcec28498b88398bf87f9f Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 31 Jan 2019 13:11:53 -0800 Subject: [PATCH] Run make format. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- prjxray/bitstream.py | 1 - prjxray/fasm_disassembler.py | 24 ++++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/prjxray/bitstream.py b/prjxray/bitstream.py index 8b467f60..d4abf503 100644 --- a/prjxray/bitstream.py +++ b/prjxray/bitstream.py @@ -10,7 +10,6 @@ FRAME_WORD_COUNT = 101 # What alignment is expect for columns. FRAME_ALIGNMENT = 0x80 - ''' Sample: bit_0002000f_079_06 diff --git a/prjxray/fasm_disassembler.py b/prjxray/fasm_disassembler.py index de4a5b74..4d841831 100644 --- a/prjxray/fasm_disassembler.py +++ b/prjxray/fasm_disassembler.py @@ -37,7 +37,8 @@ class FasmDisassembler(object): self.segment_map = self.grid.get_segment_map() self.decode_warnings = set() - def find_features_in_tile(self, tile_name, bits, solved_bitdata, bitdata, verbose=False): + def find_features_in_tile( + self, tile_name, bits, solved_bitdata, bitdata, verbose=False): gridinfo = self.grid.gridinfo_at_tilename(tile_name) try: @@ -138,15 +139,18 @@ class FasmDisassembler(object): bitidx = bit % bitstream.WORD_SIZE_BITS annotations = [] - annotations.append(fasm.Annotation( - 'unknown_bit', '{:08x}_{}_{}'.format( - frame, wordidx, bitidx))) - annotations.append(fasm.Annotation( - 'unknown_segment', '0x{:08x}'.format(aligned_frame))) - annotations.append(fasm.Annotation( - 'unknown_segbit', '{:02d}_{:02d}'.format( - frame_offset, bit - ))) + annotations.append( + fasm.Annotation( + 'unknown_bit', '{:08x}_{}_{}'.format( + frame, wordidx, bitidx))) + annotations.append( + fasm.Annotation( + 'unknown_segment', + '0x{:08x}'.format(aligned_frame))) + annotations.append( + fasm.Annotation( + 'unknown_segbit', '{:02d}_{:02d}'.format( + frame_offset, bit))) yield fasm.FasmLine( set_feature=None, annotations=annotations,