Some of the purposes of the invention having been stated, others will appear as the description proceeds, when taken in connection with the accompanying drawings, in which:
While the present invention will be described more fully hereinafter with reference to the accompanying drawings, in which a preferred embodiment of the present invention is shown, it is to be understood at the outset of the description which follows that persons of skill in the appropriate arts may modify the invention here described while still achieving the favorable results of the invention. Accordingly, the description which follows is to be understood as being a broad, teaching disclosure directed to persons of skill in the appropriate arts, and not as limiting upon the present invention.
The term “programmed method”, as used herein, is defined to mean one or more process steps that are presently performed; or, alternatively, one or more process steps that are enabled to be performed at a future point in time. The term programmed method contemplates three alternative forms. First, a programmed method comprises presently performed process steps. Second, a programmed method comprises a computer-readable medium embodying computer instructions which, when executed by a computer system, perform one or more process steps. Third, a programmed method comprises a computer system that has been programmed by software, hardware, firmware, or any combination thereof to perform one or more process steps. It is to be understood that the term programmed method is not to be construed as simultaneously having more than one alternative form, but rather is to be construed in the truest sense of an alternative form wherein, at any given point in time, only one of the plurality of alternative forms is present.
Fetching instructions in a Trace Cache Design requires accessing a Trace Cache Directory to determine if the desired instructions are in the cache. If the instructions are present, they are accessed from the Trace Cache and moved into the instruction buffers and then to the instruction processing pipeline. The number of instructions read from the Trace Cache can be variable depending on how many instructions can be consumed by the pipeline and how many instructions are valid within the trace. Traces are generated by following numerous rules that result in trace sizes that vary from small to large.
In an implementation of this invention shown in
By dividing the logical trace cache into multiple physical arrays, this invention is able to save the power of entire physical array accesses by enabling only the arrays that contain the instructions we are interested in. For example, the suggested logical trace line is 24 instructions wide but it is constructed using 4 physical arrays of 6 instructions each. If a trace is accessed and found to only be 6 instructions wide, then only the first physical array is accessed and power is saved by not accessing the others.
This trace cache provides the same advantage as the second level cache by providing a large number of instructions per cycle. As shown in
This design also improves on power by moving the branch prediction logic out of the cache access path. As shown in
In the drawings and specifications there has been set forth a preferred embodiment of the invention and, although specific terms are used, the description thus given uses terminology in a generic and descriptive sense only and not for purposes of limitation.