Changes between Version 1 and Version 2 of PhalUserGuide
- Timestamp:
- 11/06/08 21:47:44 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PhalUserGuide
v1 v2 35 35 == Downloading a waveform: Wimax == 36 36 37 You can download the latest version of the Wimax waveform from our repository: 37 You can download the latest version of the Wimax waveform from our repository: Remember that you will be prompted for a valid username. 38 38 39 39 {{{ … … 57 57 == Running a waveform: Basic P-HAL commands == 58 58 59 PHAL can be controlled from a text console typing commands. Again, we recommend you to read PhalManual if you are not familiar with the P-HAL environment. Basically, running a waveform compromises 3 steps: ''loading'', ''initializing'' and ''running''. You will do such by typing the appropiate commands in the input console. In the next example, we will load, initialize and run the example waveform Wimax: 60 61 Once P-HAL has been started with the appropriate arguments (see first section), we will load the waveform by typing in the prompt: 59 62 {{{ 60 runph phal-repositories 61 phload wimax 62 phinit wimax 63 phrun wimax 64 hwcmd info 65 hwcmd ps 63 runph$: phload wimax 66 64 }}} 67 ... 68 ... 65 66 then initialize: 67 {{{ 68 runph$: phinit wimax 69 }}} 70 71 and finally run: 72 {{{ 73 runph$: phrun wimax 74 }}} 75 76 Now the waveform is running. We can see some hardware information or current processes information typing: 77 {{{ 78 runph$: hwcmd info 79 runph$: hwcmd ps 80 }}} 81 82 You also can pause the execution or run a finite number of steps, type: 83 {{{ 84 runph$: phpause wimax 85 runph$: phrun wimax 1000 86 }}} 87 88 89 == Performance Notes == 90 91 To get the best performance of your waveform, the following hints may be useful: 92 * Compile your modules with highest optimization and specify your processor architecture, e.g.: 93 {{{ 94 gcc -O3 -march=native -mfpmath=sse 95 }}} 96 if you have a pentium/athlon processor with sse extensions. 97 98 * Disable statistics or logs. You can do that entering the following command in the P-HAL console: 99 {{{ 100 runph$: hwcmd stats_off 101 runph$: hwcmd logs_off 102 }}} 103 You can re-enable them substituting 'off' by 'on'. 104 105 106 107 108 109 Finally, object logs and statistics can be disabled for best performance 110