forked from thesourcerer8/StdCellLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.sh
120 lines (89 loc) · 4.39 KB
/
tools.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
# To run this installer you can open a Terminal window and enter the following commands:
# wget https://pdk.libresilicon.com/tools.sh
# bash tools.sh
echo "To install the LibreSilicon Standard Cell Generator toolchain, you need:"
echo "Debian/Ubuntu-18.04 or newer"
echo "at least 1.9 GB RAM"
echo "If the installation interrupts due to a network or power outage, just run the installation script again."
sudo apt-get update
echo "The following packages are optional for documentation and visualisation, you can safely say N if you dont want to install them:"
sudo apt-get install npm blender inkscape iverilog
sudo apt-get install gtkwave lsb
echo Installing required packages on Debian/Ubuntu:
sudo apt-get -y install qflow imagemagick libcairo2-dev tcllib tklib make g++ libreadline-dev python3-cairosvg python3 python3-numpy libblas-dev ngspice z3 tcl8.6-dev tk8.6-dev python3-scipy python3-matplotlib texlive-latex-recommended unzip glpk-utils libglpk-dev python3-pulp git wget gauche python3-toml python3-pytoml python3-pip mmv libglu1-mesa-dev libcurl4-gnutls-dev pdf2svg python3-yaml python3-cffi python3-pyparsing python3-certifi tcl magic libsqlite3-dev python3-setuptools python3-networkx python3-sympy
sudo apt-get -y install libngspice0 libngspice0-dev python3-gdspy python3-kiwisolver
sudo apt-get -y install libopengl-dev opensta opensta-dev klayout
#sudo apt-get install geda-gschem geda-gnetlist geda-doc geda-gattrib geda-gsymcheck
sudo apt-get -y install python-z3
sudo apt-get -y install python3-z3
echo Installing required packages on FreeBSD:
pkg install qflow ImageMagick7 cairo tcllib tk87 gcc readline py37-cairosvg python37 py37-numpy blas ngspice_rework z3 py37-z3-solver tcl87 py37-scipy py37-matplotlib texlive-full unzip blender glpk py37-pulp git wget texlive-full gauche py37-toml py37-pytoml iverilog gtkwave py37-pip inkscape ngspice_rework-shlib
#echo "Installing Magic since we need magic >= 8.2.145 , as soon as the distribution package is newer than that and comes with cairo support we wont need to compile it ourselves anymore:"
#sudo rm -rf magic-*/
#MAGICVERSION=8.3.27
#wget -c http://opencircuitdesign.com/magic/archive/magic-$MAGICVERSION.tgz
#tar xvzf magic-$MAGICVERSION.tgz
#cd magic-$MAGICVERSION
#./configure --with-cairo
#make
#sudo make install
#cd ..
# Due to problems with the KLayout packages we currently have to install it manually:
#wget https://pdk.libresilicon.com/klayout.egg-info
#sudo cp klayout.egg-info /usr/lib/python3/dist-packages/klayout.egg-info
#git clone https://github.com/KLayout/klayout
#cd klayout
#python3 setup.py build --parallel 1
#sudo python3 setup.py install
#cd ..
#echo Installing librecell
#sudo rm -rf librecell
#git clone https://codeberg.org/tok/librecell
#echo "Python >= 3.6 is needed!"
#python3 --version
#cd librecell/librecell-common
#sudo python3 setup.py install
#cd ../..
#cd librecell/librecell-meta
#sudo python3 setup.py install
#cd ../..
#cd librecell/librecell-lib
#sudo python3 setup.py install
#cd ../..
#cd librecell/librecell-layout
#sudo python3 setup.py install
#cd ../..
echo Installing Circdia
wget -c http://www.taylorgruppe.de/circdia/circdia.zip
sudo mkdir -p /usr/share/texlive/texmf-dist/tex/circdia
sudo unzip -u -o -d /usr/share/texlive/texmf-dist/tex/circdia circdia.zip
sudo mktexlsr
# We try to use libngspice0 and libngspice0-dev perhaps we dont need this code anymore:
#echo Installing ngspice
#wget -O ngspice-31.tar.gz https://sourceforge.net/projects/ngspice/files/ng-spice-rework/31/ngspice-31.tar.gz/download
#tar xvzf ngspice-31.tar.gz
#cd ngspice-31
#./configure --with-ngshared --enable-shared
#make
#sudo make install
#cd ..
#echo "Installing gdspy (GDS for Python), if it has not been installed already"
#sudo pip3 install gdspy
echo "Installing PySpice (SPICE for Python)"
sudo pip3 install PySpice
#echo "Installing Sphinx Verilog"
#sudo pip3 install sphinxcontrib-verilog-diagrams
#echo "Installing netlistsvg"
#sudo npm install -g netlistsvg
# If you do not want to generate a standard cell library, then uncomment the following line to stop here
#exit
#echo Installing StdCellLib
#git clone https://github.com/thesourcerer8/StdCellLib
#cd StdCellLib/Catalog
#make catalog
#make importQflow
echo "Installation of the StdCellLib is finished."
echo "To build a whole standard cell library you can now run:"
echo "make layout ; make doc ; perl ../Tools/perl/buildreport.pl ; cd .. ; make dist"
#sudo make qflow