Skip to content

Commit

Permalink
Merge pull request #548 from trabucayre/symbiflow_write_xxx
Browse files Browse the repository at this point in the history
Symbiflow write xxx
  • Loading branch information
sharmaln authored Oct 20, 2021
2 parents 9645d3e + 8fba881 commit ec22e1c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions quicklogic/common/toolchain_wrappers/ql_symbiflow
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ fi

export PCF_FILE=$PCF
export JSON=$JSON
export TOP_F=$TOP
export PINMAP_FILE=$PINMAPCSV
export MAX_CRITICALITY=$MAX_CRITICALITY
##### Create Makefile #####
Expand Down Expand Up @@ -494,17 +493,17 @@ fi
# EOS-S3 specific targets
if [ "$DEVICE" == "ql-eos-s3" ]; then
echo -e "\
\${BUILDDIR}/\${TOP}_bit.h: \${BUILDDIR}/\${TOP}.bit\n\
cd \${BUILDDIR} && symbiflow_write_bitheader -b \${TOP}.bit >> $LOG_FILE 2>&1\n\
\${TOP}_bit.h: \${BUILDDIR}/\${TOP}.bit\n\
symbiflow_write_bitheader \$^ \$@ >> $LOG_FILE 2>&1\n\
\n\
\${BUILDDIR}/\${TOP}.bin: \${BUILDDIR}/\${TOP}.bit\n\
cd \${BUILDDIR} && symbiflow_write_binary -b \${TOP}.bit >> $LOG_FILE 2>&1\n\
\n\
\${BUILDDIR}/\${TOP}.jlink: \${BUILDDIR}/\${TOP}.bit\n\
cd \${BUILDDIR} && symbiflow_write_jlink -f \${TOP}.fasm -P \${PACKAGENAME} -b \${TOP}.bit >> $LOG_FILE 2>&1\n\
\${TOP}.jlink: \${BUILDDIR}/\${TOP}.bit\n\
symbiflow_write_jlink \$^ \$@ >> $LOG_FILE 2>&1\n\
\n\
\${BUILDDIR}/\${TOP}.openocd: \${BUILDDIR}/\${TOP}.bit\n\
cd \${BUILDDIR} && symbiflow_write_openocd -f \${TOP}.fasm -P \${PACKAGENAME} -b \${TOP}.bit >> $LOG_FILE 2>&1\n\
\${TOP}.openocd: \${BUILDDIR}/\${TOP}.bit\n\
symbiflow_write_openocd \$^ \$@ >> $LOG_FILE 2>&1\n\
\n\
\${BUILDDIR}/\${TOP}_jlink.h: \${BUILDDIR}/\${TOP}.jlink >> $LOG_FILE 2>&1\n\
cd \${BUILDDIR} && symbiflow_write_jlinkheader\n\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MYPATH=$(dirname "$(readlink -f "$BASH_SOURCE")")

source ${MYPATH}/env

JLINK2HEADER=`readlink -f ${MYPATH}/../bin/python/bitstream_to_header.py`
BIT2HEADER=`readlink -f ${MYPATH}/../bin/python/bitstream_to_header.py`


python3 ${JLINK2HEADER} ${TOP_F}.bit ../${TOP_F}_bit.h
python3 ${BIT2HEADER} $@
2 changes: 1 addition & 1 deletion quicklogic/common/toolchain_wrappers/symbiflow_write_jlink
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ source ${MYPATH}/env
BIT2JLINK=`readlink -f ${MYPATH}/../bin/python/bitstream_to_jlink.py`

echo "Generating bit.jlink"
python3 ${BIT2JLINK} ${TOP_F}.bit ../${TOP_F}.jlink
python3 ${BIT2JLINK} $@
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ source ${MYPATH}/env
BIT2OPENOCD=`readlink -f ${MYPATH}/../bin/python/bitstream_to_openocd.py`

echo "Generating bit.openocd"
python3 ${BIT2OPENOCD} ${TOP_F}.bit ../${TOP_F}.openocd
python3 ${BIT2OPENOCD} $@

0 comments on commit ec22e1c

Please sign in to comment.