43 lines
1.4 KiB
Markdown
43 lines
1.4 KiB
Markdown
# Notes
|
|
|
|
* requires conan version 1.59
|
|
* requires decent cmake version 3.23
|
|
|
|
Setup for tcsh:
|
|
|
|
```
|
|
git clone --recursive -b develop https://git.minres.com/TGFS/TGC-ISS.git
|
|
cd TGC-ISS/
|
|
setenv TGFS_INSTALL_ROOT `pwd`/install
|
|
setenv COWAREHOME <your SNPS PA installation>
|
|
setenv SNPSLMD_LICENSE_FILE <your SNPS PA license file>
|
|
source $COWAREHOME/SLS/linux/setup.csh pae
|
|
setenv SNPS_ENABLE_MEM_ON_DEMAND_IN_GENERIC_MEM 1
|
|
setenv PATH $COWAREHOME/common/bin/:${PATH}
|
|
setenv CC $COWAREHOME/SLS/linux/common/bin/gcc
|
|
setenv CXX $COWAREHOME/SLS/linux/common/bin/g++
|
|
cmake -S . -B build/PA -DCMAKE_BUILD_TYPE=Debug -DUSE_CWR_SYSTEMC=ON -DBUILD_SHARED_LIBS=ON \
|
|
-DCODEGEN=OFF -DCMAKE_INSTALL_PREFIX=${TGFS_INSTALL_ROOT}
|
|
cmake --build build/PA --target install -j16
|
|
cd dbt-rise-tgc/contrib/pa
|
|
# import the TGC core itself
|
|
pct tgc_import_tb.tcl
|
|
```
|
|
|
|
Setup for bash:
|
|
|
|
```
|
|
git clone --recursive -b develop https://git.minres.com/TGFS/TGC-ISS.git
|
|
cd TGC-ISS/
|
|
export TGFS_INSTALL_ROOT `pwd`/install
|
|
module load tools/pa/T-2022.06
|
|
export SNPS_ENABLE_MEM_ON_DEMAND_IN_GENERIC_MEM=1
|
|
export CC=$COWAREHOME/SLS/linux/common/bin/gcc
|
|
export CXX=$COWAREHOME/SLS/linux/common/bin/g++
|
|
cmake -S . -B build/PA -DCMAKE_BUILD_TYPE=Debug -DUSE_CWR_SYSTEMC=ON -DBUILD_SHARED_LIBS=ON \
|
|
-DCODEGEN=OFF -DCMAKE_INSTALL_PREFIX=${TGFS_INSTALL_ROOT}
|
|
cmake --build build/PA --target install -j16
|
|
cd dbt-rise-tgc/contrib/pa
|
|
# import the TGC core itself
|
|
pct tgc_import_tb.tcl
|
|
``` |