Changes between Version 22 and Version 23 of PHAL-OE_Concept

Show
Ignore:
Timestamp:
11/13/08 22:35:51 (16 years ago)
Author:
ismael (IP: 62.57.188.40)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PHAL-OE_Concept

    v22 v23  
    3838To illustrate the concept of PHAL-OE as a simple mechanism of information exchange lets consider, for example, the following simple piece of code of an execution thread of a general radio application: 
    3939 
     40{{{ 
    4041for ever { 
    41 sample=read(MY_INPUT,BYTES_PER_SAMPLE); 
    42                 result=process_sample(sample); 
    43                 write(MY_OUTPUT,BYTES_PER_SAMPLE,result); 
    44         } 
    45  
     42 sample=read(MY_INPUT,BYTES_PER_SAMPLE); 
     43 result=process_sample(sample); 
     44 write(MY_OUTPUT,BYTES_PER_SAMPLE,result); 
     45} 
     46}}} 
    4647The process_sample function of the previous example can be written using any kind of portable programming language (C/C++ or VHDL for example) that can be compiled and translated to processor specific binary files. On the other hand, the read and write operators closely depend on the platform and must be specifically designed for it. Thus, when porting this code to another platform, the read and write specific PHAL-OE library implementation will be used. 
    4748