IE79236B1 - Apparatus and method for recovering from page faults in vector data processing operations - Google Patents

Apparatus and method for recovering from page faults in vector data processing operations

Info

Publication number
IE79236B1
IE79236B1 IE198888A IE198888A IE79236B1 IE 79236 B1 IE79236 B1 IE 79236B1 IE 198888 A IE198888 A IE 198888A IE 198888 A IE198888 A IE 198888A IE 79236 B1 IE79236 B1 IE 79236B1
Authority
IE
Ireland
Prior art keywords
instruction
vector
scalar
unit
address
Prior art date
Application number
IE198888A
Other versions
IE881988L (en
Inventor
David N Cutler
David A Orbits
Dileep Bhandarkar
Wayne Cardoza
Richard T Witek
Original Assignee
Digital Equipment Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US07/069,372 external-priority patent/US5063497A/en
Application filed by Digital Equipment Corp filed Critical Digital Equipment Corp
Publication of IE881988L publication Critical patent/IE881988L/en
Publication of IE79236B1 publication Critical patent/IE79236B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • CCHEMISTRY; METALLURGY
    • C04CEMENTS; CONCRETE; ARTIFICIAL STONE; CERAMICS; REFRACTORIES
    • C04BLIME, MAGNESIA; SLAG; CEMENTS; COMPOSITIONS THEREOF, e.g. MORTARS, CONCRETE OR LIKE BUILDING MATERIALS; ARTIFICIAL STONE; CERAMICS; REFRACTORIES; TREATMENT OF NATURAL STONE
    • C04B41/00After-treatment of mortars, concrete, artificial stone or ceramics; Treatment of natural stone

Abstract

For virtual memory technology and capable of the multiple overlapped scalar and data - processing system for vector data - processing operation, providing device and method, and current is put on a data of vector for main storage without one or more visits/storage instruction from the inner fault, and continue actuating method. When with a page fault, an indication according presently are carried out is used to end and performing, further - comprising a page monitoring generally the information of recording in memory for operating the system software, and generating a vector signal abnormal. Operating system soft abnormal of the vehicle; the fault indicator main information, and defect page from the measuring storage medium read-in main file unit, and is provided with an abnormal vector indication, continue the actuating method.

Description

1. Field of the Invention This invention relates generally to data processing systems and, more particularly, to data processing systems capable of performing vector operations in a virtual memory environment. 2. Description of the Related Art In order to increase the performance of certain types of repetitious operations, the technique of vector data processing operations has been developed. For example, a vector add operation can be used to add the corresponding elements of two data arrays 15 together and store the resultant sums in a third array . This procedure can be contrasted with scalar instructions implementing the same computation which would require repeated execution of a loop routine. Vector processing has the advantage of specifying, in β single operation, the processing of large amounts of data without the need to issue multiple instructions or perform loop iteration control. In addition, since the same operation is being applied to each set of operands, pipelining techniques can be -2efficiently employed to increase performance. In general, two models of vector processing have emerged, the register based model and the memory based model.
In the resister based model, sets of operands are transferred (loaded) from main memory and stored in special registers referred to as vector registers. Each vector register can store a multiplicity of operands, each operand having a predetermined length. When one or more vector registers have the required operands stored therein, then all the operands stored in the vector register are processed by a common arithmetic operation and the operands resulting from the processing operation are stored in a target vector register. Because the same operation is performed on all the operands of the vector register, only one instruction need be issued to the processing execution unit to manipulate a multiplicity of operands. After all the requisite operations are performed on the set of operands, the operands are returned to (or stored in) the main memory unit.
In the memory based model, the operands are transferred directly from the main memory unit to the execution unit end the resulting operands are returned directly to the main memory unit. The memory based model theoretically provides higher performance because the information does not have to ii -3be stored into vector registers before starting an operation and then returned to memory when the operation is complete. However, when a vector operation is started, a certain amount of time is required before the first operand arrives from memory and therefore the memory based vector model is most efficient when the start-up time can be amortized over a very long vector operation.
The vector register based model typically has very short start-up times and therefore has better performance on short vectors. Operands are loaded and stored in parallel with the actual vector operations and therefore the benefit of short start-up times is combined with maximum memory utilization to obtain nearly the same peak vector operation rates that are obtainable on long vector operations in the memory based model.
In the modern data processing system, use of virtual memory has become so common as to be a requirement of a data processing system. In the virtual memory data processing system, the bulk of the logic signal groups required by the processor are stored in bulk storage units (also referred to as the backing store). When instruction and data elements are required by the data processing system, the data processing system, anticipates that the requested instruction or data elements are stored in the main -4memory unit and, therefore, the data processing system attempts to transfer the required instruction or data element from the main memory unit to the portion of the data processing unit requiring the instruction or data element. When the data processing system determines that the requisite instruction or data element is not in the main memory unit, then a page fault is generated, the page being the unit of information stored in mass memory manipulated by the data processing system. The page fault causes data processing system apparatus to store information necessary to respond to the page fault and then transfers control to the operating system to respond to the page fault.
In response to the generation of a page fault, the data processing system vill transfer control to an appropriate operating system module that will determine the location of the required instruction or data element, and transfer a page'’ of instruction and/or data elements including the requested instruction or data element to the main memory unit.
The operating system module vill, in addition, create the tables required to relate the main memory address to the position of the requisite instruction or data element in the mass memory media.
In the scalar (nonvector) mode of operation, memory reference instructions are executed -5sequentially and can access only a single piece of data. When a datum is referenced that is not in main memory, necessary information is stored and a page fault exception is generated. The operating system * 5 gains control, reads the necessary page into memory, and then resumes program execution simply by backing up the program counter and continuing the execution of the instruction sequence.
In contrast, a single vector load or store 10 operation can read or write up to the number of data element operands that can be stored in a vector register. While the vector load/store operation is being performed, it is advantageous to continue to issue additional vector and/or scalar instructions.
Therefore, unlike the case of a scalar load/store operation, several additional instructions may have been issued after the vector instruction, but before the missing page(s) is (are) encountered. When the required data element is not in the main memory unit, several pieces of information must be preserved in order to restart or complete the execution of the instruction after the missing page has been transferred into the main memory unit.
The performance of the data processing system in performing vector operations can be limited by the memory speed, by how many vector load and store operations can be executed simultaneously, and by how -6many function or execution units can be operated in parallel performing the vector operations. Clearly, to the extent that multiple overlapping scalar and vector operations can be performed, the efficiency of the data processing system can be improved.
However, the execution of overlapping scalar and vector instructions in the virtual memory environment increases the difficulty of recovering from a page fault (i.e., when required data is not available in the main memory unit) resulting from the vector instruction. In fact, more than one vector operation can potentially have a page fault identified therewith during the completion of the currently executing instructions further complicating restart of the vector processing operations. With scalar load/store operations that reference a single piece of data, a memory management problem is immediately detected and therefore additional instructions are not issued. In order to optimize performance, instructions continue to be issued before a memory management problem can be detected for a vector instruction. The intervening instructions may have altered the state of information that was an operand of the original vector instruction and therefore, retrieval of the missing page, backing-up the program counter and re-executing the instruction may not provide a adequate response to the page fault. A need has therefore been felt for a technique that can permit relatively convenient recovery from page faults or other vector exceptions in a data processing system executing a plurality of overlapping vector operations using a vector register base model.
European Patent Application 86105482.3 (EP 0205809 A2) , assigned to International Business Machines Corporation, discloses a vector processor which processes vectors that can have more elements than a vector register can contain at one time. Vectors are processed in sections in which the section size is determined by the number of element locations in a vector register. A vector count register controls the number of elements processed by each vector instruction.
A vector interruption index points to the first or next element in a vector to be processed by a vector instruction either when it is first issued or when it is re-issued following an interruption of the vector instruction. A general purpose (length) register contains the entire length of the vector to be processed. A single instruction, which starts a vector sectioning loop, provides for the smaller of the section size or the content of the length register to be loaded into the vector, count register. During the operation of the sectioning loop, the vector count register is repetitively subtracted from the content of the first general purpose register and the resulting residual vector length is placed back in the first general purpose register until all of the elements have been processed. -7A European Patent Application 84116394.2 (EP 147858 A3) assigned to Hitachi, LTD., discusses vector processing apparatus for vectors having more elements than the vector register is capable of storing, and includes registers for holding the address of an instruction being processed by the unit, the leading vector element position processed by the instruction, and the vector register internal address of a vector element at which an exception has been detected by the unit. An interrupt process controller reads out register information in response to the detection of an exception from each unit. Information in the stack of a currently detected exception and a previously detected exception are used to establish priorities for handling the exceptions.
FEATURES OF THE INVENTION It is an object of the present invention to provide an improved data processing system..
It is a feature of the present invention to provide a data processing unit capable of improved vector data processing operations.
It is another feature, of the present invention to permit recovery from page faults by a central processing unit capable of executing a plurality of overlapping instructions.
It is yet another feature of the present invention to provide a technique for permitting recovery from page faults by a data processing system capable of executing a plurality of overlapping vector and scalar operation instructions.
It is yet another feature of the present invention to provide a technique for recovery from a vector operation induced page fault in a data processing system having a virtual memory capability.
SUMMARY OF THE INVENTION The aforementioned and other features are accomplished, according to the present invention as set out in claims 1 and 18, by providing, in a data processing system having both vector operation capability and virtual memory implementation, apparatus to respond to generation of vector exception signal (such as a page fault signal) induced by a vector operation instruction. A plurality of (vector) operations, referencing the main memory unit, can be in progress at any instance in time. When a vector exception signal is generated, the issue unit of the central processing unit stops issuing instructions and the instructions in current execution are allowed to continue to completion. When all instructions are completed, the information identifying the virtual memory problem(s) encountered by the respective vector instruction (s) is (are) stored on the kernel stack. The information stored on the kernel stack includes the exception type code identifying the fault, the vector length, the initial base address, the initial stride, the virtual address that caused the virtual memory problem, the vector instruction itself, the current processor status and the virtual address of the next instruction to be issued. (The address of the next instruction is not necessarily for the instruction sequentially following the vector instruction.) This information is sufficient to locate the virtual memory problem. For a page fault, missing pages are -9transferred into the main memory, the instruction causing the page fault is reexecuted and program execution is continued at the next instruction (the next instruction not necessarily being the one following the vector instruction with the page fault ).
These and other features of the present invention will be understood upon reading of the following description along with the drawings.
BRIEF DESCRIPTION OF THE DRAWINGS Figure 1A and Figure IB are examples of data processing system implementations capable of utilizing the present invention.
Figure 2 is an example of a data processing unit 15 of a data processing system capable of using the present invention.
Figure 3 illustrates the use of virtual memory in a data processing system.
Figure 4 is an example of a vector restart frame 20 for recovery from a page fault according to the present invention.
Figure 5 in a flow diagram illustrating the operation of the present invention.
DESCRIPTION OF THE PREFERRED EMBODIMENT 25 1. Detailed Description of the Figures Referring now to Fig. 1A and Fig. IB, two exemplary data processing system configurations -1Όcapable of using the present invention are shown. In Fig. 1A, the central processing unit (#1) 11 is coupled to a system bus 19. Other central processing units (e.g., #N) 12 can also be coupled to the system. The central processing unit(s) 11 (through 12) process data according to the structure of the central processing unit(s) in conjunction with central processing unit control programs, the control programs being comprised of instructions resident in the main memory unit 15. The nonresident data and instructions are typically stored in the mass storage unit and are transferred to and from the main memory unit 15 via the system bus 19. Input/output unit(s) {#1) 16 (through (#M) 17) couple devices such as mass memory storage units, user terminal devices and communication devices to the data processing system by means of the system bus 19. The mass storage unit(s) store the data and instructions required by the data processing unit(s). Sets of data and/or instructions, typically designated as pages of data and/or instructions, required for the operation of the central processing units 11 through 12, are transferred from the mass storage units, having relatively slow accessibility, to the main memory unit to which access by the central processing unit is relatively fast. The bus oriented system has an advantage in the relative ease to reconfigure the -11system but has the disadvantage that the each system component requires control apparatus to provide an interface with the system bus. Referring next to Fig. IB, a data processing system is shown in which the central processing unit(s) 11 (through 12) and the input/output unit(s) 16 (through 17) are coupled to the main memory unit 15 through a memory control unit 14, the memory control unit 14 replacing the system bus 19 and the control function performed by individual data processing system components in the bus oriented data processing configuration shown in Fig. IA. The memory control unit 14 provides a centralized control and monitoring of the transfer of data and instructions that can be more efficient than the bus oriented configuration of Fig. 1, but with the loss of flexibility.
Referring next to Fig. 2, a block diagram of an exemplary central processing unit capable of effective utilization of the present invention is illustrated. The issue unit 22 is responsible for for providing (decoded) instructions to the plurality of specialized execution units comprising scalar operation address generation unit 24, at least one execution unit (#1) 25 (through execution unit (#Q) 26) and a vector operation unit 28, the vector operation unit 28 including vector operation processing unit 28A, vector operation address -12generation unit 28B and vector operation registers 28C. The data processed by the execution units are typically extracted from the scalar registers 23 or the vector registers 28C. The resulting data from the execution units ere stored in the scalar registers 23, in the vector registers 28C or in the data cache memory unit 27. The data cache memory unit 27 can be viewed as a cache memory unit providing an interface between the main memory unit and the central processing unit 11. (The data cache memory unit 27 is shown as being coupled directly to the main memory unit in Fig. 2. As illustrated in Fig. 1A and Fig· IB, the actual coupling can include intervening data processing apparatus.) The issue unit 22 includes apparatus for determining which execution unit will process selected data and for determining when the selected execution unit is available for processing data. This latter feature includes ascertaining that the destination storage location will be available to store the processed data. The instruction cache memory unit 21 stores the instructions that are decoded and forwarded to the appropriate execution unit by the issue unit. The issue unit 22 has the apparatus to attempt to maximize the processing operations of the execution units. Thus, the issue unit 22 includes prefetch apparatus and algorithms to -Ϊ3ensure that the appropriate instruction (including any branch instruction) is available to the issue unit 22 as needed. The plurality of execution units are, as indicated by the scalar operation address generation unit 24 and the vector operation unit 28, specialized processing devices for handling certain classes of processing operation. For example, an execution unit can be configured to handle floating point operations, or integer arithmetic operations, etc. The issue unit 22 has associated therewith scalar registers 23 that can store data required for the execution of the program or for providing a record of the data processing operation. For example, one register is the Program Counter register that stores the (virtual) address of the next instruction, in the executing program instruction sequence, to be processed. The scalar operation address generation unit 24 is used to convert virtual addresses to physical locations in the main memory unit 15. The issue unit 22 is also responsible for reordering the data from the execution units in the correct sequence when the execution units process instructions at different rates.
The vector operation unit 28 includes s vector operation processing unit 28A, a vector operation address generation unit 28B and vector operation registers 28C. The activity of the vector operation -14processing unit can control the distribution of the data to the execution units 24 through 26 and the execution of the instructions therein. According to another embodiment (not shown), execution units dedicated to execution of instructions by the vector operation unit 28 can be available in the data processing system. When the execution units are available for both vector and scalar operations, control is subject to the overall system control of the issue unit 22 that allocates the resources of the data processing unit.
Referring next to Fig. 3, a description of the virtual addressing mechanism of the preferred embodiment is illustrated. An instruction 301 in the issue unit has associated therewith a virtual address 302 identifying the data element upon which the operation of the instruction is to be performed. The issue unit transfers the virtual address 302 to scalar address generation unit 24 (or, where appropriate, the vector address generation unit 28B). In the address generation unit 24 (or 28B) a portion of the virtual address is used to identify (by apparatus 303 in the address generation unit) a page table entry 304 in main memory unit 15. The page table entry 305 is transferred to the address generation unit 24 (or 28B) and apparatus 305 tests selected fields in the page table entry to determine -15if access being attempted with respect to data element is permitted. When the the access is not permitted, then an access violation 306 is identified and an appropriate operating procedure is invoked to determine how to respond to the access violation.
When the test 305 determines that the access to data element 312 is permitted, then a test 307 is performed on page table entry 304 to determine if the data element required for the instruction is available in the main memory unit 15. When the test 307 indicates that the data element is not present, then a page fault 308 is generated and an operating system program transfers the data element to the main memory 15 (in location 312), updates the related page table entry 304 and communicates to the issue unit that retrieval from the main memory location of the required data element can be reinitiated. When the required data element is available in the main memory unit, as determined by test 307, then test 309 tests the page table entry 304 to determine if the activity for which the data element is required by the associated instruction is designated as resulting in a fault. When the activity determined by the instruction is designated as fault condition, then a fault on read, a fault on write or a fault on execute as appropriated will invoke an operating system to respond to the fault condition. If the test 309 -16indicates that the activity of the instruction with respect to the associated data element is not designated as a fault condition, then the address generation unit 24 (or 28B) determines the physical address 311 in the main memory unit 15 where the required data element is stored. The data element 312 at this address is transferred to a storage location 313 in the scalar registers 23, the vector operation registers 28C or to the instruction cache memory unit 21 (i.e., when the data element is an instruction). In this manner, the required data element, identified by a virtual address, is available for processing by the instruction 301.
Referring next to Fig. 4, a vector restart frame, according to the present invention, is illustrated. Signal group 401 includes all logic zeros except for bit positions 0-2. In these bit positions, the following types of exceptions are identified: an access violation, a fault on read, a fault on write, translation not valid, vector alignment and instruction pending. The instruction pending code group relates to vector load/store instructions that were issued by the issue unit, but for which the operation was not actually started.
Signal group 402 designates the vector length or the number of data elements involved in the vector operation. Signal group 403 designates the initial -17base address. Signal group 404 indicates the initial stride or displacement between successive data elements. Signal group 405 is the related virtual address in the page of the missing data element causing the exception, while signal group 406 is the vector load/store instruction resulting in the exception. Signal group 407 is the processor status. For purposes of this invention, the field in bit position 2 (VRF) is particularly significant and indicates that a prior vector restart frame has been saved. Signal group 408 stores the virtual address of the next instruction.
Referring next to Fig. 5, a flow diagram illustrating the recovery from a page fault for a data processing unit executing vector operation s shown. In step 501, a page fault is identified during execution of a vector operation. The issue unit suspends the issuing of further instructions in step 502, but permits all the instructions in execution at the time of the page fault to be completed or to result in a page fault (or some other exceptional activity) in step 503. In step 504, parameters (such as shown in Fig. 4) are stored for each page fault in order to permit recovery from the page faults. In step 505, the pages missing to complete execution for each instruction resulting in a page fault is transferred to the main memory unit. ’-18Each instruction resulting in the fault is executed after the missing data are brought into the main memory unit. After all instructions showing page faults and all exceptional events have been responded to, the execution of the program is resumed. 2. Operation of the Preferred Embodiment The central processing unit having pipelined execution units of Fig· 2 was implemented in the preferred embodiment subject to several constraints, however, other design implementations can utilize the present invention. The central processing unit includes a plurality of execution units, each execution unit adapted to execute a class of instructions. By way of example, one execution unit, the scalar address generating unit 24, controls the transfer of the logic signal groups between the central processing unit and the main memory unit, i.e., executes the scalar load/store instructions. One execution unit is adapted to execute data shifting operations, one execution unit for floating point add/subtract operations, one execution unit is adapted for integer and floating point multiply operations and one execution unit is adapted for integer and floating point divide operations. The specialized execution units can be, but are not necessarily implemented in a pipelined configuration.
The other features of the central processing unit are -19the following. The instruction in the currently executing sequence of instructions is transferred to the issue unit 22 from the instruction cache memory unit 21. In the issue unit, the instruction is broken down into its constituent parts and data-dependent control signals and address signals are generated therefrom. However, before an instruction can begin execution (i.e., be issued), several constraints must be satisfied. All source and destination registers for the instruction must be available, i.e., no write operations to a needed register can be outstanding. The register write path must be available at the future cycle in which this instruction will store the processed quantity. The execution unit to be required for processing the instruction during the execution must be available to perform the operation. With respect to the vector operation unit, a vector operation reserves an execution unit for the duration of the vector operation. When a memory load/store instruction experiences a cache memory unit miss, the load/store unit busy flag will cause the subsequent load/store instructions to be delayed until the cache memory miss response is complete. When an instruction does issue, the destination register and the write path cycle for the result are reserved. During operand set-up, all instruction-independent register -20addresses are generated, operands are read and stored, and data-dependent control signals are generated. The instruction operands and control signals are passed to the the associated execution unit for execution. The result generated by the execution unit is stored in the register files or in the data cache memory unit 15 as appropriate. Once an instruction issues, the result of the processing may not be available for several machine cycles.
Meanwhile, in the next machine cycle, the next instruction can be decoded and can be issued when the requisite issue conditions are satisfied. Thus, the instructions are decoded and issued in the normal instruction sequence, but the results can be stored in a different order because of the varying instruction execution times of the execution units. This out of order storing complicates the exception handling and the retry of failing instructions. However, these events are relatively rare the out of order storing provides execution and hardware advantages.
With respect to Fig. 3, the use of virtual addressing techniques has been widely implemented. This technique permits the programmer not to be concerned with actual location of the data and instruction elements, the address generation mechanism providing an interface between the program addresses and the data and instruction elements within the data processing unit. By the use of pages of data and instruction elements, the transfer of data and instruction elements from the bulk or mass store media is expedited, there being no need to transfer individual data and instruction elements.
In addition, programs are generally written in a format that stores data and instruction elements needed for sequential instruction execution relatively close together in the program or file. Thus, a page of data and instruction elements will typically include a multiplicity of related data and instruction elements for program execution. Nοne-the-1ess, the relative rigidity of the granularity of the page implementation has the result, particularly in the vector instruction execution, that the group of related data and instruction elements can extend beyond the page boundary to a page not present in the main memory unit of the data processing system. In the preferred embodiment, the address generation mechanism 34 includes apparatus portions for address translation and for generating an exception (i.e., test 307) when the required page of information is not in the main memory unit 15 and includes a software program portion as part of the operating system for transferring pages of information between the bulk -22storage apparatus and the main memory unit. The address generation mechanism 34, when a page of data and instruction elements is transferred into the main memory unit 15, provides associated page table entries in main memory 15 wherein the the currently executing program can identify all the pages of data and instruction elements (associated with virtual addresses) stored in the main memory unit 15 and can therefore signal a page fault when the referenced data or instruction element is not in main memory unit 15. As shown in Fig. 3, the data processing unit typically includes procedures associated with the virtual addressing technique such as the apparatus for signaling that the required information page is not in the main memory unit as well as the programs for responding to a page fault by retrieving the missing page of information.
The recovery from vector page faults will typically be provided by a program under control of the operating system. This operating system program has available the vector restart frames to identify the program portions resulting in the page fault. Such a program will ensure that the data elements identified as being missing by the vector page fault are transferred to the main memory unit. The instruction, interrupted by the vector page fault, is completed. After all interrupted instructions are -23reexecuted, then the program can resume normal execution. In the present implementation of a vector operation, 64 data elements can be required, each possibly occurring in a different page. Therefore in addition, 64 page tables on separate pages can be required along with 1 page for the instruction. Therefore, the operating system software must make available the potentially large number of pages required for the execution of a vector instruction.
The central processing unit of the present invention is designed to provide parallel executions of vector instructions and scalar instructions.
Therefore, when an exception or interrupt condition is detected, the instruction issuing procedure is stopped, and outstanding instructions completed. It will be clear that multiple exception and interrupt conditions can be present. In the preferred embodiment, the arithmetic traps have the highest priority, then the vector exceptions, then all other exceptions (faults) and finally the highest priority interrupt.

Claims (21)

1. A digital data processing unit . (11) for connection to a main memory unit (15) including a plurality of storage locations, each identified by a physical address, for storing vector operands and vector instructions, one type of said vector instructions being a computational instruction for initiating a computational operation, and another type of said vector instructions being a transfer vector instruction for initiating a transfer operation and identifying a virtual address (302) , said digital data processing unit (11) including: A. a vector register (88C) for storing a vector operand ; B. a vector execution unit (25) for performing vector operations identified by a vector instruction of the computational type in connection with vector operands in said vector register (28C) ; and C. a vector address generating unit (28B) for performing, in response to receipt of an instruction of the transfer vector instruction type, an address translation operation to generate a physical address in response to the virtual address (302) identified by the transfer vector instruction corresponding to a physical address in said main memory unit (15) , to enable a vector operand to be transferred between the storage location identified by said physical address and said vector register (280 , and generate a page fault indication (308) if said virtual address (302) identified by said transfer vector instruction does not correspond to a physical address in said main memory unit (15); D. an instruction issue unit (22) for iteratively retrieving vector instructions (301) from said main memory unit (15) and performing an instruction issue operation to transfer an instruction of said computational instruction type to said vector execution unit (25) and to transfer an instruction of said transfer vector instruction type to said vector address generating unit (28B) to enable it to perform the address translation operation, said instruction issue unit (22) being responsive to a page fault indication from said vector address generating unit (28B) resulting from one of said vector instructions to terminate performing instruction issue operations while permitting said execution unit (22) to continue to perform vector operations identified by other ones of said vector instructions that have already been issued and generate restart information to identify the vector instruction which resulted in the page fault indication.
2. A digital data processing unit (11) as defined in claim 1 wherein said main memory (15) includes a page table entry (304) corresponding to said virtual address (302) , said vector address generating unit (28B) including means for retrieving said page table entry and means for testing· (305) said page table entry to determine whether said virtual address (302) identified by said transfer vector instruction corresponds to a physical address in said main memory unit (15) .
3. A digital data processing unit (11) as defined in claim 2 wherein said page table entry (304) includes access rights information, said vector address generating unit (28B) including means for testing (305) eaid access rights information to determine whether access to the virtual address (302) identified by said page table entry is permitted and for initiating a predetermined operation if it is not.
4. A digital data processing unit (11) as defined in claim 2 wherein said page table entry (304) includes operational rights information, said vector address generating unit (28B) including means for testing (309) said operational rights information to determine whether a predetermined operation may be performed in connection with information identified by the virtual address (302) identified by said page table entry (304) and for initiating a predetermined operation if it is not.
5. A digital data processing unit (11) as defined in claim 1 further comprising a program module for enabling establishment in said main memory (15) of a physical address corresponding to the virtual address (302) which gave rise to said page fault indication, and a faulted instruction processing program module for enabling use of said restart information to process the vector instruction which resulted in the page faut indication using the established physical address.
6. A digital data processing unit (11) as defined in claim 5 wherein said instruction issue unit (22) establishes said restart information in the form of a restart information frame on a kernel stack (401-408) , the faulted instruction processing program module enabling process of the restart information frame on said kernel stack.
7. A digital data processing unit (11) as defined in claim 6 in which said instruction issue unit (22) establishes in said restart information frame (401-408) an indicator (407) indicating whether it had established a previous restart information frame on said kernel stack, the faulted instruction process program module using the indicator (407) to enable processing of said previous restart information frame.
8. A digital data processing unit (11) as defined in claim 1 wherein' said main memory unit (15) further stores, in said storage locations, scalar operands and scalar instructions, one type of said scalar instructions being a computational instruction for initiating a computational operation, and another type of said scalar instructions being a transfer scalar instruction for initiating a transfer operation and Identifying a second virtual address, said digital data processing unit further including: A. a scalar register (23) for storing a scalar operand; B. a scalar execution unit (e.g 25-26) for performing scalar operations identified by a scalar instruction of the computational type in connection with scalar operands in said scalar register (23); C. a scalar address generating unit (24) for performing, in response to receipt of an instruction of the transfer scalar instruction type, a scalar address translation operation to generate a second physical address in response to the second virtual address identified by the transfer scalar instruction corresponding to a physical address in said main memory unit (15) to enable a scalar operand to be transferred between the storage location identified by said second physical address and said scalar register (23) , and generate a second page fault indication if said second virtual address identified by said transfer scalar instruction does not correspond to a physical address in 9aid main memory unit (15); and D. wherein said instruction issue unit (22) iteratively retrieves scalar instructions from said main memory unit (15) and performs a scalar instruction issue operation to transfer a scalar instruction of said computational instruction type to said scalar execution unit (25) and to transfer an instruction of said transfer scalar instruction type to said scalar address generating unit (24) to enable it to perform the scalar address translation operation, said instruction issue unit (22) being responsive to a second page fault indication from said scalar address generating unit (24) to terminate performing instruction issue operations and to generate scalar restart information to identify the scalar instruction which resulted in the second page fault indication from eaid scalar address generating unit (24).
9. A digital data processing unit (11) as defined in claim 8 wherein said main memory (15) includes a page table entry (304) corresponding to said second virtual address, said scalar address generating unit (24) including means for retrieving said page table entry (304) and means for testing (305) said page table entry to determine whether said second virtual address identified by said transfer scalar instruction corresponds to a physical address in said main memory unit (15).
10. A digital data processing unit (11) as defined in claim 9 wherein said page table entry (304) includes access rights information, said scalar address generating unit (24) including means for testing (305) said access rights information to determine whether access to the second virtual address identified by said page table entry (304) is permitted and for initiating a predetermined operation if it is not.
11. A digital data processing unit (11) as defined in claim 9 wherein said page table entry (304) includes operational rights information, said scalar address generating unit (24) including means for testing said operational rights information to determine whether a predetermined operation may be performed in connection with information identified by the second virtual address identified by said page table entry (304) and for initiating a predetermined operation if it is not.
12. A digital data processing unit (11) as defined in claim 8 further comprising a program module for enabling establishment in said main memory (15) of a physical address corresponding to the virtual address which gave rise to said second page fault indication, and a faulted instruction processing program module for enabling use of said scalar restart information to process the scalar instruction which resulted in the second page fault indication using the established physical address corresponding to the virtual address which gave rise to said second page fault indication.
13. A digital data processing unit (11) as defined in claim 12 wherein said instruction issue unit (22) establishes said scalar restart information in the form of a restart information frame on a kernel stack (401408)., the faulted instruction processing program module enabling processing of the scalar restart information frame on said kernel stack.
14. A digital data processing unit (11) as defined in claim 13 in which said instruction issue unit (22) establishes in said restart information frame (401-408) an indicator (407) indicating whether it had established a previous restart information frame on said kernel stack, the faulted instruction processing program module using the indicator (407) to enable processing of said previous restart information frame.
15. A digital data processing system incorporating the digital data processing unit (11) according to any one of claims 1 to 14.
16. A digital data processing unit (11) as defined in claim 1, said main memory unit (15) further including a page table entry (304) corresponding to said virtual address (302), said page table entry (304) including access rights information and operational rights information, said vector address generating unit (28B) including: i. vector page table entry retrieving means (303) responsive to receipt of an instruction of the transfer vector instruction type, for retrieving a said page table entry; ii. vector page fault test means (307) for using a retrieved page table entry (304) to determine whether a virtual address identified by said received transfer vector instruction corresponds to a physical address in said main memory unit (15), and, if not, for generating a. page fault indication if said virtual address identified by said received transfer vector instruction does not correspond to a physical address in said main memory unit (15) ; iii. vector access rights test means (305) for testing the access rights information in the retrieved page table entry (304) to determine whether access to the virtual address identified by said retrieved page cable entry is permitted and for initiating a predetermined operation if it is not; iv. vector operational rights test means (309) for testing the operational rights information in the retrieved page table entry (304) to determine whether a predetermined operation may be performed in connection with information identified by the virtual address identified by said retrieved page table entry (304) and for initiating a predetermined operation if it is not; and v. vector address translation means (303) for performing an address translation operation to generate a physical address· in response to the virtual address identified by the transfer vector instruction corresponding to a physical address in said main memory unit (15) , to enable a vector operand to be transferred between the storage location identified by said generated physical address and said vector register, if said vector page fault test means (307) determines that the virtual address identified by the transfer vector instruction corresponds to a physical address in said main memory unit (15), said vector access rights test means (305) determines that the access to the virtual address identified by the transfer vector instruction is permitted, and vector operational rights test means (309) determines that the predetermined operation may be performed; and wherein said restart information generated by said instruction issue unit (22) comprises a restart information frame on a kernel stack (401-408) including an indicator (407) indicating whether it had established a previous restart information frame on said kernel stack; said digital data processing unit (11) further comprising a program module for enabling establishment in said main memory (15) of a physical address corresponding to the virtual address which gave rise to said page fault indication; and a faulted instruction processing program module (308) enabling processing of the restart information frame on said kernel stack, the faulted instruction process program module using the indicator (407) to enable processing of said previous restart information frame . computational computational
17. A digital data processing unit (11) as defined in claim 16, said main memory unit (15) further including a plurality of storage locations, each identified by a physical address, for storing scalar operands and scalar instructions, one type of said scalar instructions being a second instruction for initiating a second operation, and another type of said scalar instructions being a transfer scalar instruction for initiating a scalar transfer operation and identifying a second virtual address, said main memory unit (15) further including a page table entry (304) corresponding to each of said virtual addresses, each said page table entry (304) including access rights information and operational rights information, said digital data processing unit (11) further comprising: a scalar register (23) for storing a scalar operand; a scalar execution unit (25-26) for performing scalar operations identified by a scalar instruction of the computational type in connection with scalar operands in said scalar register; a scalar address generating unit including: i. scalar page table entry retrieval means (303) responsive to receipt of an instruction of the transfer scalar instruction type, for retrieving a second said page table entry; ii. scalar page fault test means (307) for using the second retrieved page table entry to determine whether said virtual address identified by said transfer scalar instruction corresponds to a physical address in said main memory unit (15) , and, if not, for generating a page fault indication if said virtual address identified by said transfer scalar instruction does not correspond to a physical address in said main memory unit (15), iii. scalar access rights test means (305) for testing the access rights information in the second retrieved page table entry to determine whether access to the virtual address identified by said second retrieved page table entry is permitted and for initiating a predetermined operation if it is not; iv. scalar operational rights test means (309) for testing the operational rights information in the second retrieved page table entry (304) to determine whether a predetermined operation may be performed in connection with information identified by the virtual address identified by said second retrieved page table entry and for initiating a second predetermined operation if it is not; and v. scalar address translation means (303) for performing an address translation operation to generate a second physical address in response to the virtual address identified by the transfer scalar instruction corresponding to a physical address in said main memory unit (15), to enable a scalar operand to be transferred between the storage location identified by said second generated physical address and said scalar register, if said scalar page fault test means (307) determines that the virtual address identified by the transfer scalar instruction corresponds to a physical address in said main memory unit (15), said scalar access rights test means (305) determines that the access to the virtual address identified by the transfer scalar instruction is permitted, and scalar operational rights test means (309) determines that the second predetermined operation may be performed; and said instruction issue unit further iteratively retrieving scalar instructions’ from said main memory unit and performing an instruction issue operation to transfer i. a scalar instruction of said computational instruction type to said scalar execution unit, and ii. a scalar instruction of said transfer scalar instruction type to said scalar address generating unit to enable it to perform an address translation operation.
18. A method of operating a digital data processing unit (11) connected to a main memory unit (15) including a plurality of storage locations, each identified by a physical address, for storing vector operands and vector instructions, one type of said vector instructions being a computational instruction for initiating a computational operation, and another type of said vector instructions being a transfer vector instruction for initiating a transfer operation and identifying a virtual address, said method including the steps of: A. iteratively retrieving vector instructions from said main memory unit (15) and performing an instruction issue operation to transfer an instruction of said computational instruction type to a vector execution unit (25) for processing and to a vector address generating unit (28B) if the instruction is of the transfer vector instruction type; and B. enabling said vector address generating unit (28B) to perform, in response to receipt of an instruction of the transfer vector instruction type, an address translation operation to generate a physical address in response to the virtual address identified by the transfer vector instruction corresponding to a physical address in said main memory unit (15) , to enable a vector operand to be transferred between the storage location identified by said physical address and said vector register, and generate a page fault indication if said virtual address identified by said transfer vector instruction does not correspond to a phyeical address in said main memory unit (IS) ; the method further comprising the steps of: C. in response to a page fault indication from said vector address generating unit (28B) resulting from 5 one of said vector instructions terminating performing instruction issue operations while permitting said execution unit (25) to continue to perform vector operations identified by other ones of said vector instructions that have already, been issued, and 10 generating restart information to identify the vector instruction which resulted in the page fault indication; D. establishing in said main memory (15) a physical address corresponding to the virtual address which gave rise to said page fault indication, and 15 E. using said restart information to process the vector instruction which resulted in the page fault indication using the established physical address.
19. A method as defined in claim 18 in which said
20. Restart information includes an indicator (407) that restart information had been previously generated, the using step including the step of using the indicator (407) to enable the unit to locate and process said previous restart information. 25 20. A digital data processing unit substantially as herein described with reference to the accompanying drawings.
21. A method of operating a digital data processing unit, substantially as herein described with 30 reference to the accompanying drawings.
IE198888A 1987-07-01 1988-06-30 Apparatus and method for recovering from page faults in vector data processing operations IE79236B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US07/069,372 US5063497A (en) 1987-07-01 1987-07-01 Apparatus and method for recovering from missing page faults in vector data processing operations

Publications (2)

Publication Number Publication Date
IE881988L IE881988L (en) 1989-01-01
IE79236B1 true IE79236B1 (en) 1998-04-22

Family

ID=22088550

Family Applications (1)

Application Number Title Priority Date Filing Date
IE198888A IE79236B1 (en) 1987-07-01 1988-06-30 Apparatus and method for recovering from page faults in vector data processing operations

Country Status (6)

Country Link
KR (1) KR890002763A (en)
CN (1) CN1021604C (en)
BR (1) BR8803380A (en)
DE (1) DE3855659T2 (en)
IE (1) IE79236B1 (en)
IN (1) IN169636B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2774788B1 (en) * 1998-02-12 2000-03-24 Bull Sa MEMORY ACCESS CONTROL METHOD ON A MACHINE WITH NON-UNIFORM ACCESS MEMORY AND MACHINE FOR CARRYING OUT SAID METHOD
KR100648414B1 (en) * 2003-11-26 2006-11-24 학교법인연세대학교 Electric Blood Pressure Measurement System With A Compensation Device of Error Rate
CN102200964B (en) * 2011-06-17 2013-05-15 孙瑞琛 Parallel-processing-based fast Fourier transform (FFT) device and method thereof
US9436477B2 (en) * 2012-06-15 2016-09-06 International Business Machines Corporation Transaction abort instruction
GB2549737B (en) * 2016-04-26 2019-05-08 Advanced Risc Mach Ltd An apparatus and method for managing address collisions when performing vector operations
CN114489506B (en) * 2022-01-21 2024-02-27 杭州海康存储科技有限公司 Storage access control device, method and storage device

Also Published As

Publication number Publication date
CN1030487A (en) 1989-01-18
BR8803380A (en) 1989-01-24
CN1021604C (en) 1993-07-14
DE3855659D1 (en) 1996-12-19
KR890002763A (en) 1989-04-11
IN169636B (en) 1991-11-23
IE881988L (en) 1989-01-01
DE3855659T2 (en) 1997-06-12

Similar Documents

Publication Publication Date Title
EP0297893B1 (en) Apparatus and method for recovering from page faults in vector data processing operations
US5341482A (en) Method for synchronization of arithmetic exceptions in central processing units having pipelined execution units simultaneously executing instructions
US5008812A (en) Context switching method and apparatus for use in a vector processing system
US5113521A (en) Method and apparatus for handling faults of vector instructions causing memory management exceptions
US5218712A (en) Providing a data processor with a user-mode accessible mode of operations in which the processor performs processing operations without interruption
US5148544A (en) Apparatus and method for control of asynchronous program interrupt events in a data processing system
JPS6255736A (en) Digital processor control
WO1989009454A1 (en) Method and apparatus for executing instructions for a vector processing system
JPH06236275A (en) Method and system for dispatch and execution of nonsequential instruction in superscalar processor system
IE79236B1 (en) Apparatus and method for recovering from page faults in vector data processing operations
US6295601B1 (en) System and method using partial trap barrier instruction to provide trap barrier class-based selective stall of instruction processing pipeline
US5278840A (en) Apparatus and method for data induced condition signalling
EP0297891A2 (en) Apparatus and method for main memory unit protection using access and fault logic signals
EP0307448B1 (en) Apparatus and method for synchronization of arithmetic exceptions in parallel pipelined execution units
EP0297892B1 (en) Apparatus and method for control of asynchronous program interrupt events in a data processing system
CA1302579C (en) Apparatus and method for providing an extended processing environment on nonmicrocoded data processing system
CA1303745C (en) Apparatus and method for data induced condition signaling
JP2814683B2 (en) Instruction processing unit
EP0333365A2 (en) Method and apparatus for handling asynchronous memory management exceptions by a vector processor
JPH06295252A (en) Computer
JPS59189452A (en) Queue structure for data processor

Legal Events

Date Code Title Description
MM4A Patent lapsed