diff --git a/README.md b/README.md index 5a6a4a4..3a6af15 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/examples/eos-s3/Makefile b/examples/eos-s3/Makefile index 6d9795b..f33de95 100644 --- a/examples/eos-s3/Makefile +++ b/examples/eos-s3/Makefile @@ -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}