AU626117B2 - Computer system architecture for improved floating point performance - Google Patents

Computer system architecture for improved floating point performance Download PDF

Info

Publication number
AU626117B2
AU626117B2 AU50673/90A AU5067390A AU626117B2 AU 626117 B2 AU626117 B2 AU 626117B2 AU 50673/90 A AU50673/90 A AU 50673/90A AU 5067390 A AU5067390 A AU 5067390A AU 626117 B2 AU626117 B2 AU 626117B2
Authority
AU
Australia
Prior art keywords
cache
floating point
data
primary
information
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
AU50673/90A
Other versions
AU5067390A (en
Inventor
Eric Hartwig Jensen
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sun Microsystems Inc
Original Assignee
Sun Microsystems Inc
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
Application filed by Sun Microsystems Inc filed Critical Sun Microsystems Inc
Publication of AU5067390A publication Critical patent/AU5067390A/en
Application granted granted Critical
Publication of AU626117B2 publication Critical patent/AU626117B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure
    • G06F12/0897Caches characterised by their organisation or structure with two or more cache hierarchy levels

Description

I/
I
626117 COMMONWEALTH OF AUSTRALIA PATENTS ACT 1952 COMPLETE SPECIFICATION NAME ADDRESS OF APPLICANT: Sun Microsystems, Inc.
2550 Garcia Avenue Mountain View California 94043 United States of America NAME(S) OF INVENTOR(S): Eric liartwig JENSEN ADDRESS FOR SERVICE: DAVIES COLLISON ?'eiat Attorneys 1 Little Collins Street, Melbourne, 3000, COMPLETE SPECIFICATION FOR THE INVENTION ENTITLED: Computer system architecture for improved floating ;-.int perforuiance The following statement is a full description of this invention, including the best method of performing it known to me/us:- 1 BACKGROUND OF THE INVENTION 1. Field of the Invention: This invention relates to computer system architecture and, more particularly, to a system architecture for cache based systems to improve the floating point performance of such systems.
2. History of the Prior Art: Caches are used in computer systems to speed the overall operation of io the system. The theory of a cache is that a system attains a higher speed by e using a small pcrtion of very fast random access memory (RAM) as a cache :4 memory along with a larger amount of slower main memory RAM. If data and instrucuions are called from main memory and placed in cache memory as they are required by the program, and if the system looks first to the cache to see if the information required is available there, then the system will usually find o,,e information desired in the cache and will, consequently, operate at a speed as though it were made of mostly high speed cache memory. This occurs because, statistically, information in any particular portion of a process which has just been used is more likely to be required immediately than is other information which has not been recently used.
This assumption has proven true, in general, so that in a well designed caching system the information desired is found 'n the cache over ninety percent of the time. On the other hand, the assumption is most accurate when describing the operation of a cache with the instructions of a particular process and is least accurate when applied to the retrieval of data, especially scientific data. This appears to be true because of the nature of the particular information 82225.P095 -la- I~C-4L~IL_~e i~ I C- _1 sought. For example, in executing a process instructions are often repeated over and over again to carry out a single operation. Data, on the other hand, appears to be less likely to be selected in such a manner without change.
Moreover, scientific data is often stored in the form of floating point information which requires for its storage substantially more actual storage space than do individual instructions. For example, a floating point number may require a double word space for storage in a typical computer system. Moreover, the tendency of scientific programmers is to arrange data in large arrays. Typically such arrays require so much memory storage space that the entire array ao. 1 o cannot be placed in the typical cache memory space of a typical computer system. For the foregoing reasons, cache based systems have not proven as capable in speeding the operation of computer systems used in the processing of scientific information, especially processing involving large amounts of floating point numbers.
SUMMARY OF THE INVENTION aa It is, therefore, an object of the present invention to accelerate the operation of cached based computer systems used for processing floating point numbers.
It is another object of this invention to provide a computer system architecture capable of rapidly processing floating point numbers.
These and other objects of this invention are realized in a computer system which comprises a central processing unit, a primary data cache, a 82225.P095 I 7
V
secondary data cache, and a tertiary cache, and in which the primary data cache is a direct mapped cache, and the secondary data cache is a fully associative data cache, the primary data cache having individual lines capable of storing a predetermined amount of information at least equivalent to one word length in the computer system, the secondary data cache having lines each capable of storing a significant number of storage words.
These and other objects and features of this invention will be better understood by reference to the detailed description which follows taken 1 together with the several figures of the drawing in which like elements have been referred to by like designations throughout the several views.
BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram illustrating a computer system designed in accordance with the invention; Figure 2 is a block diagram illustrating the construction of the primary caches of the invention; Figure 3 is a block diagram illustrating the construction of the secondary cache of the system of this invention; Figure 4(a) and are diagrams illustrating various sequences of timing signals in the integer pipeline utilizing the comp,,ter system of this invention.
82225.P095 Figure 5 is a diagram illustrating various sequences of timing signals in the floating point pipeline utilizing the computer system of this invention.
NOTATION AND NOMENCLATURE Some portions of the detailed descriptions which follow are presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art.
An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. UsLually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and Bo are merely convenient labels applied to these quantities.
Further, the manipulations performed are often referred to in terms, such as adding or comparing, which are commonly associated with mental operations performed by a human operator. No such capability of a human operator is necessary or desirable in most cases in any of the operations 82225.P095
U-
described herein which form part of the present invention; the operations are machine operations. Useful machines for performing the operations of the present invention include general purpose digital computers or other similar devices. In all cases the distinction between the method operations in operating a computer and the method of computation itself should be borne in mind. The present invention relates to both apparatus and to method steps for operating a computer in processing electrical or other mechanical, chemical) physica! signals to generate other desired physical signals.
DETAILED DESCRIPTION OF THE INVENTION Referring now to figure 1 there is shown a computer system constructed in accordance with this invention. The computer system includes a central processing unit (CPU) 12 which controls the operation of the system 10. Associated with the central processing unit 12 are a data cache 14 and an instruction cache 16. The data cache 14 and the instruction cache are referred to in the present description as primary caches. Each of these caches is essentially the same so reference will be made hereinafter (except where the explanation requires otherwise) to the data cache 14. Associated with the central processing unit 12 in the system 10 is a secondary cache 18. Also associated with the central processing unit 12 in the system 10 is a tertiary cache 20. The system 1i0 also incorporates a floating point processor 22 which is associated with the various caches of the arrangement and is essentially capable of independently processing floating point numbers in a manner well known to the prior art. In a preferred embodiment, the two primary caches 14 and 16 are direct mapped caches each containing storage space sufficient for 82225.P095 eight kilobytes of information. In contrast, the secondary cache 18 is a fully associative cache providing storage space for four kilobytes of information. In contrast to both of the primary caches and the secondary cache, the tertiary cache 20 is capable of storing two megabytes of information and may be a direct mapped cache in the preferred embodiment of the invention.
Figure 2 illustrates in block diagram form the arrangement of one of the primary caches. The preferred embodiment of the system 10 is designed as a virtual memory system using a demand paged memory management lo arrangement. In such a system, main memory (not illustrated) is divided into a number of fixed blocks or pages of a predetermined size, height, and width; and primary cache memory is chosen to have the size of one of those pages so that main memory is essentially a multiple of primary cache memory size. Each page of main memory has a page address. Sinzo each page of the main memory and of primary cache memory is of the same size, contains the same number of lines, and stores the same amount of information, any byte, word, or S .line in such a system may be addressed in main memory by designating its page number, its line, and its position on the line. When, in such a system, information from main memory is stored in such a primary cache memory, it is i 20o stored in the same line of the primary cache memory as the line of the page from which it was accessed in main memory together with its virtual page address in main memory. It should be understood that each line of the primary cache memory in such a system may come from any particular page of main memory.
Consequently, lines lying adjacent each other in primary ache memory may have entirely different virtual page addresses. The virtual page address is stored as part of a tag field, a series of high order bits of the address which in addition to the page designation include protection and control information 82225.P095 LLLL-~~ U -CJC~ Y_ L~LIL~IZ_ I L L such as whether the information is read or write protected and whether the information is valid. In a preferred embodiment of the system 10, such a tag field may require approximately sixteen bits of storage to represent the tag information and is shown to the left in the cache memory 14 in Figure 2.
A system 10 capable of accessing any line in primary cache memory may determine whether the requirad information is in the cache memory (whether there is a hit) by looking to the particular line designated in the address sought to determine whether the correct page number is stored in the 1 0 tag field. The system determines the correct line by looking to the low order bits of the address sought (these designate the line and byte of the page in main memory from which the information came) and comparing these to the line number of the cache memory. If the virtual page address at the desired line in the cache memory matches the desired virtual page address, then there is a hit; and the information in the cache memory is used without the necessity of going to main memory. If the information is not present in the primary cache memory, Sthen the system interrogates the other secondary and tewary caches. If the o information is not present in any of the cache memories, then the system must delay, go to main memory, replace the particular line in the primary cache memory so that the information may be used.
In the primary cache 14 illustrated in Figure 2, in addition to the tag field shown to the left, information is stored from the particular page in memory in each line of the address. In the preferred embodiment, eight bytes of information are stored in each line; consequently, sixty-four individual storage bits are required for the information positions. Such an arrangement is one which may not conveniently be utilized to handle floating point information.
82225.P095 5 '-rl -I _1 I 6 Floating point information requires one double word or an entire line to store a single entry; and any particular array of floating point data may, in general, require much more storage space than that available in the primary caches.
The secondary cache memory 18 shown in Figure 3 is designed to obviate this problem. The secondary cache 18 is a fully associative cache having in the preferred embodiment sixteen lines each capable of storing a total of 256 bytes of information. Consequently, in each line of secondary cache 18 there is provision for thirty-two double words of data. A fully associative cache 1 o always holds the contents of the last X memory lines accessed by the central processing unit where X is equal to the number of lines in the fully associative cache memory. In a fully associative cache memory, any line may store information from any line in main memory so the tag field includes the entire address of the line. With each attempt to access the secondary cache, the tag field of each line is compared to the address desired and if a match is made the entire line is available to the central processing unit for utilization.
It will be noted that since each line of the secondary cache is capable of storing thirty-two double words, this provides room in each line for thirty-two individual floating point numbers sequentially arranged. It happens that this is the usual way in which floating point arrays are usually constructed.
o Consequently, the secondary cache memory 18 is much more able to deal with the large arrays utilized by programmers in scientific fields for the storage of floating point information. For -xample, a first access of the secondary cache which misses will cause the central processing unit to take an entire line of sixty-four sequentially arranged floating point numbers from main memory and store them in the secondary cache at one line. On the next attempt to access 82225.P095 the secondary cache, the next sequential floating point number will be a hit, as will the next, and the next so long as the access asks for sequentially arranged numbers.
Although fully associative caches are normally not used where speed is required because it is difficult to address all cache positions in a short time, the small number of lines (sixteen in the secondary cache of the preferred embodiment) allows the practical use of a fully associative cache memory since only a small number of lines need to be interrogated to determine whether 1 0 the information sought resides at the secondary cache 18.
0 In the arrangement illustrated in Figure 1, the secondary cache 18 is associated with the tertiary cache 20 which is capable storing two megabytes of information. This cache is large enough to store large portions of arrays of floating point numbers used in scientific processing. Consequently, when used together with the secondary cache which is able to provide lines of thirty-two floating point numbers in a row which may be sequentially accessed without a cache miss, the combination substantially speeds the system operation.
The system illustrated in Figure 1 utilizing the three levels of caching functions well to provide both data and instructions rapidly upon access by the S central processing unit 12 and the floating point processor 22. For example, information in the two primary caches 14 and 16 is available to either of the two processors 12 and 22 in a single processing time because only a single clock time is required for the access once the operation has begun. The operation of accessing the secondary cache memory 18 requires an additional two clock times before access is begun but only a single processing time once the cache 82225.P095 has been accessed. On the other hand, the operation to derive information from the tertiary cache memory requires two clock times before access is begun and a total of six clock times once access has been gained. Thus, although the primary caches may be accessed immediately, the additional times before access is begun of the secondary cache and the tertiary cache means that some delay is still inherent in the system even with the three levels of caching.
The system of the invention so far described may be made to operate 1 0 substantially faster if used with its timing varied from that usual in pipelining systems. Figure 4(a) illustrates a timing diagram showing the usual integer a pipeline in a pipeline system. The diagram includes three lines of three instructions; a first load instruction, a second use instruction, and a third use instruction. It will be seen that each instruction includes a first fetch phase implemented by a program control unit of the CPU, a second execution phase implemented by the execution unit of the CPU, a third data access phase of the primary data cache by the data fetch unit of the CPU, and fourth data access phase of the secondary cache by the data fetch unit of the CPU. The fetch operation for the first instruction takes place at time TO. The execution phase for the first instruction which includes decode and execution and the initiation of the fetch from both the primary and the secondary caches takes place at time T1. The data is available from the primary cache at the end of time T2, and the data is available from the secondary cache at the end of time T4. This true of the normal execution of the second and third instructions as well except that the times for the second instruction are shifted by one clock period from the first, and the times for the third instruction are shifted by one clock period from the second.
82225.P095 V If the second "use" instruction desires to use data produced in the load instruction, that data is not available from the primary cache until the end of time T2 while the use of the data should occur during time T2. This is called an interlock condition, and causes the loss of substantial time in the system. If the data from the load instruction in to be used in instruction three, it is available at the beginning of the execution phase and no delay is incurred. In order to expedite the operation of the system and relieve interlock condition, the CPU provides a modified timing arrangement in the integer pipeline. In this modified timing shown in Figure the execution phase of the instructions is delayed by one time so that the data is always available from a hit in the primary cache for a use instruction which immediately follows a load instruction. If the information is not available in the primary cache, then the CPU detects the miss and causes the system to stall until the information becomes available either from the secondary or the tertiary cache. In this manner, the operation of the integer pipeline of the system using the invention is expedited.
o In loading integer data, if the primary cache is accessed and a miss occurs but there is a hit in the secondary cache, then both the CPU and the primary cache are loaded. If misses occur in both the primary cache and the secondary cache, but a hit occurs in the tertiary cache, then the CPU, the primary cache, and the secondary cache are all loaded with the data.
The SPARC line of computers manufactured by Sun Microsystems, Inc., 2550 Garcia Ave., Mountain View, CA. includes circuitry for accomplishing the timing arraigement described above.
-11- 82225.P095 The timing for the floating point pipeline is somewhat different in order to make use of the long-lined secondary cache which is specially adapted to hold sequences of floating point numbers. Figure 5 illustrates two instruction for implementing the floating point pipeline. The first instruction is a load instruction which is an integer type of instruction and is, consequently, arranged in the same manner as the first load instruction of Figure Since it is probable that the data sought in a floating point operation will be available in the secondary cache, the execution stage of the floating point use operation is delayed until both the primary data cache and secondary data cache lo accesses have occurred. The second instruction shown in Figure 5 is an fadd "use" instruction. Its fetch occurs at time T1 and is followed by three wait times.
At time T5, the execution phase begins. At this time, the data in the secondary cache has been accessed so that it is available to the floating point instruction.
The instruction shown has two execution stages in order to allow for the execution of double floating point operations. Since execution is not attempted until data is available from both the primary and secondary caches, the apparent access time for both primary and secondary caches is the same; and the CPU need not stall the system. This substantially 'ncreases the speed of the system.
The operation for loading the caches in a floating point operation is o S somewhat different than for integer load because the execution phase of the instruction is rearranged so that the observed access time in the primary cache and the secondary cache is the same. If there is a miss in the primary cache and a hit in the secondary cache in a floating point operation, the primary cache is not filled; there is no reason to fill the primary cache in a floating point operation since the apparent time for accessing the primary and secondary -12- 82225.P095 caches is the scne. On the other hand, if there is a miss in the secondary cache and a hit in the tertiary cache, both the primary cache and the secondary cache are filled.
Although the invention has been described in a preferred emhodiment, it will be clear to those skilled in the art that many modifications may be made to the invention described without departing from the spirit and scope of the invention. For example, although the long delay to allow for access of the secondary cache has been demonstrated with regard to floating point operations, it might as well be applied to integer operations if the occasion for using information from the secondary cache arises. Moreover, any secondary memory which operates with an apparent pipelined cycle time near or equal to the processor cycle time might replace the secondary cache. It will, therefore, be appreciated that the invention should be considered to be particularly defined by the claims which tcllow.
13- 82225.P95 -13- 82225.P095
L

Claims (4)

  1. 6. A computer system as claimed in Claim 4 further comprising means for delaying the execution phase of a floating point instruction until the access of data in the both the primary cache and the secondary cache have occurred in the next previous instruction.
  2. 7. A computer system as claimed in Claim 2 further comprising means for delaying the execution phase of a floating point instruction until the access of data in the both the primary cache and th- secondary cache have occurred in the next previous instruction.
  3. 8. A computer system as claimed in Claim 7 in which the means for delaying the execution phase of a floating point instruction delays the execution phase by three timing periods, S 15 9. A computer system substantially as hereinbefore described with reference to Sthe drawings, DATED this 5th day of May, 1992 S 25 SUN MICROSYSTEMS, INC. By its Patent Attorneys DAVIES COLLISON CAVE
  4. 920505.gcpdal. 29,50673.C,
AU50673/90A 1989-08-31 1990-03-05 Computer system architecture for improved floating point performance Ceased AU626117B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US40102189A 1989-08-31 1989-08-31
US401021 1989-08-31

Publications (2)

Publication Number Publication Date
AU5067390A AU5067390A (en) 1991-03-07
AU626117B2 true AU626117B2 (en) 1992-07-23

Family

ID=23585942

Family Applications (1)

Application Number Title Priority Date Filing Date
AU50673/90A Ceased AU626117B2 (en) 1989-08-31 1990-03-05 Computer system architecture for improved floating point performance

Country Status (3)

Country Link
AU (1) AU626117B2 (en)
GB (1) GB2235554B (en)
HK (1) HK53894A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2256512B (en) * 1991-06-04 1995-03-15 Intel Corp Second level cache controller unit and system
DE4306077A1 (en) * 1992-02-27 1993-09-02 Hewlett Packard Co
US5649154A (en) * 1992-02-27 1997-07-15 Hewlett-Packard Company Cache memory system having secondary cache integrated with primary cache for use with VLSI circuits
US5566324A (en) * 1992-12-24 1996-10-15 Ncr Corporation Computer apparatus including a main memory prefetch cache and method of operation thereof
US6081872A (en) * 1997-07-07 2000-06-27 International Business Machines Corporation Cache reloading performance improvement through the use of early select techniques with and without pipelining

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0334479A2 (en) * 1988-03-24 1989-09-27 Nortel Networks Corporation Pseudo set-associative memory cacheing arrangement

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0334479A2 (en) * 1988-03-24 1989-09-27 Nortel Networks Corporation Pseudo set-associative memory cacheing arrangement

Also Published As

Publication number Publication date
AU5067390A (en) 1991-03-07
GB2235554A (en) 1991-03-06
GB2235554B (en) 1993-11-17
GB9004877D0 (en) 1990-05-02
HK53894A (en) 1994-06-03

Similar Documents

Publication Publication Date Title
US5214765A (en) Method and apparatus for executing floating point instructions utilizing complimentary floating point pipeline and multi-level caches
US5091851A (en) Fast multiple-word accesses from a multi-way set-associative cache memory
US5737750A (en) Partitioned single array cache memory having first and second storage regions for storing non-branch and branch instructions
CA1151293A (en) Cache memory organization
US5371864A (en) Apparatus for concurrent multiple instruction decode in variable length instruction set computer
US6598127B2 (en) Information processing system with prefetch instructions having indicator bits specifying a quantity of operand data for prefetching
EP0042000B1 (en) Cache memory in which the data block size is variable
US4530049A (en) Stack cache with fixed size stack frames
JP2625277B2 (en) Memory access device
US5649144A (en) Apparatus, systems and methods for improving data cache hit rates
US6779102B2 (en) Data processor capable of executing an instruction that makes a cache memory ineffective
US5073891A (en) Method and apparatus for testing memory
US4969122A (en) Apparatus for page tagging in a computer system
CA2058259C (en) Apparatus for increasing the number of hits in a translation lookaside buffer
US5257360A (en) Re-configurable block length cache
US3594732A (en) General purpose digital computer
US3701977A (en) General purpose digital computer
US4688188A (en) Data storage apparatus for storing groups of data with read and write request detection
US4761731A (en) Look-ahead instruction fetch control for a cache memory
US6665768B1 (en) Table look-up operation for SIMD processors with interleaved memory systems
AU626117B2 (en) Computer system architecture for improved floating point performance
US6553478B1 (en) Computer memory access
US7197620B1 (en) Sparse matrix paging system
US5319761A (en) Directory look-aside table for a virtual storage system including means for minimizing synonym entries
US5179681A (en) Method and apparatus for current window cache with switchable address and out cache registers

Legal Events

Date Code Title Description
MK14 Patent ceased section 143(a) (annual fees not paid) or expired