Skip to content

Commit bd695aa

Browse files
committed
utils: bit2fasm was moved into xc-fasm
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
1 parent 5a2504d commit bd695aa

File tree

4 files changed

+7
-132
lines changed

4 files changed

+7
-132
lines changed

minitests/roi_harness/runme.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ${XRAY_VIVADO} -mode batch -source ../runme.tcl
6767
test -z "$(fgrep CRITICAL vivado.log)"
6868

6969
${XRAY_BITREAD} -F $XRAY_ROI_FRAMES -o design.bits -z -y design.bit
70-
python3 ${XRAY_DIR}/utils/bit2fasm.py --verbose design.bit > design.fasm
70+
python3 -m xc_fasm.bit2fasm --verbose design.bit > design.fasm
7171
python3 ${XRAY_DIR}/utils/fasm2frames.py design.fasm design.frm
7272
PYTHONPATH=$PYTHONPATH:$XRAY_DIR/utils python3 ../create_design_json.py \
7373
--design_info_txt design_info.txt \

minitests/srl/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
This is a minitest for various SRL configurations.
44

5-
Uses Yosys to generate EDIF which is then P&R'd by Vivado. The makefile also invokes bit2fasm and segprint
5+
Uses Yosys to generate EDIF which is then P&R'd by Vivado.
6+
The makefile also invokes `xc_fasm.bit2fasm` and `segprint`.

utils/bit2fasm.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

utils/environment.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# https://opensource.org/licenses/ISC
77
#
88
# SPDX-License-Identifier: ISC
9+
910
XRAY_ENV_PATH="${BASH_SOURCE[0]}"
1011
while [ -h "$XRAY_ENV_PATH" ]; do # resolve $XRAY_ENV_PATH until the file is no longer a symlink
1112
XRAY_UTILS_DIR="$( cd -P "$( dirname "$XRAY_ENV_PATH" )" && pwd )"
@@ -23,22 +24,22 @@ if [ -e "${XRAY_DIR}/env/bin/activate" ]; then
2324
source "${XRAY_DIR}/env/bin/activate"
2425
fi
2526

26-
# misc
27+
pip3 install https://github.com/chipsalliance/f4pga-xc-fasm/archive/master.zip
28+
2729
export XRAY_PART_YAML="${XRAY_DATABASE_DIR}/${XRAY_DATABASE}/${XRAY_PART}/part.yaml"
2830
source $XRAY_UTILS_DIR/environment.python.sh
2931

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

33-
# tools
3435
export XRAY_GENHEADER="${XRAY_UTILS_DIR}/genheader.sh"
3536
export XRAY_BITREAD="${XRAY_TOOLS_DIR}/bitread --part_file ${XRAY_PART_YAML}"
3637
export XRAY_MERGEDB="bash ${XRAY_UTILS_DIR}/mergedb.sh"
3738
export XRAY_DBFIXUP="python3 ${XRAY_UTILS_DIR}/dbfixup.py"
3839
export XRAY_MASKMERGE="bash ${XRAY_UTILS_DIR}/maskmerge.sh"
3940
export XRAY_SEGMATCH="${XRAY_TOOLS_DIR}/segmatch"
4041
export XRAY_SEGPRINT="python3 ${XRAY_UTILS_DIR}/segprint.py"
41-
export XRAY_BIT2FASM="python3 ${XRAY_UTILS_DIR}/bit2fasm.py"
42+
export XRAY_BIT2FASM="python3 -m xc_fasm.bit2fasm"
4243
export XRAY_FASM2FRAMES="python3 ${XRAY_UTILS_DIR}/fasm2frames.py"
4344
export XRAY_BITTOOL="${XRAY_TOOLS_DIR}/bittool"
4445
export XRAY_BLOCKWIDTH="python3 ${XRAY_UTILS_DIR}/blockwidth.py"

0 commit comments

Comments
 (0)