EP1904922A2 - Power saving methods and apparatus for variable length instructions - Google Patents

Power saving methods and apparatus for variable length instructions

Info

Publication number
EP1904922A2
EP1904922A2 EP06736989A EP06736989A EP1904922A2 EP 1904922 A2 EP1904922 A2 EP 1904922A2 EP 06736989 A EP06736989 A EP 06736989A EP 06736989 A EP06736989 A EP 06736989A EP 1904922 A2 EP1904922 A2 EP 1904922A2
Authority
EP
European Patent Office
Prior art keywords
instructions
instruction
length
processor
bit
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
Application number
EP06736989A
Other languages
German (de)
French (fr)
Other versions
EP1904922B1 (en
Inventor
Brian Michael Stempel
James Norris Dieffenderfer
Jeffrey Todd Bridges
Rodney Wayne Smith
Thomas Andrew Sartorius
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qualcomm Inc
Original Assignee
Qualcomm Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qualcomm Inc filed Critical Qualcomm Inc
Publication of EP1904922A2 publication Critical patent/EP1904922A2/en
Application granted granted Critical
Publication of EP1904922B1 publication Critical patent/EP1904922B1/en
Not-in-force legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3818Decoding for concurrent execution
    • G06F9/382Pipelined decoding, e.g. using predecoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields
    • G06F9/30149Instruction analysis, e.g. decoding, instruction word fields of variable length instructions
    • G06F9/30152Determining start or end of instruction; determining instruction length
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3802Instruction prefetching
    • G06F9/3816Instruction alignment, e.g. cache line crossing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0875Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches with dedicated cache, e.g. instruction or stack
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates generally to techniques to reduce power in a processor which processes instructions having a variety of lengths, and, more particularly, to advantageous techniques for selectively enabling and disabling writing and reading predecode bits in an instruction cache.
  • processors typically support instruction sets having variable length instructions.
  • a processor's instruction set may consist of 32-bit instructions and 16-bit instructions.
  • a processor may also have a hierarchical memory configuration with multi-levels of caches including an instruction cache, a data cache, and system memory. If the processor also has a deep execution pipeline that operates at a high clock rate with short duration pipeline stages, it is also likely that the processor has a predecode stage to preprocess the instructions in order to simplify a subsequent decode stage and, thus, streamline the pipeline.
  • the predecode pipeline stage is commonly operative during an instruction cache miss to partially decode instructions that are fetched due to the instruction miss.
  • the predecode information is written into the instruction cache along with the fetched instructions.
  • the instructions fetched due to a miss may be of varying length.
  • the predecode operation determines a set of predecode bits for each instruction and the instruction and predecode bits are stored in the instruction cache independent of the processor's operating state. The writing and reading of predecode bits which may be unnecessary due to the processor's operating state is a source of power loss.
  • a first embodiment of the invention recognizes that a need exists for a technique which fetches and executes variable length instructions of a first length and of a second length, the second length being longer than the first length.
  • a processor operating mode state indicator indicates the processor is in a mode of operation that restricts instructions to instructions of the second length.
  • a predecoder partially decodes instructions of the first length and the second length and generates predecode bits for each partially decoded instruction. Instructions and predecode bits are stored in a cache line in an instruction cache.
  • Write control logic selectively writes predecode bits in a cache line dependent upon the processor operating mode state indicator whereby less than all the predecode bits are written for instructions of the second length.
  • a tag associated with the cache line is written with an instruction address and a processor state bit.
  • ⁇ 0006 ⁇ Fig. 1 is a graphic illustration of an exemplary wireless communication system in which an embodiment of the invention may be advantageously employed
  • ⁇ 0007 ⁇ Fig. 2 is a graphic illustration of a processor complex in accordance with the present invention
  • FIG. 3 A is a graphic illustration of an exemplary program segment containing varying length instructions of 16 and 32 bits in accordance with the present invention
  • Fig. 3B is a graphic illustration of an instruction line from a level 2 instruction and data cache (L2 cache) containing instructions from the program segment of Fig. 3 A in accordance with the present invention
  • Fig. 3C is a graphic illustration of an instruction line from a level 1 instruction cache (Ll Icache) containing instructions from the program segment of Fig. 3A in accordance with the present invention
  • Fig. 4 A is a graphic illustration of an exemplary program segment containing only 32-bit instructions operative in a processor mode restricted to only 32- bit instructions in accordance with the present invention
  • Fig. 4B is a graphic illustration of an instruction line from an L2 cache containing instructions from the program segment of Fig. 4A in accordance with the present invention
  • ⁇ 0013 ⁇ Fig. 4C is a graphic illustration of an instruction line from an Ll Icache containing instructions from the program segment of Fig. 4A in accordance with the present invention
  • ⁇ 0014 ⁇ Fig. 5 is a graphic illustration of processor pipeline stages which operate in accordance with the present invention to save power when writing to the Ll Icache and reading from the Ll Icache;
  • Fig. 6 is a flow chart of operational steps required to save power when writing and reading predecode information from an instruction cache line in accordance with the present invention.
  • Computer program code or "program code” for being operated upon or for carrying out operations according to the teachings of the invention may be written in a high level programming language such as C, C++, JAVA®, Smalltalk, JavaScript®, Visual Basic®, TSQL, Perl, or in various other programming languages.
  • Programs for the target processor architecture may also be written directly in the native assembler language.
  • a native assembler program uses instruction mnemonic representations of machine level binary instructions.
  • Program code or computer readable medium as used herein refers to machine language code such as object code whose format is understandable by a processor.
  • Fig. 1 is an illustration of an exemplary wireless communication system
  • Fig. 1 shows three remote units 120, 130, and 150 and two base stations 140. It will be recognized that typical wireless communication systems may have many more remote units and base stations.
  • Remote units 120, 130, and 150 include hardware components 125A, 125B, and 125C, respectively, executing program code in accordance with the present invention.
  • Fig. 1 shows a forward link signal 180 from the base stations 140 and the remote units 120, 130, and 150 and a reverse link signal 190 from the remote units 120, 130, and 150 to base stations 140.
  • remote unit 120 is shown as a mobile telephone, remote unit
  • Fig. 1 illustrates remote units according to the teachings of the invention, the invention is not limited to these exemplary illustrated units.
  • the invention may be suitably employed in any hardware component using a pipelined processor having variable length instructions which stores predecode information in an instruction cache.
  • Fig. 2 is an illustration of a processor complex 200 in which an embodiment of the invention may be advantageously employed.
  • the processor complex 200 may be suitably employed in hardware components 125 A-C for executing program code.
  • the processor complex 200 includes a processor 210 which executes instructions of different lengths, a level 1 (Ll) data cache 214, an Ll instruction cache (Icache) 218, a predecoder 222, a level 2 instruction and data cache (L2 cache) 226, and an interface to system memory. Peripheral devices which may connect to the processor complex are not shown for clarity of discussion of the present invention.
  • the processor 210 is directly coupled to the Ll data cache 214, Ll Icache 218, and the predecoder 222.
  • the processor 210 retrieves instructions and data from the caches in a hierarchical fashion.
  • the processor 210 fetches an instruction by generating a fetch address and processor operating mode state on Ll Icache inputs 228, and providing other information as may be required to fetch an instruction, such as a process identification (PED) signal.
  • the processor operating mode state is an indicator of the programmer specified mode of operation of the processor.
  • the processor's instruction set includes instructions encoded in multiple length formats, where longer instructions are commonly a multiple of the shortest instruction format length available in the variable length instruction set. Since an instruction may have a complex encoding that may vary depending upon the length of the instruction and may be adjacent to instructions of different lengths, the alignment and decoding of a fetched instruction may require processing beyond what is capable in a single processor pipeline stage with a short duration clock period. Due to the level of instruction complexity, the processor may include a separate instruction alignment pipeline stage and split the decode operation into a predecode step and a decode pipeline stage. The predecode step may be suitably hidden from normal pipeline execution by doing the predecode operation during Ll Icache miss processing.
  • Ll Icache miss processing occurs when the fetched instruction is not found in the Ll Icache and must be fetched from higher levels of the memory hierarchy.
  • the predecode step stores predecode information along with the fetched instruction in the Ll instruction cache. ⁇ 0022 ⁇
  • the processor 210 accesses the Ll Icache 218 to determine if the addressed instruction is present in the Ll Icache by use of a match mechanism. If no match is found for the fetched instruction in the Ll Icache 218, a miss occurs. Miss information 230 is sent to the predecoder 222, and the processor 210 makes an access request 232 to the L2 cache 226.
  • an L2 cache line containing the desired instruction is output on portA 234 to the predecoder 222.
  • the predecoder 222 during a predecode stage in the miss processing, partially decodes the instructions fetched from the L2 cache and provides instructions, predecoded bits associated with the instructions, and tag information on output 238 to the Ll Icache 218 and to the processor 210.
  • Ll data cache 214 determines if the addressed data is present in the Ll data cache by use of a match mechanism. If no match is found for the fetched data in the Ll data cache 214, a miss occurs and the L2 cache 226 is accessed next. In both Ll cache cases, if the instruction or data is found to be present in the Ll instruction or Ll data cache, respectively, then the instruction and data are read directly from their respective Ll cache on outputs 240 and 244.
  • Fig. 3 A is an exemplary program segment 300 that may be suitably stored in the memory hierarchy of the processor complex 200, including the L2 cache 226 and the Ll Icache 218.
  • the program segment is assumed to be retrieved from a cache line, the teachings of the invention are appliable to any memory device storing the program segment.
  • the term cache line may also be referred to as an instruction string or an instruction stream. Since a cache line may have a fixed length, the terms instruction string or instruction stream typically refer to one or more program segments which may or may not span the boundary of a cache line.
  • the program segment 300 includes instructions 302 which come from a variable length instruction set consisting of 16-bit and 32-bit instructions. For example, consider processor 210 to use 16-bit and 32-bit instruction formats for multiple types of instructions and supports several modes of operation that specify and restrict instruction type usage. Processor 210 has a first mode of operation that specifies only 32-bit instructions may be used and a second mode of operation that specifies that a combination of 16-bit and 32-bit instructions may be used. While processors typically have multiple modes of operation, for the purposes of clarity of discussion of the present invention, the description of the exemplary processor 210 is primarily limited to the first and second modes of operation described above.
  • program relative byte indicators 304 represent the byte location in a cache line where an instruction begins and indirectly indicate the size of the instruction.
  • the MULT R5, R4, R3 instruction 306 begins at byte position 00 and ends at byte position 01.
  • MULT R5, R4, R3 instruction 306 is a 16-bit instruction.
  • the ADD instructions 307 and 311 and the SHIFT instruction 309 are 16 bits long.
  • the conditional branch (CBRANCH) instruction 308, the load (LOAD) instruction 310, and the store (STORE) instruction 312 are 32-bits long.
  • FIG. 3B A portion of an L2 cache line 320 is depicted in Fig. 3B. Only a portion of a cache line is shown for illustrative purposes, as cache line sizes may vary depending upon the application, technology, and chosen memory hierarchy design. For example, a 256-bit or a 512-bit cache line may be used for an L2 cache. The illustrated portion has multiple 16-bit fields.
  • Instructions 314 of Fig. 3 A are stored in the L2 cache line 320 as indicated, with the MULT R5, R4, R3 instruction 306 stored in L2 cache line segment 322 starting at location 00.
  • the ADD RO, R5, Rl instruction 307 is stored in L2 cache line segment 324 starting at location 02.
  • the CBRANCH OA instruction 308 is stored in L2 cache line segment 330. Instruction 308 is made up of two 16-bit segments 332 and 334, starting at location 04 and location 06, respectively.
  • the SHIFT RO, 1 instruction 309 is stored in L2 cache line segment 336 starting at location 08. It is noted that for illustrative purposes, the program segment 300 has been shown starting at the beginning of a cache line, but it will be appreciated that such program segments may be located in other sections of a cache line and may be split between multiple cache lines.
  • FIG. 3C An exemplary Ll Icache line 350 is depicted in Fig. 3C consisting of multiple 20-bit fields, with each 20-bit field made up of a 16-bit field with an associated 4-bit predecode (Pd4) field.
  • the Ll cache may utilize 128-bits for instructions and require an additional space for eight Pd4 fields resulting in a 160-bit Ll cache line.
  • a single 4-bit Pd4 field is used for both 16-bit instructions and for 32-bit instructions.
  • the 4-bit Pd4 field may contain up to sixteen encoded characteristics of the instruction associated with the Pd4 field. For example, the encoding may indicate whether the instruction is a load or store instruction, an arithmetic instruction, or a complex instruction requiring microcode support.
  • the encoding may also indicate whether the 16 bits of instruction data is the first-half of a 32-bit instruction or a 16-bit instruction, whether the instruction is a branch type of instruction, or the like.
  • the Pd4 information is useful in instruction alignment, decoding, and may be used for other purposes, such as branch handling, for example.
  • the instructions 314 of Fig. 3 A may be located in the Ll cache line beginning with the 16-bit MULT R5, R4, R3 instruction 306 and its associated Pd4 field stored in Ll cache line segments 352 and 354, respectively.
  • the 16-bit ADD RO, R5, Rl instruction 307 and its associated Pd4 field are stored in Ll cache line segments 356 and 358, respectively.
  • the 32-bit CBRANCH OA instruction 308 is stored differently since only one set of predecode bits is required to be stored with the 32-bit instruction.
  • the 16-bit Ll cache line segment 362 contains the high order 16-bits of the CBRANCH OA instruction 308.
  • the Pd4 field 364 provides predecode information for the 32-bit CBRANCH instruction while the next 16-bit Ll cache line segment 366 contains the low order 16-bits of the CBRANCH OA instruction 308.
  • the Pd4 field 368 is not required for the CBRANCH OA instruction 308. Since other program segments may occupy the cache line at different times, the Pd4 field 368 may be used in support of a 16-bit instruction that is stored, for example, in the 16-bit Ll cache line segment 366.
  • the next instruction in the Ll cache line is a 16-bit SHIFT RO, 1 instruction 309 which is stored in a 20-bit field made up of 16-bit Ll cache line segment 370 and Pd4 field 372.
  • a similar ordering for the other instructions in program segment 314 is followed for the remaining bit fields in the cache line 350.
  • Fig. 4 A illustrates an exemplary program segment 400 that may be suitably stored in the memory hierarchy of the processor complex 200, including the L2 cache 226 and the Ll Icache 218.
  • the program segment 400 includes 32-bit instructions 402 operative in the first mode of operation of the processor 210 and all instructions are located by architectural definition on word aligned boundaries.
  • Program relative byte indicators 404 represent the byte location in the cache line where an instruction begins and indirectly indicate the size of the instruction. For example, the LOAD R22, EE instruction 406 begins at byte position 00 and ends at byte position 03.
  • LOAD R22, EE instruction 406 is a 32-bit instruction.
  • the ADD instructions 407 and 411, the CBRANCH 10 408, the SHIFT instruction 409, the LOAD R20, 8F instruction 410, and the STORE instruction 412 are all 32-bits long. ⁇ 0031 ⁇ A portion of an L2 instruction cache line 420 is depicted in Fig. 4B.
  • Line 420 has multiple 16-bit fields. Only a portion of a cache line is illustrated as cache line sizes may vary depending upon the application, technology, and chosen memory hierarchy design. For example, either a 256-bit or a 512-bit cache line may be suitably used for an L2 cache.
  • Instructions 414 of Fig. 4A are stored in the L2 cache line 420 as indicated, with the LOAD R22, EE instruction 406 stored in L2 cache line segment 422 starting at location 00.
  • the ADD R 19, R22, R30 instruction 407 is stored in L2 cache line segment 432 starting at location 04.
  • the CBRANCH 10 instruction 408 is stored in L2 cache line segment 436 starting at location 08.
  • the other 32-bit instructions are stored in a similar manner in the L2 cache.
  • program segment 400 has been shown starting at the beginning of a cache line, but it will be appreciated that such 32-bit instruction program segments may be located in other sections of a cache line on word boundaries and may be split between multiple cache lines.
  • Line 450 has multiple 20-bit fields, with each 20-bit field made up of a 16-bit field with an associated 4-bit predecode (Pd4) field.
  • Pd4 field is used for both 16-bit instructions and for 32-bit instructions.
  • the Ll cache may store 128-bits for instructions and require an additional space for eight Pd4 fields resulting in a 160-bit Ll cache line.
  • 4A may be located in the Ll cache line beginning with the 32-bit LOAD R22, EE instruction 406 stored in Ll cache line segment 452 made up of 16-bit segment 454, its associated Pd4 field 456, and 16-bit segment 458. Since the 4-bit Pd4 field 456 supplies the predecode information for the 32-bit LOAD R22, EE instruction, the second 4-bit Pd4 field 460 is not needed and consequently, by use of the techniques of the present invention, the Pd4 field 460 is not written to or read from. Similarly, the 32-bit ADD R19, R22, R30 instruction 407 is stored in Ll cache line segments 464 and 468 and instruction 407 r s associated Pd4 field is stored in segment 466.
  • the 4-bit Pd4 field 470 is not needed, and using the techniques of the present invention, the Pd4 field 470 is not written to or read from.
  • the 32-bit CBRANCH 10 instruction 408 is stored in Ll cache line segments 474 and 478 and the CBRANCH 10 instruction 408's associated Pd4 field is stored in segment 476.
  • the Pd4 field 480 is also not needed. Again, using of the techniques of the present invention, the Pd4 field 480 is not written to or read from. Since other program segments may occupy the cache line at different times, the Pd4 fields 460, 470, and 480 may be used in support of 16-bit instructions, for example, associated with the 16-bit Ll cache line segments 458, 468, and 478, respectively.
  • a similar ordering for the next 32- bit instruction 409 in program segment 414 is followed for the remaining bit fields in the cache line 450.
  • ⁇ 0033 ⁇ One aspect of the present invention relates to the writing of the predecode information into an Ll cache line according to the techniques of the present invention to save power when writing to the Ll Icache.
  • a second aspect addresses the selective enabling of predecode bit fields to save power when reading from the Ll Icache. Both of these aspects are described in further detail below.
  • ⁇ 0034 ⁇ Fig. 5 illustrates processor pipeline stages 500 which operate in accordance with the present invention to save power when writing to the Ll Icache 218 and when reading from the Ll Icache 218.
  • the Ll Icache 218 is split into two processor pipeline stages. A first pipeline stage is used for instruction tag matching in an instruction content addressable memory (ICAM) unit 502.
  • ICM instruction content addressable memory
  • a second pipeline stage is used for accessing instructions from an instruction random access memory (IRAM) 503 when a tag match hit occurs in the ICAM unit 502.
  • IRAM instruction random access memory
  • IDA instruction alignment
  • the present invention operates to save power when writing to the Ll
  • Icache For example, when an Ll Icache miss occurs, instructions from the L2 cache or system memory and selected predecode bit fields are written to the Ll Icache. Depending upon processor state information, the selected predecode bit fields that are written to the Ll Icache may be less than all the predecode bit fields available in an Icache line, thereby saving power. The saving of power is accomplished when resolving an Ll Icache miss which may occur for many reasons. For example, on initialization of the Ll Icache, the Icache is treated as having invalid contents and there will be misses as the Ll Icache is filling. Also, when a program branches to a new section of code, there is a greater chance for an Icache miss occurring on an Ll Icache fetch.
  • the processor 210 initiates the fetching of instructions from the Ll
  • Icache by providing the address of the instruction to be fetched (Faddress) 504, and by providing current operating mode state (COMS) information 506 which is representative of the program specified operating mode at the time of the fetch to the ICAM unit 502.
  • Processor 210 may also provide other information, such as the PID, to the ICAM unit 502.
  • the COMS information at the time of the fetch may include whether the processor is in the first mode of operation which uses only 32-bit instructions on word aligned boundaries, the second mode of operation which uses both 16-bit and 32-bit instructions, or other processor modes.
  • the ICAM unit 502 stores an instruction address (Iaddress) 509, the processor's operating mode at the time of fetch (FOMS) 510, and other such information deemed necessary for a match operation, as tags in ICAM lines, such as ICAM line 512.
  • the processor supplies an Faddress 504 and processor COMS 506 which are compared to the stored ICAM line tags to determine if any stored ICAM lines hold valid data that matches the processor supplied Faddress, and COMS. If no ICAM line is found with a valid matching address, processor operating mode state, or the like, it is considered a miss, and a miss indication 514 is given to the processor 210.
  • the processor 210 proceeds to do a fetch from the L2 cache 226 or from system memory if the instruction is not found in the L2 cache 226. After a latency due to memory access timing, instructions are provided from the system memory or L2 cache output 518 to a predecoder 520 and IRAM 503. The processor 210 also sends predecoder 520 miss information 522 concerning the instruction fetch addressing, processor operating mode state at the time of the fetch, and the like. ⁇ 0038 ⁇ The predecoder 520 tracks the miss information to account for memory latencies and makes miss information available. Miss information includes, for example, the processor Ll Icache fetch address and processor state at the time of the fetch.
  • the tracked fetch address is supplied on output 524
  • the tracked processor state is supplied on output 526
  • other information may be supplied on output 528, such as the PID, when the instructions are provided from the system memory or L2 cache output bus 518.
  • the instructions on output bus 518 are partially decoded in predecoder 520 generating 4-bit Pd4 outputs 530, 532, through 534, for the appropriate 16-bit fields to be stored in the IRAM 503. Only Pd4 bits that hold valid information are generated in the predecoder 520.
  • the instructions on output bus 518 are appropriately split, for example, as illustrated for a first 16-bits 536, a second 16-bits 538, through a final 16- bits 540, for storage into the IRAM 503.
  • the instruction 16-bit fields 536, 538, through 540 and their respective Pd4 outputs 530, 532, through 534, are stored into an IRAM line, such as IRAM line 542 under control of write control logic 544.
  • IRAM line 542 under control of write control logic 544.
  • the instructions to be stored in the IRAM line 542 are all 32-bit instructions. With only 32-bit instructions to be stored in the IRAM line 542, only half of the Pd4 bits need to be written, such as Pd4 output 530.
  • the Pd4 outputs, such as Pd4 output 532, associated with the second half 16-bits of the 32-bit instruction are not required, and are not written in IRAM 503.
  • an Ll Icache line of 160-bits there can be stored four 32-bit instructions and 32-bits of predecode information of which only 16-bits are required to be stored when the Ll Icache line has only 32-bit instructions, as is the case for the first mode of operation. On average, this represents a 10% savings in power when writing to the Ll Icache, due to not writing 16- bits out of the 160-bits of the Ll Icache line.
  • ICAM line 512 is directly related to the IRAM line 542 so that on an Ll Icache hit 550 in the ICAM unit 502 the appropriate line in the IRAM unit 503 can be output on IRAM output 552 under control of read control logic 546.
  • the IRAM output 552 contains the desired instruction and a number of following instructions which are sent to the instruction alignment (IDA) stage 516.
  • Instructions received in the instruction alignment stage 516 are aligned and made ready for a subsequent decode and execute stage 554.
  • the instruction alignment stage 516 and decode stage 554 know the state of the cache line since, for example, the Pd4 bits track down the pipeline. Beginning from the pipeline stage for accessing instructions from the IRAM unit 503, the Pd4 bits proceed to the instructions alignment stage 516, and then to the decode stage 554. If the operating mode state of processor 210 in the EDA 516 is the first mode of operation for 32-bit only instructions, then the alignment logic knows that only the 1 st , 3 rd , 5 th , and other odd predecode bit fields (Pd4) are valid.
  • processor 210 in the IDA 516 is the second mode of operation for 16-bit and 32-bit instructions, then all Pd4 fields are considered since all Pd4 fields may be valid.
  • a beginning Pd4 field is evaluated to determine whether the associated 16-bit field is the first half of a 32-bit instruction or a 16-bit instruction. If the Pd4 field indicates that its associated 16-bit field is the first half of a 32-bit instruction, then the next Pd4 field is ignored. If the Pd4 field indicates a 16-bit instruction, then the next consecutive Pd4 field is similarly examined. This processes continues, rippling across the remaining Pd4 fields in the fetched cache line.
  • the IRAM output 552 may supply 64-bits of instructions, allowing up to four 16-bit instructions, two 16-bit instructions and a single 32-bit instruction, or up to two 32-bit instructions, and associated predecode bits, to the instruction alignment unit 516.
  • the IRAM output 552 may supply the full IRAM cache line such as IRAM line 542.
  • the processor state 506 indicates the processor is in the mode which uses only 32-bit instructions on word aligned boundaries, then the instructions to be read from the IRAM line 542 are all considered 32-bit instructions.
  • Pd4 bits With only 32-bit instructions stored in the IRAM line, only half of the Pd4 bits need to be read, such as the Pd4 field 556.
  • the Pd4 bits, such as Pd4 field 558, associated with the second half 16-bits of a 32-bit instruction are not required.
  • an Ll Icache line of 160-bits four 32- bit instructions and 32-bits of predecode information can be stored. However, only 16- bits of predecode information are required to be read in this example. On average, this represents a 10% savings in power when reading from the Ll Icache, due to not reading 16-bits of the 160-bits when reading the Ll Icache line.
  • the processor fetch operating mode state (FOMS) 510 is stored in each tag, such as tag 512.
  • the stored FOMS 510 may indicate a first state 580 representing the first mode of operation or a second state 582 representing the second mode of operation, for writing and reading the predecode bits.
  • the whole Ll Icache line 350 is made up of 16-bit and 32-bit instructions, which when written to the IRAM 503 is associated with an ICAM tag having a FOMS that indicates the second state 582.
  • the whole Ll Icache line 450 is made up of only 32-bit instructions, which when written to the IRAM 503 is associated with an ICAM tag having a FOMS that indicates the first state 580.
  • the second state 582 all Pd4 fields are enabled for both writing and reading.
  • the first state 580 only the Pd4 fields associated with the first half 16-bits of each 32-bit instruction are enabled and the Pd4 fields associated with the second half 16-bits of each 32-bit instruction are not enabled for writing or reading the IRAM 503 instructions.
  • Fig. 6 is a flow chart 600 illustrating operational steps in accordance with the present invention for saving power when writing and reading predecode information from an instruction cache line.
  • a processor fetches instructions to be executed where the instructions are of two types.
  • a first type instruction is formatted in a first length, such as 16-bits
  • a second type instruction is formatted in a second length.
  • the second length such as 32-bits, is longer than the first length.
  • the instructions of the first type and the second type are partially decoded in a predecoder.
  • predecode information is generated for the partially decoded instructions.
  • step 625 it is determined whether the processor operating mode state indicates instructions are restricted to the second type. If the processor operating mode state is such that the processor does not restrict instructions to the second type, step 630 is followed to enable all predecode bits in an instruction cache line for writing. If the processor operating mode state is such that the processor does restrict instructions to the second type, step 635 is followed to selectively enable predecode bits associated with second type instructions in an instruction cache line for writing. After writing a cache line for a fetched instruction, the system returns to step 610.
  • the present invention is not limited to the illustrated pipeline stages 500 and is further applicable to any pipeline processor having variable length instructions which stores predecode information in an instruction cache. Extensions to a variable length processor instruction set may be accommodated by the present invention if the extension supports a unique mode of instruction set use such that predecode information may be selectively controlled thereby saving write and read power. For example, a third mode may be specified where only 64-bit instructions are operative and all 64-bit instructions are located on double word boundaries, such that 64-bit instructions are not split across an Ll Icache line.
  • the processor using 64-bit instruction types may be an extension of the exemplary processor 210 described above.
  • the extended processor could have operating mode states encoded for the first state 580 restricted to only 32-bit instructions, the second state 582 for both 16-bit and 32-bit instructions, and a third state 584 restricted to only 64-bit instructions.
  • a 64-bit instruction in an Icache line such as IRAM line 542 of Fig. 5, would be partitioned into four 20-bit fields, where each 20-bit field has a section of the 64-bit instruction and an associated Pd4 field.
  • the Pd4 fields associated with the first 16-bits of the 64-bit instructions would be used for the whole 64-bit instruction, and the following three Pd4 fields would not be required.
  • the first, fifth, ninth, and the like Pd4 fields would be used while the other, second, third, fourth, sixth, seventh, eighth, tenth and the like, Pd4 fields would not be written to or read from.
  • a 160- bit Ll Icache line containing two 64-bit instructions and thirty two Pd4 bits, twenty four bits of the thirty two Pd4 bits would not be written to or read from. On average, this represents a 15% power savings, when accessing an Ll Icache line due to not writing and not reading 24-bits out of the 160-bits in the Ll Icache line.
  • the present invention is also not limited to instruction lengths that are power of two.
  • instruction cache line is partitioned into 8-bit instruction sections and 2-bit predecode sections.
  • a 16-bit instruction would consist of 20-bits organized as ⁇ 8-bits, 2-bits Pd2, 8-bits, 2-bits Pd2 ⁇ .
  • a 24-bit instruction would consist of 30-bits organized as ⁇ 8-bits, 2-bits Pd2, 8-bits, 2- bits Pd2, 8-bits, 2-bits Pd2 ⁇ .
  • a 160-bit cache line storing 16-bit instructions would be able to hold eight 16-bit instructions organized as eight 20-bit sections for a total of 160-bits with all bits fully utilized.
  • a 160-bit cache line storing 24-bit instructions would be able to hold five 24-bit instructions organized as five 30-bit sections for a total of 150-bits, with five Pd2 2-bit fields that are not valid and 10-bits remaining in the line that are not utilized.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Advance Control (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Executing Machine-Instructions (AREA)
  • Vehicle Body Suspensions (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)
  • Containers And Plastic Fillers For Packaging (AREA)
  • Power Sources (AREA)

Abstract

A processor capable of fetching and executing variable length instructions is described having instructions of at least two lengths. The processor operates in multiple modes. One of the modes restricts instructions that can be fetched and executed to the longer length instructions. An instruction cache is used for storing variable length instructions and their associated predecode bit fields in an instruction cache line and storing the instruction address and processor operating mode state information at the time of the fetch in a tag line. The processor operating mode state information indicates the program specified mode of operation of the processor. The processor fetches instructions from the instruction cache for execution. As a result of an instruction fetch operation, the instruction cache may selectively enable the writing of predecode bit fields in the instruction cache and may selectively enable the reading of predecode bit fields stored in the instruction cache based on the processor state at the time of the fetch.

Description

POWER SAVING METHODS AND APPARATUS TO SELECTIVELY ENABLE CACHE BITS BASED ON KNOWN PROCESSOR STATE
BACKGROUND OF THE INVENTION
Field of the Invention
{0001 } The present invention relates generally to techniques to reduce power in a processor which processes instructions having a variety of lengths, and, more particularly, to advantageous techniques for selectively enabling and disabling writing and reading predecode bits in an instruction cache.
Relevant Background
{0002} Many processors typically support instruction sets having variable length instructions. For example, a processor's instruction set may consist of 32-bit instructions and 16-bit instructions. A processor may also have a hierarchical memory configuration with multi-levels of caches including an instruction cache, a data cache, and system memory. If the processor also has a deep execution pipeline that operates at a high clock rate with short duration pipeline stages, it is also likely that the processor has a predecode stage to preprocess the instructions in order to simplify a subsequent decode stage and, thus, streamline the pipeline. The predecode pipeline stage is commonly operative during an instruction cache miss to partially decode instructions that are fetched due to the instruction miss. The predecode information is written into the instruction cache along with the fetched instructions.
{0003} In a variable length instruction processor, the instructions fetched due to a miss may be of varying length. The predecode operation determines a set of predecode bits for each instruction and the instruction and predecode bits are stored in the instruction cache independent of the processor's operating state. The writing and reading of predecode bits which may be unnecessary due to the processor's operating state is a source of power loss.
SUMMARY QF THE DISCLOSURE
{0004} Among its several aspects, the present invention recognizes that power can be conserved by selectively enabling the writing and reading of predecode bits. A first embodiment of the invention recognizes that a need exists for a technique which fetches and executes variable length instructions of a first length and of a second length, the second length being longer than the first length. A processor operating mode state indicator indicates the processor is in a mode of operation that restricts instructions to instructions of the second length. A predecoder partially decodes instructions of the first length and the second length and generates predecode bits for each partially decoded instruction. Instructions and predecode bits are stored in a cache line in an instruction cache. Write control logic selectively writes predecode bits in a cache line dependent upon the processor operating mode state indicator whereby less than all the predecode bits are written for instructions of the second length. A tag associated with the cache line is written with an instruction address and a processor state bit. When reading, a fetch instruction address and a processor operating mode indicator are compared with the tag and if the comparison is equal selected predecode bits are read from the cache line whereby less than all the predecode bits available in the cache line are read for instructions of the second length.
{0005} A more complete understanding of the present invention, as well as further features and advantages of the invention, will be apparent from the following Detailed Description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
{0006} Fig. 1 is a graphic illustration of an exemplary wireless communication system in which an embodiment of the invention may be advantageously employed; {0007} Fig. 2 is a graphic illustration of a processor complex in accordance with the present invention;
{0008} Fig. 3 A is a graphic illustration of an exemplary program segment containing varying length instructions of 16 and 32 bits in accordance with the present invention;
{0009} Fig. 3B is a graphic illustration of an instruction line from a level 2 instruction and data cache (L2 cache) containing instructions from the program segment of Fig. 3 A in accordance with the present invention;
{0010} Fig. 3C is a graphic illustration of an instruction line from a level 1 instruction cache (Ll Icache) containing instructions from the program segment of Fig. 3A in accordance with the present invention;
{0011 } Fig. 4 A is a graphic illustration of an exemplary program segment containing only 32-bit instructions operative in a processor mode restricted to only 32- bit instructions in accordance with the present invention;
{0012} Fig. 4B is a graphic illustration of an instruction line from an L2 cache containing instructions from the program segment of Fig. 4A in accordance with the present invention;
{0013} Fig. 4C is a graphic illustration of an instruction line from an Ll Icache containing instructions from the program segment of Fig. 4A in accordance with the present invention; {0014} Fig. 5 is a graphic illustration of processor pipeline stages which operate in accordance with the present invention to save power when writing to the Ll Icache and reading from the Ll Icache; and
{0015} Fig. 6 is a flow chart of operational steps required to save power when writing and reading predecode information from an instruction cache line in accordance with the present invention.
DETAILED DESCRIPTION
{0016} The present invention will now be described more fully with reference to the accompanying drawings, in which several embodiments of the invention are shown. This invention may, however, be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
{0017} Computer program code or "program code" for being operated upon or for carrying out operations according to the teachings of the invention may be written in a high level programming language such as C, C++, JAVA®, Smalltalk, JavaScript®, Visual Basic®, TSQL, Perl, or in various other programming languages. Programs for the target processor architecture may also be written directly in the native assembler language. A native assembler program uses instruction mnemonic representations of machine level binary instructions. Program code or computer readable medium as used herein refers to machine language code such as object code whose format is understandable by a processor.
{0018} Fig. 1 is an illustration of an exemplary wireless communication system
100 in which an embodiment of the invention may be advantageously employed. For purposes of illustration, Fig. 1 shows three remote units 120, 130, and 150 and two base stations 140. It will be recognized that typical wireless communication systems may have many more remote units and base stations. Remote units 120, 130, and 150 include hardware components 125A, 125B, and 125C, respectively, executing program code in accordance with the present invention. Fig. 1 shows a forward link signal 180 from the base stations 140 and the remote units 120, 130, and 150 and a reverse link signal 190 from the remote units 120, 130, and 150 to base stations 140. {0019} In Fig. 1, remote unit 120 is shown as a mobile telephone, remote unit
130 is shown as a portable computer, and remote unit 150 is shown as a fixed location remote unit in a wireless local loop system. For example, the remote units may be hand-held personal communication systems (PCS) units, portable data units such as personal data assistants, or fixed location data units such as meter reading equipment. Although Fig. 1 illustrates remote units according to the teachings of the invention, the invention is not limited to these exemplary illustrated units. The invention may be suitably employed in any hardware component using a pipelined processor having variable length instructions which stores predecode information in an instruction cache. {0020} Fig. 2 is an illustration of a processor complex 200 in which an embodiment of the invention may be advantageously employed. The processor complex 200 may be suitably employed in hardware components 125 A-C for executing program code. The processor complex 200 includes a processor 210 which executes instructions of different lengths, a level 1 (Ll) data cache 214, an Ll instruction cache (Icache) 218, a predecoder 222, a level 2 instruction and data cache (L2 cache) 226, and an interface to system memory. Peripheral devices which may connect to the processor complex are not shown for clarity of discussion of the present invention. The processor 210 is directly coupled to the Ll data cache 214, Ll Icache 218, and the predecoder 222. The processor 210 retrieves instructions and data from the caches in a hierarchical fashion. For example, the processor 210 fetches an instruction by generating a fetch address and processor operating mode state on Ll Icache inputs 228, and providing other information as may be required to fetch an instruction, such as a process identification (PED) signal. The processor operating mode state is an indicator of the programmer specified mode of operation of the processor.
{0021} The processor's instruction set includes instructions encoded in multiple length formats, where longer instructions are commonly a multiple of the shortest instruction format length available in the variable length instruction set. Since an instruction may have a complex encoding that may vary depending upon the length of the instruction and may be adjacent to instructions of different lengths, the alignment and decoding of a fetched instruction may require processing beyond what is capable in a single processor pipeline stage with a short duration clock period. Due to the level of instruction complexity, the processor may include a separate instruction alignment pipeline stage and split the decode operation into a predecode step and a decode pipeline stage. The predecode step may be suitably hidden from normal pipeline execution by doing the predecode operation during Ll Icache miss processing. Ll Icache miss processing occurs when the fetched instruction is not found in the Ll Icache and must be fetched from higher levels of the memory hierarchy. The predecode step stores predecode information along with the fetched instruction in the Ll instruction cache. {0022} In operation, the processor 210 accesses the Ll Icache 218 to determine if the addressed instruction is present in the Ll Icache by use of a match mechanism. If no match is found for the fetched instruction in the Ll Icache 218, a miss occurs. Miss information 230 is sent to the predecoder 222, and the processor 210 makes an access request 232 to the L2 cache 226. With an instruction hit in the L2 cache 226, an L2 cache line containing the desired instruction is output on portA 234 to the predecoder 222. The predecoder 222, during a predecode stage in the miss processing, partially decodes the instructions fetched from the L2 cache and provides instructions, predecoded bits associated with the instructions, and tag information on output 238 to the Ll Icache 218 and to the processor 210.
{0023} When the processor 210 needs to fetch data, the processor 210 accesses
Ll data cache 214 to determine if the addressed data is present in the Ll data cache by use of a match mechanism. If no match is found for the fetched data in the Ll data cache 214, a miss occurs and the L2 cache 226 is accessed next. In both Ll cache cases, if the instruction or data is found to be present in the Ll instruction or Ll data cache, respectively, then the instruction and data are read directly from their respective Ll cache on outputs 240 and 244.
{0024} Fig. 3 A is an exemplary program segment 300 that may be suitably stored in the memory hierarchy of the processor complex 200, including the L2 cache 226 and the Ll Icache 218. It should be noted that although for illustration purposes the program segment is assumed to be retrieved from a cache line, the teachings of the invention are appliable to any memory device storing the program segment. In general, the term cache line may also be referred to as an instruction string or an instruction stream. Since a cache line may have a fixed length, the terms instruction string or instruction stream typically refer to one or more program segments which may or may not span the boundary of a cache line.
{0025} The program segment 300 includes instructions 302 which come from a variable length instruction set consisting of 16-bit and 32-bit instructions. For example, consider processor 210 to use 16-bit and 32-bit instruction formats for multiple types of instructions and supports several modes of operation that specify and restrict instruction type usage. Processor 210 has a first mode of operation that specifies only 32-bit instructions may be used and a second mode of operation that specifies that a combination of 16-bit and 32-bit instructions may be used. While processors typically have multiple modes of operation, for the purposes of clarity of discussion of the present invention, the description of the exemplary processor 210 is primarily limited to the first and second modes of operation described above.
{0026} In order to illustrate aspects of the present invention, several exemplary
16-bit and 32-bit instructions are illustrated in Fig. 3A. For purposes of illustration, program relative byte indicators 304 represent the byte location in a cache line where an instruction begins and indirectly indicate the size of the instruction. For example, the MULT R5, R4, R3 instruction 306 begins at byte position 00 and ends at byte position 01. Thus, MULT R5, R4, R3 instruction 306 is a 16-bit instruction. Similarly, the ADD instructions 307 and 311 and the SHIFT instruction 309 are 16 bits long. The conditional branch (CBRANCH) instruction 308, the load (LOAD) instruction 310, and the store (STORE) instruction 312 are 32-bits long.
{0027} A portion of an L2 cache line 320 is depicted in Fig. 3B. Only a portion of a cache line is shown for illustrative purposes, as cache line sizes may vary depending upon the application, technology, and chosen memory hierarchy design. For example, a 256-bit or a 512-bit cache line may be used for an L2 cache. The illustrated portion has multiple 16-bit fields. Instructions 314 of Fig. 3 A are stored in the L2 cache line 320 as indicated, with the MULT R5, R4, R3 instruction 306 stored in L2 cache line segment 322 starting at location 00. The ADD RO, R5, Rl instruction 307 is stored in L2 cache line segment 324 starting at location 02. The CBRANCH OA instruction 308 is stored in L2 cache line segment 330. Instruction 308 is made up of two 16-bit segments 332 and 334, starting at location 04 and location 06, respectively. The SHIFT RO, 1 instruction 309 is stored in L2 cache line segment 336 starting at location 08. It is noted that for illustrative purposes, the program segment 300 has been shown starting at the beginning of a cache line, but it will be appreciated that such program segments may be located in other sections of a cache line and may be split between multiple cache lines.
{0028} An exemplary Ll Icache line 350 is depicted in Fig. 3C consisting of multiple 20-bit fields, with each 20-bit field made up of a 16-bit field with an associated 4-bit predecode (Pd4) field. For example, the Ll cache may utilize 128-bits for instructions and require an additional space for eight Pd4 fields resulting in a 160-bit Ll cache line. A single 4-bit Pd4 field is used for both 16-bit instructions and for 32-bit instructions. The 4-bit Pd4 field may contain up to sixteen encoded characteristics of the instruction associated with the Pd4 field. For example, the encoding may indicate whether the instruction is a load or store instruction, an arithmetic instruction, or a complex instruction requiring microcode support. The encoding may also indicate whether the 16 bits of instruction data is the first-half of a 32-bit instruction or a 16-bit instruction, whether the instruction is a branch type of instruction, or the like. The Pd4 information is useful in instruction alignment, decoding, and may be used for other purposes, such as branch handling, for example.
{0029} The instructions 314 of Fig. 3 A may be located in the Ll cache line beginning with the 16-bit MULT R5, R4, R3 instruction 306 and its associated Pd4 field stored in Ll cache line segments 352 and 354, respectively. Similarly, the 16-bit ADD RO, R5, Rl instruction 307 and its associated Pd4 field are stored in Ll cache line segments 356 and 358, respectively. The 32-bit CBRANCH OA instruction 308 is stored differently since only one set of predecode bits is required to be stored with the 32-bit instruction. For illustrative purposes, the 16-bit Ll cache line segment 362 contains the high order 16-bits of the CBRANCH OA instruction 308. The Pd4 field 364 provides predecode information for the 32-bit CBRANCH instruction while the next 16-bit Ll cache line segment 366 contains the low order 16-bits of the CBRANCH OA instruction 308. The Pd4 field 368 is not required for the CBRANCH OA instruction 308. Since other program segments may occupy the cache line at different times, the Pd4 field 368 may be used in support of a 16-bit instruction that is stored, for example, in the 16-bit Ll cache line segment 366. The next instruction in the Ll cache line is a 16-bit SHIFT RO, 1 instruction 309 which is stored in a 20-bit field made up of 16-bit Ll cache line segment 370 and Pd4 field 372. A similar ordering for the other instructions in program segment 314 is followed for the remaining bit fields in the cache line 350.
{0030} Fig. 4 A illustrates an exemplary program segment 400 that may be suitably stored in the memory hierarchy of the processor complex 200, including the L2 cache 226 and the Ll Icache 218. The program segment 400 includes 32-bit instructions 402 operative in the first mode of operation of the processor 210 and all instructions are located by architectural definition on word aligned boundaries. In order to illustrate aspects of the present invention, several exemplary 32-bit instructions are illustrated in Fig. 4A. Program relative byte indicators 404 represent the byte location in the cache line where an instruction begins and indirectly indicate the size of the instruction. For example, the LOAD R22, EE instruction 406 begins at byte position 00 and ends at byte position 03. Thus, LOAD R22, EE instruction 406 is a 32-bit instruction. Similarly, the ADD instructions 407 and 411, the CBRANCH 10 408, the SHIFT instruction 409, the LOAD R20, 8F instruction 410, and the STORE instruction 412 are all 32-bits long. {0031 } A portion of an L2 instruction cache line 420 is depicted in Fig. 4B.
Line 420 has multiple 16-bit fields. Only a portion of a cache line is illustrated as cache line sizes may vary depending upon the application, technology, and chosen memory hierarchy design. For example, either a 256-bit or a 512-bit cache line may be suitably used for an L2 cache. Instructions 414 of Fig. 4A are stored in the L2 cache line 420 as indicated, with the LOAD R22, EE instruction 406 stored in L2 cache line segment 422 starting at location 00. The ADD R 19, R22, R30 instruction 407 is stored in L2 cache line segment 432 starting at location 04. The CBRANCH 10 instruction 408 is stored in L2 cache line segment 436 starting at location 08. The other 32-bit instructions are stored in a similar manner in the L2 cache. It is noted that for illustrative purposes, the program segment 400 has been shown starting at the beginning of a cache line, but it will be appreciated that such 32-bit instruction program segments may be located in other sections of a cache line on word boundaries and may be split between multiple cache lines.
{0032} An exemplary Ll Icache line 450 is depicted in Fig. 4C. Line 450 has multiple 20-bit fields, with each 20-bit field made up of a 16-bit field with an associated 4-bit predecode (Pd4) field. A single 4-bit Pd4 field is used for both 16-bit instructions and for 32-bit instructions. For example, the Ll cache may store 128-bits for instructions and require an additional space for eight Pd4 fields resulting in a 160-bit Ll cache line. The instructions 414 of Fig. 4A may be located in the Ll cache line beginning with the 32-bit LOAD R22, EE instruction 406 stored in Ll cache line segment 452 made up of 16-bit segment 454, its associated Pd4 field 456, and 16-bit segment 458. Since the 4-bit Pd4 field 456 supplies the predecode information for the 32-bit LOAD R22, EE instruction, the second 4-bit Pd4 field 460 is not needed and consequently, by use of the techniques of the present invention, the Pd4 field 460 is not written to or read from. Similarly, the 32-bit ADD R19, R22, R30 instruction 407 is stored in Ll cache line segments 464 and 468 and instruction 407rs associated Pd4 field is stored in segment 466. Similarly, the 4-bit Pd4 field 470 is not needed, and using the techniques of the present invention, the Pd4 field 470 is not written to or read from. The 32-bit CBRANCH 10 instruction 408 is stored in Ll cache line segments 474 and 478 and the CBRANCH 10 instruction 408's associated Pd4 field is stored in segment 476. The Pd4 field 480 is also not needed. Again, using of the techniques of the present invention, the Pd4 field 480 is not written to or read from. Since other program segments may occupy the cache line at different times, the Pd4 fields 460, 470, and 480 may be used in support of 16-bit instructions, for example, associated with the 16-bit Ll cache line segments 458, 468, and 478, respectively. A similar ordering for the next 32- bit instruction 409 in program segment 414 is followed for the remaining bit fields in the cache line 450.
{0033} One aspect of the present invention relates to the writing of the predecode information into an Ll cache line according to the techniques of the present invention to save power when writing to the Ll Icache. A second aspect addresses the selective enabling of predecode bit fields to save power when reading from the Ll Icache. Both of these aspects are described in further detail below. {0034} Fig. 5 illustrates processor pipeline stages 500 which operate in accordance with the present invention to save power when writing to the Ll Icache 218 and when reading from the Ll Icache 218. The Ll Icache 218 is split into two processor pipeline stages. A first pipeline stage is used for instruction tag matching in an instruction content addressable memory (ICAM) unit 502. A second pipeline stage is used for accessing instructions from an instruction random access memory (IRAM) 503 when a tag match hit occurs in the ICAM unit 502. After the Icache 218, instructions enter the processor 210 in an instruction alignment (IDA) stage 516, followed by a decode stage 554, and then execute stages 555.
{0035} The present invention operates to save power when writing to the Ll
Icache. For example, when an Ll Icache miss occurs, instructions from the L2 cache or system memory and selected predecode bit fields are written to the Ll Icache. Depending upon processor state information, the selected predecode bit fields that are written to the Ll Icache may be less than all the predecode bit fields available in an Icache line, thereby saving power. The saving of power is accomplished when resolving an Ll Icache miss which may occur for many reasons. For example, on initialization of the Ll Icache, the Icache is treated as having invalid contents and there will be misses as the Ll Icache is filling. Also, when a program branches to a new section of code, there is a greater chance for an Icache miss occurring on an Ll Icache fetch.
{0036} The processor 210 initiates the fetching of instructions from the Ll
Icache by providing the address of the instruction to be fetched (Faddress) 504, and by providing current operating mode state (COMS) information 506 which is representative of the program specified operating mode at the time of the fetch to the ICAM unit 502. Processor 210 may also provide other information, such as the PID, to the ICAM unit 502. The COMS information at the time of the fetch may include whether the processor is in the first mode of operation which uses only 32-bit instructions on word aligned boundaries, the second mode of operation which uses both 16-bit and 32-bit instructions, or other processor modes.
{0037} The ICAM unit 502 stores an instruction address (Iaddress) 509, the processor's operating mode at the time of fetch (FOMS) 510, and other such information deemed necessary for a match operation, as tags in ICAM lines, such as ICAM line 512. In an instruction fetch operation, the processor supplies an Faddress 504 and processor COMS 506 which are compared to the stored ICAM line tags to determine if any stored ICAM lines hold valid data that matches the processor supplied Faddress, and COMS. If no ICAM line is found with a valid matching address, processor operating mode state, or the like, it is considered a miss, and a miss indication 514 is given to the processor 210. The processor 210 proceeds to do a fetch from the L2 cache 226 or from system memory if the instruction is not found in the L2 cache 226. After a latency due to memory access timing, instructions are provided from the system memory or L2 cache output 518 to a predecoder 520 and IRAM 503. The processor 210 also sends predecoder 520 miss information 522 concerning the instruction fetch addressing, processor operating mode state at the time of the fetch, and the like. {0038} The predecoder 520 tracks the miss information to account for memory latencies and makes miss information available. Miss information includes, for example, the processor Ll Icache fetch address and processor state at the time of the fetch. The tracked fetch address is supplied on output 524, the tracked processor state is supplied on output 526, and other information may be supplied on output 528, such as the PID, when the instructions are provided from the system memory or L2 cache output bus 518. The instructions on output bus 518 are partially decoded in predecoder 520 generating 4-bit Pd4 outputs 530, 532, through 534, for the appropriate 16-bit fields to be stored in the IRAM 503. Only Pd4 bits that hold valid information are generated in the predecoder 520. The instructions on output bus 518 are appropriately split, for example, as illustrated for a first 16-bits 536, a second 16-bits 538, through a final 16- bits 540, for storage into the IRAM 503. The instruction 16-bit fields 536, 538, through 540 and their respective Pd4 outputs 530, 532, through 534, are stored into an IRAM line, such as IRAM line 542 under control of write control logic 544. In order to save power, if the processor state at the time of the fetch signal 526 is the state restricting instructions to be only 32-bit instructions on word aligned boundaries, such as the exemplary first mode of operation, then the instructions to be stored in the IRAM line 542 are all 32-bit instructions. With only 32-bit instructions to be stored in the IRAM line 542, only half of the Pd4 bits need to be written, such as Pd4 output 530. The Pd4 outputs, such as Pd4 output 532, associated with the second half 16-bits of the 32-bit instruction are not required, and are not written in IRAM 503. In an Ll Icache line of 160-bits, there can be stored four 32-bit instructions and 32-bits of predecode information of which only 16-bits are required to be stored when the Ll Icache line has only 32-bit instructions, as is the case for the first mode of operation. On average, this represents a 10% savings in power when writing to the Ll Icache, due to not writing 16- bits out of the 160-bits of the Ll Icache line.
{0039} When instructions are written to the Icache, tag information is also written to the ICAM 502. In the ICAM unit 502, the fetch address 524 and processor state at the time of the fetch signal 526 are stored in an ICAM line, such as ICAM line 512. The ICAM line 512 is directly related to the IRAM line 542 so that on an Ll Icache hit 550 in the ICAM unit 502 the appropriate line in the IRAM unit 503 can be output on IRAM output 552 under control of read control logic 546. The IRAM output 552 contains the desired instruction and a number of following instructions which are sent to the instruction alignment (IDA) stage 516.
{0040} Instructions received in the instruction alignment stage 516 are aligned and made ready for a subsequent decode and execute stage 554. The instruction alignment stage 516 and decode stage 554 know the state of the cache line since, for example, the Pd4 bits track down the pipeline. Beginning from the pipeline stage for accessing instructions from the IRAM unit 503, the Pd4 bits proceed to the instructions alignment stage 516, and then to the decode stage 554. If the operating mode state of processor 210 in the EDA 516 is the first mode of operation for 32-bit only instructions, then the alignment logic knows that only the 1st, 3rd, 5th, and other odd predecode bit fields (Pd4) are valid. If the operating mode state of processor 210 in the IDA 516 is the second mode of operation for 16-bit and 32-bit instructions, then all Pd4 fields are considered since all Pd4 fields may be valid. A beginning Pd4 field is evaluated to determine whether the associated 16-bit field is the first half of a 32-bit instruction or a 16-bit instruction. If the Pd4 field indicates that its associated 16-bit field is the first half of a 32-bit instruction, then the next Pd4 field is ignored. If the Pd4 field indicates a 16-bit instruction, then the next consecutive Pd4 field is similarly examined. This processes continues, rippling across the remaining Pd4 fields in the fetched cache line. {0041 } As an example, on an Ll cache line hit, the IRAM output 552 may supply 64-bits of instructions, allowing up to four 16-bit instructions, two 16-bit instructions and a single 32-bit instruction, or up to two 32-bit instructions, and associated predecode bits, to the instruction alignment unit 516. Alternatively, the IRAM output 552 may supply the full IRAM cache line such as IRAM line 542. In order to save power, if the processor state 506 indicates the processor is in the mode which uses only 32-bit instructions on word aligned boundaries, then the instructions to be read from the IRAM line 542 are all considered 32-bit instructions. With only 32-bit instructions stored in the IRAM line, only half of the Pd4 bits need to be read, such as the Pd4 field 556. The Pd4 bits, such as Pd4 field 558, associated with the second half 16-bits of a 32-bit instruction are not required. In an Ll Icache line of 160-bits, four 32- bit instructions and 32-bits of predecode information can be stored. However, only 16- bits of predecode information are required to be read in this example. On average, this represents a 10% savings in power when reading from the Ll Icache, due to not reading 16-bits of the 160-bits when reading the Ll Icache line.
{0042} Two examples have been presented in Figs. 3A-3C and Figs. 4A-4C illustrating power savings that varied dependent upon the processor operating mode state. The processor fetch operating mode state (FOMS) 510, is stored in each tag, such as tag 512. The stored FOMS 510 may indicate a first state 580 representing the first mode of operation or a second state 582 representing the second mode of operation, for writing and reading the predecode bits. In the example of the Ll Icache line 350 of Fig. 3C, the whole Ll Icache line 350 is made up of 16-bit and 32-bit instructions, which when written to the IRAM 503 is associated with an ICAM tag having a FOMS that indicates the second state 582. In the example of the Ll Icache line 450 of Fig. 4C, the whole Ll Icache line 450 is made up of only 32-bit instructions, which when written to the IRAM 503 is associated with an ICAM tag having a FOMS that indicates the first state 580. In the second state 582, all Pd4 fields are enabled for both writing and reading. In the first state 580, only the Pd4 fields associated with the first half 16-bits of each 32-bit instruction are enabled and the Pd4 fields associated with the second half 16-bits of each 32-bit instruction are not enabled for writing or reading the IRAM 503 instructions.
{0043 } Fig. 6 is a flow chart 600 illustrating operational steps in accordance with the present invention for saving power when writing and reading predecode information from an instruction cache line. In a first step 610, a processor fetches instructions to be executed where the instructions are of two types. A first type instruction is formatted in a first length, such as 16-bits, and a second type instruction is formatted in a second length. The second length, such as 32-bits, is longer than the first length. In the next step 615, the instructions of the first type and the second type are partially decoded in a predecoder. In step 620, predecode information is generated for the partially decoded instructions. In step 625, it is determined whether the processor operating mode state indicates instructions are restricted to the second type. If the processor operating mode state is such that the processor does not restrict instructions to the second type, step 630 is followed to enable all predecode bits in an instruction cache line for writing. If the processor operating mode state is such that the processor does restrict instructions to the second type, step 635 is followed to selectively enable predecode bits associated with second type instructions in an instruction cache line for writing. After writing a cache line for a fetched instruction, the system returns to step 610.
{0044} The present invention is not limited to the illustrated pipeline stages 500 and is further applicable to any pipeline processor having variable length instructions which stores predecode information in an instruction cache. Extensions to a variable length processor instruction set may be accommodated by the present invention if the extension supports a unique mode of instruction set use such that predecode information may be selectively controlled thereby saving write and read power. For example, a third mode may be specified where only 64-bit instructions are operative and all 64-bit instructions are located on double word boundaries, such that 64-bit instructions are not split across an Ll Icache line. The processor using 64-bit instruction types may be an extension of the exemplary processor 210 described above. The extended processor could have operating mode states encoded for the first state 580 restricted to only 32-bit instructions, the second state 582 for both 16-bit and 32-bit instructions, and a third state 584 restricted to only 64-bit instructions. A 64-bit instruction in an Icache line, such as IRAM line 542 of Fig. 5, would be partitioned into four 20-bit fields, where each 20-bit field has a section of the 64-bit instruction and an associated Pd4 field. With 64-bit instructions in an Ll Icache line, the Pd4 fields associated with the first 16-bits of the 64-bit instructions would be used for the whole 64-bit instruction, and the following three Pd4 fields would not be required. In the Ll Icache line, the first, fifth, ninth, and the like Pd4 fields would be used while the other, second, third, fourth, sixth, seventh, eighth, tenth and the like, Pd4 fields would not be written to or read from. With a 160- bit Ll Icache line containing two 64-bit instructions and thirty two Pd4 bits, twenty four bits of the thirty two Pd4 bits would not be written to or read from. On average, this represents a 15% power savings, when accessing an Ll Icache line due to not writing and not reading 24-bits out of the 160-bits in the Ll Icache line.
{0045} The present invention is also not limited to instruction lengths that are power of two. For example, consider an alternative architecture that has 16-bit and 24- bit instructions and a mode that restricts instructions to the 24-bit type. Both 16-bit and 24-bit instructions require four predecode bits. In this example, an instruction cache line is partitioned into 8-bit instruction sections and 2-bit predecode sections. A 16-bit instruction would consist of 20-bits organized as { 8-bits, 2-bits Pd2, 8-bits, 2-bits Pd2}. A 24-bit instruction would consist of 30-bits organized as { 8-bits, 2-bits Pd2, 8-bits, 2- bits Pd2, 8-bits, 2-bits Pd2}. A 160-bit cache line storing 16-bit instructions would be able to hold eight 16-bit instructions organized as eight 20-bit sections for a total of 160-bits with all bits fully utilized. A 160-bit cache line storing 24-bit instructions would be able to hold five 24-bit instructions organized as five 30-bit sections for a total of 150-bits, with five Pd2 2-bit fields that are not valid and 10-bits remaining in the line that are not utilized. By having the writing or reading of 24-bit instructions dependent upon the processor operating mode, only bits in the cache line containing valid information are accessed and 20-bits are not accessed, saving power as compared to writing and reading all bits in the line. {0046} While the present invention has been disclosed in a presently preferred context, it will be recognized that the present teachings may be adapted to a variety of contexts consistent with this disclosure and the claims that follow.

Claims

CLAIMS We claim:
1. An apparatus for saving power in a processor environment which supports variable length instructions, the apparatus comprising: a predecoder for partially decoding instructions of a first length and a second length, the second length being longer than the first length, and generating predecode bits for instructions of both the first length and the second length; a processor operating mode state indicator, the processor operating mode state indicator indicating that the processor is operating in a mode that restricts instructions to instructions of the second length; an instruction cache having a plurality of cache lines, a cache line storing instructions and predecode bits; and write control logic to selectively write predecode bits in a cache line dependent upon the processor operating mode state indicator whereby less than all the predecode bits are written for instructions of the second length.
2. The apparatus of claim 1 wherein the instruction cache line is partitioned into sections for instructions and sections for predecode bits, and less than all the predecode sections are written for instructions of the second length.
3. The apparatus of claim 2 wherein the sections for instructions are 16-bit fields and the sections for predecode bits are four bit fields.
4. The apparatus of claim 2 wherein the sections for instructions are 8-bit fields and the sections for predecode bits are two bit fields.
5. The apparatus of claim 1 wherein the plurality of cache lines are stored in a first memory and the instruction cache further comprises: a second memory for storing tags, each tag associated with a cache line, each tag holding an instruction address and a processor state bit, the processor state bit indicating the processor operating mode state at the time of the fetch.
6. The apparatus of claim 1 wherein the first length is 16-bits and the second length is 32-bits, and wherein each first length instruction has four predecode bits and each second length instruction has first and second groups of four predecode bits, and the second group of predecode bits for the second length instruction is not written.
7. The apparatus of claim 1 wherein the predecode bit field classifies instructions into functional and control categories of instructions.
8. The apparatus of claim 2 wherein the write control logic writes a second length instruction to multiple instruction sections of the cache line and writes one predecode section associated with one of the instruction sections being occupied by a portion of the second length instruction, the other predecode sections associated with instruction sections being occupied by other portions of the second length instruction being invalid and not written.
9. The apparatus of claim 1 wherein the processor operating mode state indicator further indicates that the processor is operating in a mode that restricts instructions to instructions of a third length longer than the second length, and the predecoder further operates to decode instructions of the third length.
10. The apparatus of claim 1 wherein the instruction cache further comprises: an instruction content addressable memory (ICAM) having a plurality of ICAM tags, an ICAM tag associated with each cache line, the ICAM tag allocated for storing an instruction address and a processor state bit, the processor state bit having a value of the processor operating mode state indicator at the time of the fetch; and write control logic for writing the instruction address and the processor state bit into the ICAM tag.
11. An apparatus for saving power when reading an instruction cache line, the apparatus comprising: a processor performing fetch operations, the fetch operations fetching instructions of a first length and a second length, the second length being longer than the first length; a processor operating mode state indicator, the processor operating mode state indicator indicating that the processor is operating in a mode that restricts instructions to instructions of the second length; an instruction cache having a plurality of cache lines and tags associated with each cache line, a cache line storing instructions and predecode bits, the tags having an instruction address portion and a processor operating mode state portion; and read control logic to read selected predecode bit fields in a cache line dependent upon a tag match hit whereby less than all of the predecode bit fields available in the cache line are read for instructions of the second length.
12. The apparatus of claim 11 further comprising: a hit comparator for determining the tag match hit, the hit comparator comparing a processor fetch instruction address and the processor operating mode state indicator with the tag, and when the comparison is equal generating the tag match hit.
13. The apparatus of claim 11 wherein the selected predecode bit fields classify instructions such that instructions read from the cache line can be aligned and decoded.
14. The apparatus of claim 11 wherein the processor fetch operations include supplying an instruction address and the processor operating mode state indicator.
15. The apparatus of claim 11 wherein the instruction cache comprises: an instruction content addressable memory (ICAM) having a plurality of ICAM tags, an ICAM tag associated with each cache line, the ICAM tag having an instruction address portion and a processor operating mode state indicator portion; and a tag comparator associated with each tag.
16. A method comprising: fetching instructions of a first length or a second length, the second length being longer than the first length; predecoding instructions of the first length and the second length in a predecoder; generating predecode bits for instructions of both the first length and the second length; and writing selected predecode bits in an instruction cache line dependent upon an operating mode that restricts instructions to instructions of the second length, whereby less than all the predecode bits are written for instructions of the second length.
17. The method of claim 16 wherein the instruction cache line is partitioned into instruction fields and predecode bit fields, and in the step of writing selected predecode bits, less than all the predecode fields are written for instructions of the second length.
18. The method of claim 16 wherein in the step of writing selected predecode bits in an instruction cache line further comprises: writing one of a number of predecode bit fields available for use by an instruction of the second length whereby less than all the predecode bit fields are written for instructions of the second length.
19. The method of claim 16 further comprising: writing an instruction address and a processor state bit in a tag associated with the cache line, the processor state bit indicating the processor operating mode state at the time of the fetch.
20. The method of claim 19 further comprising: comparing a processor fetch instruction address and a processor operating mode indicator with the tag associated with the instruction cache line; generating a tag match hit if the comparison is equal; and reading selected predecode bits in an instruction cache line dependent upon a tag match hit whereby less than all of the predecode bits available in the cache line are read for instructions of the second length.
EP06736989A 2005-03-04 2006-03-03 Power saving methods and apparatus for variable length instructions Not-in-force EP1904922B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US11/073,284 US7421568B2 (en) 2005-03-04 2005-03-04 Power saving methods and apparatus to selectively enable cache bits based on known processor state
PCT/US2006/007758 WO2006096568A2 (en) 2005-03-04 2006-03-03 Power saving methods and apparatus for variable length instructions

Publications (2)

Publication Number Publication Date
EP1904922A2 true EP1904922A2 (en) 2008-04-02
EP1904922B1 EP1904922B1 (en) 2010-05-05

Family

ID=36695266

Family Applications (1)

Application Number Title Priority Date Filing Date
EP06736989A Not-in-force EP1904922B1 (en) 2005-03-04 2006-03-03 Power saving methods and apparatus for variable length instructions

Country Status (11)

Country Link
US (1) US7421568B2 (en)
EP (1) EP1904922B1 (en)
JP (1) JP4791495B2 (en)
KR (1) KR100942408B1 (en)
CN (1) CN101164040B (en)
AT (1) ATE467170T1 (en)
DE (1) DE602006014156D1 (en)
ES (1) ES2341993T3 (en)
IL (1) IL185594A0 (en)
MX (1) MX2007010773A (en)
WO (1) WO2006096568A2 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7769983B2 (en) 2005-05-18 2010-08-03 Qualcomm Incorporated Caching instructions for a multiple-state processor
US7711927B2 (en) * 2007-03-14 2010-05-04 Qualcomm Incorporated System, method and software to preload instructions from an instruction set other than one currently executing
US7836285B2 (en) * 2007-08-08 2010-11-16 Analog Devices, Inc. Implementation of variable length instruction encoding using alias addressing
US8898437B2 (en) * 2007-11-02 2014-11-25 Qualcomm Incorporated Predecode repair cache for instructions that cross an instruction cache line
US10055227B2 (en) 2012-02-07 2018-08-21 Qualcomm Incorporated Using the least significant bits of a called function's address to switch processor modes
US20140244932A1 (en) * 2013-02-27 2014-08-28 Advanced Micro Devices, Inc. Method and apparatus for caching and indexing victim pre-decode information
US9588845B2 (en) 2014-02-10 2017-03-07 Via Alliance Semiconductor Co., Ltd. Processor that recovers from excessive approximate computing error
US10235232B2 (en) 2014-02-10 2019-03-19 Via Alliance Semiconductor Co., Ltd Processor with approximate computing execution unit that includes an approximation control register having an approximation mode flag, an approximation amount, and an error threshold, where the approximation control register is writable by an instruction set instruction
US9916251B2 (en) 2014-12-01 2018-03-13 Samsung Electronics Co., Ltd. Display driving apparatus and cache managing method thereof
US9727353B2 (en) * 2015-10-30 2017-08-08 International Business Machines Corporation Simultaneously capturing status information for multiple operating modes
CN115878187B (en) * 2023-01-16 2023-05-02 北京微核芯科技有限公司 Processor instruction processing apparatus and method supporting compressed instructions

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5115500A (en) * 1988-01-11 1992-05-19 International Business Machines Corporation Plural incompatible instruction format decode method and apparatus
JPH04257948A (en) * 1991-02-13 1992-09-14 Fujitsu Ltd Cache memory, system equipped with the cache memory and instruction decode method for the system
US5499204A (en) * 1994-07-05 1996-03-12 Motorola, Inc. Memory cache with interlaced data and method of operation
US5640526A (en) * 1994-12-21 1997-06-17 International Business Machines Corporation Superscaler instruction pipeline having boundary indentification logic for variable length instructions
AU7168496A (en) * 1995-10-06 1997-04-28 Advanced Micro Devices Inc. Instruction predecode and multiple instruction decode
US6141745A (en) * 1998-04-30 2000-10-31 Advanced Micro Devices, Inc. Functional bit identifying a prefix byte via a particular state regardless of type of instruction
US6092182A (en) * 1998-06-24 2000-07-18 Advanced Micro Devices, Inc. Using ECC/parity bits to store predecode information
US6275927B2 (en) * 1998-09-21 2001-08-14 Advanced Micro Devices. Compressing variable-length instruction prefix bytes
US6253309B1 (en) * 1998-09-21 2001-06-26 Advanced Micro Devices, Inc. Forcing regularity into a CISC instruction set by padding instructions
US6496923B1 (en) * 1999-12-17 2002-12-17 Intel Corporation Length decode to detect one-byte prefixes and branch
US6804799B2 (en) * 2001-06-26 2004-10-12 Advanced Micro Devices, Inc. Using type bits to track storage of ECC and predecode bits in a level two cache
US7058827B2 (en) * 2001-07-18 2006-06-06 Intel Corporation Power saving circuit has an input line coupled to an external host and a keeper to hold the line in a weakly held state
US6901490B2 (en) * 2002-12-02 2005-05-31 Lsi Logic Corporation Read/modify/write registers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See references of WO2006096568A2 *

Also Published As

Publication number Publication date
KR20070116058A (en) 2007-12-06
KR100942408B1 (en) 2010-02-17
WO2006096568A3 (en) 2007-01-11
CN101164040B (en) 2010-04-14
CN101164040A (en) 2008-04-16
DE602006014156D1 (en) 2010-06-17
ES2341993T3 (en) 2010-06-30
US20060200686A1 (en) 2006-09-07
ATE467170T1 (en) 2010-05-15
MX2007010773A (en) 2007-11-08
IL185594A0 (en) 2008-01-06
US7421568B2 (en) 2008-09-02
JP2008532187A (en) 2008-08-14
EP1904922B1 (en) 2010-05-05
WO2006096568A2 (en) 2006-09-14
JP4791495B2 (en) 2011-10-12

Similar Documents

Publication Publication Date Title
EP1904922B1 (en) Power saving methods and apparatus for variable length instructions
US8898437B2 (en) Predecode repair cache for instructions that cross an instruction cache line
US5941980A (en) Apparatus and method for parallel decoding of variable-length instructions in a superscalar pipelined data processing system
US7676659B2 (en) System, method and software to preload instructions from a variable-length instruction set with proper pre-decoding
US6275927B2 (en) Compressing variable-length instruction prefix bytes
US9396117B2 (en) Instruction cache power reduction
US20020004897A1 (en) Data processing apparatus for executing multiple instruction sets
US7769983B2 (en) Caching instructions for a multiple-state processor
US8819342B2 (en) Methods and apparatus for managing page crossing instructions with different cacheability
KR101019393B1 (en) Methods and apparatus to insure correct predecode
US7769954B2 (en) Data processing system and method for processing data
US7346737B2 (en) Cache system having branch target address cache
JP5902208B2 (en) Data processing device

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20071228

AK Designated contracting states

Kind code of ref document: A2

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LI LT LU LV MC NL PL PT RO SE SI SK TR

DAX Request for extension of the european patent (deleted)
17Q First examination report despatched

Effective date: 20080725

GRAP Despatch of communication of intention to grant a patent

Free format text: ORIGINAL CODE: EPIDOSNIGR1

GRAS Grant fee paid

Free format text: ORIGINAL CODE: EPIDOSNIGR3

GRAA (expected) grant

Free format text: ORIGINAL CODE: 0009210

AK Designated contracting states

Kind code of ref document: B1

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LI LT LU LV MC NL PL PT RO SE SI SK TR

REG Reference to a national code

Ref country code: GB

Ref legal event code: FG4D

REG Reference to a national code

Ref country code: CH

Ref legal event code: EP

REG Reference to a national code

Ref country code: IE

Ref legal event code: FG4D

REF Corresponds to:

Ref document number: 602006014156

Country of ref document: DE

Date of ref document: 20100617

Kind code of ref document: P

REG Reference to a national code

Ref country code: SE

Ref legal event code: TRGR

REG Reference to a national code

Ref country code: ES

Ref legal event code: FG2A

Ref document number: 2341993

Country of ref document: ES

Kind code of ref document: T3

REG Reference to a national code

Ref country code: NL

Ref legal event code: T3

REG Reference to a national code

Ref country code: SE

Ref legal event code: RPOT

LTIE Lt: invalidation of european patent or patent extension

Effective date: 20100505

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: LT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: LV

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

Ref country code: IS

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100905

Ref country code: AT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

Ref country code: SI

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: GR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100806

Ref country code: CY

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100526

Ref country code: PL

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: PT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100906

Ref country code: DK

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

Ref country code: EE

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: SK

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

Ref country code: RO

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

Ref country code: CZ

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

Ref country code: BE

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

PLBE No opposition filed within time limit

Free format text: ORIGINAL CODE: 0009261

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT

26N No opposition filed

Effective date: 20110208

REG Reference to a national code

Ref country code: DE

Ref legal event code: R097

Ref document number: 602006014156

Country of ref document: DE

Effective date: 20110207

REG Reference to a national code

Ref country code: NL

Ref legal event code: V1

Effective date: 20111001

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: MC

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20110331

REG Reference to a national code

Ref country code: CH

Ref legal event code: PL

REG Reference to a national code

Ref country code: SE

Ref legal event code: EUG

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: FI

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20110303

REG Reference to a national code

Ref country code: IE

Ref legal event code: MM4A

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: LI

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20110331

Ref country code: IE

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20110303

Ref country code: CH

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20110331

Ref country code: NL

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20111001

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: SE

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20110304

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: LU

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20110303

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: TR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

Ref country code: BG

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100805

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: HU

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20100505

REG Reference to a national code

Ref country code: FR

Ref legal event code: PLFP

Year of fee payment: 11

REG Reference to a national code

Ref country code: FR

Ref legal event code: PLFP

Year of fee payment: 12

REG Reference to a national code

Ref country code: FR

Ref legal event code: PLFP

Year of fee payment: 13

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: FR

Payment date: 20210219

Year of fee payment: 16

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: DE

Payment date: 20210210

Year of fee payment: 16

Ref country code: GB

Payment date: 20210311

Year of fee payment: 16

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: IT

Payment date: 20210315

Year of fee payment: 16

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: ES

Payment date: 20210401

Year of fee payment: 16

REG Reference to a national code

Ref country code: DE

Ref legal event code: R119

Ref document number: 602006014156

Country of ref document: DE

GBPC Gb: european patent ceased through non-payment of renewal fee

Effective date: 20220303

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: GB

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20220303

Ref country code: FR

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20220331

Ref country code: DE

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20221001

REG Reference to a national code

Ref country code: ES

Ref legal event code: FD2A

Effective date: 20230427

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: IT

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20220303

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: ES

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20220304