diff --git a/README.md b/README.md index b1ac4f6..c9fcb10 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,17 @@ -> Copyright (c) 2019 ETH Zurich, Integrated System Laboratory, Renzo Andri > This is the open sourced version of the IIS internal repo https://iis-git.ee.ethz.ch/andri/RNNASIP.git +> Copyright (c) 2019 ETH Zurich, Integrated System Laboratory, Renzo Andri + +> This is the open sourced version of the IIS internal repo https://iis-git.ee.ethz.ch/andri/RNNASIP.git + # RNN ASIP This is the main repository for the RNN Extension for PULP and tzscale (Synopsys) The project has the following sub-repos and dependencies: -- RNN Pulpissimo (https://github.com/pulp-platform/pulpissimo/tree/rnnext or internal https://iis-git.ee.ethz.ch/andri/rnn-pulpissimo.git): Pulpissimo extended by special instructions -- RNN RISC-V core (https://github.com/pulp-platform/riscv/tree/rnn_extension or internal https://iis-git.ee.ethz.ch/andri/rnn-riscv.git): Includes the RISC-V core with the RNN Extensions. -- RISC-V toolchain with RNN-Extensions (https://github.com/pulp-platform/pulp-riscv-gnu-toolchain/tree/renzo-isa) -- The PULP SDK and ISS Simulator (https://github.com/pulp-platform/pulp-sdk.git) +- RNN Pulpissimo (https://github.com/pulp-platform/pulpissimo/tree/rnnext (80d493eaef950285a0e4f5d1e1afd4e6c0074872) or internal https://iis-git.ee.ethz.ch/andri/rnn-pulpissimo.git): Pulpissimo extended by special instructions +- RNN RISC-V core (https://github.com/pulp-platform/riscv/tree/rnn_extension (ad1680c2ec65ea65b8e342c16131298b290c9e34) or internal https://iis-git.ee.ethz.ch/andri/rnn-riscv.git): Includes the RISC-V core with the RNN Extensions. +- RISC-V toolchain with RNN-Extensions (https://github.com/pulp-platform/pulp-riscv-gnu-toolchain/commit/5d39fedd658d81a3ea9765cf9bd03a445b292e4b) +- The PULP SDK and ISS Simulator (https://github.com/pulp-platform/pulp-sdk/releases/tag/2019.10.01) # Getting Started diff --git a/docs/Report1/report.pdf b/docs/Report1/report.pdf new file mode 100644 index 0000000..d28e87d Binary files /dev/null and b/docs/Report1/report.pdf differ diff --git a/sourcecode/funcApprox/tanh_eval.m b/sourcecode/funcApprox/tanh_eval.m index 42809fd..42542d8 100644 --- a/sourcecode/funcApprox/tanh_eval.m +++ b/sourcecode/funcApprox/tanh_eval.m @@ -21,7 +21,7 @@ lib=evalClass(f, fxPtFormat); results = [] results_maxerr = [] -numElements_list = [2 4 8 16 32 64 128]'; %(2:4:128)';%[2 4 8 16 32 64 128]' +numElements_list = (2:4:128)'; %[2 4 8 16 32 64 128]'; %(2:4:128)';%[2 4 8 16 32 64 128]' rangepm_list = [1:0.5:9]' for i=1:size(numElements_list,1) for j=1:size(rangepm_list,1) diff --git a/vp/build_risv_toolchain.sh b/vp/build_risv_toolchain.sh new file mode 100644 index 0000000..e3c74d1 --- /dev/null +++ b/vp/build_risv_toolchain.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# Copyright (c) 2019 ETH Zurich, Integrated System Laboratory, Renzo Andri + +# Dependencies +# centos: sudo yum install autoconf automake libmpc-devel mpfr-devel gmp-devel gawk bison flex texinfo patchutils gcc gcc-c++ zlib-devel +# ubuntu16: sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev + +export postfix="CentOS" + +git clone --recursive https://github.com/pulp-platform/pulp-riscv-gnu-toolchain pulp-riscv-gnu-toolchain_$postfix + +cd pulp-riscv-gnu-toolchain_$postfix +git checkout isa-renzo + +echo "Make PULP" +./configure --prefix=$(pwd)/opt-riscv/ --with-arch=rv32imc --with-cmodel=medlow --enable-multilib +make +cd ../ + + + +