Update Quicklogic toolchain
Signed-off-by: Mariusz Glebocki <mglebocki@antmicro.com>
This commit is contained in:
parent
d2d8451102
commit
a34b942a68
16
README.md
16
README.md
|
@ -44,13 +44,9 @@ conda deactivate
|
||||||
For the EOS S3 devices:
|
For the EOS S3 devices:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
INSTALL_DIR="/opt/symbiflow/eos-s3"
|
export INSTALL_DIR="/opt/symbiflow/eos-s3"
|
||||||
bash conda_installer.sh -b -p $INSTALL_DIR/conda && rm conda_installer.sh
|
wget 'https://github.com/QuickLogic-Corp/quicklogic-fpga-toolchain/releases/download/v1.1.0_Beta/Symbiflow_v1.1.0.gz.run'
|
||||||
source "$INSTALL_DIR/conda/etc/profile.d/conda.sh"
|
bash Symbiflow_v1.1.0.gz.run
|
||||||
conda env create -f examples/eos-s3/environment.yml
|
|
||||||
conda activate eos-s3
|
|
||||||
wget -qO- https://storage.googleapis.com/symbiflow-arch-defs-install/quicklogic/arch-defs-install-eos-s3-f7880e1f.tar.xz | tar -xJ -C $INSTALL_DIR
|
|
||||||
conda deactivate
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build Example Designs
|
## Build Example Designs
|
||||||
|
@ -105,10 +101,10 @@ To build the example, run the following commands:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export INSTALL_DIR="/opt/symbiflow/eos-s3"
|
export INSTALL_DIR="/opt/symbiflow/eos-s3"
|
||||||
# adding symbiflow toolchain binaries to PATH
|
export PATH="$INSTALL_DIR/install/bin:$INSTALL_DIR/install/bin/python:$PATH"
|
||||||
export PATH="$INSTALL_DIR/install/bin:$PATH"
|
|
||||||
source "$INSTALL_DIR/conda/etc/profile.d/conda.sh"
|
source "$INSTALL_DIR/conda/etc/profile.d/conda.sh"
|
||||||
conda activate eos-s3
|
conda activate
|
||||||
|
|
||||||
git clone https://github.com/SymbiFlow/symbiflow-examples && cd symbiflow-examples
|
git clone https://github.com/SymbiFlow/symbiflow-examples && cd symbiflow-examples
|
||||||
pushd examples/eos-s3 && make && popd
|
pushd examples/eos-s3 && make && popd
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,36 +1,10 @@
|
||||||
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||||
current_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
|
current_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
|
||||||
TOP:=top
|
TOP:=top
|
||||||
VERILOG:=${current_dir}/btn_counter.v
|
VERILOG:=btn_counter.v
|
||||||
PARTNAME:= ql-eos-s3_wlcsp
|
DEVICE := ql-eos-s3
|
||||||
DEVICE := ql-eos-s3_wlcsp
|
PARTNAME := pd64
|
||||||
BITSTREAM_DEVICE := ql-eos-s3_wlcsp
|
PCF:=chandalar.pcf
|
||||||
PCF:=${current_dir}/chandalar.pcf
|
|
||||||
BUILDDIR:=build
|
|
||||||
|
|
||||||
all: ${BUILDDIR}/${TOP}.bit
|
|
||||||
|
|
||||||
${BUILDDIR}:
|
|
||||||
mkdir ${BUILDDIR}
|
|
||||||
|
|
||||||
${BUILDDIR}/${TOP}.eblif: | ${BUILDDIR}
|
|
||||||
cd ${BUILDDIR} && synth -t ${TOP} -v ${VERILOG} -d ${BITSTREAM_DEVICE} -p ${PARTNAME} -P ${PCF}
|
|
||||||
|
|
||||||
${BUILDDIR}/${TOP}.net: ${BUILDDIR}/${TOP}.eblif
|
|
||||||
cd ${BUILDDIR} && pack -e ${TOP}.eblif -d ${DEVICE}
|
|
||||||
|
|
||||||
${BUILDDIR}/${TOP}.place: ${BUILDDIR}/${TOP}.net
|
|
||||||
cd ${BUILDDIR} && place -e ${TOP}.eblif -d ${DEVICE} -p ${PCF} -n ${TOP}.net -P ${PARTNAME}
|
|
||||||
|
|
||||||
${BUILDDIR}/${TOP}.route: ${BUILDDIR}/${TOP}.place
|
|
||||||
cd ${BUILDDIR} && route -e ${TOP}.eblif -d ${DEVICE}
|
|
||||||
|
|
||||||
${BUILDDIR}/${TOP}.fasm: ${BUILDDIR}/${TOP}.route
|
|
||||||
cd ${BUILDDIR} && write_fasm -e ${TOP}.eblif -d ${DEVICE}
|
|
||||||
|
|
||||||
${BUILDDIR}/${TOP}.bit: ${BUILDDIR}/${TOP}.fasm
|
|
||||||
cd ${BUILDDIR} && write_bitstream -d ${BITSTREAM_DEVICE} -f ${TOP}.fasm -p ${PARTNAME} -b ${TOP}.bit
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf ${BUILDDIR}
|
|
||||||
|
|
||||||
|
all:
|
||||||
|
ql_symbiflow -compile -d ${DEVICE} -P ${PARTNAME} -v ${VERILOG} -t ${TOP} -p ${PCF}
|
||||||
|
|
Loading…
Reference in New Issue