摘要 |
A method for allocation of a buffer memory with three buffers of a module having a processing unit and a bus connection is provided. The module sends or receives data via the bus connection and uses the processing unit to generate data for transmission via the bus connection and process data received via the bus connection. The bus connection and the processing unit function as a producer or consumer in a communication relationship established via the buffer memory. Each buffer assumes one of four statuses-"input area local", "local", "input area external" and "external". Either the bus connection or the processing unit attempt to reserve one of the three buffers by a strategy: when one of the three buffers is already allocated, this buffer is used. Otherwise a buffer with the status "input area external" or "input area local" is used and the status "external" or "local" is assigned.
|