Skip to content

Commit

Permalink
utils: bit2fasm was moved into xc-fasm
Browse files Browse the repository at this point in the history
Signed-off-by: Unai Martinez-Corral <[email protected]>
  • Loading branch information
umarcor committed Nov 23, 2022
1 parent bbe54c9 commit 7dbe41b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 132 deletions.
2 changes: 1 addition & 1 deletion minitests/roi_harness/runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ${XRAY_VIVADO} -mode batch -source ../runme.tcl
test -z "$(fgrep CRITICAL vivado.log)"

${XRAY_BITREAD} -F $XRAY_ROI_FRAMES -o design.bits -z -y design.bit
python3 ${XRAY_DIR}/utils/bit2fasm.py --verbose design.bit > design.fasm
python3 -m xc_fasm.bit2fasm --verbose design.bit > design.fasm
python3 ${XRAY_DIR}/utils/fasm2frames.py design.fasm design.frm
PYTHONPATH=$PYTHONPATH:$XRAY_DIR/utils python3 ../create_design_json.py \
--design_info_txt design_info.txt \
Expand Down
3 changes: 2 additions & 1 deletion minitests/srl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

This is a minitest for various SRL configurations.

Uses Yosys to generate EDIF which is then P&R'd by Vivado. The makefile also invokes bit2fasm and segprint
Uses Yosys to generate EDIF which is then P&R'd by Vivado.
The makefile also invokes `xc_fasm.bit2fasm` and `segprint`.
127 changes: 0 additions & 127 deletions utils/bit2fasm.py

This file was deleted.

7 changes: 4 additions & 3 deletions utils/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC

XRAY_ENV_PATH="${BASH_SOURCE[0]}"
while [ -h "$XRAY_ENV_PATH" ]; do # resolve $XRAY_ENV_PATH until the file is no longer a symlink
XRAY_UTILS_DIR="$( cd -P "$( dirname "$XRAY_ENV_PATH" )" && pwd )"
Expand All @@ -23,22 +24,22 @@ if [ -e "${XRAY_DIR}/env/bin/activate" ]; then
source "${XRAY_DIR}/env/bin/activate"
fi

# misc
pip3 install https://github.com/chipsalliance/f4pga-xc-fasm/archive/master.zip

export XRAY_PART_YAML="${XRAY_DATABASE_DIR}/${XRAY_DATABASE}/${XRAY_PART}/part.yaml"
source $XRAY_UTILS_DIR/environment.python.sh

# Set environment to default output and overwrite localisation settings
export LC_ALL=C

# tools
export XRAY_GENHEADER="${XRAY_UTILS_DIR}/genheader.sh"
export XRAY_BITREAD="${XRAY_TOOLS_DIR}/bitread --part_file ${XRAY_PART_YAML}"
export XRAY_MERGEDB="bash ${XRAY_UTILS_DIR}/mergedb.sh"
export XRAY_DBFIXUP="python3 ${XRAY_UTILS_DIR}/dbfixup.py"
export XRAY_MASKMERGE="bash ${XRAY_UTILS_DIR}/maskmerge.sh"
export XRAY_SEGMATCH="${XRAY_TOOLS_DIR}/segmatch"
export XRAY_SEGPRINT="python3 ${XRAY_UTILS_DIR}/segprint.py"
export XRAY_BIT2FASM="python3 ${XRAY_UTILS_DIR}/bit2fasm.py"
export XRAY_BIT2FASM="python3 -m xc_fasm.bit2fasm"
export XRAY_FASM2FRAMES="python3 ${XRAY_UTILS_DIR}/fasm2frames.py"
export XRAY_BITTOOL="${XRAY_TOOLS_DIR}/bittool"
export XRAY_BLOCKWIDTH="python3 ${XRAY_UTILS_DIR}/blockwidth.py"
Expand Down

0 comments on commit 7dbe41b

Please sign in to comment.