GB2228116A - Pipelined floating-point load instruction for microprocessor - Google Patents
Pipelined floating-point load instruction for microprocessor Download PDFInfo
- Publication number
- GB2228116A GB2228116A GB8925453A GB8925453A GB2228116A GB 2228116 A GB2228116 A GB 2228116A GB 8925453 A GB8925453 A GB 8925453A GB 8925453 A GB8925453 A GB 8925453A GB 2228116 A GB2228116 A GB 2228116A
- Authority
- GB
- United Kingdom
- Prior art keywords
- data
- bus
- cache
- memory
- external
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/3004—Arrangements for executing specific machine instructions to perform operations on memory
- G06F9/30043—LOAD or STORE instructions; Clear instruction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0888—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches using selective caching, e.g. bypass
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/80—Architectures of general purpose stored program computers comprising an array of processing units with common control, e.g. single instruction multiple data processors
- G06F15/8053—Vector processors
- G06F15/8061—Details on data memory access
- G06F15/8069—Details on data memory access using a cache
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
- G06F9/3824—Operand accessing
- G06F9/383—Operand prefetching
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
- G06F9/3867—Concurrent instruction execution, e.g. pipeline or look ahead using instruction pipelines
- G06F9/3875—Pipelining a single stage, e.g. superpipelining
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Advance Control (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
1 1 PIPELINED FLOATING-POINT LOAD INSTRUCTION EQ13 MICROPROtIESSOR
FIELD OF THE INVENTION
This invention relates to the field of semiconductor microprocessors, particularly those processors which are able to access data in an external memory.
PACKGROUND OF THE INVENTION The present invention covers a pipelined floating-point load instruction which may be implemented within the bus control unit of a microprocessor. The microprocessor utilized with the present invention is the Intel 86OTM Microprocessor, frequently referred to as the N1OTM processor. (Intel is a registered trademark of Intel Corporation).
The N10 processor is a 32/64-bit lEE1E compatible floating-point processor, a 32-bit RISC integer processor and a 64-bit 3-dimensional graphics processor. Using a numerics processor optimized for both vector and scalar operations, it represents the industry's first integrated high performance vector processor incorporating over one million transistors and providing about 112 of the performance of the Crayl, all on a single chip.
All processors have some form of load instruction that can access information from either an external memory or an intemal data cache.
Access to externally stored data is usually made via an external data bus controlled by the internal logic of the processor. The rationale of using a data cache is to provide efficient access to frequently used information, thereby accelerating processing speed. In processors that utilize a data cache, normal load instructions will operate most efficiently if the data information is resident in the onchip cache. That is, if the data is not in the cache there is a penalty in performance when accessing the data.
Typically, when external data is referenced using a normal load instruction it is stored in the cache. The reason for this is that, under normal conditions., -data which has just been referenced is very likely to be referenced again in the near future. The data access penalty is minimized by providing the most frequently accessed information in the internal data cache while reserving external memory for seldomly referenced or reused information. It is the principle of locality which makes the data cache a useful tool since programs tend to reference certain data repeatedly in the near future.
A problem arises however, when a processor is required to deal with very large data structures or, in any event, data structures that are much bigger than that which the data cache can normally hold. As an illustration of the difficulty that can arise, a processor is often required to perform a variety of floating-point operations, such as matrix inversion, multiplication, etc., which require manipulation of huge data matrices. In prior art processors when the data is not in the onchip data cache, the processor must freeze execution and request access from external memory. During the time that execution is frozen, the processor is prevented from issuing any new addresses to memory. In other words, the processor must wait for the data for the first operation to arrive from external memory, before continuing its operations. As a result, this type of access to external memory can take six clock cycles or longer. Thus, a substantial delay is introduced into the processing speed of the system when frequent access to external memory is mandated by the size of the data structures involved.
Another problem related to the handling of large data structures arises when the externally accessed data is brought into the processor. AS external data is delivered to the processor, it is written into the cache -usually replacing previously resident data. However, it should be remembered that some external data (most commonly in the case of large data structures) is infrequently referenced information, i.e., h is not expected to be reused, while the replaced data in the cache is information that is very likely to be referenced repeatedly in the near future. Therefore, the 0 processor is tossing out data that needs to be reused in favor of data that will in all likelihood only be referenced once. As a consequence, an inordinate amount of time is spent recalling the replaced cache data. This increased accessing time is another reason why prior art processors run at a much slower rate than is achieved by the present invention.
As will be seen, the present invention implements a pipeline structure which is capable of processing memory operations at a much faster rate (essentially at the full bus bandwidth) without any delay of waiting for the processor to generate the next address. By using this pipelined structure, the processor associated with the present invention can continue issuing addresses without having to wait for the arrival of the data from external memory. This capability enhances the presently described microprocessor when compared to prior art processors.
To achieve this performance, the present invention provides a pipelined floating-point load instruction to rapidly access data stored in external memory. This pipelined floating-point load software instruction, which is more easily referred to as WLoad" or Wid', may be used by a programmer to access data which is stored either in the onchip data cache or in an external memory system. The instruction is optimized for the situation in which the data is not already residing within the processor's internal data cache. This situation is referred to as a "cache miss" or, phrased alternatively, a WLoad miss". The opposite case in which the data that is to be loaded is already stored within the data cache -- called a cache hit" -- is also handled by the present invention.
Additionally, the Moad instruction of the present invention does not replace data already resident within the data cache, but rather directs the newly accessed data to a storage location within the floating point unit of the processor. The Moad instruction will be discussed in conjunction with its current implementation in the bus control unit of the N10 processor.
1 1s.---_1 SUMMARY OF THE INVENTION
A specialized microprocessor instruction optimized for accessing floatingpoint data stored in an external memory system is described. The invention utilizes the pipelined architecture of the microprocessor to efficiently retrieve external data that is unlikely to be reused again in the near future; transferring the data directly to a fioating-point data latch. Frequently referenced data resident in the onchip data cache remains undisturbed.
The pipelined floating-point load instruction of the present invention includes a first-in-first-out (FIFO) memory for accumulating the accessed data. In conjunction with the FIFO, a first circuit means is provided for delivering the data from external memory to the FIFO, and a second circuit means is provided for transferring the data from the FIFO to the floating point data latch. The second circuit means also couples data from the data cache back to the FIFO in the event of a cache hit (i.e., the referenced data actually resides in the data cache). Finally, a bus control means is provided, coupled to the first and second circuit means, for controlling the pipelined flow of data from the external memory system to the floating- point unit.
One object of the present invention is to provide a pipelined instruction which is capable of processing memory operations at a much faster rate than prior art processors. As such, the present invention can continue issuing addresses without having to wait for the arrival of the actual data from external memory.
Another object of the present invention is to provide access to external data without replacing data already resident in the onchip data cache. By doing so, the present invention minimizes total accessing time; thereby increasing operation speed.
A further object of the present invention is to provide an efficient and fast means for handling arithmetic operations involving very large data structures.
1 -_ -5BRIEF DESCRIPTION OF THE DRAWINGS
The present invention will be understood more fully from the detailed description given below and from the accompanying drawings of the preferred embodiment of the invention, which, however should not be takeR to limit the invention to the specific embodiment but are for explanation and understanding only.
Figure 1 illustrates the logical partitioning of the processor associated with the pipelined floating-point load instruction of the present invention.
Figure 2 shows the currently preferred embodiment of the pipelined floating-point load instruction of the present invention.
Figure 3 illustrates a series of pipelined floating-point load instructions which have been issued for a typical operation involving a vector matrix stored in external memory and an internal vector stored in the onchip data cache. The addresses associated with each pipelined floating-point load instruction and their associated floating-point storage locations are provided.
Figure 4 shows an alternative embodiment of the present invention.
Figure 5a illustrates one embodiment of the pipelined floating-point load first-in-first-out memory incorporated in the present invention.
Figure 5b shows the currently preferred embodiment of the first-in first-out memory incorporated in the present invention.
Figure 6 is a flow chart depicting the control operations provided by the bus control logic associated with the Moad instruction of the present invention.
1 ( 'I ' -7 PETAILIED DESCRIPTION OF THE INVENTION
A microprocessor comprising a pipelined floating-point load instruction for loading of data from external memory is described. In the following description, numerous specific details are set forth, such as bit lengths, etc., in order to provide a thorough understanding of the present invention. It will be obvious, however, to one skilled in the art that these specific details need not be used to practice the present invention. In other instances, well-known structures and circuits have not been shown in detail in order not to unnecessarily obscure the present invention.
Referring to Figure 1 a partitioned view of the N1 0 processor is shown. The N10 processor is logically and physically divided into eight separate units.
The arithmetic unit 35 comprises a floating-point adder unit which supports 1ElEE standard double and single precision addition, and a floating-point multiplier unit, also supporting 1ElEE standard single and double precision floating-point multiplication. Both the adder and multiplier units have 3-stage pipeline capability. During operation, the input operands represented by mnemonics srcl and src2 are presented to the arithmetic unit 35 along lines 42 and 43, respectively. The mnemonics srcl and src2 (as well as desl denote one of the 32 floating-point registers located within the N10 processor. The result output from arithmetic unit 35 appears on line 49 which is coupled to 64-bit destination bus 41.
Buses 41-43 are each 64-bits in length and are coupled to floating-point control unit 33. Floating-point source operands srcl and src2 are also provided to graphics unit 34.
Graphics unit 34 is a 64-bit graphics processor providing high speed 3-dimensional graphics and pixel calculation for different shading algorithms and z-buffer check for hidden surface elimination. The graphics processor is capable of merging the results of several operations and for providing a result along line 45 to destination bus 41.
The instruction cache 20, also referred to as the hunit, supplies 32-bit integer and a 32-bit floating-point instructions to both the RISC core 31 and the floating-point control unit 33, along lines 24 and 25, respectively. The instruction cache is a two-,way set-associative memory of four K-bytes. with 32-byte blocks. The instructions are provided by cache 20 in each clock to the respective buses.
Memory management unit 21 performs the translation of the virtual address to the physical address for data and instruction access, checks for access Violation and compares the physical addresses of the current cycle to the previous cycle for generation of the next nearest signal all in one clock. The translation is done using a translation-look-aside buffer (TLB) which is an associative cache with 64 entries. Memory management unit 21 receives its inputs along 32-bit buses 26 and 27, output from RISC core 31.
RISC core 31, also referred to as the execution core or E-unit, performs all 32-bit integer and load/store operations. h is the central controller of the N10 processor. It has a 3-port register file with 32- bit registers, a bypass network, a shifter, an ALU and the instruction pointers. Core unit 31 fetches both integer and floating-point instructions. It contains the integer register file, and decodes and executes load, store, integer, bit, and control-transfer operations.
Data cache unit 22 provides data caching and byte alignment for the read/write operations of the N10 processor. The cache data exchange is provided between data cache 22 and floating-point control unit 33 through bus 37. The data cache 22 may also receive external data through the bus control unit 30 on 64-bit bus 29.
Bus control unit 30 (also referred to as the B-unit) is the bus cycle controller which interfaces between the external bus and the internal chip. 11 gets bus cycle requests from the E-unit, performs the data and instruction caches access, handles cache miss cases including freeze control and cache line replacement, controls the TLB translation, miss and fault V--- 1 processing and provides the interface to the external bus. The pipelined floating-point load instruction which is the subject matter of the present invention, is implemented within bus control unit 30 of the N10 processor.
The bus controller has a pipelined architecture that allows up to three outstanding bus cycles.
In the architecture of many modern microprocessors, pipelining is used to increase the rate at which operations may be introduced or performed. The pipelined architecture treats each operation as a series of more primitive operations (called stages) that can be executed in parallel.
In the N10 processor, the number of pipeline stages may range from 1-3. A pipelined operation with a 3-stage pipeline stores the result of the third prior operation. A pipellned operation with a 2-stage pipeline stores the result of the second prior operation. A pipelined operation with a 1-stage pipeline stores the results of a prior operation. The N10 processor supports 3- level bus cycle pipelining on the external bus, so there may be up to 3 bus cycles issued before the data for the first cycle has returned. Additionally, the internal address path in the B-unit is pipelined in such a way that the address translation for the next cycle is done in parallel with the current external bus cycle.
As previously mentioned, the PFLoad instruction is used to access infrequently used data, i.e., data that is not expected to be reused in the near future, from external memory. As such, the Moad control logic which resides within the bus control unit, is optimized for the case of a cache miss.
A "cache miss" refers to the situation in which PFLoad data is not already resident within the data cache unit.
Figure 2 shows a preferred embodiment of the instruction of the present invention. The PFLoad instruction returns data from external memory along 64-bit bus 40. The returned data is the data that was addressed by the third previous PFLoad instruction in accordance with the pipelined nature of the N10 processor. Tri-state buffer 60 is used to drive the external data to the V input of MUX 62 and also to the DBS input of -10 MUX 67. Buffer 60 is coupled to multiplexer 62 and 67 through line 61.
Buffer 60, as well as drivers 69, 74 and 75, comprise ordinary tri-state logic drivers. Similarly, multiplexers 62 and 67 comprise ordinary logic circuitry as used in the preferred embodiment. Control for tri-state drivers 60, 69. 74 and 75, as well as multiplexer 62 and 67, is provided by bus control logic within the B-unit. This control logic has been synthesized by a computer from a high-level, functional language description of the bus control unit. A flow chart of the control operations provided by the B-unit is discussed later.
The implementation of the PFLoad instruction also includes a PFLoad first-in-first-out (FIFO) memory 6.5 coupled from the output of multiplexer 62 on line 63. FIFO 65 produces an output along 66 which is coupled to the PFLoad input of MUX 67.
In the currently preferred embodiment, FIFO 65 is 64-bits long and, 3 words deep. PFLoad FIFO 65 contains the 64-bit data referenced by the three previous PFLoad instructions. When the processor is initialized, or following a reset, the contents of the FIFO are undefined. Consequently, unuseable data or garbage is returned for the first three PFLoad instructions (programmers must ignore the data returned for the first three PFLoad instructions issued).
Multiplexer 67 has one input for receiving data output from the top of FIFO 65 and another input for receiving data directly from external memory.
External data is directly delivered to MUX 67 via line 61. FIFO 65 is connected to MUX 67 by line 66. The output of MUX 67 appears on fine 68 which is coupled to tri-state buffer 69. Tri-state bus buffer 69, in turn, is coupled to a 64-bit internal bus called a BIBUS, which is shown in Figure 2 as fine 29. As its name indicates, this bus is bi-directional, delivering data to the floating-point unit as well as returning data from the cache to MUX 62.
BIBUS 29 is coupled to DABUS 76, also 64-bits in length, through butter 75.
DABUS 76 connects floating-point input data latch 78 to data cache 70. As previously mentioned, BIBUS 29 is bi-directional to allow the return of data already residing in data cache 70 to MUX 62 in the event of a cache hit.
R ji U Data in the cache is coupled to the BIBUS along line 79 through buffer 74.
When the N 10 processor needs to access data, that data may either be found in an external memory system or within the internal data cache. When the data is external to the N10 processor, the PFLoad instruction acts to load data from external memory, using external bus 40, through multiplexer 62 into PFILoad FIFO 65. After three successive PFLoad instructions have been issued (corresponding to successive FIFO stages), the initial data is produced on line 66; thereafter delivered onto BIBUS 29. After the FIFO is full, each normal PFILoad cycle transfers the data from the top of the FIFO to BIBUS 29, and then to floating-point input data latch 78 via DABUS 76. Thus, each normal PFLoad cycle initiates a corresponding read cycle within the processor.
As new data arrives from the external data bus it is normally directed to the bottom of FIFO 65. However, if the addressed data already resides in the data cache, a PFLoad hit (synonymous with a cache hit) occurs and an exception is generated. When a PFLoad hit occurs, the bus control logic of the B-unit will wait until all outstanding bus cycles are complete. Next, it transfers the requested data from data cache 70 to the bottom of the FIFO 65 along the data path provided by line 79, buffer 74, BIBUS 29 (coupled to the M' input of MUX 62) and line 63.
The controller must wait for all outstanding bus cycles to be complete before transferring the PFLoad hit data from data cache 70 to the bottom of FIFO 65 for two reasons. First, there may be a PFLoad cycle outstanding. Any attempt to write the PFILoad hit data into the FIFO before all outstanding PFLoad cycles are completed will cause the data in the FIFO to be out of order. Secondly, BIBUS 29 may already be occupied with data that is being transferred from a third previous PFLoad instruction to the floating- point unit. Bus contention would result if the PFLoad hit data from the cache is transferred immediately across the BIBUS. To prevent bus contention from occurring, the bus control logic of the B-unit shuts off buffer 74 for one extra clock before putting data back into FIFO 65. After the B-unit waits for all C.
-12outstanding cycles to be completed, PFLoad hit data is then placed in the bottom of the FIFO and P1FLoad processing proceeds as normal.
It is possible for the processor to operate at a faster rate than the external bus or memory. For instance, if the speed of the processor is faster than the external hardware, the FIFO may be emptied. The FIFO is required to have a sufficient number of stages to hold the maximum number of addresses issued by the processor and also be compatible with the pipelined architecture of the processor. Therefore, it is appreciated that the presently described PFLoad instruction operates dynamically.
Referring now to Figure 5b, the PFLoad FIFO 65 is implemented in the currently preferred embodiment with three latches or registers per bit, a read position counter 87, and a write position counter 86. The read position counter is coupled to decoder 88 which, in turn, is coupled to 3:1 MUX 95 through lines 94 and 93. These lines are coupled to the select lines of MUX 95 such that, during Moad operation, read counter 87 selects the register from which the next PFLoad cycle will read data.
Write position counter 86 is coupled to decoder 85 which, in turn, is coupled to registers A, B, and C on lines 92, 91, and 90, respectively. Lines 90-92 permit data appearing on fine 63 to be latched into the appropriate register. In operation, write position counter 86 points to the latch to which the next Moad cycle will write the returned data. Both the read position and write position counters comprise ordinary 0-to-2 wrap around counters.
The read counter is incremented when a PFLoad instruction is in the write back stage or pending, the BIBUS is not busy and the PFLoad FIFO is not empty. If the FIFO is empty, the read counter is incremented although the data is not actually latched in the FIFO but is directly driven to the floating-point input data latch. The write counter is incremented when the current external bus cycle is a PFLoad or when Moad data is being written from the data cache into the bottom of the FIFO for a Moad hit. The two bits of the write position counter are used to generate the FIFO write c signals which latch the data into the FIFO.
An alternative embodiment of FIFO 65 is shown in Figure 5a. Figure 5a shows a FIFO in which the data passes serially from latch 1, to latch 2, and finally to latch 3 before being output on line 66. Although the FIFO of Figure 5a adequately preserves the pipeline nature of the Moad instructions, it does not have the flexibility of the FIFO shown in Figure 5b.
For example, in the FIFO of Figure 5b, data could be written into latch 87 in one clock cycle and read out in the following cycle without having to pass through the other registers. Thus, certain data may be made available earlier if necessary.
As previously stated, the N 10 processor can issue up to three outstanding bus cycles. If the processor is issuing bus cycles at a rate faster than that of the external memory, the Moad FIFO can be emptied.
This implies that the three outstanding cycles are PFLoad cycles. If a fourth Moad cycle is in the write back stage and there is no data available to load into data latch 78, the bus controller unit issues a freeze. When a Moad cycle is requested but the FIFO is empty, the core must be frozen until the Moad data is available on the DABUS. (A PFLoad is pending when the data from the FIFO cannot be transferred to data latch 78 due to the Moad FIFO being empty, BIBUS is busy, or a translation-look-aside buffer miss.) It should be noted that when the data cache is doing a normal read, the data cache unit 70 drives both DABUS 76 and DBBUS 80, so that it becomes impossible to supply external data to the latch in the same clock cycle. However, in using a PFLoad instruction, data cache 70 is controlled by the B-unit logic such that the cache's internal drivers (which are connected to DABUS 76) are turned off. By turning off the cache drivers to DABUS 76, external data can be supplied to data latch 78 without creating a bus contention situation.
Once PFLoad data becomes available on DABUS 76, the freeze is lifted. External data is then driven by buffer 75 onto the DABUS from C' BIBUS 29. The data supplied along the BIBUS may originate either from FIFO 65 or d;rectly along line 61 from the external memory system. MUX 67 selects line 649 as the source of the data only when FIFO 65 is empty. Whether the FIFO 65 is empty depends on the speed of the external memory. how often the programmer issues Moad instructions, etc. If the PFLoad sequence is interrupted, then the data will continue to be delivered from external memory so long as there are outstanding Moad commands issued on external bus 40. The external data referenced by the previous Moad instructions then accumulates in FIFO 65 until the programmer once again starts issuing Moads.
If the programmer issues successive Moad commands such that the data FIFO 65 is emptied before any outstanding Moad cycles have been completed, new data arriving on external data bus 40 will be coupled along fine 61 through MUX 67 to be supplied directly to BIBUS 29. Next, the data supplied on BIBUS 29 is sent by buffer 75 onto DABUS 76 to eventually end up stored in floating-point input data latch 78. The data input latch is actually part of the floating-point unit of the N1 0 processor. (The DBBUS is only used when processing 128-bit loads. Since the Moad instruction only operates on 64-bit or 32-bit loads the DBBUS is not directly related to the PFLoad instruction of the present invention.) When a data cache hit occurs, i.e., the data requested actually resides within the data cache and not external memory, then the following events take place. First, the present word of data has to be returned either from Moad FIFO 65 or from the external data bus 40. To accomplish this buffer 75 is shut off by the control logic of the bus control unit and the data is returned along the BIBUS path which tefminates at the M m input of multiplexer 62. Multiplexer 62, which is also controlled by the Bus control unit, then returns the data to the bottom of FIFO 65 along line 63.
In the case where a number of outstanding Moads have been issued - none of which have yet returned data from external memory and a cache hit occurs, a different scenario is presented. In this situation there 1 R 1 c 1 i is nothing that the processor can immediately do with the word of data presently residing in the data cache. The bus control unit must first wait for all previously issued PFLoad instructions to return data from external memory. The first word of data returned is transferred, either from FIFO 65 or directly from the external bus, into data input latch 78 while the remaining two words are written to FIFO 65. Finally, the word of data stored in data cache 70 is transferred to FIFO 65 as the last word in the FIFO. Thus, there is a substantial time penalty in the case of a cache hit since the programmer must wait for all outstanding PFILoad cycles to be completed before transferring the data from the cache to the FIFO. lt should be obvious from the foregoing discussion that the PFILoad instruction is optimized for a cache miss rather than a cache hit.
With reference to Figure 4, an alternative embodiment of the present invention is shown. The circuit of Figure 4 is identical to Figure 2, except that line 79, buffer 74 and the return BIBUS path to the "1" input of MUX 62 have been eliminated. In their place, bus 81 has been included. Bus 81 is coupled from the internal buffer 82 of cache 70 directly to the "l" input of multiplexer 62. The primary benefit realized by this alternative embodiment is that the user does not have to wait for buffer 69 to turn off before writing data into FIFO 65. Because there is a dedicated bus 81 included to accomodate a cache hit, the programmer also does not have to wait for all of the external data from outstanding PFILoad instructions to be returned before proceeding. Nor is there anadditional clock penalty since the data is supplied directly from data cache 70 to FIFO 65 when a cache hit occurs.
On the other hand, the preferred embodiment of Figure 2 enjoys the advantage of a reduced silicon area since only a single bus is required; whereas, in the alternate embodiment of Figure 4, additional bus 81 is needed.
Figure 6 shows a flow chart depicting the control operations provided by the bus control logic associated with the PFILoad instruction of the present invention. This flow chart summarizes the foregoing description of d 1;-- the bus control logic exerted during the execution of the PFLoad instruction. Referring to Figure 6, the PFLoad chart begins with state 100 representing a PFLoad request. Once a request has been issued the bus control logic and the B-unit must determine whether FIFO 65 is empty or BIBUS 29 is busy.
This is shown by decision element 101. If either of those two conditions is true, the bus controller will wait until the condition changes. If there is data present in the FIFO and the BIBUS is not busy, then the controller passes to state 102 in which data residing in the FIFO is transferred to the floating-point data latch 78. In decision state 103 the bus controller checks to see whether or not a PFLoad hit, or alternatively phrased a data cache hit, has occured. If the data resides in external memory and not in data cache 70 then the bus controller will issue a PFLoad bus cycle as shown by state 104. Processing proceeds as normal until the end of the instruction is reached.
Alternatively, it may happen that a PFLoad hit does occur in which the bus controller logic must query whether there are any outstanding PFLoad cycles or whether or not the BIBUS is busy. This is shown in Figure 6 by decisional point 105. If there are outstanding cycles, or the BIBUS is busy, the bus controller logic must wait until all outstanding bus cycles are complete and the BIBUS is available for transfer of data. When this occurs data is then transferred from the data cache to the bottom of the FIFO as shown by state 106. The transfer may occur as described in conjunction with Figure 2 wherein the data passes along line 79 through buffer 74 to be returned by the BIBUS to the one input of MUX 62. In the alternative embodiment, data from the data cache 70 passes directly along line 81 to the M' input of MUX 62. Once again, operation proceeds as normal until the end of the instruction is reached.
In order to more fully appreciate the operation and advantages of the present invention, reference is now made to the sample operation given in Figure 3. The sample operation shown by the equation of Figure 3 is: k V1 + V2 --> V2 1 where k is a certain predetermined constant, V1 is one of 1000 different, 1000 element, vectors stored in external memory and V2 is a vector stored internally in data cache unit 70. For this particular calculation, the processor must reuse Vector V2 a thousand times (once for each of the individual elements of each V1) while the individual elements of V, are used only once. Utilizing the PFLoad instruction of the present invention, the processor loads the individual elements of vector V1 into the floating-point register without writing over any V2 data resident in the data cache.
Figure 3 shows a first PFLoad instruction, pfidl, being issued to the address of % in order to load the first element of the first V1 vector into floating-point storage location f2. The pfldl command takes two clock cycles to initiate. Without waiting for the data to return from external memory, a second PFLoad instruction, pfld2, is issued to address vector element V12 and directs it to floating-point storage location 13. Additional PFLoad commands are initiated for vector elements V13, V14, V15, etc. A new PFLoad can be requested every two clocks since the external bus permits a new address to be issued every two clocks.
When the fourth PFLoad command is issued, i.e., pfld4, external memory begins to return the data from the first PFLoad instruction. This returned data actually corresponds to the third previous PFLoad instruction so that the destination register specified in the fourth PFLoad is the f2 register. The arrival of the data from the third previous PFLoad command is shown by the dashed lines and arrows directed diagonally from the floating-point storage location to the address of the PFLoad command. The programmer may continue to specify PFLoads every two clocks in accordance with the full bandwidth capability of the external bus. In practice, there is a total of six clocks of latency from the time that the programmer specifies the data address to the time that data retums. So the memory system has a total of 6 clocks to provide the data even though a new bus cycle is starting every other clock. This means that a 3X speed C) increase in the rate in which cycles can be processed is realized. Without the pipeline approach, the programmer would be restricted to issuing a new cycle every six clocks instead of every other clock.
lt should be understood, of course, that the foregoing discussion assumes that each Moad instruction corresponds to a data cache miss. If this was a normal floating-point load in a prior art processor, as soon as the programmer tried to perform a second PFLoad the bus control unit would respond that there is an outstanding access and then freeze up for the entire six clocks - waiting for outstanding bus loads to return. Therefore, in a prior art processor the programmer can only issue a new address every six clocks instead of every other clock. Thus, the pipeline approach associated with the Moad instruction of the present invention allows the user to issue addresses at a faster rate, despite the fact that the data is not resident in the onboard cache. It therefore allows efficient processing and accessing of very large data structures.
The present invention allows the vector V2 to be stored onboard while the V1 element is kept in external memory so that the user may reference V1 elements using a Moad instruction and reference V2 with a normal load instruction. In a typical prior art microprocessor without a
Moad instruction, each time the user references V1, data elements would be brought into the cache thereby forcing out the elements of vector V2. This would create additional delay the next time the V2 element would have to be loaded.
Whereas many alternations and modifications of the present invention will no doubt become apparent to a person of ordinary skill in the art after having read the foregoing description, it is to be understood that the particular embodiment shown and described by way of illustration is in no way intended to be considered limiting. For example, although this disclosure has shown a particular way of implementing the pipeline floating-point load instruction, other implementations are possible. Therefore, reference to the details of the preferred embodiment are not 1 1, -19intended to limit the scope of the claims which are themselves recite only those features regarded as essential to the invention.
Thus, a pipelined floating-point load instruction for accessing infrequently referenced data from external memory has been described.
CL61MS -t.
1. In a microprocessor having a pipelined architecture, a data cache, a processing unit and a bus control unit which controls access to an external memory along an external bus, an instruction for pipelining the loading of data into said microprocessor comprising: a first circuit means for storing data in a pipelined manner as it is delivered from said external memory; a bus means coupled to said first circuit means for transferring the data stored in said first circuit means to a data latch; and control means for controlling said first circuit means and said data cache such that data from said external memory may be pipellned to said data latch within said microprocessor.
Claims (1)
- 2. The instruction of Claim 1 wherein the external data is transferreddirectly to said data latch without being placed in said cache.3. The instruction according to Claim 2 wherein said instruction can issue additional data addresses associated with said external memory at the full bus bandwidth when the data being accessed is not in said data cache, thereby providing increased accessing speed to said external memory.11 4- The instruction according to Claim 3 wherein said data cache is coupled to said bus means through a buffer such that data residing in said cache is returned to said first circuit means when a cache hit occurs, said buffer also being controlled by said control means.5. The instruction according to Claim 4 wherein said first circuit means comprises:1 1 a first multiplexer having one input coupled to said external bus, another input coupled to said bus means and an output; a first-in-firstout memory having an input and an output, said input being coupled to said output of said first multiplexer; a second multiplexer having one input coupled to said output of said first-in-first-out memory, another input coupled to said external bus and an output, said output of said second multiplexer being coupled to said bus means through another buffer; said first multiplexer providing data to said first-in-first-out memory either from said external memory in event of a cache miss or from said data cache in the event of a cache hit; and said second multiplexer providing data to said bus means from said first-in-first-out memory, or directly from said external bus.6. The instruction according to Claim 5 wherein said data cache is coupled to said data latch by a data bus, said bus means being coupled to said data bus through a third buffer, said third buffer and said data cache being controlled by said control means such that said data cache is denied access to said data bus when said bus means is transferring data to said data latch, thereby avoiding bus contention.7. The instruction according to Claim 6, wherein each of said buffers is a tri-state buffer.8. A microprocessor having a pipelined architecture, said microprocessor comprising a data cache, a processing unit having a data latch, and an instruction for accessing data from an external memory across an external bus, said instruction comprising: memory means for accumulating data., first circuit means for delivering data from said external memory to said memory means when a cache miss occurs; -22second circuit means for delivering the data accumulated in said memory means to said data latch, said second circuit means also coupling said data cache to said first circuit means so that data resident within said data cache is returned to said memory means in the event of a cache hit; and a bus control means coupled to said first and second circuit means, said memory means, and said data cache for controlling the pipelined flow of data from said external memory to said data latch in the event of a cache miss, and for controlling the return of data from said data cache to said memory means in the event of a cache hit.9. The microprocessor of Claim 8 wherein said memory means comprises a first-in-first-out memory.10. The microprocessor according to Claim 9 wherein said first circuit means comprises a first multiplexer and a first buffer, said first buffer coupling said external bus to one input of said first multiplexer, said first multiplexer having another input coupled to said second circuit means and an output coupled to said first-in-first-out memory.11. A microprocessor according to Claim 10 wherein said first buffer also couples said external bus to said second circuit means such that data can be transferred directly to said data latch from said external memory when said first-in-first-out memory is empty.12. The microprocessor according to Claim 11 wherein said second circuit means comprises a second multiplexer having one input coupled to receive pipelined data from said first-in-first-out memory, another input coupled to said first buffer and an output, said seccind circuit means further comprising a second buffer coupled to said output of said second multiplexer and a bi-directional bus ' 11 1 for delivering data to said data latch and returning data from said data cache to said another input of said first multiplexer.13. The microprocessor according to Claim 12 wherein said firstin-firstout memory comprises: a plurality of registers; a first selection means for selecting which of said plurality of registers data is to be written to; and a second selection means for determining which of said plurality of registers data is to be read from.14. The microprocessor according to Claim 13 wherein said instruction can issue addresses to said external memory at the full bandwidth of said external bus.15. In a processor having a pipelined architecture, a data cache, a processing unit and a bus control unit which controls access to an external memory along an external bus, an instruction for pipelining the loading of data into said processor comprising: a first buffer coupled to said external bus for delivering data from said external memory to said processor; a first circuit means for storing data in a pipelined manner as it is delivered from said external memory by said first buffer; a first bus coupled to said first circuit means for transferring the data stored in said first circuit means to a data latch; and control means for controlling said first buffer, said first eircuit means and said data cache such that data from said external memory is pipelined to said data latch within said processor.16. The instruction of Claim 15 further comprising a second bus coupling said data cache to said first circuit means such that data residing in said cache is returned to said first circuit means when a cache hit occurs.17. The instruction according to Claim 16 wherein said first circuit means comprises:a first multiplexer having one input coupled to said first buffer, another input coupled to said second bus and an output; a first-in-first-out memory having an input coupled to said output of said first multiplexer and an output; a second multiplexer having one input coupled to said output of said first-in-first-out memory, another input coupled to said first buffer and an output, said output of said second multiplexer being coupled to said first bus through a third buffer; said first multiplexer providing data to said first-in-first-out memory either from said external memory in event of a cache miss or from said data cache in the event of a cache hit; and said second multiplexer providing data to said first bus from said firstin-first-out memory or directly from said first buffer when said first-in-first-out memory is empty.18. In a processor having a processing unit, a data cache and a connection to an external memory system, a method for accessing data from said external memory comprising the steps of:(a) addressing said data in said external memory; (b) writing said data from said external memory to a first-in-first-out memory; said processing unit.reading said data from said first-in-first-out memory to a bus; transferring said data across said bus to a data latch within 19. The method of Claim 18 wherein the steps of (a)-(d) are pipelined.4 20. The method of Claim 19 further comprising the step of returning said data from said data cache to sald first-in-first-out memory when a cache hit occurs.1 21. The method of Claim 20 further comprising the step of transferring said data directly from said extemal memory to said data latch when said first-in-first-out memory is empty.22. The method of Claim 20 further including the step of waiting for outstanding bus cycles to be complete before returning said data from said data cache to said first-in-first-out memory when a cache hit occurs.Publ shed 1990 at The Patent Office, State House. 66'71 High Holborn. LondonWC1R4TP.Fwther copies mkvbe obtained from The Patent office. Sales Brancil, St Mary Oray. Orpington. Kent BR5 3RD. Printed by MuItiplex techniques ltd. St Mary Cray. Kent. Con. 1 87
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US30942989A | 1989-02-10 | 1989-02-10 |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| GB8925453D0 GB8925453D0 (en) | 1989-12-28 |
| GB2228116A true GB2228116A (en) | 1990-08-15 |
| GB2228116B GB2228116B (en) | 1993-05-26 |
Family
ID=23198201
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| GB8925453A Expired - Fee Related GB2228116B (en) | 1989-02-10 | 1989-11-10 | Pipelined floating-point load instruction for microprocessor |
Country Status (6)
| Country | Link |
|---|---|
| JP (1) | JPH02242429A (en) |
| AU (1) | AU618425B2 (en) |
| CA (1) | CA2009744C (en) |
| DE (1) | DE4001165C2 (en) |
| FR (1) | FR2643166A1 (en) |
| GB (1) | GB2228116B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0543366A3 (en) * | 1991-11-20 | 1994-02-16 | Hitachi Ltd | |
| US5673407A (en) * | 1994-03-08 | 1997-09-30 | Texas Instruments Incorporated | Data processor having capability to perform both floating point operations and memory access in response to a single instruction |
| EP0949569A3 (en) * | 1998-03-31 | 1999-11-24 | Intel Corporation | Cache pollution avoidance instructions |
| WO2007071606A3 (en) * | 2005-12-22 | 2007-08-09 | Ibm | Cache injection using semi-synchronous memory copy operation |
| US7454585B2 (en) | 2005-12-22 | 2008-11-18 | International Business Machines Corporation | Efficient and flexible memory copy operation |
| US7882321B2 (en) | 2005-12-22 | 2011-02-01 | International Business Machines Corporation | Validity of address ranges used in semi-synchronous memory copy operations |
| US8683182B2 (en) | 1995-08-16 | 2014-03-25 | Microunity Systems Engineering, Inc. | System and apparatus for group floating-point inflate and deflate operations |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0138451A2 (en) * | 1983-09-26 | 1985-04-24 | Fujitsu Limited | Vector data processing system for indirect address instructions |
| US4600986A (en) * | 1984-04-02 | 1986-07-15 | Sperry Corporation | Pipelined split stack with high performance interleaved decode |
| EP0211617A2 (en) * | 1985-07-31 | 1987-02-25 | Unisys Corporation | A scientific processor |
| EP0223570A2 (en) * | 1985-11-15 | 1987-05-27 | Fujitsu Limited | Vector access control system |
| US4722049A (en) * | 1985-10-11 | 1988-01-26 | Unisys Corporation | Apparatus for out-of-order program execution |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4075686A (en) * | 1976-12-30 | 1978-02-21 | Honeywell Information Systems Inc. | Input/output cache system including bypass capability |
| JPS61160142A (en) * | 1984-12-29 | 1986-07-19 | Hitachi Ltd | data processing equipment |
| JPS63157235A (en) * | 1986-12-12 | 1988-06-30 | インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン | Controller for computer system |
-
1989
- 1989-11-10 GB GB8925453A patent/GB2228116B/en not_active Expired - Fee Related
- 1989-11-28 AU AU45618/89A patent/AU618425B2/en not_active Ceased
-
1990
- 1990-01-17 DE DE4001165A patent/DE4001165C2/en not_active Expired - Lifetime
- 1990-02-08 FR FR9001451A patent/FR2643166A1/en active Granted
- 1990-02-09 CA CA002009744A patent/CA2009744C/en not_active Expired - Lifetime
- 1990-02-13 JP JP2032295A patent/JPH02242429A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0138451A2 (en) * | 1983-09-26 | 1985-04-24 | Fujitsu Limited | Vector data processing system for indirect address instructions |
| US4600986A (en) * | 1984-04-02 | 1986-07-15 | Sperry Corporation | Pipelined split stack with high performance interleaved decode |
| EP0211617A2 (en) * | 1985-07-31 | 1987-02-25 | Unisys Corporation | A scientific processor |
| US4722049A (en) * | 1985-10-11 | 1988-01-26 | Unisys Corporation | Apparatus for out-of-order program execution |
| EP0223570A2 (en) * | 1985-11-15 | 1987-05-27 | Fujitsu Limited | Vector access control system |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5438669A (en) * | 1991-11-20 | 1995-08-01 | Hitachi, Ltd. | Data processor with improved loop handling utilizing improved register allocation |
| EP0543366A3 (en) * | 1991-11-20 | 1994-02-16 | Hitachi Ltd | |
| US5673407A (en) * | 1994-03-08 | 1997-09-30 | Texas Instruments Incorporated | Data processor having capability to perform both floating point operations and memory access in response to a single instruction |
| US8683182B2 (en) | 1995-08-16 | 2014-03-25 | Microunity Systems Engineering, Inc. | System and apparatus for group floating-point inflate and deflate operations |
| US8769248B2 (en) | 1995-08-16 | 2014-07-01 | Microunity Systems Engineering, Inc. | System and apparatus for group floating-point inflate and deflate operations |
| EP0949569A3 (en) * | 1998-03-31 | 1999-11-24 | Intel Corporation | Cache pollution avoidance instructions |
| US6275904B1 (en) | 1998-03-31 | 2001-08-14 | Intel Corporation | Cache pollution avoidance instructions |
| EP1416390A3 (en) * | 1998-03-31 | 2006-01-18 | Intel Corporation | Cache pollution avoidance instructions |
| WO2007071606A3 (en) * | 2005-12-22 | 2007-08-09 | Ibm | Cache injection using semi-synchronous memory copy operation |
| US7882321B2 (en) | 2005-12-22 | 2011-02-01 | International Business Machines Corporation | Validity of address ranges used in semi-synchronous memory copy operations |
| US7890703B2 (en) | 2005-12-22 | 2011-02-15 | International Business Machines Corporation | Cache injection using semi-synchronous memory copy operation |
| US7484062B2 (en) | 2005-12-22 | 2009-01-27 | International Business Machines Corporation | Cache injection semi-synchronous memory copy operation |
| US7454585B2 (en) | 2005-12-22 | 2008-11-18 | International Business Machines Corporation | Efficient and flexible memory copy operation |
Also Published As
| Publication number | Publication date |
|---|---|
| FR2643166A1 (en) | 1990-08-17 |
| JPH02242429A (en) | 1990-09-26 |
| DE4001165A1 (en) | 1990-08-16 |
| FR2643166B1 (en) | 1995-03-17 |
| GB8925453D0 (en) | 1989-12-28 |
| CA2009744A1 (en) | 1990-08-10 |
| AU618425B2 (en) | 1991-12-19 |
| GB2228116B (en) | 1993-05-26 |
| CA2009744C (en) | 2005-06-28 |
| AU4561889A (en) | 1990-08-16 |
| DE4001165C2 (en) | 1999-01-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5155816A (en) | Pipelined apparatus and method for controlled loading of floating point data in a microprocessor | |
| US6848027B2 (en) | Data processor having cache memory | |
| US5680564A (en) | Pipelined processor with two tier prefetch buffer structure and method with bypass | |
| US5968160A (en) | Method and apparatus for processing data in multiple modes in accordance with parallelism of program by using cache memory | |
| US5649230A (en) | System for transferring data using value in hardware FIFO'S unused data start pointer to update virtual FIFO'S start address pointer for fast context switching | |
| CA1323938C (en) | Control of multiple function units with parallel operation in a microcoded execution unit | |
| US5557733A (en) | Caching FIFO and method therefor | |
| US20070214319A1 (en) | Microprocessor with integrated high speed memory | |
| KR100346515B1 (en) | Temporary pipeline register file for a superpipe lined superscalar processor | |
| US5859990A (en) | System for transferring data segments from a first storage device to a second storage device using an alignment stage including even and odd temporary devices | |
| US5913054A (en) | Method and system for processing a multiple-register instruction that permit multiple data words to be written in a single processor cycle | |
| US8046568B2 (en) | Microprocessor with integrated high speed memory | |
| CA2142799A1 (en) | Integrated level two cache and memory controller with multiple data ports | |
| US6671196B2 (en) | Register stack in cache memory | |
| KR19990072271A (en) | High performance speculative misaligned load operations | |
| EP1000398B1 (en) | Isochronous buffers for mmx-equipped microprocessors | |
| EP1039377B1 (en) | System and method supporting multiple outstanding requests to multiple targets of a memory hierarchy | |
| EP0676690B1 (en) | Delayed write of store instruction in processor device | |
| CA2009744C (en) | Pipelined floating-point load instruction for microprocessor | |
| US5283890A (en) | Cache memory arrangement with write buffer pipeline providing for concurrent cache determinations | |
| US5956503A (en) | Method and system for front-end and back-end gathering of store instructions within a data-processing system | |
| HUT75816A (en) | Method of operation of a system for processing information, as well as the processing system | |
| US5765017A (en) | Method and system in a data processing system for efficient management of an indication of a status of each of multiple registers | |
| US20050278510A1 (en) | Pseudo register file write ports | |
| US5732005A (en) | Single-precision, floating-point register array for floating-point units performing double-precision operations by emulation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PCNP | Patent ceased through non-payment of renewal fee |
Effective date: 19931110 |