Fix comments.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2018-10-22 11:20:03 -07:00
parent 7eadae4ded
commit 204c6246ad
4 changed files with 5 additions and 7 deletions

View File

@ -4,4 +4,4 @@ BIT_IN=$1
BITS=$(tempfile --suffix .bits)
${XRAY_BITREAD} -F $XRAY_ROI_FRAMES -o ${BITS} -z -y ${BIT_IN}
${XRAY_DIR}/utils/bits2fasm.py ${BITS}
${XRAY_BITS2FASM} ${BITS}

View File

@ -27,7 +27,7 @@ echo "Design .fasm: $fasm_in"
echo "Harness .bit: $bit_in"
echo "Out .bit: $bit_out"
${XRAY_DIR}/utils/fasm2frames.py --sparse $fasm_in roi_partial.frm
${XRAY_FASM2FRAMES} --sparse $fasm_in roi_partial.frm
${XRAY_TOOLS_DIR}/xc7patch \
--part_name ${XRAY_PART} \

View File

@ -1,6 +1,8 @@
# Break frames into WORD_SIZE bit words.
WORD_SIZE_BITS = 32
# How many 32-bit words for frame in a 7-series bitstream?
FRAME_WORD_COUNT = 101
def load_bitdata(f):
""" Read bit file and return bitdata map.

View File

@ -11,14 +11,10 @@ class FasmInconsistentBits(Exception):
pass
# How many 32-bit words for frame in a 7-series bitstream?
FRAME_WORD_COUNT = 101
def init_frame_at_address(frames, addr):
'''Set given frame to 0 if not initialized '''
if not addr in frames:
frames[addr] = [0 for _i in range(FRAME_WORD_COUNT)]
frames[addr] = [0 for _i in range(bitstream.FRAME_WORD_COUNT)]
class FasmAssembler(object):