Project

General

Profile

Wiki » History » Version 1

Alexander Protsenko, 03/15/2023 02:29 PM

1 1 Alexander Protsenko
h1. Wiki
2
3
h2. Installation Steps
4
5
# "Download":https://forge.ispras.ru/projects/microtesk-arm-demo/files and unpack a distribution package (the latest @.tar.gz@ file).
6
  The destination directory will be further referred to as @<INSTALL_DIR>@.
7
# Set the @MICROTESK_HOME@ environment variable to the @<INSTALL_DIR>@ path (see "Setting Environment Variables":https://forge.ispras.ru/projects/microtesk/wiki/Installation_Guide#Setting-Environment-Variables).
8
# Add the @<INSTALL_DIR>/bin@ path to the @PATH@ environment variable.
9
# If required, install SMT solver(s) to the @<INSTALL_DIR>/tools@ directory (see "Installing SMT Solvers":https://forge.ispras.ru/projects/microtesk/wiki/Installation_Guide#Installing-SMT-Solvers).
10
11
You can learn more about "Installation Directory Structure":https://forge.ispras.ru/projects/microtesk/wiki/Installation_Guide#Installation-Directory-Structure by following the link.
12
13
Next we will use the following directories:
14
* arch - contains microprocessor specifications and test templates.
15
* bin - contains scripts for model compilation and test generation
16
17
h2. Test Program Generation
18
19
To generate the test program for the ARM architecture (model) and the @bubble_sort@ template, run the following command:
20
<pre>
21
$ cd $MICROTESK_HOME
22
$ sh bin/generate.sh armv8 arch/armv8/templates/bubble_sort.rb -dgp memory
23
</pre>
24
The output file name depends on the @--code-file-prefix@ and @--code-file-extension@ options (see "Command-Line Options":https://forge.ispras.ru/projects/microtesk/wiki/Command-Line_Options).
25
26
h3. Templates
27
28
The entire list of demo templates can be found in the directory: @<INSTALL_DIR>/arch/armv8/templates@.
29
@$ cd $MICROTESK_HOME/arch/armv8/templates@
30
31
Also you can use the @run.sh@ script from this directory to generate the test program:
32
@./run.sh branch_generation@
33
34
Your test will be in this directory: @$MICROTESK_HOME/output_test/branch_generation@
35
@cd $MICROTESK_HOME/output_test/branch_generation@