Wiki » History » Version 5
Alexander Protsenko, 03/21/2023 10:42 AM
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 | 4 | Alexander Protsenko | h3. Self-Check Test Program Generation |
27 | |||
28 | To generate the self-check test program for the the @bubble_sort@ template, run the following command: |
||
29 | <pre> |
||
30 | $ sh bin/generate.sh armv8 arch/armv8/templates/bubble_sort.rb -dgp memory -sc |
||
31 | </pre> |
||
32 | |||
33 | 1 | Alexander Protsenko | h3. Templates |
34 | |||
35 | The entire list of demo templates can be found in the directory: @<INSTALL_DIR>/arch/armv8/templates@. |
||
36 | 2 | Alexander Protsenko | <pre> |
37 | $ cd $MICROTESK_HOME/arch/armv8/templates |
||
38 | </pre> |
||
39 | 1 | Alexander Protsenko | |
40 | 5 | Alexander Protsenko | You can use the @run.sh@ script from this directory to generate the test program: |
41 | 2 | Alexander Protsenko | <pre> |
42 | ./run.sh branch_generation |
||
43 | </pre> |
||
44 | 1 | Alexander Protsenko | |
45 | 2 | Alexander Protsenko | The generated test program will be in this directory: @$MICROTESK_HOME/output_test/branch_generation@ |
46 | <pre> |
||
47 | cd $MICROTESK_HOME/output_test/branch_generation |
||
48 | 1 | Alexander Protsenko | </pre> |
49 | 5 | Alexander Protsenko | |
50 | Also you can use the @run-sc.sh@ script from this directory to generate the *self-check* test program: |
||
51 | <pre> |
||
52 | ./run.sh branch_generation |
||
53 | </pre> |
||
54 | The generated test program will be in this directory: @$MICROTESK_HOME/output_test_sc/branch_generation@ |
||
55 | 3 | Alexander Protsenko | |
56 | h3. ISA |
||
57 | |||
58 | The [[Instruction Set Architecture]] of MicroTESK for ARM Demo version. |