PREDICTING CACHE MISSES USING DATA ACCESS BEHAVIOR AND INSTRUCTION ADDRESS
In a decode stage of hardware processor pipeline, one particular instruction of a plurality of instructions is decoded. It is determined that the particular instruction requires a memory access. Responsive to such determination, it is predicted whether the memory access will result in a cache miss. The predicting in turn includes accessing one of a plurality of entries in a pattern history table stored as a hardware table in the decode stage. The accessing is based, at least in part, upon at least a most recent entry in a global history buffer. The pattern history table stores a plurality of predictions. The global history buffer stores actual results of previous memory accesses as one of cache hits and cache misses. Additional steps include scheduling at least one additional one of the plurality of instructions in accordance with the predicting; and updating the pattern history table and the global history buffer subsequent to actual execution of the particular instruction in an execution stage of the hardware processor pipeline, to reflect whether the predicting was accurate.
This application is a continuation of U.S. patent application Ser. No. 13/099,178 filed May 2, 2011, the complete disclosure of which is expressly incorporated herein by reference in its entirety for all purposes.
FIELD OF THE INVENTIONThe present invention relates to the electrical, electronic and computer arts, and, more particularly, to computer architecture and the like.
BACKGROUND OF THE INVENTIONThe latency of first-level (L1) cache misses is a significant factor with respect to pipeline stalls in processors. The latency of a load instruction depends on whether or not the data exists in the L1 cache. However, at the time the load instruction is issued, it is not possible to determine whether or not the data will be present in the L1 cache. This affects issuing those instructions that are dependent on the load instruction, and leads to pipeline stalls and performance degradation.
In most of today's processors, the scheduler assumes that the data accessed by the load instruction will be available in the L1 cache. Dependent instructions are issued based on this assumption. A reject-and-replay mechanism is triggered when the load misses the cache. When the load instruction incurs a cache miss, it leads to not only a performance penalty, but also a power overhead.
The Compaq Alpha 21264 used the most significant bit of a 4-bit saturating counter as the load instruction's hit or miss prediction. The counter was incremented by one every time a load hit, and decremented by two every time a load missed. Typically, only a small percentage of static load instructions are responsible for a large fraction of the cache misses. The above counter can be easily saturated with the load instructions that usually have cache hits, and hence lead to mis-predictions.
Yoaz et al, in “Speculation techniques for improving load related instruction scheduling,” Computer Architecture News, vol. 27, No. 2, pp. 42-53, 1999 used 2-level local predictors, 2-level global predictors, and hybrid predictors for cache hit or miss prediction. Here again, the predictors predominantly predict as hits, and hence result in re-issuing of instructions.
SUMMARY OF THE INVENTIONPrinciples of the invention provide techniques for predicting cache misses using data access behavior and instruction address. In one aspect, an exemplary method includes the steps of decoding, in a decode stage of hardware processor pipeline, one particular instruction of a plurality of instructions; determining that the particular instruction requires a memory access; and, responsive to determining that the particular instruction requires a memory access, predicting whether the memory access will result in a cache miss. The predicting in turn includes accessing one of a plurality of entries in a pattern history table stored as a hardware table in the decode stage. The accessing is based, at least in part, upon at least a most recent entry in a global history buffer. The pattern history table stores a plurality of predictions. The global history buffer stores actual results of previous memory accesses as one of cache hits and cache misses. Additional steps include scheduling at least one additional one of the plurality of instructions in accordance with the predicting; and updating the pattern history table and the global history buffer subsequent to actual execution of the particular instruction in an execution stage of the hardware processor pipeline, to reflect whether the predicting was accurate.
In another aspect, an exemplary hardware processor includes a decode pipeline stage which decodes one particular instruction of a plurality of instructions; hard-wired logic circuitry which determines that the particular instruction requires a memory access; a pattern history hardware table within the decode pipeline stage; and a global history buffer within the decode pipeline stage. Also included is hard-wired logic circuitry which, responsive to determining that the particular instruction requires a memory access, predicts whether the memory access will result in a cache miss. The predicting in turn includes accessing one of a plurality of entries in the pattern history hardware table. The accessing is based, at least in part, upon at least a most recent entry in the global history buffer. The pattern history hardware table stores a plurality of predictions. The global history buffer stores actual results of previous memory accesses as one of cache hits and cache misses. Also included are an issue pipeline stage which schedules at least one additional one of the plurality of instructions in accordance with the predicting; an execution pipeline stage which actually executes the particular instruction; and hard-wired logic circuitry which updates the pattern history hardware table and the global history buffer subsequent to the actual execution of the particular instruction, to reflect whether the predicting was accurate.
In still another aspect, an exemplary hardware processor includes means for carrying out the method steps. The means include various structures disclosed herein, such as hardware tables, buffers such as shift registers, and hard-wired logic circuitry to implement the method steps.
As used herein, “facilitating” an action includes performing the action, making the action easier, helping to carry the action out, or causing the action to be performed. Thus, by way of example and not limitation, instructions executing on one processor might facilitate an action carried out by instructions executing on a remote processor, by sending appropriate data or commands to cause or aid the action to be performed. For the avoidance of doubt, where an actor facilitates an action by other than performing the action, the action is nevertheless performed by some entity or combination of entities.
Techniques of the present invention can provide substantial beneficial technical effects. For example, one or more embodiments may provide one or more of the following advantages:
-
- If the outcome of the cache access can be successfully predicted using the methods described herein, the issue logic of the processor can re-schedule the instructions such that the dependent instructions following the load will not be issued, and the resources can be put to better use by issuing independent instructions to improve the performance.
- In a multi-threaded processor, cache hit/miss prediction information can be used to launch a load instruction from a thread predicted to miss the cache in advance so that the stall can be overlapped by executing instructions from the other threads to increase the overall throughput
- One or more embodiments of the invention enable out-of-order scheduling, by allowing a younger load instruction predicted to have a cache miss, and with no data dependences, to go ahead of an older load predicted to have a cache hit, and with no data dependences.
These and other features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.
One or more embodiments combine the knowledge of global cache hit/miss behavior of the data accesses of an application, and the individual load instruction's hit-miss behavior, to accurately predict the cache hit-miss behavior of a load instruction. If the outcome of the cache access can be successfully predicted, the issue-logic of the processor can effectively re-schedule the instructions such that the dependent instructions following the load will not be issued, and the resources can be put to better use by issuing independent instructions. In addition, in a multi-threaded processor, such prediction information of the cache access outcome can be used to launch a load instruction from a thread predicted to miss the cache in advance so that the stall can be overlapped by executing instructions from the other threads to increase the overall throughput.
Furthermore, one or more instances enable out-of-order scheduling, by allowing a younger load instruction predicted to have a cache miss, and with no data dependencies, to go ahead of an older load predicted to have a cache hit, and with no data dependencies.
The bursty nature of cache misses of applications is well-known. One or more embodiments exploit this behavior to design a predictor to determine if the application is likely to incur a cache miss/hit.
In one or more embodiments, it is sufficient to track a change from a “miss” dominated region to a “hit” dominated region. A contiguous string of “hits” or “misses” will determine whether the next cache access is a hit or a miss. This is different from the behavior of branches.
One or more embodiments employ the “generic” idea in branch direction predictors. Typically, conditional branches have two possible outcomes, “not taken” (NT) in which the instruction following the branch instruction is the next instruction in the static program sequence, or “taken” (T) in which the instruction following the branch instruction is the target instruction which may not be the next contiguous instruction in the static program sequence. Typically, branch predictors are employed to predict the outcome of the branches (NT or T). Typically, these predictors use a saturating counter which is incremented if the branch is “taken” and decremented if the branch resolves as “not taken.” If the most significant bit of the saturating counter is set (to 1), the branch is predicted taken; otherwise, the branch is predicted not taken. One or more embodiments of the invention also use a predictor to predict the cache access outcome as “hit” or “miss,” and one or more embodiments of an exemplary method use a saturation counter for the prediction. Thus, one or more embodiments employ the “generic” idea in branch direction predictors, but effectively exploit the fact that cache misses are bursty, such that a small percentage of load or store instructions are responsible for a large percentage of cache misses, and that, as just noted, it is sufficient to track a change from a “miss” dominated region to a “hit” dominated region. In one or more embodiments, predict the next cache access outcome based on the length of the last seen contiguous string of “hits” or “misses.” A Global History Buffer (GHB) tracks the last N cache access outcomes, and a Pattern History Table (PHT) predicts the outcome of the next reference. The PHT is indexed using the length of the last contiguous string of “hits” or “misses” from the GHB. Significantly, in one or more embodiments, the number of entries in the PHT is N (length of GHB), and not 2N.
Global Hit/Miss Prediction:
Referring now to
Load PC-Based Hit/Miss Prediction:
Referring now to
LOAD and STORE instructions are the memory instructions that access data from a cache. Instructions come with an instruction address (the program counter or PC). In one or more embodiments, consider that the LOAD instruction has, as one of the operands of the instruction, fields to help compute the memory address, such that the data at that address in the cache memory can be accessed and read into a register. If there is a miss in L1, go to L2, and so on; if all cache levels miss go to the main memory. The data is brought back to the register. In one or more embodiments, do not await decoding of the instruction fields (operands), address determination, or cache access, to predict whether the data is present in the cache or not. Instead, make such a prediction well ahead of time.
So, the LOAD instruction is fetched and decoded so as to determine that it is in fact a LOAD instruction; however, as just noted, decoding of the operands, address determination, and cache access have not yet taken place. At this stage, predict whether the data to be accessed by this instruction will be present in the cache. Instead of waiting to determine the memory address, one or more embodiments employ the instruction's address (instruction LOAD PC) to predict whether the data accessed by the instruction will be in the cache. Thus, LOAD PC 208, rather that the data address accessed by the LOAD instruction, is used to make the prediction.
One or more embodiments are implemented entirely in hardware. In one or more embodiments, suitable hardware elements include hardware tables, hardware counters, and similar structures. One or more embodiments use a few bits of the LOAD PC. For example, suppose there are 16 entries in the pattern history table (PHT) 204, which is the table used for the prediction of whether the given load instruction will trigger a cache hit or a cache miss for the data it is accessing. The PHT is preferably implemented as a hardware table. In the non-limiting example of a 16-entry PHT, each table entry can be uniquely addressed with four bits (ranging from binary 0000 to binary 1111).
In the non-limiting example, use 4 bits of the LOAD PC having a value ranging from decimal zero to decimal fifteen; such 4 bits uniquely specify the appropriate location in the PHT. The Hash1 function 206 could include, for example, taking the middle four bits of the LOAD PC 208 and using same for the index. In the general case, if the PHT has M entries, log M bits are needed for unique addressing. Other non-limiting exemplary hash functions include taking the highest ordered four bits of the LOAD PC and the lowest-ordered four bits of the LOAD PC, and applying an XOR operation to obtain four new bits which are used to index the PHT. In general, where there are M entries in the PHT, log M bits are used for the index; those log M bits can be determined by some combination of the LOAD PC bits. Given the teachings herein, the skilled artisan can select an appropriate hash function. A good hash function should result in as few collisions as possible. If two different LOAD PCs have the same value for the four bits of the Hash1 function, they will go to the same entry of the PHT, resulting in a collision wherein the update from one load will be lost because the other LOAD will overwrite it. The hash is used to avoid an expensive operation of searching through the entries and will inevitably result in some amount of collisions.
Another aspect to assist in making a good prediction is to employ a significant portion of the LOAD PC 208 (by way of example and not limitation, the uppermost 20 bits) as a tag that is stored in the PHT (see tag1, tag2, tag3, and tag4 stored in the first column of the PHT 204). Thus, the Hash1 is used to address a particular entry of the PHT and then a check is made whether the tag of the current load instruction matches the tag stored in that row of the PHT 204. If they match, then it is concluded that the latest update to the entry in the PHT was likely made by the same LOAD. If there is no match, do not read the prediction corresponding to the four bits from Hash1, as it is likely that a different instruction hashed into the table at the location addressed by the four bits of Hash1, thus avoiding mis-prediction. Thus, the tagging feature increases the confidence that a given entry in the PHT is from the last occurrence of the same LOAD and not from some different LOAD.
To review, the Hash1 addresses a unique entry in the PHT 204; and a comparison is made between the tag corresponding to that entry in the PHT and the tag (i.e., corresponding bits) for the current PC. In case of a match, use the entry for the prediction; if not, do not read the entry for the prediction. Thus, use Hash1 to access the PHT 204 and if there is a match for the tag, next use the GHB (global history buffer) entry in that particular row to determine the column of the PHT to be used to make the prediction. In the non-limiting example, the GHB 202 has the most recent N outcomes for the particular tag (in this case, for the particular LOAD). Typically, the same LOAD instruction will be seen several times when the program is executed (for example, it may be repeated in a loop). For each occurrence of a particular load instruction, whatever happened when it accessed the cache (i.e., that (true, not predicted) outcome) is pushed into the global history buffer of N bits. GHB is like a shift register—push the most recent outcome on the right side and shift all other entries left one bit. Since the only outcome is hit or miss, only a single bit is needed to record the result (for example, encode a hit as a logical one and a miss as a logical zero). The most recent outcome resides in the right-hand (most significant) bit 218.
Now, depending on the number of columns to be used (which in turn depends on the available amount of hardware space/area), examine that many bits of the GHB, starting from the most recent bit. In the non-limiting example of
Here, the GHB has 4 bits, and correspondingly the PHT had 4 columns. Thus, if there are N bits in the GHB, then there are N columns after the second (GHB) column in the table 204. In the example, the rightmost bit 218 is a miss, the next 220 is a miss, and the third 222 is a hit, and then a miss 224. So starting from the rightmost bit 218, the total number of bits traversed before the outcome changed compared to bit 218 is two. So the second column out of the 4 columns of the PHT is accessed.
This procedure is carried out for every LOAD instruction that is seen. Because the tags are saved, which are portions of the load instruction's PC, as soon as it is determined that a particular instruction is a LOAD, use bits of the LOAD PC 208 to hash 206 into the PHT 204, use the high order bits as a tag, and check for a match with the tag stored in the first column of the table 204. If there is a match, read out the prediction based on the GHB's number of contiguous bits with the same value as the MSB, and read the corresponding column output as hit or miss to obtain the prediction as to whether there will be a cache miss or a cache hit associated with the instruction. The prediction is used to benefit execution. If a cache miss is predicted, avoid pushing other, dependent instructions down the pipeline and instead schedule different instructions. If the prediction of a miss is correct, time is saved by scheduling other instructions instead; if the prediction of a miss is incorrect, some time is lost but accuracy is not impacted.
The exemplary embodiment of
Note that hardware tables are preferably implemented as hardware registers (storage elements such as latches) residing in the processor 106 itself.
It should be noted that in some embodiments, instead of using the Hash1 function 206, let the LOAD be any of the entries in the PHT. That is, match the higher order bits of the program counter with every single tag in the PHT (typically hundreds). Whichever one matches is the entry of interest. This is an example of CAM lookup, discussed further below. This provides added flexibility because a load now has, say, 256 different spots to reside in and there is less chance of a collision. A suitable technique is used to “kick out” an entry when the 257th LOAD comes (in a non-limiting example, kick out the oldest entry). However, there is an expense in terms of power in the CAM lookup embodiment, since all (say 256) tag entries in the PHT must be examined. The use of the hash function avoids this by restricting to only a single entry in the table. Thus, as compared to the CAM, the hash technique simplifies the lookup but at the expense of a greater risk of collision because two different loads may hash to the same location. On the other hand, the CAM, as compared to the hash, gives the freedom to go anywhere in the table, but at the cost of a more expensive lookup.
By way of review, one hardware structure includes a GHB (global history buffer) 202 of N bits. In particular, in one or more embodiments, the history register 202 is an N-bit shift register which shifts in bits representing the cache access outcome (hit or miss) of the most recent N accesses. An additional hardware structure includes a PC-based-table 204. Table 204 is an M-entry table, with each entry holding a tag of the PC (in the example of
The values of M and N are determined at the design time based on the nature of the applications that will be run on the machine. For example, N could be a few 10 s (like 30 or so), and M could be a few 100 s (like 256 or so).
One or more embodiments do not require a content-addressable memory (CAM) lookup of the table. If a hash function is used as described above, the load PC tag can reside in only one of the M entries of the Table 204 (the entry determined by the value of the log M bits chosen in the hash function). This could potentially lead to collisions as more than one load instruction could map to the same entry of the Table 204. To reduce the chances of collision, it is possible to allow a load PC tag to reside in any of the M locations of the Table 204. As discussed above, this can be achieved using a CAM, where to find a match in the table 204, all the entries are searched with the incoming tag of the load PC, and the matching entry is used for prediction. Similarly, a new entry can be inserted in any of the M positions. If the tag in the hash index does not match the tag of the PC, then stop prediction because the update in the PHT is likely from another LOAD instruction and not the LOAD instruction of interest. In such cases, a default prediction (typically HIT) can be employed.
Another method step useful in connection with the hardware embodiment of
One or more embodiments relate to predicting whether a cache access (load or store) will result in a cache miss. Based on such a prediction, the processor can take some action, such as re-ordering the instruction schedule so that other instructions go ahead of the instruction that is predicted to result in a cache miss. One or more embodiments make use of the fact that cache misses (and hits) come in bunches. In other words, misses are bursty.
In one or more embodiments, when in a “miss regime” (i.e., a regime where most of the cache accesses were misses), then the next access is predicted to be a miss.
Referring again to
Thus,
In general, all of the illustrative embodiments are preferably carried out early in the processor pipeline (early in the decode stage of the processor), as soon as it is determined that a given instruction is a memory-accessing instruction, without even knowing what memory address is going to be accessed. The PHTs are preferably implemented as hardware tables in the processor, preferably in the decode stage of the processor pipeline. In one or more embodiments, the given instruction is executed normally regardless of the prediction, but the prediction result is used in the scheduling of dependent instructions.
With continued reference to
Here, looking from the most recent outcome (MSB) 708, determine whether in a “HIT Regime” (a number of hits in a row) or “MISS Regime” (a number of misses in a row). This can be used to predict whether a memory-accessing instruction will result in a cache hit or a cache miss. In the exemplary embodiment of
At this point, the LOAD instruction is still in the early part of the pipeline (i.e., the decoder). The cache has not yet been accessed. Later, the cache will actually be accessed and the actual outcome will be pushed into GHB 702 as the MSB 708. Furthermore, the Miss-PHT, which was used to make the prediction, will also be updated based on whether the prediction was right or wrong (and similarly for the Hit-PHT if the Hit-PHT had been used to make the prediction).
One or more embodiments thus carry out the indicated techniques before accessing the cache, determine that an instruction will require a memory access, and then predict whether it will be a cache miss or a cache hit.
Reference should now be had to
The operation of the embodiment of
To reiterate, the tables for each illustrated embodiment are preferably maintained as hardware tables in the decode stage of the processor pipeline, and the illustrated steps are carried out early-on, upon determination that a given instruction is a memory-accessing instruction such as a LOAD.
One or more embodiments work separately at each individual cache level (L1, L2, and so on). However, in some cases, the techniques described can be implemented for multiple levels at the same time. For example, the GHB tracks all the true outcomes. The illustrative examples have focused, by way of example and not limitation, on the L1 level of cache. Every time there is an L1 actual hit or miss, the GHB is updated by pushing the result into the MSB. A similar GHB can be maintained for the L2 level of cache. This L2 GHB is updated whenever there is an L2 actual hit or miss. A separate GHB and PHT can be maintained for every cache level. The operation is otherwise similar.
One or more embodiments thus provide techniques wherein the GHR (similar to GHB) and/or branch target buffer (BTB) can be used to predict cache misses. In one or more embodiments, a prediction table is on the order of 2*N bits (“*” stands for multiplication not exponential). In one or more embodiments, replacements from the cache are handled by an existing replacement policy, and techniques are provided to predict whether a cache access will result in a hit or a miss. One or more instances are applicable to data and/or instruction caches.
Thus, in one or more instances, it is sufficient to predict the next cache access outcome based on the length of the last seen contiguous string of “hits” or “misses.” One or more embodiments use only N entries to predict outcome instead of 2N entries. In tracking per-load hit or miss behavior, it is noted that in many instances, only a small percentage of loads are responsible for a large fraction of cache misses. Furthermore, in tracking a global “hit” and/or “miss” region of applications, application behavior is typically a good guide to hit and/or miss prediction, and non-destructive interference among loads is observed. Thus,
Given the discussion thus far, it will be appreciated that, in general terms, an exemplary method, according to an aspect of the invention, includes the step of decoding, in a decode stage 1204 of hardware processor pipeline, one particular instruction of a plurality of instructions (e.g., the instruction whose LOAD PC is 208 or 408). An additional step includes determining that the particular instruction requires a memory access (e.g., is a LOAD or STORE); and, responsive to determining that the particular instruction requires a memory access, predicting whether the memory access will result in a cache miss; for example, using the techniques of
In some cases, such as depicted in
Reference should now be had to
On the other hand, in the CAM approach of
In some cases, such as the “hash” approach of
On the other hand, in the CAM approach of
Furthermore, given the discussion thus far, it will be appreciated that, in general terms, an exemplary hardware processor, according to an aspect of the invention, includes a decode pipeline stage 1204 which decodes one particular instruction of a plurality of instructions; hard-wired logic circuitry which determines that the particular instruction requires a memory access; a pattern history hardware table (e.g., 204, 404, or 704 and 706) within the decode pipeline stage; and a global history buffer 202, 402, or 702 within the decode pipeline stage. Also included is hard-wired logic circuitry which, responsive to determining that the particular instruction requires a memory access, predicts whether the memory access will result in a cache miss. The predicting in turn includes accessing one of a plurality of entries in the pattern history hardware table. The accessing is based, at least in part, upon at least a most recent entry in the global history buffer. The pattern history hardware table stores a plurality of predictions. The global history buffer stores actual results of previous memory accesses as one of cache hits and cache misses. Also included are an issue pipeline stage 1206 which schedules at least one additional one of the plurality of instructions in accordance with the predicting; an execution pipeline stage 1208 which actually executes the particular instruction; and hard-wired logic circuitry which updates the pattern history hardware table and the global history buffer subsequent to the actual execution of the particular instruction, to reflect whether the predicting was accurate.
The global history buffer and pattern history table can be configured as described with respect to any of the methods herein, and hard-wired logic circuitry can be provided to implement and of the method steps described herein.
In still another aspect, an exemplary hardware processor includes means for carrying out the method steps. The means include various structures disclosed herein, such as hardware tables, buffers such as shift registers, and hard-wired logic circuitry to implement the method steps.
Integrated circuit chips embodying aspects of the invention can be distributed by the fabricator in raw wafer form (that is, as a single wafer that has multiple unpackaged chips), as a bare die, or in a packaged form. In the latter case the chip is mounted in a single chip package (such as a plastic carrier, with leads that are affixed to a motherboard or other higher level carrier) or in a multichip package (such as a ceramic carrier that has either or both surface interconnections or buried interconnections). In any case the chip is then integrated with other chips, discrete circuit elements, and/or other signal processing devices as part of either (a) an intermediate product, such as a motherboard, or (b) an end product. The end product can be any product that includes integrated circuit chips, typically an advanced computer product having one or more central processors and optionally a display, a keyboard or other input device, and the like.
Design flow 1900 may vary depending on the type of representation being designed. For example, a design flow 1900 for building an application specific IC (ASIC) may differ from a design flow 1900 for designing a standard component or from a design flow 1900 for instantiating the design into a programmable array, for example a programmable gate array (PGA) or a field programmable gate array (FPGA) offered by Altera® Inc. or Xilinx® Inc.
Design process 1910 preferably employs and incorporates hardware and/or software modules for synthesizing, translating, or otherwise processing a design/simulation functional equivalent of the components, circuits, devices, or logic structures shown in
Design process 1910 may include hardware and software modules for processing a variety of input data structure types including Netlist 1980. Such data structure types may reside, for example, within library elements 1930 and include a set of commonly used elements, circuits, and devices, including models, layouts, and symbolic representations, for a given manufacturing technology (e.g., different technology nodes, 32 nm, 45 nm, 90 nm, etc.). The data structure types may further include design specifications 1940, characterization data 1950, verification data 1960, design rules 1970, and test data files 1985 which may include input test patterns, output test results, and other testing information. Design process 1910 may further include, for example, standard mechanical design processes such as stress analysis, thermal analysis, mechanical event simulation, process simulation for operations such as casting, molding, and die press forming, etc. One of ordinary skill in the art of mechanical design can appreciate the extent of possible mechanical design tools and applications used in design process 1910 without deviating from the scope and spirit of the invention. Design process 1910 may also include modules for performing standard circuit design processes such as timing analysis, verification, design rule checking, place and route operations, etc.
Design process 1910 employs and incorporates logic and physical design tools such as HDL compilers and simulation model build tools to process design structure 1920 together with some or all of the depicted supporting data structures along with any additional mechanical design or data (if applicable), to generate a second design structure 1990. Design structure 1990 resides on a storage medium or programmable gate array in a data format used for the exchange of data of mechanical devices and structures (e.g. information stored in an IGES, DXF, Parasolid XT, JT, DRG, or any other suitable format for storing or rendering such mechanical design structures). Similar to design structure 1920, design structure 1990 preferably comprises one or more files, data structures, or other computer-encoded data or instructions that reside on transmission or data storage media and that when processed by an ECAD system generate a logically or otherwise functionally equivalent form of one or more of the embodiments of the invention shown in
Design structure 1990 may also employ a data format used for the exchange of layout data of integrated circuits and/or symbolic data format (e.g. information stored in a GDSII (GDS2), GL1, OASIS, map files, or any other suitable format for storing such design data structures). Design structure 1990 may comprise information such as, for example, symbolic data, map files, test data files, design content files, manufacturing data, layout parameters, wires, levels of metal, vias, shapes, data for routing through the manufacturing line, and any other data required by a manufacturer or other designer/developer to produce a device or structure as described above and shown in
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Claims
1. A method comprising:
- fetching an instruction using a program counter; and
- predicting whether a memory access required by the instruction will result in a cache miss based on the program counter.
2. The method of claim 1, further comprising:
- decoding, in a decode stage of a hardware processor pipeline, said instruction; and determining that said instruction requires said memory access, wherein said predicting is performed upon determining that said particular instruction requires a memory access.
3. The method of claim 1, wherein predicting whether said memory access will result in a cache miss further comprises accessing one of a plurality of entries in a pattern history table stored as a hardware table in said decode stage according to at least a most recent entry in a global history buffer, said pattern history table storing a plurality of predictions, said global history buffer storing actual results of previous memory accesses as one of cache hits and cache misses.
4. The method of claim 3, further comprising:
- scheduling an additional instruction in accordance with said predicting; and
- updating said pattern history table and said global history buffer subsequent to actual execution of said particular instruction in an execution stage of said hardware processor pipeline, to reflect whether said predicting was accurate.
Type: Application
Filed: Jun 16, 2018
Publication Date: Oct 18, 2018
Patent Grant number: 10936319
Inventors: Vijayalakshmi Srinivasan (New York, NY), Brian R. Prasky (Wappingers Falls, NY)
Application Number: 16/010,427