| 1 | Author: Cesar FUGUET TORTOLERO |
|---|
| 2 | |
|---|
| 3 | Platform tsar_generic_iob with fault tolerance |
|---|
| 4 | ============================================== |
|---|
| 5 | |
|---|
| 6 | Prerequisites: |
|---|
| 7 | ============== |
|---|
| 8 | |
|---|
| 9 | 1. Checkout the distributed bootloader in another directory (e.g. user home |
|---|
| 10 | directory) |
|---|
| 11 | |
|---|
| 12 | svn co https://www-soc.lip6.fr/svn/tsar_dist_boot/ |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | 2. In order to execute the distributed bootloader on this platform, you need to |
|---|
| 16 | create first a symbolic link called "soft" to the distributed |
|---|
| 17 | bootloader working directory (obtained during the step 1): |
|---|
| 18 | |
|---|
| 19 | ln -s <path_to_tsar_dist_boot> soft |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | 3. Then, you have to set the TSARPATH environment variable to the path of the |
|---|
| 23 | tsar repo's working directory |
|---|
| 24 | |
|---|
| 25 | In bash: |
|---|
| 26 | |
|---|
| 27 | export TSARPATH=<path_to_tsar> |
|---|
| 28 | |
|---|
| 29 | In tcsh: |
|---|
| 30 | |
|---|
| 31 | setenv TSARPATH <path_to_tsar> |
|---|
| 32 | |
|---|
| 33 | The TSARPATH environment variable is used by the soclib.conf file in order to |
|---|
| 34 | add the hardware components with the fault-tolerance add-ons in the soclib-cc |
|---|
| 35 | description paths. |
|---|
| 36 | |
|---|
| 37 | The soclib.conf expects the tsar working directory to have the trunk/ |
|---|
| 38 | directory, and the branches/reconfiguration directory. It is in this second |
|---|
| 39 | directory, where there are the hardware components with fault-tolerance. If you |
|---|
| 40 | don't want to have the branches, and the trunk in different working |
|---|
| 41 | directories, you can directly modify the soclib.conf configuration file, and |
|---|
| 42 | add manually the directories. |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | Execution: |
|---|
| 46 | ========== |
|---|
| 47 | |
|---|
| 48 | To execute this platform use preferably the "scripts/onerun.py" script. |
|---|
| 49 | This script creates automatically the configuration files needed to compile the |
|---|
| 50 | platform: |
|---|
| 51 | |
|---|
| 52 | - <outdir>/config/boot_config.h (contains debug flags) |
|---|
| 53 | - <outdir>/config/fault_config.h (contains the coordinates of faulty cores) |
|---|
| 54 | - <outdir>/config/hard_config.h (contains hardware parameters' definition) |
|---|
| 55 | |
|---|
| 56 | The name of the <outdir> directory can be passed with the "-o" option of the |
|---|
| 57 | scripts/onerun.py script. |
|---|
| 58 | |
|---|
| 59 | Hereafter a description of the main arguments for the scripts/onerun.py: |
|---|
| 60 | |
|---|
| 61 | --xsize / -x # clusters per row |
|---|
| 62 | |
|---|
| 63 | --ysize / -y # clusters per column |
|---|
| 64 | |
|---|
| 65 | --nprocs / -n # processor cores per cluster |
|---|
| 66 | |
|---|
| 67 | --compile-only / -c Do not simulate, only compile both platform and soft |
|---|
| 68 | |
|---|
| 69 | --batch-mode / -b Framebuffer and TTYs are not shown. |
|---|
| 70 | TTYs are redirected to files |
|---|
| 71 | |
|---|
| 72 | --faulty-router / -fr Inject a faulty router. The faulty router is |
|---|
| 73 | designated by three arguments: T, X, and Y. |
|---|
| 74 | - T is the index of the target NoC |
|---|
| 75 | (CMD:0, RSP:1, M2P:2, P2M:3, CLACK:4). |
|---|
| 76 | - X and Y are the coordinates of the router. |
|---|
| 77 | You can inject several faulty routers by repeating |
|---|
| 78 | the -fr parameter. |
|---|
| 79 | Example: |
|---|
| 80 | Run simulation with a 4x4 mesh, and the routers |
|---|
| 81 | CMD(3,3) and RSP(3,0) are faulty. |
|---|
| 82 | |
|---|
| 83 | scripts/onerun -x 4 -y 4 -fr 0 3 3 -fr 1 3 0 |
|---|
| 84 | |
|---|
| 85 | --faulty-core / -fc Inject a faulty core. The faulty core is |
|---|
| 86 | designated by three arguments X, Y, and L. |
|---|
| 87 | - X, and Y are the global coordinates of the core. |
|---|
| 88 | - L is the local id of the core |
|---|
| 89 | You can inject several faulty cores by repeating |
|---|
| 90 | the -fc parameter. |
|---|
| 91 | Example: |
|---|
| 92 | Run simulation with a 4x4 mesh, and the |
|---|
| 93 | cores (0,0,0) and (2,3,1) are faulty. |
|---|
| 94 | |
|---|
| 95 | scripts/onerun -x 4 -y 4 -fc 0 0 0 -fc 2 3 1 |
|---|
| 96 | |
|---|
| 97 | --disk-image / -di Path to the disk image from which the operating system |
|---|
| 98 | will be loaded at the end of the distributed boot |
|---|
| 99 | procedure. This disk image is the file handled by the |
|---|
| 100 | external disk controller. |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | For more information about the scripts/onerun.py arguments run: |
|---|
| 104 | |
|---|
| 105 | scripts/onerun.py --help |
|---|