2023-05-04 21:06:49 +02:00
|
|
|
# TGC-ISS
|
|
|
|
|
|
|
|
The ISS for the cores of The Good Folk Series (TGFS) of MINRES.
|
|
|
|
|
|
|
|
This ISS is based in DBT-RISE, a library to allow rapid ISS creation.
|
|
|
|
|
|
|
|
## Quick start
|
|
|
|
|
|
|
|
* you need to have a C++14 capable compiler, make or ninja, python, and cmake installed
|
|
|
|
|
|
|
|
### common setup
|
|
|
|
|
|
|
|
* install conan.io (see also http://docs.conan.io/en/latest/installation.html):
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2024-06-20 07:10:38 +02:00
|
|
|
pip3 install --user 'conan<2.0'
|
2023-05-04 21:06:49 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
Another option is to use a Python VENV to isolate the used models from the system.
|
|
|
|
In case of please run:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
|
|
python -mvenv .venv
|
|
|
|
source .venv/bin/activate
|
|
|
|
pip3 install conan==1.59
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
Using conan for the first time you need to create a profile:
|
|
|
|
|
2024-06-20 07:10:38 +02:00
|
|
|
```sh
|
|
|
|
|
|
|
|
conan profile new --detect default
|
|
|
|
conan remote add gitea https://git.minres.com/api/packages/Tooling/conan
|
|
|
|
|
2023-05-04 21:06:49 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
* checkout source from git
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
|
|
git clone --recursive -b develop https://git.minres.com/TGFS/TGC-ISS.git
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2023-05-12 09:44:08 +02:00
|
|
|
### Standalone (C++) build
|
2023-05-04 21:06:49 +02:00
|
|
|
|
|
|
|
* start an out-of-source build:
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
cd TGC-ISS
|
|
|
|
cmake -S . -B build/Debug
|
|
|
|
cmake --build build/Debug -j10
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Synopsys Platform Architect build
|
|
|
|
|
|
|
|
Assuming environment for Platform Architect is properly set up.
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
cd TGC-ISS/
|
2023-05-31 11:57:19 +02:00
|
|
|
export TGFS_INSTALL_ROOT=`pwd`/install
|
2023-05-04 21:06:49 +02:00
|
|
|
export SNPS_ENABLE_MEM_ON_DEMAND_IN_GENERIC_MEM=1
|
2023-05-10 18:32:23 +02:00
|
|
|
source $COWAREHOME/SLS/linux/setup.sh pae
|
2023-05-04 21:06:49 +02:00
|
|
|
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 \
|
2023-05-12 09:44:08 +02:00
|
|
|
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${TGFS_INSTALL_ROOT}
|
2023-05-04 21:06:49 +02:00
|
|
|
cmake --build build/PA --target install -j16
|
|
|
|
|
|
|
|
```
|
2023-05-10 18:32:23 +02:00
|
|
|
The Synopsys PA installation requirements may vary on your system.
|
|
|
|
Now you may change to the directory dbt-rise-tgc/contrib to import the core model
|
2023-05-04 21:06:49 +02:00
|
|
|
|
2023-05-10 18:32:23 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
cd dbt-rise-tgc/contrib
|
|
|
|
pct tgc_import.tcl
|
|
|
|
|
|
|
|
```
|