-
Notifications
You must be signed in to change notification settings - Fork 3
/
esp_env_cad.sh
42 lines (36 loc) · 1.5 KB
/
esp_env_cad.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
#!/bin/bash
#
# Set ESP environment variables (with CAD tools)
#
# Cadence: Stratus HLS, Incisive, XCelium
# e.g. <stratus_path> = /opt/cadence/stratus182
# e.g. <incisive_path> = /opt/cadence/incisive152
# e.g. <xcelium_path> = /opt/cadence/xcelium18
export LM_LICENSE_FILE=$LM_LICENSE_FILE:<cadence_license_path>
export PATH=$PATH:<stratus_path>/bin:<incisive_path>/tools/cdsgcc/gcc/bin:<xcelium_path>/tools/cdsgcc/gcc/bin
export CDS_AUTO_64BIT=all
# export HOST=$(hostname) # for Ubuntu only
# Xilinx: Vivado, Vivado HLS
# e.g. <vivado_path> = /opt/xilinx/Vivado/2018.2
export XILINXD_LICENSE_FILE=<xilinx_license_path>
source <vivado_path>/settings64.sh
# Mentor: Catapult HLS, Modelsim
# e.g. <modelsim_path> = /opt/mentor/modeltech
# e.g. <catapult_path> = /opt/mentor/catapult
export LM_LICENSE_FILE=$LM_LICENSE_FILE:<mentor_license_path>
export PATH=$PATH:<modelsim_path>/bin
export AMS_MODEL_TECH=<modelsim_path>
export PATH=$PATH:<catapult_path>/Mgc_home/bin
export SYSTEMC=<catapult_path>/Mgc_home/shared
export SYSTEMC_HOME=<catapult_path>/Mgc_home/shared
export MGC_HOME=<catapult_path>/Mgc_home
export LIBDIR=-L<catapult_path>/Mgc_home/shared/lib $LIBDIR
# RISC-V toolchain
export RISCV=/home/espuser/riscv
export PATH=$PATH:$RISCV/bin
export RISCV32IMC=/home/espuser/riscv32imc
export PATH=$PATH:$RISCV32IMC/bin
# LEON3 toolchain
export PATH=$PATH:/home/espuser/leon/bin
export PATH=$PATH:/home/espuser/leon/mklinuximg
export PATH=$PATH:/home/espuser/leon/sparc-elf/bin