# US 2017/0293541 A1 · Self-testing in a processor core

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

- Number: US 2017/0293541 A1
- Document ID: US20170293541A1
- Status: Published application
- Kind: A1
- Application number: 15/447,673
- Filed: 2017-03-02
- Published: 2017-10-12
- Earliest claimed: 2016-04-11
- Assignees: Arm Limited
- Applicants: ARM Limited
- Inventors: Balaji VENU; Kauser Yakub JOHAR; Marco BONINO
- Web page: https://patentgrep.com/patent/US20170293541A1

## CPC

- G06F 11/27: Built-in tests
- G06F 11/0721: {within a central processing unit [CPU]}
- G06F 11/0766: {Error or fault reporting or storing}
- G06F 11/0775: {Content or structure details of the error report, e.g. specific table structure, specific error fields}
- G06F 11/0784: {Routing of error reports, e.g. with a specific transmission path or data flow}
- G06F 11/22: Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F 11/2236: {to test CPU or processors}
- G06F 11/2242: {in multi-processor systems, e.g. one processor becoming the primary tester (G06F11/2736 takes precedence)}
- G06F 11/2284: {by power-on test, e.g. power-on self test [POST]}
- G06F 11/24: Marginal checking {or other specified testing methods not covered by G06F11/26, e.g. race tests}
- G06F 11/273: Tester hardware, i.e. output processing circuits {(G06F11/263 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatus and a method for processor core self-testing are disclosed. The apparatus comprises processor core circuitry to perform data processing operations by executing data processing instructions. Separate self-test control circuitry causes the processor core circuitry to temporarily switch from a first state of executing the data processing instructions to a second state of executing a self-test sequence of instructions, before returning to the first state of executing the data processing instructions without a reboot of the processor core circuitry being required. There is also self-test support circuitry, wherein the processor core circuitry is responsive to the self-test sequence of instructions to cause an export of at least one self-test data item via the self-test support circuitry to the self-test control circuitry.

## Claims

### Claim 1

Apparatus comprising:
processor core circuitry to perform data processing operations by executing data processing instructions;
self-test control circuitry to cause the processor core circuitry to temporarily switch from a first state of executing the data processing instructions to a second state of executing a self-test sequence of instructions, before returning to the first state of executing the data processing instructions without a reboot of the processor core circuitry being required; and
self-test support circuitry, wherein the processor core circuitry is responsive to the self-test sequence of instructions to cause an export of at least one self-test data item via the self-test support circuitry to the self-test control circuitry.

### Claim 2 (depends on 1)

The apparatus as claimed in claim 1, wherein the processor core circuitry is capable of completing the export of the at least one self-test data item after returning to the first state of executing the data processing instructions.

### Claim 3 (depends on 1)

The apparatus as claimed in claim 1, wherein the self-test support circuitry comprises a dedicated self-test data path from the processor core circuitry to the self-test control circuitry.

### Claim 4 (depends on 1)

The apparatus as claimed in claim 1, wherein the self-test support circuitry comprises instruction type indication circuitry and the at least one self-test data item comprises at least one instruction type indication provided by the instruction type indication circuitry,
wherein the self-test control circuitry is responsive to reception of the at least one instruction type indication to maintain an instruction type count,
and wherein the self-test control circuitry is capable of comparing the instruction type count to an expected instruction type count.

### Claim 5 (depends on 4)

The apparatus as claimed in claim 4, wherein the processor core circuitry comprises instruction fetch circuitry and the instruction type indication circuitry is comprised within the instruction fetch circuitry.

### Claim 6 (depends on 4)

The apparatus as claimed in claim 4, wherein the processor core circuitry comprises instruction retirement circuitry and the instruction type indication circuitry is comprised within the instruction retirement circuitry.

### Claim 7 (depends on 1)

The apparatus as claimed in claim 1, wherein the processor core circuitry comprises memory transaction buffering circuitry temporarily to hold memory transaction requests before the memory transaction requests are issued to a memory system,
wherein the self-test support circuitry comprises memory transaction request indication circuitry and the at least one self-test data item comprises at least one memory transaction request indication provided by the memory transaction request indication circuitry,
wherein the self-test control circuitry is responsive to reception of the at least one memory transaction request indication to maintain a memory transaction request count,
and wherein the self-test control circuitry is capable of comparing the memory transaction request count to an expected memory transaction request count.

### Claim 8 (depends on 7)

The apparatus as claimed in claim 7, wherein the self-test support circuitry comprises memory transaction request indication circuitry before the memory transaction buffering circuitry and after the memory transaction buffering circuitry, and the at least one self-test data item comprises memory transaction requests indications from before and after the memory transaction buffering circuitry.

### Claim 9 (depends on 7)

The apparatus as claimed in claim 7, wherein the self-test support circuitry comprises memory transaction blocking circuitry to block issuance of the memory transaction requests to the memory system in dependence on a blocking signal from the self-test control circuitry.

### Claim 10 (depends on 9)

The apparatus as claimed in claim 9, wherein the self-test control circuitry is capable of asserting the blocking signal until an indication is received from the memory transaction buffering circuitry that the memory transaction buffering circuitry is full.

### Claim 11 (depends on 10)

The apparatus as claimed in claim 10, wherein the indication that the memory transaction buffering circuitry is full comprises the at least one memory transaction request indication when the memory transaction request count reaches the expected memory transaction request count.

### Claim 12 (depends on 10)

The apparatus as claimed in claim 10, wherein the indication that the memory transaction buffering circuitry is full comprises a full buffer signal generated by the memory transaction buffering circuitry.

### Claim 13 (depends on 9)

The apparatus as claimed in claim 9, wherein the self-test control circuitry comprises timer circuitry and the self-test control circuitry is responsive to an elapsed period signal from the timer circuitry to assert a timeout error signal.

### Claim 14 (depends on 1)

The apparatus as claimed in claim 1, wherein the self-test control circuitry is capable of causing the processor core circuitry to operate in the second state of executing the self-test sequence of instructions for a predetermined time period before returning to the first state.

### Claim 15 (depends on 1)

The apparatus as claimed in claim 1, wherein the processor core circuitry is capable of switching between data processing operations for more than one application defined by corresponding sets of data processing instructions,
wherein each application has a predefined priority and the processor core circuitry is responsive to an execution request for an application having a higher predefined priority than a predefined priority of a currently executing application to suspend the currently executing application and to execute the application having the higher predefined priority,
and wherein the self-test sequence of instructions is defined to have a predefined priority lower than the highest priority available in the apparatus.

### Claim 16 (depends on 1)

The apparatus as claimed in claim 1, wherein the self-test control circuitry is responsive to at least one received command by performing at least one of:
configuring itself and the processor core circuitry for operation in the second state;
causing the processor core circuitry to switch to the second state; and
causing the processor core circuitry to switch back to the first state and determining a self-test result from the at least one self-test data item received from the processor core circuitry.

### Claim 17 (depends on 1)

The apparatus as claimed in claim 1, comprising error management control circuitry, wherein the self-test control circuitry is capable of signalling a self-test result after the processor core circuitry has completed executing the self-test sequence of instructions, and the error management control circuitry is responsive to the self-test result to initiate an error response.

### Claim 18 (depends on 17)

The apparatus as claimed in claim 17, wherein the error response comprises disabling at least one component of the apparatus.

### Claim 19

A method of operating a data processing apparatus, comprising the steps of:
performing data processing operations in processor core circuitry in a first state by executing data processing instructions;
signalling from self-test control circuitry to cause the processor core circuitry to temporarily switch from the first state to a second state of executing a self-test sequence of instructions, before returning to the first state of executing the data processing instructions without a reboot of the processor core circuitry being required; and
causing an export of at least one self-test data item via self-test support circuitry in the processor core circuitry to the self-test control circuitry.

### Claim 20

Apparatus comprising:
means for performing data processing operations by executing data processing instructions;
means for controlling a self-test process comprising causing the means for performing data processing operations to temporarily switch from a first state of executing the data processing instructions to a second state of executing a self-test sequence of instructions, before returning to the first state of executing the data processing instructions without a reboot of the means for performing data processing operations being required; and
means for supporting the self-test process, wherein the means for performing data processing operations is responsive to the self-test sequence of instructions to cause an export of at least one self-test data item via the means for supporting the self-test process to the means for controlling the self-test process.
