-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqflow-setup
executable file
·75 lines (65 loc) · 1.79 KB
/
qflow-setup
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
#!/usr/bin/env bash
# http://opencircuitdesign.com/qflow/
set -eu
sudo apt-get install libffi-dev libgsl-dev
mkdir -p qflow
cd qflow
git clone https://github.com/cliffordwolf/yosys
cd yosys
make -j"$(nproc)"
sudo make install
cd ..
git clone https://github.com/rubund/graywolf
cd graywolf
# https://github.com/rubund/graywolf/pull/15
patch -f -p1 <../../graywolf-cfree.patch
cmake .
# https://github.com/rubund/graywolf/issues/18
#make -j"$(nproc)"
make
sudo make install
cd ..
# Latest version not working.
#git clone git://opencircuitdesign.com/qrouter-1.4
#cd qrouter-1.4
git clone git://opencircuitdesign.com/qrouter-1.3
cd qrouter-1.3
./configure
make -j"$(nproc)"
sudo make install
cd ..
git clone git://opencircuitdesign.com/magic-8.2
cd magic-8.2
./configure
make -j"$(nproc)"
sudo make install
cd ..
#git clone git://opencircuitdesign.com/qflow-1.2
#cd qflow-1.2
git clone git://opencircuitdesign.com/qflow-1.1
cd qflow-1.1
./configure \
--with-graywolf="$(which graywolf)" \
--with-magic="$(which magic)" \
--with-qrouter="$(which qrouter)" \
--with-yosys="$(which yosys)" \
;
make -j"$(nproc)"
sudo make install
cd ..
mkdir qflow-demo
cd qflow-demo
wget \
http://opencircuitdesign.com/qflow/example/load.tcl \
http://opencircuitdesign.com/qflow/example/map9v3.cel2 \
http://opencircuitdesign.com/qflow/example/map9v3.tcl \
http://opencircuitdesign.com/qflow/example/map9v3.v \
http://opencircuitdesign.com/qflow/example/map9v3_cosim_tb.spi \
http://opencircuitdesign.com/qflow/example/map9v3_gates_tb.v \
http://opencircuitdesign.com/qflow/example/osu035_stdcells.gds2 \
http://opencircuitdesign.com/qflow/example/osu035_stdcells.v \
http://opencircuitdesign.com/qflow/example/setup.tcl \
;
mkdir -p layout source synthesis
cp map9v3.v source
#qflow synthesize place route sta map9v3