SYSTEM AND METHOD FOR PROCESSING OF MEMORY DATA AND COMMUNICATION SYSTEM COMPRISING SUCH SYSTEM

Abstract: The present invention relates to a system for processing of memory data in the form of stored variables. The system comprises at least one data execution unit (IPU), a common data memory (DS), a central processor bus and a function unit (30) for autonomous handling of variables. Each variable has a logical address or a base address and the function unit (30) comprises means for converting logical addresses to physical addresses. The function unit further comprises first memory means (1) for storing calculated physical memory addresses and second memory means for temporary storing of the last calculated address temporarily and in sequence. In the function unit (30) a comparing arrangement (JMF) is arranged for comparing the addresses of incoming memory requests with physical word addresses for particularly the last requested memory address (A4). When the addresses are the same (A3=A4), memory data of the first requested memory address is reused.

Description: P14913PC Title: SYSTEM AND METHOD FOR PROCESSING OF MEMORY DATA AND COMMUNICATION SYSTEM COMPRISING SUCH SYSTEM. TECHNICAL FIELD The present Invention relates to a system and a method respectively for processing of memory data. The Invention also relates to a communications system comprising such a system for processing of memory data. Memory communication for stored data variables within a data processing system often consumes a great part of the capacity that is available within the data communication unit for intercommunication between the location for storing the variables and the unit for data processing. It is common that a number of variables share the memory area of a word. Variables sharing the memory area of a word is efficient from a memory packing point of view. Among others such sharing may contribute in reducing the number of memory accesses. In spite thereof, however, the available capacity is sometimes not used in an efficient way. For example in large systems processing data in real time which require very much memory it is particularly important to have an organisation of the memory so that a high storing and communication capacity can be provided. STATE OF ART Many different alternatives have been suggested for how to, in an efficient way, use the capacity for storing and communication between the location for storing of variables and that or those units which are to process data. It is a problem that the memories are comparatively slow as compared CONFIRMATION to the data processing units from an internal point of view. With the known solutions to these problems it has been intended to achieve an efficient usage of memory accesses. In US-A-4 354 231 cache-technique is used. The cache- technique is based on storing memory data that is often addressed in a fast memory, a so called cache-memory which is controlled by various algorithms. Therefor memory operations directed towards a slow memory are often handled by the cache-memory which has an access time which is considerably shorter. According to US-A-4 354 231 an address calculation is initiated in good time before the relevant program instructions are to be executed in order to reduce the waiting time. The arrangement according to the above mentioned US-document for reducing the time for instruction execution comprises a buffer memory in which instructions read from the program memory are sequentially and temporarily stored in an execution buffer. The execution buffer is provided with instructions of different kinds, of which a first kind relates to writing or reading in the data memory and a second kind of instructions places address parameters in a register memory. First and second activation means which are intended for initiation-transfer of address parameters from the register memory to the address processing means for modifying the address when an indication is present in a registering means and the instruction is in turn to be handled and is of the above mentioned first kind, or for removing the indication from the registration means after the transmission has been effected and the second activation means which are connected to the address handling means, respectively respond to a base address read out from a reference memory to the address handling means for initiation of a calculation of the absolute address when at the same time none of the ahead stored instructions are of the second kind, i.e. the kind which places the address parameters in the register memory etc. Thus a certain time saving is provided thereby through an efficient usage of the time. However, except for the time savings, which even may be minor, memory data of a system can be localized in such a way that the application of the cache-technique indeed does not give the desired result and may in fact be inefficient. Furthermore, the cache-technique is not efficient for randomly occurring data accesses. EP-A-0 439 025 discloses a data processor having a deferred cache load which comprises an instruction prefetch unit, a memory, a processor bus and a function unit wherein the latter converts logical addresses and provides for storing of preceding memory accesses in a cache memory and for storing of incoming memory requests. Furthermore a comparison of addresses is done and if there is correspondence, memory data of a preceding request is reused. However, the system according to EP-A-0 439 025 presupposes pre-buffering or prefetching which sometimes is inconvenient. Furthermore, it is a precondition that data arrive is regularly, i.e. that data are not spread out. Furthermore an intermediate buffer is required. Consequently the system is complicated and it cannot be used for randomly occurring data etc. which both are serious drawbacks. Other known ways through which it is an intended to obtain an efficient usage of accesses and to provide a high capacity are based on an interleaving organization. The memory is organized in a number of memory banks and in practice it behaves like a fast memory. On condition that consecutive memory accesses are directed towards different memory banks, interleaving technique may in some cases provide comparatively good results. However, in many cases it is desirable to further reduce the memory accesses. Furthermore the interleaving technique is efficient only on condition that consecutive memory accesses are not directed towards the same memory bank. For consecutive memory accesses addressing one and the same memory word, the efficiency can not be improved by known methods. SUMMARY OF THE INVENTION It is an object of the present invention to provide a system and a method respectively for processing of memory data wherein the data processing capacity is used as efficiently as possible. Particularly it is an object of the invention to provide a system having such a memory organization that efficient storing as well as efficient communication between storing location and data processing units can be provided. It is particularly an object of the invention to provide a system and method wherein memory accesses can be used as efficiently as possible. Furthermore it is an object of the invention to provide a system and a method respectively wherein the number of memory accesses can be reduced. Furthermore it is a particular object of the invention to provide a system and a method that reduces the number of accesses in connection with processing of indexed variables and/or partial variables and sub-data variables. A particular object of the invention is to provide a system and a method respectively through which a considerable increase in capacity can be provided, particularly independently of which memory organization that is used. More particularly it is an object of the invention to provide a system which uses interleaving and more particularly data (pre)buffering which from a capacity point of view is highly efficient. A further object of the invention is to provide a system in which index addressed variables of varying format size and in which the number of memory accesses is reduced in relation to the actual number of memory accesses. Furthermore it is a particular object of the invention to provide a system and a method respectively with a number parallel requesting sources in which an efficient usage of memory accesses is provided. Still a further object of the invention is to provide a communications system comprising a system for processing of memory data as referred to above which efficiently uses the capacity and which in an optimal way uses memory accesses. A particular object is to provide a system (and a method) which can be used when variables are spread across the memory, data may arrive randomly. Most particularly to provide such a system when a normal cache cannot be used because of said irregularities. Moreover it is a particular object to provide a system which can be used and which is efficient when the variables are not regularly returned to and when variables are located over an address area which substantially is not limited. These as well as other objects are achieved through a system and a method respectively in which directly or indirectly consecutive requests towards the same physical word address for variables, the memory is only activated for the first memory access on the actual word address, the memory data or read data of which thus is multiple-used. Thus the objects are achieved through memory accesses having the same word address as a preceding - particularly the preceding - access, use memory data, particularly read data, on the previous access. Thus a memory access is saved. According to advantageous embodiments the variables are indexed variables, partial variables or sub-variables. According to a particularly advantageous embodiment the memory system uses an interleaving technique and particularly advantageously with data (pre)buffering or prefetching. Particularly buffering in this case means that address calculations and memory requests for reading of variables from the memory take place in advance and are transferred to the data processing unit before data is required by its program steps. This provides a considerable increase in capacity. Particularly data is sent directly to the operating register without requiring any intermediate buffer. According to an advantageous embodiment of the invention, independently of which variable that is intended in the read out memory word, an address information part is obtained at every request when a physical memory address relating to a logical address is represented to the variable in a known way. According to a particular embodiment the invention intends to provide a reduction of consecutive read accesses directed towards the same word address in the memory. More particularly, according to an advantageous embodiment, consecutive write accesses to variables with the same physical word address are reduced. According to an advantageous embodiment, for consecutive write requests of variables having the same physical word address, the read data of a first access is handled essentially in the same way as in a conventional read access corresponding to the memory access of the write operation for read-out whereas the second memory access of the write operation which comprises writing in the memory, is such that a consecutive write request receives the write data of the preceding access as its own read data. According to one embodiment memory activities for writing are executed for each variable. According to an alternate embodiment memory activities for writing are executed when a complete variable word has been processed. Then it is an advantage if the actual memory address is protected against interference until all variables of the word are processed and the result has been executed in the memory. According to an advantageous embodiment index addressed variables of varying format are used in the data processing system. In a particular embodiment there are a number of parallel request sources. The system can thus be used in parallel for more than one data processing unit. This can be said to give rise to gain in capacity in an indirect way since the various parallel requesting sources or the data processing units are exposed to fewer access obstacles when the common memory is requested. In addition to other advantages as referred to in advantageous embodiments etc. it is an advantage of the invention that it is not necessary to update several means. BRIEF DESCRIPTION OF THE DRAWINGS The invention will in the following be further described in a non-limiting way under reference to the accompanying drawings in which: FIG 1 illustrates an example of a system according to the invention. DETAILED DESCRIPTION OF THE INVENTION Fig. 1 illustrates a data processing system 10 which comprises at least one data processing unit IPU 20. In the shown embodiment there is only one data processing unit but there could as well be two or more. The data processing unit IPU comprises internal process registers and arithmetical and logical units ALU intended for data processing. The data processing unit IPU further comprises a program memory handler PSH, a program memory PS and a register memory RM. The data processing system 10 comprises a common data memory DS. An asynchronous cooperation between the data processing unit IPU and the memory DS is according to an advantageous embodiment controlled by a synchronization bit. The common data memory DS for stored variables is according to an advantageous embodiment formed by memory banks through the use of the so called interleaving technique. A centrally controlled bus and access handler (central processor bus) CPB carries out the memory request. The central processor bus CPB controls and keeps information about which memory banks of the data memory DS which are free and occupied respectively. Furthermore the central processor bus is aware of the sequential order at activation of various memory operations. The data processing system further comprises a function unit 30 for autonomous handling of variables. In the function unit 30 are reference tables and address calculation circuits for conversion of logical addresses to physical addresses. Furthermore the function unit 30 comprises logical circuits, buffer registers etc. A buffer register 1 is arranged for the physical memory addresses which are calculated with the assistance of reference tables and address calculation circuits. For each requested variable information about memory word address variable address A 1 ,A 2 ,A 3 as well as the format within the memory word is stored. Furthermore information is stored about the operation type of the requested variable, i.e. normally read or write type, according S,L,L wherein S denotes writing and L reading. Furthermore a state bit is stored in the buffer register 1. According to an advantageous embodiment the buffer memory 1 comprises a so called FIFO-memory (first in/first out). The last calculated address is then stored in an intermediate buffer 2 as A4. Through comparison means comprising a comparison circuit JMF, the new, i.e. the last calculated address A4 in the intermediate buffer is compared to the preceding address A3 in the buffer register 1. If the addresses are the same (A3 = A4), the mark bit which may be 0 or 1, is set. The system 10 further advantageously comprises a second buffer register 3 which also may be of FIFO-type. This serves as a register for the variables which have been read out and which may take the function of an operand register for the data processing unit IPU. For an extended parallel operation the system may advantageously comprise a second intermediate register 3A for preparing variables for example relating to the shifting and masking of the variable within the read memory word. A third buffer register 4 may further be arranged which also may be of FIFO-type register for variables which are to be stored in the data memory DS. According to a particular embodiment may a furthermore a third intermediate register 4A be arranged which among others can be used for further increasing the efficiency for certain operations etc. According to an advantageous embodiment the system operates as follows. The program store handler PSH in the data processing unit IPU activates, advantageously in advance with (pre)buffering, a variable request per program step through giving its logical address. This is given through offset a, individual number and index and furthermore the kind of operation, particularly read or write (L or S). Then the address calculation is activated via control logic. This converts the logical address of the variable to the corresponding physical address with use of a reference table which contains information needed for providing the conversion. Before a variable address calculated in this way is placed in the buffer register 1 for processing, the memory word address part is compared to the memory address of the preceding variable in the buffer register 1. This comparison is done in the comparison arrangement JMF which comprises comparison circuits. If the last calculated variable address A4 is equal to the preceding variable address A3 of the buffer register, a mark bit is set which indicates that the new data variable disposes the same memory word as the preceding variable. When a buffered request towards a memory is processed via the central processor bus the flag bit reroutes the request. This results in a memory access or, if two consecutive memory addresses are the same, it results in reuse of the read data for the preceding memory access. When the read data of the preceding memory access is reused, the read data is already present in the indata buffer of the data processing unit IPU. If there is an intermediate register 3A in the function unit 30, data is transferred from this intermediate register to the indata buffer 3 of the data processing unit IPU. In the following a case relating to consecutive write requests will be briefly discussed. A write operation as such comprises two memory accesses, one for read out and one for write in. In the case of consecutive write requests to data variables having the same physical word address, reading means that the read data of the first request is handled in a way which corresponds to that of the read request whereas the following write request receives data from the preceding access as its own read data. This means that the write data of the preceding variable which is in the data buffer in IPU, is transferred to the indata buffer 3 of the data processing unit IPU. If intermediate registers 3A;4A are used, data is according to one embodiment transferred from the intermediate register to the indata buffer 3 of the unit IPU for processing. Consequently the mark bit in combination with the actual type of operation, i.e. reading or writing, control the memory activation as well as internal data transfers between buffers as well as within the buffer register 1. The parts of the buffer register 1 which are required for variable handling are transferred to the buffer of the data processing unit IPU. The invention shall of course not be limited to the embodiments shown herein but, as mentioned above, a plurality of data processing units may work in parallel as well as there are a number of other alternatives. Furthermore the variable requests do not have to be directly consecutive but according to an alternative there may be one or more variable requests in between in a predetermined manner.

Claims: CLAIMS 1. System (10) for processing of memory data in the form of stored data variables comprising at least one data processing unit (IPU), a common data memory (DS) for stored data variables, a central processor bus (CPB) and a function unit (30) for autonomous handling of variables, each data variable having an indirect logical address, c h a r a c t e r i z e d i n , that the function unit comprises means for converting logical addresses or base addresses for variables to physical addresses or absolute addresses, first and second memory means (1,2) for storing physical memory addresses and temporary and sequential storing of incoming memory request word addresses respectively, means for comparing (JMF) the physical word address of a requested memory word to the physical word address of a preceding memory word request so that for directly or indirectly consecutive requests of the same memory word, memory data for a preceding requested memory address is used also for the following request. 2. System according to claim 1, c h a r a c t e r i z e d i n , that the data memory (DS) comprises memory banks according to an interleaving technique. 3. System according to claim 1 or 2, c h a r a c t e r i z e d i n , that the memory system uses data (pre)buffering. 4. System according to claim 3, c h a r a c t e r i z e d i n , that through (pre)buffering address calculations and memory requests for readout of variables from the data memory (DS) are carried out and transferred to the data processor unit (30) in advance, i.e. before data is required by the data processing unit (20). 5. System according to anyone of claims 1-4, c h a r a c t e r i z e d i n , that said means for conversion of logical addresses or base addresses of variables to physical addresses or absolute addresses comprise reference tables and address calculation circuits. 6. System according to claim 5, c h a r a c t e r i z e d i n , that the first memory means of the function unit (30) comprises a first buffer register (1) comprising the physical memory word addresses. 7. System according to claim 6, c h a r a c t e r i z e d i n , that in the first buffer register (1) are stored memory word address (Bj,B 2 ,B 3 ), variable address (A 1 ,A 2 ,A 3 ) and format within the memory word for every requested variable. 8. System according to claim 6, c h a r a c t e r i z e d i n , that in the first buffer register (1) furthermore information is stored about operation type (S,L) and an information part in the form of a mark bit. 9. System according to claim 8, c h a r a c t e r i z e d i n , that the first buffer register (1) functions as a FIFO- register (first in/first out). 10. System according anyone of claims 1-9, c h a r a c t e r i z e d i n . that the second memory means comprises an intermediate register (2) containing the physical address of the last memory request. 11. System according anyone of the preceding claims, c h a r a c t e r i z e d i n , that the comparison means (JMF) comprises a comparison circuit for comparing the physical address of the last request (A4) with the physical address of a preceding request and in that if the physical addresses are identical, information about that is provided for example through setting a mark bit or similar. 12. System according to anyone of the preceding claims, c h a r a c t e r i z e d i n , that it comprises more than one data processing unit (IPU) which can operate parallelly within the system. 13. System according to anyone of the preceding claims, c h a r a c t e r i z e d i n , that the system (10) furthermore comprises third memory means for example in the form of a second buffer register (3) for storing information about read-out variables. 14. System according to anyone of claims 12 and 13, c h a r a c t e r i z e d i n , that the function unit furthermore comprises a second intermediate register (3A) for preparing variables for at least two parallel data processing units (IPU). 15. System according to anyone of claims 13 and 14, c h a r a c t e r i z e d i n , that the second buffer register (3) comprises a FIFO-memory. 16. System according to anyone of claims 10-15, c h a r a c t e r i z e d i n , that further fourth memory means are provided in the form of a third buffer register (4) for data variables which are to be stored in the common data memory (DS). 17. System according to claim 16, c h a r a c t e r i z e d i n , that it comprises a third intermediate register (4A) for data. 18. System according to anyone of the preceding claims, c h a r a c t e r i z e d i n , that for consecutive read requests relating to the same word address in the memory, the read data of the first received memory access is used. 19. System according to claim 17, c h a r a c t e r i z e d i n , that read data of a first memory access is used more than twice. 20. System according to anyone of the preceding claims, c h a r a c t e r i z e d i n , that a write request comprises a memory access for read out and a memory access for write in and in that for consecutive write requests to data variables, write requests following on a first access use the write data of the first access as read data for the following access. 21. Method for processing of memory data through a system (10) comprising at least one data processing unit (20), a function unit (30) and a common data memory (DS) comprising the following steps: activating a variable request in advance by a program store handler (PSH) in the data processing unit (IPU) by giving its logical address, converting the logical address to a physical address, comparing in comparing means (JMF) the memory address of the last calculated variable address (A4) and the preceding variable address (A3), if the memory addresses are the same (A4-A3) this is indicated and read data for the preceding memory access is used in the access. 22. Communication system comprising at least one system (10) for processing of memory data comprising variables, said system comprising at least one data processing unit (IPU) (20), at least one function unit (30) for handling of data variables and at least one common data memory (DS) and at least one access unit, c h a r a c t e r i z e d i n , that the function unit comprises means for converting logical addresses of data variables to physical addresses, first memory means (1) for storing physical memory word addresses, second memory means (2) for temporary storing incoming memory request word addresses, comparing means (JMF) for comparing a requested memory word address (A4) and a preceding memory word address (A3) and in that if a memory word address is the same as a directly or indirectly preceding requested memory word address, memory data of the preceding memory access is used.

Inventors: AVSAN OLEG, WILDLING KLAUS, AVSAN, OLEG, WILDLING, KLAUS
Applicants: AVSAN OLEG, ERICSSON TELEFON AB L M, WILDLING KLAUS, AVSAN, OLEG, TELEFONAKTIEBOLAGET L M ERICSSON, WILDLING, KLAUS
Application year: 1995
Main classification: G06F12
IPC codes: G06F9, G06F12, G06F13