siliconcompiler 0.33.0__py3-none-any.whl → 0.33.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- siliconcompiler/_common.py +5 -0
- siliconcompiler/_metadata.py +1 -1
- siliconcompiler/apps/sc_install.py +7 -0
- siliconcompiler/apps/sc_remote.py +7 -2
- siliconcompiler/apps/utils/replay.py +5 -5
- siliconcompiler/core.py +38 -12
- siliconcompiler/data/templates/replay/replay.sh.j2 +18 -1
- siliconcompiler/metric.py +78 -0
- siliconcompiler/package/git.py +1 -1
- siliconcompiler/record.py +63 -7
- siliconcompiler/remote/client.py +57 -14
- siliconcompiler/remote/server.py +110 -60
- siliconcompiler/report/dashboard/cli/__init__.py +2 -0
- siliconcompiler/report/dashboard/cli/board.py +34 -31
- siliconcompiler/report/report.py +10 -5
- siliconcompiler/report/utils.py +12 -6
- siliconcompiler/scheduler/__init__.py +146 -976
- siliconcompiler/scheduler/run_node.py +12 -5
- siliconcompiler/scheduler/send_messages.py +9 -3
- siliconcompiler/scheduler/slurm.py +10 -43
- siliconcompiler/scheduler/taskscheduler.py +320 -0
- siliconcompiler/schema/baseschema.py +25 -4
- siliconcompiler/schema/journalingschema.py +4 -0
- siliconcompiler/schema/schema_cfg.py +3 -3
- siliconcompiler/tool.py +201 -32
- siliconcompiler/tools/_common/__init__.py +14 -11
- siliconcompiler/tools/_common/asic.py +5 -5
- siliconcompiler/tools/bluespec/convert.py +2 -1
- siliconcompiler/tools/builtin/_common.py +9 -2
- siliconcompiler/tools/builtin/concatenate.py +6 -2
- siliconcompiler/tools/builtin/minimum.py +7 -2
- siliconcompiler/tools/builtin/mux.py +7 -2
- siliconcompiler/tools/builtin/nop.py +7 -2
- siliconcompiler/tools/builtin/verify.py +7 -3
- siliconcompiler/tools/chisel/convert.py +10 -10
- siliconcompiler/tools/klayout/drc.py +2 -2
- siliconcompiler/tools/klayout/klayout_show.py +6 -6
- siliconcompiler/tools/klayout/klayout_utils.py +12 -12
- siliconcompiler/tools/netgen/count_lvs.py +2 -2
- siliconcompiler/tools/netgen/lvs.py +1 -1
- siliconcompiler/tools/openroad/_apr.py +2 -2
- siliconcompiler/tools/openroad/scripts/apr/sc_init_floorplan.tcl +1 -7
- siliconcompiler/tools/openroad/scripts/common/procs.tcl +18 -0
- siliconcompiler/tools/openroad/scripts/common/read_input_files.tcl +1 -7
- siliconcompiler/tools/opensta/scripts/sc_timing.tcl +10 -0
- siliconcompiler/tools/opensta/timing.py +11 -0
- siliconcompiler/tools/slang/__init__.py +6 -5
- siliconcompiler/tools/slang/elaborate.py +6 -6
- siliconcompiler/tools/slang/lint.py +1 -3
- siliconcompiler/tools/vpr/_xml_constraint.py +8 -8
- siliconcompiler/tools/yosys/prepareLib.py +2 -2
- siliconcompiler/tools/yosys/sc_synth_asic.tcl +43 -5
- siliconcompiler/tools/yosys/screenshot.py +1 -1
- siliconcompiler/tools/yosys/syn_asic.py +5 -5
- siliconcompiler/toolscripts/_tools.json +17 -10
- siliconcompiler/toolscripts/rhel8/install-chisel.sh +9 -2
- siliconcompiler/toolscripts/rhel8/install-icarus.sh +10 -3
- siliconcompiler/toolscripts/rhel8/install-klayout.sh +8 -1
- siliconcompiler/toolscripts/rhel8/install-magic.sh +9 -2
- siliconcompiler/toolscripts/rhel8/install-montage.sh +1 -1
- siliconcompiler/toolscripts/rhel8/install-netgen.sh +9 -2
- siliconcompiler/toolscripts/rhel8/install-slang.sh +11 -4
- siliconcompiler/toolscripts/rhel8/install-surelog.sh +9 -2
- siliconcompiler/toolscripts/rhel8/install-sv2v.sh +11 -4
- siliconcompiler/toolscripts/rhel8/install-verible.sh +11 -3
- siliconcompiler/toolscripts/rhel8/install-verilator.sh +10 -3
- siliconcompiler/toolscripts/rhel8/install-xyce.sh +15 -10
- siliconcompiler/toolscripts/rhel9/install-chisel.sh +9 -2
- siliconcompiler/toolscripts/rhel9/install-ghdl.sh +9 -2
- siliconcompiler/toolscripts/rhel9/install-gtkwave.sh +10 -3
- siliconcompiler/toolscripts/rhel9/install-icarus.sh +10 -3
- siliconcompiler/toolscripts/rhel9/install-klayout.sh +8 -1
- siliconcompiler/toolscripts/rhel9/install-magic.sh +9 -2
- siliconcompiler/toolscripts/rhel9/install-montage.sh +1 -1
- siliconcompiler/toolscripts/rhel9/install-netgen.sh +9 -2
- siliconcompiler/toolscripts/rhel9/install-openroad.sh +16 -3
- siliconcompiler/toolscripts/rhel9/install-opensta.sh +17 -5
- siliconcompiler/toolscripts/rhel9/install-slang.sh +11 -4
- siliconcompiler/toolscripts/rhel9/install-surelog.sh +9 -2
- siliconcompiler/toolscripts/rhel9/install-sv2v.sh +11 -4
- siliconcompiler/toolscripts/rhel9/install-verible.sh +11 -3
- siliconcompiler/toolscripts/rhel9/install-verilator.sh +10 -3
- siliconcompiler/toolscripts/rhel9/install-vpr.sh +9 -2
- siliconcompiler/toolscripts/rhel9/install-xdm.sh +10 -2
- siliconcompiler/toolscripts/rhel9/install-xyce.sh +15 -10
- siliconcompiler/toolscripts/rhel9/install-yosys-moosic.sh +9 -2
- siliconcompiler/toolscripts/rhel9/install-yosys-parmys.sh +10 -3
- siliconcompiler/toolscripts/rhel9/install-yosys-slang.sh +10 -2
- siliconcompiler/toolscripts/rhel9/install-yosys.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-bambu.sh +10 -2
- siliconcompiler/toolscripts/ubuntu20/install-bluespec.sh +10 -3
- siliconcompiler/toolscripts/ubuntu20/install-chisel.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-ghdl.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-gtkwave.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-icarus.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-icepack.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-klayout.sh +8 -1
- siliconcompiler/toolscripts/ubuntu20/install-magic.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-montage.sh +1 -1
- siliconcompiler/toolscripts/ubuntu20/install-netgen.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-nextpnr.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-openroad.sh +16 -3
- siliconcompiler/toolscripts/ubuntu20/install-opensta.sh +16 -5
- siliconcompiler/toolscripts/ubuntu20/install-slang.sh +11 -4
- siliconcompiler/toolscripts/ubuntu20/install-slurm.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-surelog.sh +10 -2
- siliconcompiler/toolscripts/ubuntu20/install-sv2v.sh +11 -4
- siliconcompiler/toolscripts/ubuntu20/install-verible.sh +11 -3
- siliconcompiler/toolscripts/ubuntu20/install-verilator.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-xdm.sh +10 -2
- siliconcompiler/toolscripts/ubuntu20/install-xyce.sh +13 -8
- siliconcompiler/toolscripts/ubuntu20/install-yosys-moosic.sh +9 -2
- siliconcompiler/toolscripts/ubuntu20/install-yosys.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-bambu.sh +10 -2
- siliconcompiler/toolscripts/ubuntu22/install-bluespec.sh +10 -3
- siliconcompiler/toolscripts/ubuntu22/install-chisel.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-ghdl.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-gtkwave.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-icarus.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-icepack.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-klayout.sh +12 -1
- siliconcompiler/toolscripts/ubuntu22/install-magic.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-montage.sh +1 -1
- siliconcompiler/toolscripts/ubuntu22/install-netgen.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-nextpnr.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-openroad.sh +16 -3
- siliconcompiler/toolscripts/ubuntu22/install-opensta.sh +17 -5
- siliconcompiler/toolscripts/ubuntu22/install-slang.sh +11 -4
- siliconcompiler/toolscripts/ubuntu22/install-slurm.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-surelog.sh +10 -2
- siliconcompiler/toolscripts/ubuntu22/install-sv2v.sh +11 -4
- siliconcompiler/toolscripts/ubuntu22/install-verible.sh +11 -3
- siliconcompiler/toolscripts/ubuntu22/install-verilator.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-vpr.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-xdm.sh +10 -2
- siliconcompiler/toolscripts/ubuntu22/install-xyce.sh +13 -8
- siliconcompiler/toolscripts/ubuntu22/install-yosys-moosic.sh +9 -2
- siliconcompiler/toolscripts/ubuntu22/install-yosys-parmys.sh +10 -3
- siliconcompiler/toolscripts/ubuntu22/install-yosys-slang.sh +10 -2
- siliconcompiler/toolscripts/ubuntu22/install-yosys.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-bambu.sh +12 -4
- siliconcompiler/toolscripts/ubuntu24/install-bluespec.sh +10 -3
- siliconcompiler/toolscripts/ubuntu24/install-chisel.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-ghdl.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-gtkwave.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-icarus.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-icepack.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-klayout.sh +12 -1
- siliconcompiler/toolscripts/ubuntu24/install-magic.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-montage.sh +1 -1
- siliconcompiler/toolscripts/ubuntu24/install-netgen.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-nextpnr.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-openroad.sh +16 -3
- siliconcompiler/toolscripts/ubuntu24/install-opensta.sh +17 -5
- siliconcompiler/toolscripts/ubuntu24/install-slang.sh +11 -4
- siliconcompiler/toolscripts/ubuntu24/install-slurm.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-surelog.sh +10 -2
- siliconcompiler/toolscripts/ubuntu24/install-sv2v.sh +11 -4
- siliconcompiler/toolscripts/ubuntu24/install-verible.sh +11 -3
- siliconcompiler/toolscripts/ubuntu24/install-verilator.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-vpr.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-xdm.sh +10 -2
- siliconcompiler/toolscripts/ubuntu24/install-xyce.sh +13 -8
- siliconcompiler/toolscripts/ubuntu24/install-yosys-moosic.sh +9 -2
- siliconcompiler/toolscripts/ubuntu24/install-yosys-parmys.sh +10 -3
- siliconcompiler/toolscripts/ubuntu24/install-yosys-slang.sh +10 -2
- siliconcompiler/toolscripts/ubuntu24/install-yosys.sh +9 -2
- siliconcompiler/utils/__init__.py +11 -0
- siliconcompiler/utils/flowgraph.py +6 -101
- siliconcompiler/utils/issue.py +15 -23
- siliconcompiler/utils/logging.py +2 -2
- {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/METADATA +6 -5
- {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/RECORD +177 -176
- {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/WHEEL +1 -1
- {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/entry_points.txt +0 -0
- {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/licenses/LICENSE +0 -0
- {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/top_level.txt +0 -0
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo yum install -y wget
|
|
9
16
|
|
|
10
17
|
mkdir -p deps
|
|
@@ -19,8 +26,9 @@ tar xzf $filename
|
|
|
19
26
|
|
|
20
27
|
if [ -z ${PREFIX} ]; then
|
|
21
28
|
PREFIX=/opt/verible
|
|
22
|
-
sudo
|
|
29
|
+
SUDO_INSTALL=sudo
|
|
30
|
+
$SUDO_INSTALL mkdir -p $PREFIX
|
|
23
31
|
echo "Please add \"export PATH="/opt/verible/bin:\$PATH"\" to your .bashrc"
|
|
24
32
|
fi
|
|
25
33
|
|
|
26
|
-
|
|
34
|
+
$SUDO_INSTALL mv verible-$version/* $PREFIX
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo yum group install -y "Development Tools"
|
|
9
16
|
sudo yum install -y git wget
|
|
10
17
|
|
|
@@ -22,7 +29,7 @@ cd help2man-1.43.3
|
|
|
22
29
|
|
|
23
30
|
./configure $args
|
|
24
31
|
make -j$(nproc)
|
|
25
|
-
|
|
32
|
+
$SUDO_INSTALL make install
|
|
26
33
|
|
|
27
34
|
cd ..
|
|
28
35
|
|
|
@@ -36,6 +43,6 @@ autoconf
|
|
|
36
43
|
|
|
37
44
|
./configure $args
|
|
38
45
|
make -j$(nproc)
|
|
39
|
-
|
|
46
|
+
$SUDO_INSTALL make install
|
|
40
47
|
|
|
41
48
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo yum install -y git wget
|
|
9
16
|
|
|
10
17
|
mkdir -p deps
|
|
@@ -28,4 +35,4 @@ fi
|
|
|
28
35
|
|
|
29
36
|
make CMAKE_PARAMS="$args -DWITH_PARMYS=OFF -DWITH_ABC=OFF -DYOSYS_F4PGA_PLUGINS=OFF" -j$(nproc)
|
|
30
37
|
cd build
|
|
31
|
-
|
|
38
|
+
$SUDO_INSTALL make install
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
@@ -18,6 +18,7 @@ cd deps
|
|
|
18
18
|
if [ -z ${PREFIX} ]; then
|
|
19
19
|
PREFIX=~/.local
|
|
20
20
|
fi
|
|
21
|
+
export PATH="$PREFIX/bin:$PATH"
|
|
21
22
|
|
|
22
23
|
# Download XDM
|
|
23
24
|
git clone $(python3 ${src_path}/_tools.py --tool xdm --field git-url) xdm
|
|
@@ -32,6 +33,13 @@ python3 -m venv venv
|
|
|
32
33
|
python3 -m pip install --upgrade pip
|
|
33
34
|
python3 -m pip install PyInstaller
|
|
34
35
|
|
|
36
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
37
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
38
|
+
SUDO_INSTALL="sudo -E PATH=$PATH"
|
|
39
|
+
else
|
|
40
|
+
SUDO_INSTALL=""
|
|
41
|
+
fi
|
|
42
|
+
|
|
35
43
|
args=
|
|
36
44
|
if [ ! -z ${PREFIX} ]; then
|
|
37
45
|
args="-DCMAKE_INSTALL_PREFIX=$PREFIX"
|
|
@@ -40,6 +48,6 @@ fi
|
|
|
40
48
|
cmake .. $args
|
|
41
49
|
make -j$(nproc)
|
|
42
50
|
|
|
43
|
-
|
|
51
|
+
$SUDO_INSTALL make install
|
|
44
52
|
|
|
45
53
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
mkdir -p deps
|
|
9
16
|
cd deps
|
|
10
17
|
|
|
@@ -30,12 +37,9 @@ mkdir -p trilinos
|
|
|
30
37
|
tar --strip-components=1 -xf trilinos.tar.gz -C trilinos
|
|
31
38
|
|
|
32
39
|
# Download Xyce.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
tar --strip-components=1 -xf xyce.tar.gz -C xyce
|
|
37
|
-
rm xyce.tar.gz
|
|
38
|
-
XYCE_DIR=$(realpath xyce)
|
|
40
|
+
git clone $(python3 ${src_path}/_tools.py --tool xyce --field git-url) xyce
|
|
41
|
+
cd xyce
|
|
42
|
+
git checkout $(python3 ${src_path}/_tools.py --tool xyce --field git-commit)
|
|
39
43
|
|
|
40
44
|
# Build Trilinos
|
|
41
45
|
cd trilinos
|
|
@@ -45,9 +49,10 @@ cmake \
|
|
|
45
49
|
-D CMAKE_INSTALL_PREFIX="$PREFIX/trilinos" \
|
|
46
50
|
-D AMD_LIBRARY_DIRS="/usr/lib" \
|
|
47
51
|
-D TPL_AMD_INCLUDE_DIRS="/usr/include/suitesparse" \
|
|
48
|
-
-C "
|
|
52
|
+
-C "../cmake/trilinos/trilinos-base.cmake" \
|
|
49
53
|
..
|
|
50
|
-
cmake --build . -j$(nproc)
|
|
54
|
+
cmake --build . -j$(nproc)
|
|
55
|
+
$SUDO_INSTALL make install
|
|
51
56
|
cd ../..
|
|
52
57
|
|
|
53
58
|
# Build Xyce
|
|
@@ -61,5 +66,5 @@ cmake \
|
|
|
61
66
|
..
|
|
62
67
|
cmake --build . -j$(nproc)
|
|
63
68
|
cmake --build . -j$(nproc) --target xycecinterface
|
|
64
|
-
|
|
69
|
+
$SUDO_INSTALL make install
|
|
65
70
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo yum install -y git
|
|
9
16
|
|
|
10
17
|
mkdir -p deps
|
|
@@ -15,5 +22,5 @@ cd yosys-moosic
|
|
|
15
22
|
git checkout $(python3 ${src_path}/_tools.py --tool yosys-moosic --field git-commit)
|
|
16
23
|
|
|
17
24
|
make -j$(nproc)
|
|
18
|
-
|
|
25
|
+
$SUDO_INSTALL make install
|
|
19
26
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo yum install -y git
|
|
9
16
|
|
|
10
17
|
mkdir -p deps
|
|
@@ -56,6 +63,6 @@ YOSYS_PLUGIN=$(yosys-config --datdir)/plugins/
|
|
|
56
63
|
cd parmys
|
|
57
64
|
|
|
58
65
|
make -j$(nproc)
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
$SUDO_INSTALL mkdir -p $YOSYS_PLUGIN
|
|
67
|
+
$SUDO_INSTALL cp parmys-plugin/build/parmys.so $YOSYS_PLUGIN
|
|
61
68
|
cd -
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
@@ -20,5 +20,13 @@ git checkout $(python3 ${src_path}/_tools.py --tool yosys-slang --field git-comm
|
|
|
20
20
|
git submodule update --init --recursive
|
|
21
21
|
|
|
22
22
|
make -j$(nproc)
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
25
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
26
|
+
SUDO_INSTALL="sudo -E PATH=$PATH"
|
|
27
|
+
else
|
|
28
|
+
SUDO_INSTALL=""
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
$SUDO_INSTALL make install
|
|
24
32
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
# From: https://github.com/YosysHQ/yosys/blob/f2c689403ace0637b7455bac8f1e8d4bc312e74f/README.md
|
|
9
16
|
sudo yum group install -y "Development Tools"
|
|
10
17
|
sudo yum install -y bison flex readline-devel gawk \
|
|
@@ -21,5 +28,5 @@ git checkout $(python3 ${src_path}/_tools.py --tool yosys --field git-commit)
|
|
|
21
28
|
git submodule update --init --recursive
|
|
22
29
|
|
|
23
30
|
make -j$(nproc) PREFIX="$PREFIX"
|
|
24
|
-
|
|
31
|
+
$SUDO_INSTALL make install PREFIX="$PREFIX"
|
|
25
32
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y autoconf autoconf-archive automake libtool \
|
|
9
16
|
libbdd-dev libboost-all-dev libmpc-dev libmpfr-dev \
|
|
10
17
|
libxml2-dev liblzma-dev libmpfi-dev zlib1g-dev libicu-dev bison doxygen flex \
|
|
@@ -30,6 +37,7 @@ if [ ! -z ${PREFIX} ]; then
|
|
|
30
37
|
args=--prefix="$PREFIX"
|
|
31
38
|
else
|
|
32
39
|
args=--prefix=/opt/panda
|
|
40
|
+
SUDO_INSTALL=sudo
|
|
33
41
|
|
|
34
42
|
sudo mkdir -p /opt/panda
|
|
35
43
|
sudo chown $USER:$USER /opt/panda
|
|
@@ -42,7 +50,7 @@ cd obj
|
|
|
42
50
|
|
|
43
51
|
../configure --enable-release --disable-flopoco --with-opt-level=2 $args
|
|
44
52
|
make -j$(nproc)
|
|
45
|
-
make install
|
|
53
|
+
$SUDO_INSTALL make install
|
|
46
54
|
|
|
47
55
|
cd -
|
|
48
56
|
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y ghc libghc-regex-compat-dev libghc-syb-dev \
|
|
9
16
|
libghc-old-time-dev libghc-split-dev tcl-dev build-essential pkg-config \
|
|
10
17
|
autoconf gperf flex bison
|
|
@@ -23,8 +30,8 @@ make -j$(nproc) install-src
|
|
|
23
30
|
|
|
24
31
|
if [ -z ${PREFIX} ]; then
|
|
25
32
|
# install
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
$SUDO_INSTALL mkdir -p /opt/tools/bsc
|
|
34
|
+
$SUDO_INSTALL chown $USER:$USER /opt/tools/bsc
|
|
28
35
|
|
|
29
36
|
BSC_VERSION=$(echo 'puts [lindex [Bluetcl::version] 0]' | inst/bin/bluetcl)
|
|
30
37
|
mv inst /opt/tools/bsc/bsc-${BSC_VERSION}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y wget
|
|
9
16
|
|
|
10
17
|
mkdir -p deps
|
|
@@ -19,7 +26,7 @@ if [ ! -z ${PREFIX} ]; then
|
|
|
19
26
|
args="-C $PREFIX --strip-components 1"
|
|
20
27
|
fi
|
|
21
28
|
|
|
22
|
-
tar xvf sbt.tgz $args
|
|
29
|
+
$SUDO_INSTALL tar xvf sbt.tgz $args
|
|
23
30
|
|
|
24
31
|
cd -
|
|
25
32
|
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y gnat libgnat-9 libz-dev
|
|
9
16
|
|
|
10
17
|
sudo apt-get install -y git build-essential
|
|
@@ -23,5 +30,5 @@ fi
|
|
|
23
30
|
|
|
24
31
|
./configure $args
|
|
25
32
|
make -j$(nproc)
|
|
26
|
-
|
|
33
|
+
$SUDO_INSTALL make install
|
|
27
34
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y build-essential gperf libgtk-3-dev \
|
|
9
16
|
libbz2-dev libjudy-dev liblzma-dev tcl-dev tk-dev
|
|
10
17
|
|
|
@@ -27,4 +34,4 @@ cd gtkwave3-gtk3
|
|
|
27
34
|
./autogen.sh
|
|
28
35
|
./configure --enable-gtk3 $args
|
|
29
36
|
make -j$(nproc)
|
|
30
|
-
|
|
37
|
+
$SUDO_INSTALL make install
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y build-essential bison flex gperf libreadline-dev libncurses-dev
|
|
9
16
|
|
|
10
17
|
sudo apt-get install -y git automake autoconf
|
|
@@ -24,4 +31,4 @@ fi
|
|
|
24
31
|
sh autoconf.sh
|
|
25
32
|
./configure $args
|
|
26
33
|
make -j$(nproc)
|
|
27
|
-
|
|
34
|
+
$SUDO_INSTALL make install
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y build-essential clang bison flex libreadline-dev \
|
|
9
16
|
gawk tcl-dev libffi-dev git mercurial graphviz \
|
|
10
17
|
xdot pkg-config python python3 libftdi-dev \
|
|
@@ -20,5 +27,5 @@ cd icepack
|
|
|
20
27
|
git checkout $(python3 ${src_path}/_tools.py --tool icepack --field git-commit)
|
|
21
28
|
|
|
22
29
|
make -j$(nproc)
|
|
23
|
-
|
|
30
|
+
$SUDO_INSTALL make install PREFIX="$PREFIX"
|
|
24
31
|
cd -
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y wget lsb-core
|
|
9
16
|
|
|
10
17
|
mkdir -p deps
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y build-essential m4 tcsh csh libx11-dev tcl-dev tk-dev
|
|
9
16
|
|
|
10
17
|
sudo apt-get install -y git
|
|
@@ -23,4 +30,4 @@ fi
|
|
|
23
30
|
|
|
24
31
|
LD_FLAGS=-shared ./configure $args
|
|
25
32
|
make -j$(nproc)
|
|
26
|
-
|
|
33
|
+
$SUDO_INSTALL make install
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
# Get directory of script
|
|
6
6
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
7
7
|
|
|
8
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
9
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
10
|
+
SUDO_INSTALL=sudo
|
|
11
|
+
else
|
|
12
|
+
SUDO_INSTALL=""
|
|
13
|
+
fi
|
|
14
|
+
|
|
8
15
|
sudo apt-get install -y build-essential tcl-dev tk-dev
|
|
9
16
|
|
|
10
17
|
sudo apt-get install -y git autotools-dev automake
|
|
@@ -23,4 +30,4 @@ fi
|
|
|
23
30
|
|
|
24
31
|
./configure $args
|
|
25
32
|
make -j$(nproc)
|
|
26
|
-
|
|
33
|
+
$SUDO_INSTALL make install
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
sudo apt-get install -y build-essential clang bison flex libreadline-dev \
|
|
6
6
|
gawk tcl-dev libffi-dev git mercurial graphviz \
|
|
@@ -12,6 +12,13 @@ sudo apt-get install -y git
|
|
|
12
12
|
# Get directory of script
|
|
13
13
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
14
14
|
|
|
15
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
16
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
17
|
+
SUDO_INSTALL=sudo
|
|
18
|
+
else
|
|
19
|
+
SUDO_INSTALL=""
|
|
20
|
+
fi
|
|
21
|
+
|
|
15
22
|
mkdir -p deps
|
|
16
23
|
cd deps
|
|
17
24
|
|
|
@@ -26,5 +33,5 @@ fi
|
|
|
26
33
|
|
|
27
34
|
cmake -DARCH=ice40 $args .
|
|
28
35
|
make -j$(nproc)
|
|
29
|
-
|
|
36
|
+
$SUDO_INSTALL make install
|
|
30
37
|
cd -
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
-
set -
|
|
3
|
+
set -ex
|
|
4
4
|
|
|
5
5
|
src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
|
|
6
6
|
|
|
7
|
+
if [ ! -z ${PREFIX} ]; then
|
|
8
|
+
export PATH="$PREFIX/bin:$PATH"
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
|
|
12
|
+
if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
|
|
13
|
+
SUDO_INSTALL="sudo -E PATH=$PATH"
|
|
14
|
+
else
|
|
15
|
+
SUDO_INSTALL=""
|
|
16
|
+
fi
|
|
17
|
+
|
|
7
18
|
sudo apt-get install -y git
|
|
8
19
|
|
|
9
20
|
mkdir -p deps
|
|
@@ -18,7 +29,9 @@ deps_args=""
|
|
|
18
29
|
if [ ! -z ${PREFIX} ]; then
|
|
19
30
|
deps_args="-prefix=$PREFIX"
|
|
20
31
|
fi
|
|
21
|
-
sudo ./etc/DependencyInstaller.sh -
|
|
32
|
+
sudo ./etc/DependencyInstaller.sh -base
|
|
33
|
+
sudo rm -f etc/openroad_deps_prefixes.txt
|
|
34
|
+
$SUDO_INSTALL ./etc/DependencyInstaller.sh -common $deps_args
|
|
22
35
|
|
|
23
36
|
cmake_args="-DENABLE_TESTS=OFF"
|
|
24
37
|
if [ ! -z ${PREFIX} ]; then
|
|
@@ -28,6 +41,6 @@ fi
|
|
|
28
41
|
./etc/Build.sh -cmake="$cmake_args"
|
|
29
42
|
|
|
30
43
|
cd build
|
|
31
|
-
|
|
44
|
+
$SUDO_INSTALL make install
|
|
32
45
|
|
|
33
46
|
cd -
|