MULTIPLE JOB SIGNALS PER PROCESSING UNIT IN A MULTIPROCESSING SYSTEM

Abstract: The invention is directed towards a multiprocessing system (10) having multiple processing units (34A-D). According to the invention, for at least one of the processing units in the multiprocessing system, a first job signal is assigned to the processing unit for speculative execution of a corresponding first job, and a further job signal is assigned to the processing unit for speculative execution of a corresponding further job. The speculative execution of said further job is initiated when the processing unit has completed execution of the first job. If desirable, even more job signals may be assigned to the processing unit for speculative execution. In this way, multiple job signals are assigned to the processing units (34A-D) of the processing system, and the processing units are allowed to execute a plurality of jobs speculatively while waiting for commit priority. By assigning multiple job signals for speculative execution by one or more processing units, the effects of variations in execution time between jobs are neutralized, and the overall performance of the processing system is substantially improved.

Description: MULTIPLE JOB SIGNALS PER PROCESSING UNIT IN A MULTIPROCESSING SYSTEM TECHNICAL FIELD OF THE INVENTION The present invention generally relates to processing systems, and more particularly to a processing system having multiple processing units, and a method for handling job signals in such a processing system. BACKGROUND OF THE INVENTION Many conventional central processing systems, such as the APZ processing system in the known AXE Digital Switching System from Telefonaktiebolaget LM Ericsson, are built around a single processing unit, referred to as an execution pipeline in the AXE system. However, central processing systems based on a single processing unit have limitations with regard to capacity. One way of increasing the processing capacity is to build the processing system as a multiprocessor system, i.e. a processing system with multiple processors or processing units operating in parallel. In conventional multiprocessing systems, each processing unit processes an input signal to execute a corresponding sequence of instructions, one input signal being assigned to each processing unit at a time. In a so-called superscalar processor, which explores fine grained parallelism found between neighboring instructions, the functional units within the processor are arranged to simultaneously execute several instructions in parallel. However, there is still a general demand for even more efficient processing systems. SUMMARY OF THE INVENTION The present invention constitutes a further development of the prior art multiprocessing system. The invention is directed towards a multiprocessing system adapted for speculative execution of jobs. In a multiprocessing system, the processing units independently execute different jobs in parallel. However, at all times during parallel execution of jobs in a processing system adapted for speculative execution, only one processing unit has commit priority and is allowed to execute its current job non-speculatively, performing write back to the memory system and committing signal sendings. Jobs in the other processing units are executed speculatively and may be flushed if dependencies are detected. During development of such a processing system, a particular problem was encountered: If the job with commit priority has a longer execution time than the other speculative jobs, the speculatively executing processing units have completed execution of their assigned jobs long before completion of the commit job. The speculatively executed jobs then have to wait until the commit job has been executed to completion so that one of the speculatively executed jobs can get commit priority. This generally means that the speculatively executing processing units simply wait for commit priority and valuable execution time is wasted, severely degrading the performance of the processing system. Therefore, it is a general object of the present invention to provide a more flexible and efficient speculative multiprocessing system as well as a more efficient method for handling job signals in such a multiprocessing system. It is another object of the invention to provide a job queue for use in a multiprocessing system. These and other objects are met by the invention as defined by the accompanying patent claims. The general idea according to the invention is based on assigning, for at least one processing unit in the multiprocessing system, a first job signal to the processing unit for speculative execution of a corresponding first job, assigning a further job signal to the processing unit for speculative execution of a corresponding further job, and initiating speculative execution of said further job when the processing unit has completed speculative execution of the first job. If desirable, even more job signals may be assigned to the processing unit for speculative execution, execution of the corresponding jobs being initiated as soon as the processing unit has completed speculative execution of the previously assigned job. The processing unit with commit priority may also be assigned a further job signal, the execution of which is initiated as soon as the commit job has been completed. By assigning multiple job signals for speculative execution by the processing units, the effects of variations in execution time between jobs are neutralized or at least greatly reduced, and the overall performance of the processing system is substantially improved since the processing units are allowed to execute a plurality of jobs speculatively while waiting for commit priority. In general, the protocol needed for assigning job signals to the processing units, keeping track of the job signals and handling the commit priority is managed by a job signal queue in combination with appropriate control software or hardware. In order to identify a job signal, its corresponding job or the results thereof in the operation of the processing system, each job signal is associated with an identifier. The identifier may be in the form of a pointer to the storage position of the corresponding job signal in the job signal queue. Alternatively, the identifier comprises a unit label representing the identity of the processing unit to which the job signal is assigned, and a job- signal distinguishing label representing the identity the job signal is given in the processing unit. In a processing system adapted for speculative execution, the results of speculatively executed jobs are temporarily stored in a write queue arrangement, waiting to be committed. According to the invention, when a speculatively executed job gets commit priority the results of that job are retrieved by means of the identifier. The invention offers the following advantages: The overall performance of the processing system is substantially improved; Flexible and efficient speculative execution is provided; and The effects of variations in execution time between jobs are neutralized. Other advantages offered by the present invention will be appreciated upon reading of the below description of the embodiments of the invention. BRIEF DESCRIPTION OF THE DRAWINGS The invention, together with further objects and advantages thereof, will be best understood by reference to the following description taken together with the accompanying drawings, in which: Fig. 1 is a schematic flow diagram of a method for handling job signals according to the invention; Fig. 2 is a schematic diagram of a processing system according to the invention; Fig. 3 is a schematic diagram illustrating the interrelationship between the job signal queue, the processing units and a write queue arrangement according to a first preferred embodiment; Fig. 4 is a schematic diagram illustrating the interrelationship between the job signal queue, the processing units and a write queue arrangement according to a second preferred embodiment; and Fig. 5 is a schematic diagram illustrating the interrelationship between the job signal queue, the processing units and a write queue arrangement according to a third preferred embodiment. DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION Throughout the drawings, the same reference characters will be used for corresponding or similar elements. Fig. 1 is a schematic flow diagram of a method for handling job signals according to the invention. In a processing system having multiple processing units for job signal processing, job signals are assigned to processing units for execution of corresponding jobs. In general, the following steps are performed for at least one of the processing units: In step 1, a first job signal is assigned to the processing unit for speculative execution of a corresponding first job. In the case of the processing unit with commit priority, the job is executed non-speculatively. In step 2, a further job signal is assigned to the processing unit for speculative execution of a corresponding further job. In step 3, when the processing unit has completed execution of the first job, speculative execution of the further job is initiated. It is of course possible to repeat steps 2 and 3 for even further job signals. In this way, the processing units are allowed to execute a plurality of jobs speculatively while waiting for commit priority. In theory, the number of jobs assigned to the same processing unit at the same time is not limited. It should be understood that each job signal is intimately interrelated to its corresponding job and the results of said job. In the following, the invention will be described with reference to an example of a realization of a multiprocessing system adapted for speculative execution. It should however be understood that the invention is not limited thereto. Fig. 2 is a schematic diagram of a processing system according to the invention. The processing system 10 basically comprises a job scheduler 20 and a processing core 30. The processing core 30 is adapted for speculative execution of jobs, and the processing units 34A-D of the processing core 30 are preferably in the form of specialized hardware such as execution pipelines, although standard off-the-shelf microprocessors also are feasible. The job scheduler 20 receives job signals, which represents events, from external units as well as from the processing core 30, and schedules the job signals for processing by the processing core 30. An example of a specific type of job scheduler is the signal-processing unit (SPU) in the known AXE Digital Switching Systems from Telefonaktiebolaget LM Ericsson. The processing core 30 basically comprises a job signal queue 32, simply referred to as a job queue, a plurality of execution pipelines 34A-D, a combined dependency checking unit and temporary write queue 36 for handling data dependencies, and a memory system 37 divided into a program store 38 and a data store 39. The job signals from the job scheduler 20 are buffered in the job queue 32, which has a number of storage positions for storing the job signals. Each job signal is stored together with additional information in a respective storage position of the job queue 32. In general, each job signal comprises a header and data. In addition to administrative information, the header normally includes a pointer to software code in the program store 38, and the data of the job signal includes input operands necessary for execution of the corresponding job. The data could be a signal message from an external unit such as a regional processor or another processor. A job may be defined as the instruction stream specified by the signal header, and the job starts with the reception of the job signal and ends by the calling of an end-job routine. It should however be noted that the job signal itself normally does not include any instructions. The job signal normally includes a pointer to instructions in the software code stored in the program store 38, and operands required in the execution of the instructions, generally making the job signal self-contained. Preferably, the execution pipelines 34A-D independently "fetch" job signals from different storage positions in the job queue 32 to independently execute different jobs in parallel. Whenever an execution pipeline is free to start executing a new job, the job queue 32 is examined to find an unallocated job signal, and the unallocated ob signal is assigned to the pipeline. The job signal is then processed in the execution pipeline and the corresponding job is executed. In this particular example, four pipelines are operable for executing four different jobs in parallel, independently of each other. At all times during parallel job execution, only one job signal in the job queue 32 is in commit position, allowing the execution pipeline to which the job signal is assigned to commit the corresponding job, i.e. performing write-back to the memory system 37 and committing signal sendings. The jobs in the other execution pipelines are executed speculatively and may be flushed if a data dependency is detected by the dependency-checking unit 36. A general requirement for systems where the information flow is governed by protocols is that certain related events must be processed in the received order. This is the invariant of the system, no matter how the system is implemented. The commit order between jobs is defined by the arrival to the processing core and will generally not be changed. However, in a processing system handling job signals of different priority levels, it may be useful to put a ob signal of higher priority level before job signals of lower priority. In general, each execution pipeline comprises circuitry for fetching instructions from the program store, decoding the instructions, executing the instructions and performing memory write back. An example of a specific execution pipeline that can be used by the invention is the pipeline in the Ericsson AXE Digital Switching Systems. The dependency-checking unit 36 is generally implemented by using one or more read buffers associated with the execution pipelines 34A-D. When a pipeline fetches data from the data store 39, the read address or addresses are buffered in the read buffer(s). When the execution pipeline with commit priority performs write-back to the data store 39, the write address to the data store is compared to the read addresses in the read buffer(s) to see if there are data dependencies between the jobs. If data read by a speculatively executing job is subsequently modified by the committed job, a data dependency exists and the speculatively executed job has to be flushed and restarted. The flushed job can be restarted from the job queue 32. Job signals corresponding to jobs that have been committed are removed from the job queue 32, thereby allowing new job signals from the job scheduler 20 to be buffered in the job queue 32. Data store modifications proposed by a speculatively executed job are logged in the temporary write queue 36, but not written into the data store 39 until the job gets commit priority. When a speculative job gets commit priority, the entries in the temporary write queue 36 that belong to the job in question are immediately written into the data store 39. However, it should be understood that a commit job in execution generally does not store its data in the write queue, but simply forwards the corresponding memory address to the dependency-checking unit to enable dependency checking. Job signals generated by a job with commit priority are forwarded to the job scheduler 20, where they are scheduled for later processing or sent to an input/ output device (not shown) to be distributed to an external unit. An example of a specific type of dependency checking unit and temporary write queue is disclosed in the international patent application WO 88/02513. During development and testing of the processing system of Fig. 2, a particular problem was encountered. When the job with commit priority has a longer execution time than the speculative jobs, the speculatively executing processing units have completed execution of their assigned jobs long before completion of the commit job. The speculatively executed jobs then have to wait until the commit job has been executed to completion and finally committed so that one of the speculatively executed jobs can get commit priority. This generally means that the speculatively executing processing units simply wait for commit priority and valuable execution time is wasted, severely degrading the performance of the processing system. Simulations for telecommunication applications have shown that the capacity of only two equivalent single-pipe processing systems was obtained by a processing system having a multi-pipe of four equivalent pipelines; a ratio of 2:4 which is far from optimal. Of course, the above reasoning also holds true for a speculative job that has a longer execution time than other speculative jobs. When a speculative job with a long execution time gets coirimit priority, the other speculative jobs have already been executed to completion, and are simply waiting for commit priority. According to the invention, multiple job signals are assigned to at least one of the execution pipelines, and speculative execution of a next job is initiated as soon as the previous job has been executed to completion. In this way, the execution pipelines are allowed to execute a plurality of jobs speculatively while waiting for commit priority. By executing several jobs per pipeline, the effects of variations in execution time between jobs are neutralized or at least reduced, and the above single-pipe-to-multi-pipe ratio is substantially improved. In general, the protocol needed for assigning job signals to the execution pipelines 34A-D, keeping track of jobs that have been speculatively executed to completion, successively assigning commit priority to the job signals, and removing job signals that have been committed is managed by the job signal queue 32 in combination with appropriate control software or hardware. The job queue 32 is normally an ordinary queue with a number of storage positions. As an example, the job queue 32 may be implemented in a common memory by logically dividing a predetermined part of the memory into a number of storage positions, each of which having its own individual memory address. In general, each storage position in the job queue 32 is divided into a number of fields, for example as described in Table I below. Table I The field Valid' is used for indicating whether a storage position contains a valid job signal or not. When a job signal is received from the scheduling unit 20, it is placed in the first free position of the job queue 32, i.e. a position in which the Valid flag is not set. The Valid flag is then set to indicate that the 'Signal' field now contains a valid job signal, and the position is occupied. The field 'Taken' is used for indicating whether the job signal has been assigned to a pipeline or not. When a job signal in a storage position of the job queue 32 is assigned to an execution pipeline, the Taken flag for that position is set to indicate that the job signal has been assigned. The field 'Finished' is used for indicating that a job has been speculatively executed to completion, and the field 'UL & DL' is used for indicating the identity of the pipe and the identity the job signal and/ or the corresponding job is given in that pipe. When a pipeline has executed the end-job routine for a first job, the Finished flag is set to signal that the job has been executed to completion and is ready to be committed. The pipeline is now ready to fetch a second speculative job signal. The first job is assigned the job id "1" of the pipe in question and the second job to be executed in the pipe is assigned the job id "2". If the pipe finishes the second job before it receives commit priority, a third speculative job may be executed, and so on. In general, a trade-off between the number of jobs per pipe and complexity is made, so in practice the number of jobs per pipe is limited. In a processing system adapted for speculative execution, jobs may generally be in the following states: Not_Started, Started and Finished. These states may be encoded in the job queue 32 in different ways, and it should be understood that the fields Valid, Taken and Finished of Table I is merely an example of one way of encoding these job states. Preferably, the job queue 32 is associated with a pointer that points out which storage position in the job queue 32 that is in commit position. The job signal in commit position has commit priority, and the execution pipeline handling this job signal is enabled to perform write-back to the memory system 37 and send job signals to the job scheduler 20. Fig. 3 is a schematic diagram illustrating the interrelationship between the job signal queue, the processing units and a write queue arrangement according to a first preferred embodiment. In this particular example, it is assumed that there are four different pipelines 34A-D operating in parallel. Each pipeline is assigned a unique unit label (1-4). It is also assumed that each pipeline is capable of handling two jobs. Therefore, for reasons of clarity and simplicity, the job queue 32 is illustrated as has having eight storage positions. Each storage position includes the fields V (Valid), T (Taken), F (Finished), UL (Pipe id), D L (Job id) and SIGNAL. In Fig. 3, the field 'UL & D ' is illustrated as two separate fields U L and DL rather than as a single concatenation field. Both realizations are possible. Job start An example of how to start a new job will now be described. First, an execution pipeline that is ready for execution requests a new job signal from the job queue 32. Preferably, the pipeline also indicates which identity the new job signal should be given in the pipe. Next, the job queue 32 is traversed by conventional means, and the Valid flags and the Taken flags of the storage positions in the job queue 32 are examined to find the next position which contains a valid unallocated job signal. A pointer to the storage position of the unallocated job signal is transferred to job queue pointer register (JQP) of the requesting execution pipeline. The pointer may be in the form of a memory address to the storage position. The pipeline in question automatically reads its JQP register for the pointer to the next job signal, and subsequently copies the job signal given by the pointer into the pipeline to start executing the corresponding job. The Taken flag for that position of the job queue 32 is set, and the identity of the pipeline and the identity the job is given in the pipe are written into UL and D L , respectively. In this way, the job signals stored in the job queue 32 are assigned to the execution pipelines 34A-D, and the signal fields of the storage positions are set accordingly. In the example of Fig. 3, each one of the storage positions of the job queue 32 contains a valid (V=l) job signal that has been assigned (T=l) to one of the execution pipelines 34A-D. The jobs corresponding to the job signals of the first four positions have been executed to completion (F=l), awaiting commit priority. The jobs corresponding to the job signals of the last four positions are in the process of being speculatively executed, but none of the jobs have been finished (F=0). As soon as a job has been speculatively executed to completion, the corresponding Finished field is set. The results of the speculatively executed jobs are logged in a write queue arrangement 36, but not written into the data store 39 until the job is committed. According to the first preferred embodiment of the invention, as illustrated in Fig. 3, the write queue arrangement 36 includes a write queue that is common to all execution pipelines. Each entry in the write queue is then provided with a pipe-id tag and a job-id tag indicating which pipeline and which one of the speculative jobs of the indicated pipeline that the entry belongs to. The pipe-id tag and the job-id tag correspond to UL and DL, respectively. Accordingly, each entry in the write queue includes an address (ADDR) to the data store 39, associated data (DATA), a pipe-id tag (UL), a job-id tag (DL) and a valid flag (V). The job signal in the commit position, indicated by the arrow pointing to the job queue 32 in Fig. 3, has commit priority, and the execution pipeline handling this job signal is enabled to write to the data store 39. When a job signal is moved into commit position, the unit label of that storage position is examined to determine which pipe is responsible for the job signal and that pipe starts to commit all write operations and signal sendings for the job. By using the unit label UL and the job- signal distinguishing label DL stored in the commit position of the job queue 32, the relevant results can be retrieved from the write queue and written into the data store 39. When this has been done, the position is released by clearing the Valid flag and the job queue 32 is stepped by conventional means to move a new storage position into commit position, thus successively assigning commit priority to the job signals of the ob queue 32. The scheduling unit 20 is informed that the job has been executed to completion and the job queue 32 is now ready to receive a new job signal from the scheduling unit. Job restart at flush Now, an example of how to handle a flush will be described briefly. At flush, when a data dependency is detected, execution of the job to be flushed is normally interrupted in the pipeline, the job is put into a Not-Started state again, and those entries in the write queue that belong to the flushed job are invalidated. In more detail, the pipe-id tag (UL) of the entry in the write queue 36 for which a dependency has been detected identifies the pipeline that handles the job to be flushed. If the job is executing, the pipeline normally gets an interrupt. The JQP register of the identified execution pipeline holds a pointer to the storage position of the job signal in the job queue 32. By using the unit label U L and the distinguishing label DL of the storage position identified by the job queue pointer, the corresponding entries in the write queue can be invalidated. The Finished flag and the Taken flag of the corresponding storage position in the ob queue 32 are removed, and the job can then be restarted. If the fields UL and DL of the relevant storage position in the job queue 32 are cleared, the job signal may be assigned to any execution pipeline that is free to start execution, and associated with a new unit label and a new job- signal distinguishing label. Alternatively, the job signal corresponding to the flushed job is reassigned to the pipeline identified by the unit label associated with the job signal, and the job signal is associated with a new job-signal distinguishing label D L . A job to be flushed does not necessarily have to be interrupted if it is executing. However, in terms of performance, it is more advantageous to interrupt the job. Fig. 4 is a schematic diagram illustrating the interrelationship between the job signal queue, the processing units and a write queue arrangement according to a second preferred embodiment. Fig. 4 is identical to Fig. 3 except for the write queue arrangement 36. In Fig. 4, the write queue arrangement 36 comprises a number of separate write queues WQ1-WQ4, one write queue for each one of the execution pipelines 34A-D. By having a dedicated write queue for each pipeline, it is sufficient to provide each entry in each write queue with a job-id tag instead of a job-id tag as well as a pipe-id tag. Consequently, each entry in the write queues WQ 1-WQ4 includes an address (A) to the data store 39, associated data (DATA), a job-id tag (DL) and a valid flag (V). When a job signal in the job queue 32 is moved into commit position, the unit label UL of that storage position is examined to determine which pipeline that is responsible for the job signal. At the same time, the corresponding write queue is also identified. By using the job- signal distinguishing label DL stored in the commit position, the results of the job to be committed can be retrieved from the relevant write queue and written into the data store 39. Correspondingly, at flush of a job, the write queue dedicated to the pipeline that handles the job can be identified by means of the associated unit label UL. Subsequently, by using the associated distinguishing label DL, the relevant entry in the write queue is identified and the results therein invalidated. In the realization of Fig. 4, all speculative jobs that are placed behind the flushed job in the commit order are preferably also flushed to create space in the write queue 36. The reason for this is that the new execution of the flushed job, or the execution of another job, may need more space in the write queue than the flushed job. Therefore, the position of the flushed job in the job queue is determined by examining the pointer in the JQP register of the pipeline in question. Next, the job queue 32 is traversed to find all speculative jobs that are "younger" than the flushed job. For each found job, by using the unit label U L and job-signal distinguishing label DL associated with the job, the pipeline handling the job can be found and execution interrupted, and those entries that belong to the flushed job in the relevant write queue can be invalidated. The functions for handling the job queue, such as associating labels to the job signals, writing information into the job queue fields and successively assigning commit priority to the job signals, are preferably controlled by software, e.g. in the form of a micro code instruction program or an assembler program. Other functions of the processing system, such as handling flushes and controlling the write queue, may also be implemented by software. It is of course possible to implement the above functions in hardware instead. Fig. 5 is a schematic diagram illustrating the interrelationship between the job signal queue, the processing units and a write queue arrangement according to a third preferred embodiment. Fig. 5 is similar to Fig. 3, except for the job queue and the write queue arrangement. In Fig. 5, the storage positions in job queue 32 do not generally have any identification fields such as UL and DL. Instead the job queue pointer (JQP) is used as the sole identifier associated with each job signal. At commit and at flush of a job, the job queue pointer is used in a search procedure to identify which pipeline that is responsible for the job. Each entry in the write queue includes a data store address (ADDR), associated data (DATA), a job queue pointer tag (JQP) and a valid flag (V). At commit, the results of a job may be retrieved by means of the job queue pointer tag. At flush, the results of a job may be identified by means of the job queue pointer tag, and invalidated. Preferably however, the write queue of Fig. 5 is provided with a field for a unit label tag to more easily find which pipeline that is responsible for a job. Although the invention mainly has been described from the viewpoint that the protocol for assigning job signals to the processing units, keeping track of the job signals and managing the commit priority is performed by the job signal queue and its associated control functionality, it should be understood that it is also possible to manage this protocol from the execution pipeline side. It should also be understood that the term "processing unit" is not limited to specialized hardware but also includes other types of processing units such as standard off-the-shelf microprocessors. In the case of standard microprocessors, dependency checking is normally implemented by instrumenting read and write instructions with extra code in the application software. Preferably, support for flushing is implemented in the application software and performed by the operating system or the virtual machine. If application software written for a single-processor system is to be migrated to and reused in a standard multiprocessor environment, the application software can be transformed via recompilation or equivalent. For example, a sequentially programmed application software may be automatically transformed by adding appropriate code for supporting speculative execution, including code for dependency checking and code for storing a copy of modified variables to enable proper flush or roll-back of a job, and then recompiling the software. The operating system or virtual machine of the standard multiprocessor system may also be modified to give support for speculative execution. For example, if a dependency is detected when executing code for dependency checking, the control may be transferred to the operating system /virtual machine which flushes the relevant job. The embodiments described above are merely given as examples, and it should be understood that the present invention is not limited thereto. Further modifications, changes and improvements that retain the basic underlying principles disclosed and claimed herein are within the scope and spirit of the invention.

Claims: CLAIMS 1. A method for handling job signals in a processing system having multiple processing units (34A-D) for job signal processing, said method comprising the steps of: for at least one of said processing units (34A-D), assigning (1) a first job signal to the processing unit for speculative execution of a corresponding first job; assigning (2) a further job signal to the processing unit for speculative execution of a corresponding further job; and initiating (3) speculative execution of said further job when the processing unit has completed execution of said first job. 2. A method for handling job signals according to claim 1 further comprising the step of successively assigning commit priority to the job signals of the processing system, one job signal at a time according to a commit order, a job corresponding to a job signal having commit priority being enabled for non- speculative execution including write back to a memory system (37). 3. A method for handling job signals according to claim 2, further comprising the step of associating each job signal with an identifier (UL & DL; JQP) that is unique for the job signal. 4. A method for handling job signals according to claim 3, further comprising the steps of: temporarily storing, for each speculatively executed job, results of the job in such a manner that said results are retrievable by means of the associated identifier; retrieving, for the job signal with commit priority, the temporarily stored results of the corresponding job by means of the associated identifier, and performing write back of the retrieved results to the memory system (37) . 5. A method for handling job signals according to claim 4, further comprising the steps of: identifying, when a dependency with the job having commit priority is detected for a speculative job, the temporarily stored results of said speculative ob by means of the associated identifier; and invalidating said identified results, whereby said speculative job is flushed. 6. A method for handling job signals according to claim 5, further comprising the step of flushing all speculative jobs that are placed behind said flushed job in the commit order. 7. A method for handling job signals according to claim 5, further comprising the steps of: clearing the identifier associated with a flushed job; reassigning the job signal corresponding to the flushed job to a processing unit for execution; and associating said reassigned job signal with a new identifier. 8. A method for handling job signals according to claim 3, wherein said identifier is a pointer (JQP) to the job signal in a job signal queue. 9. A method for handling job signals according to claim 3, wherein said identifier comprises a unit label (UL) representing the identity of the processing unit to which said job signal is assigned and a job-signal distinguishing label (DL) representing the identity the job signal is given in said processing unit. 10. A method for handling job signals according to claim 9, further comprising the steps of: temporarily storing, for each speculatively executed job, results of the job in such a manner that said results are retrievable by means of the associated job- signal distinguishing label (DL) or the associated unit label (UL) together with the job- signal distinguishing label (DL); retrieving, for the job signal with commit priority, the temporarily stored results of the corresponding job by means of the associated job-signal distinguishing label or the associated unit label together with the job-signal distinguishing label, and performing write back of the retrieved results to the memory system (37). 11. A method for handling job signals according to claim 9, further comprising the step of reassigning a speculatively executed job that has been flushed to the processing unit identified by the associated unit label to restart execution of the job. 12. A processing system having multiple processing units (34A-D) for processing job signals, said processing system comprising: for at least one of said processing units (34A-D), means (32) for assigning a first job signal to the processing unit for speculative execution of a corresponding first job; means (32) for assigning a further job signal to the processing unit for speculative execution of a corresponding further job; and means for initiating speculative execution of said further job when the processing unit has completed execution of said first job. 13. A processing system according to claim 12, further comprising means for successively assigning commit priority to the job signals of the processing system, one job signal at a time according to a commit order, a job corresponding to a job signal having commit priority being enabled for non- speculative execution including write back to a memory system (37). 14. A processing system according to claim 13, further comprising means for associating each job signal with an identifier that is unique for the job signal. 15. A processing system according to claim 14, further comprising: means (36) for temporarily storing, for each speculatively executed job, results of the job in such a manner that said results are retrievable by means of the associated identifier; and means for retrieving, for the job signal with commit priority, the temporarily stored results of the corresponding job by means of the associated identifier, and performing write back of the retrieved results to the memory system (37). 16. A processing system according to claim 15, further comprising: means for interrupting a speculative job when a data-dependency with the job having commit priority is detected; means for identifying the temporarily stored results of said interrupted speculative job by means of the associated identifier; and means for invalidating said identified results, whereby said job holding a data dependency is flushed. 17. A processing system according to claim 16, further comprising means for flushing all speculative jobs that are placed behind said flushed job in the commit order. 18. A processing system according to claim 16, further comprising: means for clearing the identifier associated with a flushed job; means (32) for reassigning the job signal corresponding to the flushed job to a processing unit for execution; and means for associating said reassigned job signal with a new identifier. 19. A processing system according to claim 15 or 16, wherein said identifier is a pointer (JQP) to the job signal in said storing means. 20. A processing system according to claim 14, wherein said identifier comprises a unit label (UL) representing the identity of the processing unit to which said job signal is assigned and a job-signal distinguishing label (DL) representing the identity the job signal is given in said processing unit. 21. A processing system according to claim 20, further comprising: means (36) for temporarily storing, for each speculatively executed job, results of the job in such a manner that said results are retrievable by means of the associated job-signal distinguishing label or the associated unit label together with the job-signal distinguishing label; and means for retrieving, for the job signal with commit priority, the temporarily stored results of the corresponding job by means of the associated job-signal distinguishing label or the associated unit label together with the job- signal distinguishing label, and performing write back of the retrieved results to the memory system. 22. A processing system according to claim 20, further comprising: a number of write queues (WQ1-WQ4), one write queue dedicated to each processing unit for temporarily storing, for each speculatively executed job of the processing unit, results of the job in such a manner that said results are retrievable by means of the job-signal distinguishing label (DL) associated with the corresponding job signal; means for determining, for the job signal with commit priority, which processing unit the job signal is assigned to based on the unit label (UL) associated with the job signal; means for retrieving the results of the corresponding job from the write queue (WQ) dedicated to the determined processing unit; and means for performing write back of the retrieved results to a memory system (37). 23. A job signal queue (32) in a processing system having multiple processing units (34A-D) for processing job signals assigned to said processing units, said job signal queue having a number of storage positions, each storage position comprising: a signal field (SIGNAL) for storing a job signal; a first identification field (UL) for storing a first label representing the identity of the processing unit to which said job signal is assigned; and a second identification field (DL) for storing a second label representing the identity the job signal is given in the processing unit identified by said first label. 24. A job signal queue according tύ claim 23, wherein said first identification field (U L ) and said second identification field (DL) are concatenated into a single field (UL & DL). 25. A job signal queue according to claim 23, wherein each storage position further comprises a field (F) for storing a flag that indicates whether the job corresponding to the job signal stored in said signal field has been speculatively executed to completion. 26. A job signal queue according to claim 23, wherein each storage position further comprises: a valid field (V) for storing a flag that indicates whether the signal field includes a valid job signal; and a field (T) for storing a flag that indicates whether the job signal stored in said signal field has been assigned to a processing unit.

Inventors: CARLSSON MAGNUS, EGELAND TERJE, HOLMBERG PER ANDERS, LINNERMARK NILS OLA, STROEMBERGSON KARL OSCAR JOACH, CARLSSON, MAGNUS, EGELAND, TERJE, HOLMBERG, PER, ANDERS, LINNERMARK, NILS, OLA, STROEMBERGSON, KARL, OSCAR, JOACHIM
Applicants: ERICSSON TELEFON AB L M, TELEFONAKTIEBOLAGET LM ERICSSON
Application year: 1999
Main classification: G06F9
IPC codes: G06F9, G06F15