Merge pull request #33 from antmicro/mglb/use-ql-toolchain

Use latest Quicklogic-Symbiflow toolchain and update eos-s3 example
This commit is contained in:
Karol Gugala 2020-07-15 09:41:39 +02:00 committed by GitHub
commit 25d6771fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 52 deletions

View File

@ -44,13 +44,9 @@ conda deactivate
For the EOS S3 devices:
```bash
INSTALL_DIR="/opt/symbiflow/eos-s3"
bash conda_installer.sh -b -p $INSTALL_DIR/conda && rm conda_installer.sh
source "$INSTALL_DIR/conda/etc/profile.d/conda.sh"
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
export INSTALL_DIR="/opt/symbiflow/eos-s3"
wget 'https://github.com/QuickLogic-Corp/quicklogic-fpga-toolchain/releases/download/v1.1.0_Beta/Symbiflow_v1.1.0.gz.run'
bash Symbiflow_v1.1.0.gz.run
```
## Build Example Designs
@ -105,10 +101,10 @@ To build the example, run the following commands:
```bash
export INSTALL_DIR="/opt/symbiflow/eos-s3"
# adding symbiflow toolchain binaries to PATH
export PATH="$INSTALL_DIR/install/bin:$PATH"
export PATH="$INSTALL_DIR/install/bin:$INSTALL_DIR/install/bin/python:$PATH"
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
pushd examples/eos-s3 && make && popd
```

View File

@ -1,36 +1,10 @@
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
TOP:=top
VERILOG:=${current_dir}/btn_counter.v
PARTNAME:= ql-eos-s3_wlcsp
DEVICE := ql-eos-s3_wlcsp
BITSTREAM_DEVICE := ql-eos-s3_wlcsp
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}
VERILOG:=btn_counter.v
DEVICE := ql-eos-s3
PARTNAME := pd64
PCF:=chandalar.pcf
all:
ql_symbiflow -compile -d ${DEVICE} -P ${PARTNAME} -v ${VERILOG} -t ${TOP} -p ${PCF}

View File

@ -1,5 +1,5 @@
set_io clk FBIO_0
set_io led(0) FBIO_21
set_io led(1) FBIO_22
set_io led(2) FBIO_26
set_io led(3) FBIO_18
set_io clk A3
set_io led(0) H7
set_io led(1) G7
set_io led(2) F6
set_io led(3) E8

View File

@ -1,5 +1,5 @@
set_io clk FBIO_6
set_io led(0) FBIO_22
set_io led(1) FBIO_21
set_io led(2) FBIO_18
set_io led(3) FBIO_30
set_io clk 63
set_io led(0) 34
set_io led(1) 39
set_io led(2) 38
set_io led(3) 25