We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The installation procedure described in README.md does not work. Below is the process I used to install the tool (Ubuntu 18.04).
build-essential
git
automake
cmake
sudo apt-get install git automake cmake
liblpsolve55-dev
libgmp3-dev
libtool
libboost-dev
sudo apt-get install liblpsolve55-dev libgmp3-dev libtool libboost-dev
wget https://www.lua.org/ftp/lua-5.1.5.tar.gz tar xvf lua-5.1.5.tar.gz cd lua-5.1.5
-fPIC
-g
src/Makefile
CFLAGS= -g -O2 -Wall -fPIC $(MYCFLAGS)
make linux make local cd ..
wget https://sourceforge.net/projects/luabind/files/luabind/0.9.1/luabind-0.9.1.tar.gz/download -O luabind-0.9.1.tar.gz tar xvf luabind-0.9.1.tar.gz cd luabind-0.9.1
$TOOLS
LUA_PATH=$(TOOLS)/lua-5.1.5 bjam --prefix=$(TOOLS)/luabind-0.9.1 install
sudo apt-get install luarocks sudo luarocks install luabitop
wget https://www.accellera.org/images/downloads/standards/systemc/systemc-2.3.3.tar.gz tar xvf systemc-2.3.3.tar.gz
Follow the instructions specified in INSTALL.
INSTALL
Set the environment variables ($TOOLS points to the directory with the manually installed tools and libraries):
export SYSTEMC_INCLUDE=$(TOOLS)/systemc-2.3.3/include/ export SYSTEMC_LIBDIR=$(TOOLS)/systemc-2.3.3/lib-linux64/
git clone https://github.com/verilator/verilator cd verilator autoconf ./configure make sudo make install
export VERILATOR_ROOT=$(TOOLS)/verilator/
wget https://releases.llvm.org/3.1/clang+llvm-3.1-x86_64-linux-ubuntu_12.04.tar.gz tar xvf clang+llvm-3.1-x86_64-linux-ubuntu_12.04.tar.gz
git clone https://github.com/ispras/abc.git abc cd abc make ABC_USE_PIC=1 libabc.a
git clone http://llvm.org/git/llvm.git
16436dffb50fac4677c7162639f8da0b73eb4e99
cd llvm git reset --hard 16436dffb50fac4677c7162639f8da0b73eb4e99
cd lib/Target/ git clone https://forge.ispras.ru/git/shang.git VerilogBackend
cd ../../ git apply lib/Target/VerilogBackend/util/llvm-16436dffb50fac4677c7162639f8da0b73eb4e99.patch
build
cd .. mkdir build cd build
/usr/bin/cmake ../llvm/ -DCMAKE_BUILD_TYPE=Debug \ -DENABLE_LOGIC_SYNTHESIS=OFF \ -DLUA_INCLUDE_DIR=$TOOLS/lua-5.1.5/include \ -DLUA_LIBRARY=$TOOLS/lua-5.1.5/lib/liblua.a \ -DLUA_LUAC=$TOOLS/lua-5.1.5/bin/luac \ -DLUABIND_INCLUDE_DIR=/usr/include \ -DLUABIND_LIBRARY=$TOOLS/luabind-0.9.1/lib/libluabindd.so \ -DLPSOLVE_INCLUDE_DIR=/usr/include/lpsolve \ -DLPSOLVE_LIBRARY=/usr/lib/lp_solve/liblpsolve55.so \ -DABC_INCLUDE_DIR=$TOOLS/abc \ -DABC_LIBRARY=$TOOLS/abc/libabc.a \ -DSYSTEMC_ROOT_DIR=$TOOLS/systemc-2.3.3/ \ -DVERILATOR_ROOT_DIR=$TOOLS/verilator/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The installation procedure described in README.md does not work. Below is the process I used to install the tool (Ubuntu 18.04).
Installation
Prerequisites
Build Tools
build-essential
,git
,automake
, andcmake
:sudo apt-get install git automake cmake
Libraries
liblpsolve55-dev
,libgmp3-dev
,libtool
, andlibboost-dev
:sudo apt-get install liblpsolve55-dev libgmp3-dev libtool libboost-dev
Lua and LuaBind
-fPIC
compilation flag (and, optionally,-g
) tosrc/Makefile
:CFLAGS= -g -O2 -Wall -fPIC $(MYCFLAGS)
$TOOLS
points to the directory with the manually installed tools and libraries):SystemC
Follow the instructions specified in
INSTALL
.Set the environment variables (
$TOOLS
points to the directory with the manually installed tools and libraries):Verilator
$TOOLS
points to the directory with the manually installed tools and libraries):export VERILATOR_ROOT=$(TOOLS)/verilator/
Clang
ABC
Build Shang
git clone http://llvm.org/git/llvm.git
16436dffb50fac4677c7162639f8da0b73eb4e99
:build
folder:cmake
with the following flags ($TOOLS
points to the directory with the manually installed tools and libraries):The text was updated successfully, but these errors were encountered: