US20200142697A1 - Instruction completion table with ready-to-complete vector - Google Patents
Instruction completion table with ready-to-complete vector Download PDFInfo
- Publication number
- US20200142697A1 US20200142697A1 US16/182,760 US201816182760A US2020142697A1 US 20200142697 A1 US20200142697 A1 US 20200142697A1 US 201816182760 A US201816182760 A US 201816182760A US 2020142697 A1 US2020142697 A1 US 2020142697A1
- Authority
- US
- United States
- Prior art keywords
- instructions
- instruction
- ict
- rtc
- computer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012545 processing Methods 0.000 claims abstract description 62
- 238000000034 method Methods 0.000 claims abstract description 39
- 238000004590 computer program Methods 0.000 claims abstract description 15
- 230000008569 process Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 101100310497 Arabidopsis thaliana SMT2 gene Proteins 0.000 description 1
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 101100427545 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) ULP2 gene Proteins 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
- G06F9/3861—Recovery, e.g. branch miss-prediction, exception handling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30007—Arrangements for executing specific machine instructions to perform operations on data operands
- G06F9/30036—Instructions to perform operations on packed data, e.g. vector, tile or matrix operations
-
- G06F9/3855—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
- G06F9/3854—Instruction completion, e.g. retiring, committing or graduating
- G06F9/3856—Reordering of instructions, e.g. using queues or age tags
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
- G06F9/3867—Concurrent instruction execution, e.g. pipeline or look ahead using instruction pipelines
Definitions
- the present invention relates generally to information processing and, in particular, to an instruction completion table with a ready-to-complete vector.
- the rate of instructions is a bottleneck for many applications. If the rate of completion is too slow, then the completion table can get filled up quickly, and stop instruction dispatch. This will lead to significant performance loss. Hence, there is a need for improving the use of the completion table.
- a computer-implemented method includes processing, by a superscalar processing pipeline, respective sets of instructions in respective instruction processing cycles using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector.
- ICT Instruction Completion Table
- RTC Ready-To-Complete
- the ICT includes a plurality of entries, each corresponding to a respective one of the instructions.
- NTC Next-To-Complete
- a computer program product for managing instruction processing.
- the computer program product includes a computer readable storage medium having program instructions embodied therewith.
- the program instructions are executable by a computer to cause the computer to perform a method.
- the method includes processing, by a superscalar processing pipeline, respective sets of instructions in respective instruction processing cycles using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector.
- ICT Instruction Completion Table
- RTC Ready-To-Complete
- NTC Next-To-Complete
- a computer processing system includes a superscalar processing pipeline, configured to process respective sets of instructions in respective instruction processing cycles using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector.
- ICT Instruction Completion Table
- RTC Ready-To-Complete
- the ICT includes a plurality of entries, each corresponding to a respective one of the instructions.
- NTC Next-To-Complete
- FIG. 1 shows an exemplary computer processing system to which the present invention may be applied, in accordance with an embodiment of the present invention
- FIG. 2 shows an exemplary superscalar processing pipeline to which the present invention may be applied, in accordance with an embodiment of the present invention
- FIG. 3 shows an exemplary Instruction Completion Table (ICT) to which the present invention can be applied, in accordance with an embodiment of the present invention.
- ICT Instruction Completion Table
- FIGS. 4-5 show an exemplary method using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector, in accordance with an embodiment of the present invention.
- ICT Instruction Completion Table
- RTC Ready-To-Complete
- the present invention is directed to an instruction completion table with a ready-to-complete vector.
- the present invention provides an approach whereby an instruction completion table can be used to complete a large number of instructions per cycle with the use of a ready-to-complete vector. Completion of a large number of instructions per cycle is achieved using the ready-to-complete vector in that the ready-to-complete vector allows for more efficient use of the instruction completion table as compared to the prior art, in order to prevent the instruction completion table from filling up too quickly and stopping instruction dispatch. In this way, overall computer performance is improved.
- the term “instruction processing cycle” as used herein refers to the time between two pulses of an oscillator which is used as a clock within a computer.
- FIG. 1 shows an exemplary computer processing system 100 to which the present invention may be applied, in accordance with an embodiment of the present invention.
- the computer processing system 100 includes a central processing unit (CPU) 102 connected to a system bus 108 .
- the CPU 102 is a superscalar CPU.
- the computer processing system 100 further includes a graphics adapter 104 connected to system bus 108 for providing user interface information to a display 106 .
- the computer processing system 100 also includes a system memory 110 and an input/output (I/O) bus bridge 112 connected to system bus 108 .
- I/0 bus bridge 112 couples an I/0 bus 114 to system bus 108 , relaying and/or transforming data transactions from one bus to the other bus.
- Computer processing system 100 also includes one or more peripheral devices (with one shown for the sake of illustration) 116 and one or more input devices (with one shown for the sake of illustration) 118 connected to I/O bus 114 .
- the peripheral devices 116 can include, for example, but are not limited to a hard disk drive, a printer, and so forth.
- the input devices 118 can include, but are not limited to, a mouse, a trackball, a keyboard, a camera, and so forth.
- FIG. 1 While a particular configuration of a computing device is shown in FIG. 1 , it is to be appreciated that the present invention is not limited to solely such configuration. Hence, one of ordinary skill in the art will contemplate this and various other computing configurations to which the present invention can be applied, while maintaining the spirit of the present invention.
- FIG. 2 shows an exemplary superscalar processing pipeline 200 to which the invention principles may be applied, in accordance with an embodiment of the present invention.
- superscalar processing pipeline 200 can be included in CPU 102 of FIG. 1 may include.
- the superscalar processing pipeline 200 includes an instruction fetch unit (IF) 210 , an instruction decode unit (ID) 220 , a register renaming unit (Rename) 230 , an instruction window 240 , a register file 250 , a branch speculation/recovery unit 260 , and a set of functional units 270 (including FU 1 through FUn).
- instructions are fetched and decoded, and source and destination registers are renamed (to eliminate false dependencies due to architectural register reuse by successive instructions that lack any real dependencies there between) before the instructions are dispatched to the instruction window 240 to wait for their source operands to be ready.
- the instructions are then issued by the instruction window 240 to one or more of the functional units 270 for execution, where results of the functional units 270 are provided on result buses.
- superscalar processing pipeline 200 is but one of a myriad of processing configurations to which the present invention can be applied.
- processing configurations can also be readily used, given the teachings of the present invention provided herein, while maintaining the spirit of the present invention.
- FIG. 3 shows an exemplary Instruction Completion Table (ICT) 300 to which the present invention can be applied, in accordance with an embodiment of the present invention.
- ICT Instruction Completion Table
- the ICT 300 is direct mapped, and includes a set of rows 390 , spanning from ITAG A to ITAG N, a column 301 for “valid”, a column 302 for “problem”, a column 303 for “Finish”, and a column 304 for “RTC” (Ready-To-Complete).
- the ITAG is an Instruction TAG or instruction identifier that is used to identify and track a respective instruction being processed.
- the valid column 301 is used to indicate whether a currently processed instruction (hereinafter “current instruction”) is valid.
- the problem column 302 is used to indicate whether there is a problem in processing the current instruction. Accordingly, the problem column 302 can be used to store exception trouble code for a given ITAG.
- the finish column 303 is used to indicate whether processing of the current instruction has finished, and its value is determined as described below.
- the RTC column 304 is used to indicate whether the current instruction is ready-to-complete (have its results committed), and its value is determined as described below.
- the ICT 300 includes the following general attributes:
- the RTC vector may be “sticky” such that completed bits remain set until a group of entries is completed.
- N ITAGs per entry can be allowed with just the one RTC for the entry indicating that the entry can be completed.
- the RTC also looks at atomicity. For example, the RTC bit for an entry that is part of an atomic group will only be set when all ITAGs of the atomic group are valid and finished, and all entries of the atomic group will have their RTC bit set at the same time so that the atomic group will be completed atomically.
- FIGS. 4-5 show an exemplary method 400 using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector.
- the method 400 is performed for respective set of instructions being processing by a superscalar processing pipeline (e.g., superscalar processing pipeline 200 of FIG. 2 ).
- a superscalar processing pipeline e.g., superscalar processing pipeline 200 of FIG. 2 .
- an ICT for tracking the instructions being processing (by the superscalar processing pipeline).
- the ICT is organized by physical thread, indexed by ITAGs (with one ICT entry per instruction), and is configured to store information needed for instruction completion, pipeline flush, and instruction exception trouble code.
- the ICT tracks the oldest instruction per thread (from among multiple threads being processed in parallel) with tail pointers.
- step 410 for each instruction being dispatched, set a RTC bit (of a RTC vector) in the ICT to 0, set a finish bit in the ICT to 0, and write exception trouble code for the instructions.
- step 415 responsive to the ICT receiving a finished ITAG, set the finish bit in the ICT, of the corresponding ITAG in the ICT, to 1.
- step 440 determine if the given instruction is the oldest instruction to be completed or if all of the older instructions also have their RTC bits set to 1. If so, then proceed to step 445 . Otherwise, proceed to step 450 .
- step 450 delay completion of the given instruction.
- NTC Next-To-Complete
- step 460 take action based on the exception code and signal the ICT to set the RTC bit to 1 to allow the given instruction to complete, responsive to a completion of handling the exception conditions.
- a Next-To-Complete (NTC) instruction from among the respective sets of instructions is computed using the RTC vector using several methods. For example, one method can involve performing a count leading 1s of the RTC bits in the RTC vector. With this method a Next to Complete ITAG can be generated directly using the count. Of course, other methods can also be used, while maintaining the spirit of the present invention.
- NTC Next-To-Complete
- the present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration
- the computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention
- the computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device.
- the computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
- a non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing.
- RAM random access memory
- ROM read-only memory
- EPROM or Flash memory erasable programmable read-only memory
- SRAM static random access memory
- CD-ROM compact disc read-only memory
- DVD digital versatile disk
- memory stick a floppy disk
- a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon
- a computer readable storage medium is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
- Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network.
- the network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
- a network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
- Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
- the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
- the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
- electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
- These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
- These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
- the computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
- each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s).
- the functions noted in the block may occur out of the order noted in the figures.
- two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
- any of the following “/”, “and/or”, and “at least one of”, for example, in the cases of “A/B”, “A and/or B” and “at least one of A and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B).
- such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C).
- This may be extended, as readily apparent by one of ordinary skill in this and related arts, for as many items listed.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Advance Control (AREA)
Abstract
Description
- The present invention relates generally to information processing and, in particular, to an instruction completion table with a ready-to-complete vector.
- In a microprocessor, the rate of instructions is a bottleneck for many applications. If the rate of completion is too slow, then the completion table can get filled up quickly, and stop instruction dispatch. This will lead to significant performance loss. Hence, there is a need for improving the use of the completion table.
- According to an aspect of the present invention, a computer-implemented method is provided. The method includes processing, by a superscalar processing pipeline, respective sets of instructions in respective instruction processing cycles using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector. The ICT includes a plurality of entries, each corresponding to a respective one of the instructions. A Next-To-Complete (NTC) instruction from among the respective sets of instructions is computed using the RTC vector.
- According to another aspect of the present invention, a computer program product is provided for managing instruction processing. The computer program product includes a computer readable storage medium having program instructions embodied therewith. The program instructions are executable by a computer to cause the computer to perform a method. The method includes processing, by a superscalar processing pipeline, respective sets of instructions in respective instruction processing cycles using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector. The ICT includes a plurality of entries, each corresponding to a respective one of the instructions. A Next-To-Complete (NTC) instruction from among the respective sets of instructions is computed using the RTC vector.
- According to yet another aspect of the present invention, a computer processing system is provided. The system includes a superscalar processing pipeline, configured to process respective sets of instructions in respective instruction processing cycles using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector. The ICT includes a plurality of entries, each corresponding to a respective one of the instructions. A Next-To-Complete (NTC) instruction from among the respective sets of instructions is computed using the RTC vector.
- These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.
- The following description will provide details of preferred embodiments with reference to the following figures wherein:
-
FIG. 1 shows an exemplary computer processing system to which the present invention may be applied, in accordance with an embodiment of the present invention; -
FIG. 2 shows an exemplary superscalar processing pipeline to which the present invention may be applied, in accordance with an embodiment of the present invention; -
FIG. 3 shows an exemplary Instruction Completion Table (ICT) to which the present invention can be applied, in accordance with an embodiment of the present invention; and -
FIGS. 4-5 show an exemplary method using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector, in accordance with an embodiment of the present invention. - The present invention is directed to an instruction completion table with a ready-to-complete vector.
- The present invention provides an approach whereby an instruction completion table can be used to complete a large number of instructions per cycle with the use of a ready-to-complete vector. Completion of a large number of instructions per cycle is achieved using the ready-to-complete vector in that the ready-to-complete vector allows for more efficient use of the instruction completion table as compared to the prior art, in order to prevent the instruction completion table from filling up too quickly and stopping instruction dispatch. In this way, overall computer performance is improved. To that end, the term “instruction processing cycle” as used herein refers to the time between two pulses of an oscillator which is used as a clock within a computer.
-
FIG. 1 shows an exemplarycomputer processing system 100 to which the present invention may be applied, in accordance with an embodiment of the present invention. - The
computer processing system 100 includes a central processing unit (CPU) 102 connected to asystem bus 108. In an embodiment, theCPU 102 is a superscalar CPU. Thecomputer processing system 100 further includes agraphics adapter 104 connected tosystem bus 108 for providing user interface information to adisplay 106. Thecomputer processing system 100 also includes asystem memory 110 and an input/output (I/O) bus bridge 112 connected tosystem bus 108. I/0 bus bridge 112 couples an I/0bus 114 tosystem bus 108, relaying and/or transforming data transactions from one bus to the other bus.Computer processing system 100 also includes one or more peripheral devices (with one shown for the sake of illustration) 116 and one or more input devices (with one shown for the sake of illustration) 118 connected to I/O bus 114. Theperipheral devices 116 can include, for example, but are not limited to a hard disk drive, a printer, and so forth. Theinput devices 118 can include, but are not limited to, a mouse, a trackball, a keyboard, a camera, and so forth. - While a particular configuration of a computing device is shown in
FIG. 1 , it is to be appreciated that the present invention is not limited to solely such configuration. Hence, one of ordinary skill in the art will contemplate this and various other computing configurations to which the present invention can be applied, while maintaining the spirit of the present invention. -
FIG. 2 shows an exemplarysuperscalar processing pipeline 200 to which the invention principles may be applied, in accordance with an embodiment of the present invention. As an example,superscalar processing pipeline 200 can be included inCPU 102 ofFIG. 1 may include. - The
superscalar processing pipeline 200 includes an instruction fetch unit (IF) 210, an instruction decode unit (ID) 220, a register renaming unit (Rename) 230, aninstruction window 240, aregister file 250, a branch speculation/recovery unit 260, and a set of functional units 270 (including FU1 through FUn). - By the
superscalar processing pipeline 200, instructions are fetched and decoded, and source and destination registers are renamed (to eliminate false dependencies due to architectural register reuse by successive instructions that lack any real dependencies there between) before the instructions are dispatched to theinstruction window 240 to wait for their source operands to be ready. The instructions are then issued by theinstruction window 240 to one or more of thefunctional units 270 for execution, where results of thefunctional units 270 are provided on result buses. - It is to be appreciated that the configuration of
superscalar processing pipeline 200 is but one of a myriad of processing configurations to which the present invention can be applied. Thus, other processing configurations can also be readily used, given the teachings of the present invention provided herein, while maintaining the spirit of the present invention. -
FIG. 3 shows an exemplary Instruction Completion Table (ICT) 300 to which the present invention can be applied, in accordance with an embodiment of the present invention. - The ICT 300 is direct mapped, and includes a set of
rows 390, spanning from ITAG A to ITAG N, acolumn 301 for “valid”, acolumn 302 for “problem”, acolumn 303 for “Finish”, and acolumn 304 for “RTC” (Ready-To-Complete). The ITAG is an Instruction TAG or instruction identifier that is used to identify and track a respective instruction being processed. Thevalid column 301 is used to indicate whether a currently processed instruction (hereinafter “current instruction”) is valid. Theproblem column 302 is used to indicate whether there is a problem in processing the current instruction. Accordingly, theproblem column 302 can be used to store exception trouble code for a given ITAG. Thefinish column 303 is used to indicate whether processing of the current instruction has finished, and its value is determined as described below. TheRTC column 304 is used to indicate whether the current instruction is ready-to-complete (have its results committed), and its value is determined as described below. - The ICT 300 includes the following general attributes:
- (1) Tracks all instructions in core while out-of-order;
- (2) N entries track up to N instructions in flight, where N is an integer;
- (3) X write ports for dispatch/finish+Y write ports for finish, where X and Y are integers;
- (4) Each ICT entry tracks one instruction (one of ITAG A through N);
- (5) Stores information needed for completion, flush, and exception trouble code;
- (6) Completion is always in dispatch order;
- (7) ICT indexed by ITAGs;
- (8) Entries per thread: N for ST, N/2 for SMT2, N/4 for SMT4;
- (9) Oldest instruction per thread tracked with tail pointers;
- (10) ICT organized by physical thread, logical mapping happens elsewhere;
- (11) Each entry has a ready-to-complete bit to signal that the ICT row is ready to complete when (i) the instruction is valid due to dispatch, (ii) the instruction is finished, and (iii) the instruction does not cause an exception (based on the exception trouble code) and needs special handling; and
- (12) Qualify finish reports to create a Ready-To-Complete (RTC) vector 601. The finish reports can be qualified with, for example, one or more of the following: atomic; flush; and so forth.
- The RTC vector may be “sticky” such that completed bits remain set until a group of entries is completed.
- A description will now be given regarding instruction completion, in accordance with an embodiment of the present invention.
- (1) Instructions are completed in dispatch order;
(2) Completion is allowed only when the RTC=1.
(3) Complete next completion I, by examining RTC vector;
(4) Arbitrate, if necessary, between threads.
(5) Broadcast completion ITAG. - A description will now be given regarding finish and complete via the RTC bit, in accordance with an embodiment of the present invention.
- Regarding such finish and complete via the RTC bit, the following applies:
- (1) X+Y Finish reports:
- (2) Finishes occur out-of-order;
- (3) ICT includes a finish bit and exception trouble code;
- (4) Finish bits in ICT will be set to 0 at dispatch and the Ready-to-complete (RTC) bit is set to 0. The exception trouble code is also written in the ICT at dispatch or finish.
- (5) When ICT receives a finished ITAG, it will set the finish bit of the corresponding ITAG to 1. The completion logic will then examine the exception trouble code to see if the instruction can be completed or not.
- If finish bit=1 and if exception trouble code=0, then the Ready-to-complete (RTC) bit of the corresponding to that ITAG is set to 1 to indicate that this instruction is ready to be completed.
- If finish bit=1 and if exception trouble code is not 0, then the RTC bit will be kept at 0, to indicate that this instruction may experience some type of exception and will need special handling.
- (6) If the RTC bit=1, then the instruction can be completed if it is the oldest instruction to be completed, or if all of the older instructions also have their RTC bits set to 1.
- (7) If the finish bit=1, the exception trouble code is not 0 and RTC=0, then the exception state machine will examine the exception code when this particular instruction is the oldest instruction in the machine (i.e., Next-to-complete (NTC)). If this instruction is NTC, then the exception state machine will take action based on the exception code. After the exception state machine has finished handling the excepting conditions, it will then signal the ICT to set the RTC bit=1 to allow the instruction to complete.
- In an embodiment, N ITAGs per entry can be allowed with just the one RTC for the entry indicating that the entry can be completed.
- Also, in addition to valid and finish, the RTC also looks at atomicity. For example, the RTC bit for an entry that is part of an atomic group will only be set when all ITAGs of the atomic group are valid and finished, and all entries of the atomic group will have their RTC bit set at the same time so that the atomic group will be completed atomically.
- A description will now be given regarding a flush operation, in accordance with an embodiment of the present invention.
- (1) Broadcasted Flush clears ITAG valid in ICT, thus also clearing RTC.
(2) Dispatch after flush will set ICT valid and clear ICT finish. -
FIGS. 4-5 show anexemplary method 400 using an Instruction Completion Table (ICT) with a Ready-To-Complete (RTC) vector. Themethod 400 is performed for respective set of instructions being processing by a superscalar processing pipeline (e.g.,superscalar processing pipeline 200 ofFIG. 2 ). - At
step 405, provide an ICT for tracking the instructions being processing (by the superscalar processing pipeline). The ICT is organized by physical thread, indexed by ITAGs (with one ICT entry per instruction), and is configured to store information needed for instruction completion, pipeline flush, and instruction exception trouble code. The ICT tracks the oldest instruction per thread (from among multiple threads being processed in parallel) with tail pointers. - At
step 410, for each instruction being dispatched, set a RTC bit (of a RTC vector) in the ICT to 0, set a finish bit in the ICT to 0, and write exception trouble code for the instructions. - At
step 415, responsive to the ICT receiving a finished ITAG, set the finish bit in the ICT, of the corresponding ITAG in the ICT, to 1. - At
step 420, for a given instruction, determine whether the given instruction can be completed by examining the exception trouble code. That is, determine if the finish bit=1 and the exception trouble code=0 for the given instruction. If so, then proceed to step 425. Otherwise, proceed to step 430. - At step 425 (corresponding to the finish bit=1 and the exception trouble code=0), set the RTC bit of the corresponding ITAG for the given instruction to 1, to indicate that the given instruction is ready to be completed.
- At step 430 (corresponding to the finish bit=1 and the exception trouble code 0), keep the RTC bit at 0, to indicate that the given instruction has experienced some type of exception which will involve special handling, and proceed to step 455.
- At
step 435, determine if the RTC bit=1. If so, then proceed to step 440. Otherwise, proceed to step 445. - At
step 440, determine if the given instruction is the oldest instruction to be completed or if all of the older instructions also have their RTC bits set to 1. If so, then proceed to step 445. Otherwise, proceed to step 450. - At step 445 (corresponding to the finish bit=0 and the trouble exception code=0), complete the given instruction in dispatch order.
- At
step 450, delay completion of the given instruction. - At step 455 (corresponding to the finish bit=0, the exception trouble code≠0, and RTC=0), examine the exception code when the given instruction is the oldest instruction in the machine (i.e., Next-To-Complete (NTC)).
- At step 460, take action based on the exception code and signal the ICT to set the RTC bit to 1 to allow the given instruction to complete, responsive to a completion of handling the exception conditions.
- Hence, in an embodiment, a Next-To-Complete (NTC) instruction from among the respective sets of instructions is computed using the RTC vector using several methods. For example, one method can involve performing a count leading 1s of the RTC bits in the RTC vector. With this method a Next to Complete ITAG can be generated directly using the count. Of course, other methods can also be used, while maintaining the spirit of the present invention.
- The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
- The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
- Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
- Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
- Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
- These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
- The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
- The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
- Reference in the specification to “one embodiment” or “an embodiment” of the present invention, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment”, as well any other variations, appearing in various places throughout the specification are not necessarily all referring to the same embodiment.
- It is to be appreciated that the use of any of the following “/”, “and/or”, and “at least one of”, for example, in the cases of “A/B”, “A and/or B” and “at least one of A and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B). As a further example, in the cases of “A, B, and/or C” and “at least one of A, B, and C”, such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C). This may be extended, as readily apparent by one of ordinary skill in this and related arts, for as many items listed.
- Having described preferred embodiments of a system and method (which are intended to be illustrative and not limiting), it is noted that modifications and variations can be made by persons skilled in the art in light of the above teachings. It is therefore to be understood that changes may be made in the particular embodiments disclosed which are within the scope of the invention as outlined by the appended claims. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/182,760 US10977034B2 (en) | 2018-11-07 | 2018-11-07 | Instruction completion table with ready-to-complete vector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/182,760 US10977034B2 (en) | 2018-11-07 | 2018-11-07 | Instruction completion table with ready-to-complete vector |
Publications (2)
Publication Number | Publication Date |
---|---|
US20200142697A1 true US20200142697A1 (en) | 2020-05-07 |
US10977034B2 US10977034B2 (en) | 2021-04-13 |
Family
ID=70459612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/182,760 Active 2039-01-18 US10977034B2 (en) | 2018-11-07 | 2018-11-07 | Instruction completion table with ready-to-complete vector |
Country Status (1)
Country | Link |
---|---|
US (1) | US10977034B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11086630B1 (en) * | 2020-02-27 | 2021-08-10 | International Business Machines Corporation | Finish exception handling of an instruction completion table |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6035394A (en) * | 1998-02-17 | 2000-03-07 | International Business Machines Corporation | System for providing high performance speculative processing of complex load/store instructions by generating primitive instructions in the load/store unit and sequencer in parallel |
US6356918B1 (en) * | 1995-07-26 | 2002-03-12 | International Business Machines Corporation | Method and system for managing registers in a data processing system supports out-of-order and speculative instruction execution |
US6539502B1 (en) * | 1999-11-08 | 2003-03-25 | International Business Machines Corporation | Method and apparatus for identifying instructions for performance monitoring in a microprocessor |
US6721874B1 (en) * | 2000-10-12 | 2004-04-13 | International Business Machines Corporation | Method and system for dynamically shared completion table supporting multiple threads in a processing system |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6658555B1 (en) | 1999-11-04 | 2003-12-02 | International Business Machines Corporation | Determining successful completion of an instruction by comparing the number of pending instruction cycles with a number based on the number of stages in the pipeline |
US6990568B2 (en) | 2001-03-30 | 2006-01-24 | Hewlett-Packard Development Company, L.P. | Retiring early-completion instructions to improve computer operation throughput |
US6934865B2 (en) | 2002-07-09 | 2005-08-23 | University Of Massachusetts | Controlling a processor resource based on a compile-time prediction of number of instructions-per-cycle that will be executed across plural cycles by the processor |
US7089406B2 (en) | 2003-06-09 | 2006-08-08 | International Business Machines Corporation | Method and apparatus for controlling program instruction completion timing for processor verification |
US7278011B2 (en) | 2004-04-08 | 2007-10-02 | International Business Machines Corporation | Completion table configured to track a larger number of outstanding instructions without increasing the size of the completion table |
JP5028774B2 (en) | 2005-09-22 | 2012-09-19 | 富士通株式会社 | Arithmetic processing device, information processing device, and register file control method |
US8832416B2 (en) | 2007-05-24 | 2014-09-09 | International Business Machines Corporation | Method and apparatus for instruction completion stall identification in an information handling system |
US8234484B2 (en) | 2008-04-09 | 2012-07-31 | International Business Machines Corporation | Quantifying completion stalls using instruction sampling |
US9442734B2 (en) | 2014-02-11 | 2016-09-13 | Apple Inc. | Completion time determination for vector instructions |
US9830153B2 (en) | 2014-06-20 | 2017-11-28 | Netronome Systems, Inc. | Skip instruction to skip a number of instructions on a predicate |
US20160125263A1 (en) | 2014-11-03 | 2016-05-05 | Texas Instruments Incorporated | Method to compute sliding window block sum using instruction based selective horizontal addition in vector processor |
-
2018
- 2018-11-07 US US16/182,760 patent/US10977034B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6356918B1 (en) * | 1995-07-26 | 2002-03-12 | International Business Machines Corporation | Method and system for managing registers in a data processing system supports out-of-order and speculative instruction execution |
US6035394A (en) * | 1998-02-17 | 2000-03-07 | International Business Machines Corporation | System for providing high performance speculative processing of complex load/store instructions by generating primitive instructions in the load/store unit and sequencer in parallel |
US6539502B1 (en) * | 1999-11-08 | 2003-03-25 | International Business Machines Corporation | Method and apparatus for identifying instructions for performance monitoring in a microprocessor |
US6721874B1 (en) * | 2000-10-12 | 2004-04-13 | International Business Machines Corporation | Method and system for dynamically shared completion table supporting multiple threads in a processing system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11086630B1 (en) * | 2020-02-27 | 2021-08-10 | International Business Machines Corporation | Finish exception handling of an instruction completion table |
Also Published As
Publication number | Publication date |
---|---|
US10977034B2 (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9652248B2 (en) | Load queue entry reuse for operand store compare history table update | |
US20160371091A1 (en) | Techniques for improving issue of instructions with variable latencies in a microprocessor | |
US10970079B2 (en) | Parallel dispatching of multi-operation instructions in a multi-slice computer processor | |
US10209757B2 (en) | Reducing power consumption in a multi-slice computer processor | |
US10318294B2 (en) | Operation of a multi-slice processor implementing dependency accumulation instruction sequencing | |
US20200356369A1 (en) | System and handling of register data in processors | |
US20180004527A1 (en) | Operation of a multi-slice processor implementing prioritized dependency chain resolution | |
US9928073B2 (en) | Determining of validity of speculative load data after a predetermined period of time in a multi-slice processor | |
US11269647B2 (en) | Finish status reporting for a simultaneous multithreading processor using an instruction completion table | |
US10977034B2 (en) | Instruction completion table with ready-to-complete vector | |
US10467008B2 (en) | Identifying an effective address (EA) using an interrupt instruction tag (ITAG) in a multi-slice processor | |
US9703614B2 (en) | Managing a free list of resources to decrease control complexity and reduce power consumption | |
US10248555B2 (en) | Managing an effective address table in a multi-slice processor | |
US10528353B2 (en) | Generating a mask vector for determining a processor instruction address using an instruction tag in a multi-slice processor | |
US20180004516A1 (en) | Administering instruction tags in a computer processor | |
US10528352B2 (en) | Blocking instruction fetching in a computer processor | |
US11093282B2 (en) | Register file write using pointers | |
US9971687B2 (en) | Operation of a multi-slice processor with history buffers storing transaction memory state information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW YORK Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WARD, KENNETH L.;EISEN, SUSAN E.;KINCAID, GLENN O.;AND OTHERS;REEL/FRAME:047434/0085 Effective date: 20181106 |
|
FEPP | Fee payment procedure |
Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: FINAL REJECTION MAILED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT RECEIVED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |