Changes between Version 1 and Version 2 of PhalUserGuide

Show
Ignore:
Timestamp:
11/06/08 21:47:44 (16 years ago)
Author:
ismael (IP: 62.57.188.40)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PhalUserGuide

    v1 v2  
    3535== Downloading a waveform: Wimax == 
    3636 
    37 You can download the latest version of the Wimax waveform from our repository: 
     37You can download the latest version of the Wimax waveform from our repository: Remember that you will be prompted for a valid username. 
    3838 
    3939{{{ 
     
    5757== Running a waveform: Basic P-HAL commands == 
    5858 
     59PHAL 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 
     61Once P-HAL has been started with the appropriate arguments (see first section), we will load the waveform by typing in the prompt:  
    5962{{{ 
    60 runph phal-repositories 
    61 phload wimax 
    62 phinit wimax 
    63 phrun wimax 
    64 hwcmd info 
    65 hwcmd ps 
     63runph$: phload wimax 
    6664}}} 
    67 ... 
    68 ... 
     65 
     66then initialize: 
     67{{{ 
     68runph$: phinit wimax 
     69}}} 
     70 
     71and finally run: 
     72{{{ 
     73runph$: phrun wimax 
     74}}} 
     75 
     76Now the waveform is running. We can see some hardware information or current processes information typing: 
     77{{{ 
     78runph$: hwcmd info 
     79runph$: hwcmd ps 
     80}}} 
     81 
     82You also can pause the execution or run a finite number of steps, type: 
     83{{{ 
     84runph$: phpause wimax 
     85runph$: phrun wimax 1000 
     86}}} 
     87 
     88 
     89== Performance Notes == 
     90 
     91To 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 
     109Finally, object logs and statistics can be disabled for best performance 
     110