Project

General

Profile

Installation Guide » History » Version 42

Sergey Smolov, 02/13/2020 05:00 PM

1 1 Sergey Smolov
h1. Installation Guide
2 38 Sergey Smolov
3 37 Sergey Smolov
{{toc}}
4 1 Sergey Smolov
5 16 Sergey Smolov
h2. Setting Environment Variables
6
7 20 Sergey Smolov
Several steps below require environment variable to be set in your OS. When you encounter such step in the guide, do the following (substitute @NAME@ and @VALUE@ by the name and value of your environment variable respectively):
8 16 Sergey Smolov
9
h3. Windows
10
11
# Open the @System Properties@ window.
12
# Switch to the @Advanced@ tab.
13
# Click on Environment Variables.
14
# Click @New...@ under @System Variables@.
15
# In the @New System Variable@ dialog specify variable name as @NAME@ and variable value as @VALUE@.
16
# Click @OK@ on all open windows.
17
# Reopen the command prompt window.
18 39 Sergey Smolov
19 16 Sergey Smolov
h3. Linux
20
21
Add the command below to the @~/.bash_profile@ or @~/.bashrc@ file (Linux):
22
<pre>export NAME=VALUE</pre> 
23
Changes will be applied after restarting the command-line terminal or reboot. You can also execute the command in your command-line terminal to make temporary changes.
24
25 17 Sergey Smolov
h2. Retrascope Installation
26 16 Sergey Smolov
27 35 Sergey Smolov
# Download and install JDK 11 (use " *AdoptOpenJDK* ":https://adoptopenjdk.net/ for Windows and *openjdk-11-jdk* for Ubuntu Linux based OS). 
28
# Download and install SMT-LIBv2 solver. We recommend to use " *Z3 version 4.3 or higher* ":https://github.com/Z3Prover/z3.
29 40 Sergey Smolov
# Set either the system property @smt.solver.path@ or the environment variable @SMT_SOLVER_PATH@ to a +full path to SMT-solver executable+ (like "/home/user/z3/z3" or "C:\tools\z3\bin\z3.exe"). If the both are set, a value of @fortress.solver.path@ will be used.
30 42 Sergey Smolov
# Retrascope is able to use "*nuXmv*":https://nuxmv.fbk.eu/ or "*NuSMV*":http://nusmv.fbk.eu/ to perform model checking. Select the one that is more suitable for your tasks (due to license limitations, we recommend to select NuSMV for commercial projects and nuXmv for non-commercial ones), and do the following:
31 35 Sergey Smolov
## To use *nuXmv*:
32 34 Sergey Smolov
### Download and install "nuXmv":https://es-static.fbk.eu/tools/nuxmv/index.php?n=Download.Download model checker.
33 40 Sergey Smolov
### Set either the system property @nuxmv.path@ or the environment variable @NUXMV_PATH@ to a +full path to nuXmv executable+ (like "/home/user/nuxmv/nuXmv" or "C:\tools\nuxmv\nuXmv.exe").
34 35 Sergey Smolov
## To use *NuSMV*:
35 34 Sergey Smolov
### Download and install "NuSMV":http://nusmv.fbk.eu/NuSMV/download/getting-v2.html model checker.
36 40 Sergey Smolov
### Set either the system property @nusmv.path@ or the environment variable @NUSMV_PATH@ to a +full path to NuSMV executable+ (like "/home/user/nusmv/bin/NuSMV" or "C:\tools\nusmv\bin\NuSMV.exe").
37 35 Sergey Smolov
# For *VHDL* designs elaboration:
38 1 Sergey Smolov
## Set @ZAMIA_LOCKING@ environment variable to @true@.
39 34 Sergey Smolov
## Download and install " *Python interpreter* ":https://www.python.org. 
40 41 Sergey Smolov
# Download and unpack the " *Retrascope* ":https://forge.ispras.ru/projects/retrascope/files.
41 30 Sergey Smolov
42
To make sure the tool is successfully installed, enter the @retrascope@ installation directory and run the following command for Windows OS (the correct output is also shown):
43
<pre>
44
> bin\retrascope.bat --help
45
usage: files [options]
46
    --engine <arg>            Set a subset of engines
47
    --help                    Show this message
48
    --log <arg>               Set a log file
49
    --log-level <arg>         Set a log level
50
    --solver-debug            Set debug mode for SMT solver
51
    --target <arg>            Set a target entity
52
    --tool-debug-file <arg>   Set debug mode and save info to debug log file
53
</pre>
54
For Linux-based OS:
55
<pre>
56
$ ./bin/retrascope --help
57
usage: files [options]
58
    --engine <arg>            Set a subset of engines
59
    --help                    Show this message
60
    --log <arg>               Set a log file
61
    --log-level <arg>         Set a log level
62
    --solver-debug            Set debug mode for SMT solver
63
    --target <arg>            Set a target entity
64
    --tool-debug-file <arg>   Set debug mode and save info to debug log file
65
</pre>
66
67
h2. What's next?
68
69
# To understand the main concept of the Retrascope architecture see "Overview":http://forge.ispras.ru/projects/retrascope/wiki/Overview
70
# For quick overview of common use cases see "Getting Started":http://forge.ispras.ru/projects/retrascope/wiki/Getting_Started
71
# For full guide of the tool options, read "Command Line Options":http://forge.ispras.ru/projects/retrascope/wiki/Command_Line_Options
72 1 Sergey Smolov
# To understand the scientific foundations of the tool see "Retrascope-Related Publications":https://forge.ispras.ru/projects/retrascope/wiki/Retrascope-Related_Publications