Changes between Version 22 and Version 23 of PHAL-OE_Concept
- Timestamp:
- 11/13/08 22:35:51 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PHAL-OE_Concept
v22 v23 38 38 To 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: 39 39 40 {{{ 40 41 for ever { 41 sample=read(MY_INPUT,BYTES_PER_SAMPLE);42 43 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 }}} 46 47 The 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. 47 48