Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Env Setup

Steve Burns edited this page Oct 16, 2019 · 8 revisions

Environment setup

We will need Python 3.x.x. The performance simulator requires GCC of version 4.8.2 or later. Our methodology relies on COG, SystemC and Google Test. We will install these packages in the steps below. (See how to request access to the HLS tool in HLS section of the manual).

Here are the steps we recommend:

  1. (you may skip this if you have root access to install new packages for your current Python installation) Using your Python installation, create a new Python environment, e.g. pyvenv COG_ENV_DIR or for python version 3.6 and higher: python3 -m venv COG_ENV_DIR

    This will create COG_ENV_DIR, where a local python installation area will reside. Activate the new Python environment (you need to do this every time you are in a new shell and you want to run cog) source COG_ENV_DIR/bin/activate.csh

  2. Install cog app (you may need to set the proxy in your environment as it will require internet connection): pip install cogapp or perhaps pip3 install cogapp if you aren't installing in a virtual environment.

  3. Download and install SystemC (in the home directory):

cd $HOME
wget http://accellera.org/images/downloads/standards/systemc/systemc-2.3.1.tgz
tar xvfz systemc-2.3.1.tgz
cd systemc-2.3.1
mkdir build
cd build
../configure
make
make install
  1. Download and install the latest GoogleTest (also in the home directory):
cd $HOME
git clone https://github.com/google/googletest
cd googletest/googletest/
mkdir mybuild
cd mybuild
cmake ..
make
  1. Clone source tree
git clone https://github.com/intel/rapid-design-methods-for-developing-hardware-accelerators.git
cd rapid-design-methods-for-developing-hardware-accelerators

or if the long name is annoying:

git clone https://github.com/intel/rapid-design-methods-for-developing-hardware-accelerators.git hld
cd hld
  1. Set environment variables:
  • HLD_ROOT to point to the git root directory rapid-design-methods-for-developing-hardware-accelerators.
  • SC_DIR to point to the installation of SystemC ($(SC_DIR)/include should exist)
  • GTEST_DIR to point to the installation of Google Test

For example,

export HLD_ROOT=`pwd`
export SC_DIR=$HOME/systemc-2.3.1
export GTEST_DIR=$HOME/googletest/googletest
Clone this wiki locally