# US 11,119,772 B2 · Check pointing of accumulator register results in a microprocessor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,772 B2
- Document ID: US11119772B2
- Status: Granted
- Kind: B2
- Application number: 16/705,362
- Filed: 2019-12-06
- Published: 2021-06-10
- Granted: 2021-09-14
- Earliest claimed: 2019-12-06
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Steven J Battle; Brian D. Barrick; Susan E. Eisen; Andreas Wagner; Dung Q. Nguyen; Brian W. Thompto; Hung Q. Le; Kenneth L. Ward
- Web page: https://patentgrep.com/patent/US11119772B2

## CPC

- G06F 9/30101: {Special purpose registers}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30032: {Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30123: {according to context, e.g. thread buffers}
- G06F 9/3013: {according to data content, e.g. floating-point registers, address registers}
- G06F 9/3832: {Value prediction for operands; operand history buffers}
- G06F 9/3863: {using multiple copies of the architectural state, e.g. shadow registers}
- G06F 9/3893: {controlled in tandem, e.g. multiplier-accumulator}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer system, processor, and method for processing information is disclosed that includes at least one processor having a main register file, the main register file having a plurality of entries for storing data; one or more execution units including a dense math execution unit; and at least one accumulator register file, the at least one accumulator register file associated with the dense math execution unit. The processor in an embodiment is configured to process data in the dense math execution unit where the results of the dense math execution unit are written to a first group of one or more accumulator register file entries, and after a checkpoint boundary is crossed based upon, for example, the number “N” of instructions dispatched after the start of the checkpoint, the results of the dense math execution unit are written to a second group of one or more accumulator register file entries.

## Claims

### Claim 1

A computer system for processing information, the computer system comprising:
at least one processor having a circuit and logic to process instructions, the processor comprising;
a dispatch unit having a circuit and logic to dispatch instructions;
an instruction completion table (ICT) having a circuit and logic to track dispatched instructions, the ICT having a plurality of entries to store data;
a main register file associated with the at least one processor, the main register file having a circuit and a plurality of entries for storing data, one or more write ports to write data to the main register file entries, and one or more read ports to read data from the main register file entries;
one or more execution units having a circuit and logic, the one or more execution units including a dense math execution unit;
at least one accumulator register file having a circuit and a plurality of entries for storing data, the at least one accumulator register file associated with the dense math execution unit; and
a mapper having a circuit and logic to map one or more main register file entries to one or more accumulator register file entries,
wherein the processor is configured to prime the accumulator register file to receive data in response to an instruction targeting the accumulator register file, and in response to priming the accumulator register file a first checkpoint is created and the dispatch unit sends a first checkpoint begin iTag corresponding to the first checkpoint to the ICT and stores the first checkpoint begin iTag;
wherein the processor is configured to process data in the dense math execution unit where the results of the dense math execution unit are written to a first group of one or more accumulator register file entries, and after a checkpoint boundary is crossed the results of the dense math execution unit are written to a second group of one or more accumulator register file entries; and
wherein the dispatch unit notifies the mapper that the second group of accumulator register file entries is being allocated and the mapper renames the first group of one or more accumulator register file entries to the second group of accumulator register file entries.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the processor is configured to write results back to the first group of one or more accumulator register file entries multiple times.

### Claim 3 (depends on 1)

The computer system of claim 1, wherein the processor is further configured to write data from the groups of one or more accumulator register file entries to the main register file.

### Claim 4 (depends on 3)

The computer system of claim 3, wherein the processor is configured to write data from the groups of one or more accumulator register file entries to a plurality of main register file entries in response to an instruction accessing a main register file entry that is mapped to an accumulator register file entry in the groups of one or more accumulator register file entries.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the accumulator register file is local to the dense math unit.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein the dense math execution unit is a matrix-multiply-accumulator (MMA) unit and the accumulator register file is located in the MMA.

### Claim 7 (depends on 1)

The computer system of claim 1, wherein the bit field width of the accumulator register file is wider than the bit field width of the main register file.

### Claim 8 (depends on 7)

The computer system of claim 7, wherein each entry in the accumulator register file is mapped to a plurality of main register file entries.

### Claim 9 (depends on 1)

The computer system of claim 1, wherein, the checkpoint boundary is based upon the number “N” of instructions dispatched since the first checkpoint begin iTag, and after the dispatch unit dispatches the number “N” of instructions, the dispatch unit detects that a dispatched instruction will trigger the allocation of the second group of accumulator register file entries and a second checkpoint is created.

### Claim 10 (depends on 9)

The computer system of claim 9, wherein, in response to the second checkpoint being created, the dispatch unit sends a second checkpoint begin iTag to the ICT corresponding to the second checkpoint and stores the second checkpoint begin iTag.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the dispatch unit tracks a current checkpoint begin iTag, and all instructions younger than the current checkpoint begin iTag belong to the checkpoint associated with the respective group of one or more accumulator register file entries.

### Claim 12 (depends on 9)

The computer system of claim 9, wherein the ICT determines based upon the number of instructions dispatched by the dispatch unit, which instructions belong to the respective checkpoint.

### Claim 13 (depends on 1)

The computer system of claim 1, wherein an encoding is provided in the ICT entries to identify an instruction either as a checkpoint begin iTag or as an in a checkpoint iTag.

### Claim 14 (depends on 9)

The computer system of claim 9, wherein each checkpoint is not complete and the accumulator register file entries are not released for reuse until all the instructions (iTags) within the respective checkpoint are finished.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein the ICT looks at the completion bits of all the instructions within the respective checkpoint and if all the instructions in the respective checkpoint are finished, the respective checkpoint is complete and the respective checkpoint mapping is released to a freelist of accumulator register file entries ready to be reallocated for use.

### Claim 16 (depends on 9)

The computer system of claim 9, wherein in response to a flush operation within the second checkpoint, a flush iTag is compared against the second checkpoint begin iTag and the second checkpoint is flushed and the first checkpoint and accumulator register mapping of the first checkpoint is restored.

### Claim 17

A processor for processing information, the processor comprising:
a main register file associated with the at least one processor, the main register file having a circuit and a plurality of entries for storing data, one or more write ports to write data to the main register file entries, and one or more read ports to read data from the main register file entries;
one or more execution units having a circuit and logic, the one or more execution units including a dense math execution unit;
at least one accumulator register file having a circuit and a plurality of entries for storing data, the at least one accumulator register file associated with the dense math execution unit, and the bit field width of the accumulator register file being wider than the bit field width of the main register file;
a dispatch unit having a circuit and logic to dispatch instructions;
an instruction completion table (ICT) having a circuit and logic to track dispatched instructions, the ICT having a plurality of entries to store data; and
a mapper having a circuit and logic to map one or more main register file entries to one or more accumulator register file entries,
wherein the processor is configured to prime the accumulator register file to receive data in response to an instruction targeting the accumulator register file, and in response to priming the accumulator register file a first checkpoint is created and the dispatch unit sends a first checkpoint begin iTag corresponding to the first checkpoint to the ICT and stores the first checkpoint begin iTag;
wherein the processor is configured to process data in the dense math execution unit where the results of the dense math execution unit are written to a first group of one or more accumulator register file entries multiple times, and after crossing a checkpoint boundary the results of the dense math execution unit are written to a second group of one or more accumulator register file entries, and
wherein the processor is configured to write data from the groups of one or more accumulator register file entries back to the main register file entries.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein, the checkpoint boundary is based upon the number “N” of instructions dispatched after the first checkpoint begin iTag, and after the dispatch unit dispatches the number “N” of instructions, the dispatch unit detects when a dispatched instruction will trigger the allocation of the second group of accumulator register file entries and a second checkpoint is created, the dispatch unit notifies the mapper that the second group of accumulator register file entries is being allocated and the mapper renames the first group of one or more accumulator file entries to the second group of file entries, and in response to the second checkpoint being created, the dispatch unit sends a second checkpoint begin iTag corresponding to the second checkpoint to the ICT and stores the second checkpoint begin iTag.
