Project

General

Profile

Installation Guide » History » Version 37

Sergey Smolov, 02/13/2020 04:47 PM

1 1 Sergey Smolov
h1. Installation Guide
2 37 Sergey Smolov
{{toc}}
3 1 Sergey Smolov
4 16 Sergey Smolov
h2. Setting Environment Variables
5
6 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):
7 16 Sergey Smolov
8
h3. Windows
9
10
# Open the @System Properties@ window.
11
# Switch to the @Advanced@ tab.
12
# Click on Environment Variables.
13
# Click @New...@ under @System Variables@.
14
# In the @New System Variable@ dialog specify variable name as @NAME@ and variable value as @VALUE@.
15
# Click @OK@ on all open windows.
16
# Reopen the command prompt window.
17 35 Sergey Smolov
**
18 16 Sergey Smolov
h3. Linux
19
20
Add the command below to the @~/.bash_profile@ or @~/.bashrc@ file (Linux):
21
<pre>export NAME=VALUE</pre> 
22
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.
23
24 17 Sergey Smolov
h2. Retrascope Installation
25 16 Sergey Smolov
26 35 Sergey Smolov
# Download and install JDK 11 (use " *AdoptOpenJDK* ":https://adoptopenjdk.net/ for Windows and *openjdk-11-jdk* for Ubuntu Linux based OS). 
27
# Download and install SMT-LIBv2 solver. We recommend to use " *Z3 version 4.3 or higher* ":https://github.com/Z3Prover/z3.
28 34 Sergey Smolov
# Set either the system property @smt.solver.path@ or the environment variable @SMT_SOLVER_PATH@ to a *full path to a SMT-solver executable file* (for example, "/home/user/tools/z3/z3" or "C:\tools\z3\bin\z3.exe"). If the both are set, a value of @fortress.solver.path@ will be used.
29 35 Sergey Smolov
# Download and unpack the " *Retrascope* ":https://forge.ispras.ru/projects/retrascope/files itself.
30
# Retrascope uses "*nuXmv*":https://nuxmv.fbk.eu/ and/or "*NuSMV*":http://nusmv.fbk.eu/ tools to perform model checking. To use them via Retrascope, do the following:
31
## 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 36 Sergey Smolov
### Set either the system property @nuxmv.path@ or the environment variable @NUXMV_PATH@ to a *full path to a nuXmv executable file* (for example, "/opt/tools/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 36 Sergey Smolov
### Set either the system property @nusmv.path@ or the environment variable @NUSMV_PATH@ to a *full path to a NuSMV executable file* (for example, "/opt/tools/nusmv/bin/NuSMV" or "C:\tools\nusmv\bin\NuSMV.exe").
37 35 Sergey Smolov
# For *VHDL* designs elaboration:
38 34 Sergey Smolov
## Set @ZAMIA_LOCKING@ environment variable to @true@.
39 35 Sergey Smolov
## Download and install " *Python interpreter* ":https://www.python.org. 
40 30 Sergey Smolov
41
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):
42
<pre>
43
> bin\retrascope.bat --help
44
usage: files [options]
45
    --engine <arg>            Set a subset of engines
46
    --help                    Show this message
47
    --log <arg>               Set a log file
48
    --log-level <arg>         Set a log level
49
    --solver-debug            Set debug mode for SMT solver
50
    --target <arg>            Set a target entity
51
    --tool-debug-file <arg>   Set debug mode and save info to debug log file
52
</pre>
53
For Linux-based OS:
54
<pre>
55
$ ./bin/retrascope --help
56
usage: files [options]
57
    --engine <arg>            Set a subset of engines
58
    --help                    Show this message
59
    --log <arg>               Set a log file
60
    --log-level <arg>         Set a log level
61
    --solver-debug            Set debug mode for SMT solver
62
    --target <arg>            Set a target entity
63
    --tool-debug-file <arg>   Set debug mode and save info to debug log file
64
</pre>
65
66
h2. What's next?
67
68
# To understand the main concept of the Retrascope architecture see "Overview":http://forge.ispras.ru/projects/retrascope/wiki/Overview
69
# For quick overview of common use cases see "Getting Started":http://forge.ispras.ru/projects/retrascope/wiki/Getting_Started
70
# For full guide of the tool options, read "Command Line Options":http://forge.ispras.ru/projects/retrascope/wiki/Command_Line_Options
71 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