# US 2011/0239070 A1 · Method and apparatus for testing a data processing system

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

- Number: US 2011/0239070 A1
- Document ID: US20110239070A1
- Status: Published application
- Kind: A1
- Application number: 12/748,108
- Filed: 2010-03-26
- Published: 2011-09-29
- Earliest claimed: 2010-03-26
- Assignees: Freescale Semiconductor, Inc.
- Inventors: Gary R. Morrison
- Web page: https://patentgrep.com/patent/US20110239070A1

## CPC

- G06F 11/2236: {to test CPU or processors}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of testing a processing includes performing a test of at least one logic block of a processor of a data processing system; receiving an interrupt; stopping the performing the test for the processor to respond to the interrupt, wherein the stopping the performing the test includes storing test data of the test to a memory prior to the processor responding to the interrupt; and after the processor responds to the interrupt, resuming performing the test, wherein the resuming performing the test includes retrieving the test data from the memory and using the retrieved test data for the resuming performing the test.

## Claims

### Claim 1

A method of testing of a processor, the method comprising:
performing a test of at least one logic block of a processor of a data processing system;
receiving an interrupt;
stopping the performing the test for the processor to respond to the interrupt, wherein the stopping the performing the test includes storing test data of the test to a memory prior to the processor responding to the interrupt; and
after the processor responds to the interrupt, resuming performing the test, wherein the resuming performing the test includes retrieving the test data from the memory and using the retrieved test data for the resuming performing the test.

### Claim 2 (depends on 1)

The method of testing of claim 1 wherein the test data includes scan chain data from the at least one logic block, wherein the resuming the performing the test includes restoring the scan chain data to the at least one logic block and using the scan chain data for the resuming performing the test.

### Claim 3 (depends on 1)

The method of claim 1 wherein the test data includes signature analyzer data from a signature analyzer, wherein the resuming the performing the test includes restoring the signature analyzer data to the signature analyzer and using the signature analyzer data for the resuming performing the test.

### Claim 4 (depends on 1)

The method of claim 1 wherein the test data includes data from a pattern generator, wherein the resuming the performing the test includes restoring the data from the pattern generator to the pattern generator for the resuming the performing the test.

### Claim 5 (depends on 1)

The method of claim 1 wherein the processor includes a cache memory, wherein the storing test data of the test to a memory includes storing the test data to a portion of the cache memory, wherein the processor does not use the portion of the cache memory as a cache between the storing and the resuming.

### Claim 6 (depends on 5)

The method of claim 5 wherein the portion of the cache includes one or more of a tag portion, a cache data portion, and a status bits portion, wherein the storing test data of the test to a memory includes storing test data in the one or more of the tag portion, the cache data portion, and the status bits portion.

### Claim 7 (depends on 5)

The method of claim 5 further comprising:
using the portion of the cache memory as a cache by the processor prior to the storing the test data of the test into the portion of the cache memory.

### Claim 8 (depends on 7)

The method of claim 7 wherein the portion of the cache is flushed after beginning the performing the test.

### Claim 9 (depends on 8)

The method of claim 8 wherein the cache is flushed in response to the determination that at least a predetermined portion of the testing has been performed, wherein if the predetermined portion of the testing has not been performed as of the stopping the performing the test, the test data is not saved to the portion of the cache memory.

### Claim 10 (depends on 1)

The method of claim 1 further comprising:
when storing the test data to the memory, generating a first set of error detection codes for the test data, wherein the retrieving the test data includes generating a second set of error detection codes for the retrieved test data; and
comparing the first set of error detection codes with the second set of error detection codes to determine if there was an error in the storage of the test data in the memory.

### Claim 11 (depends on 10)

The method of claim 10 wherein the performing the test includes generating error detection codes with a signature analyzer, wherein the first set of error detection codes and second set of error detection codes are generated with the signature analyzer.

### Claim 12 (depends on 1)

The method of claim 1 wherein the resuming performing the test includes retrieving a saved test data indicator, wherein the retrieving the test data from the memory and the using the retrieved test data for the resuming performing is performed in response to the saved test data indicator indicating the presence of saved test data in the memory.

### Claim 13 (depends on 1)

The method of claim 1 wherein the test data includes a test clock count that indicates a number clock cycles of the test performed, wherein the resuming the performing the test includes restoring the test clock count to a test clock count register for the resuming performing.

### Claim 14 (depends on 1)

The method of claim 1 further comprising:
executing a user application by the processor;
receiving a first stop and test indicator during the executing, wherein the performing the test is initiated in response to the first stop and test indicator;
after the processor responds to the interrupt and before the resuming performing the test, resuming the executing of the user application; and
receiving a second stop and test indicator during the executing of the user application after the resuming the executing of the user application, wherein the resuming the performing the test is initiated in response to the second stop and test indicator.

### Claim 15

A data processing system comprising:
a processor including at least one logic block;
test circuitry, the test circuitry for performing scan testing of the at least one logic block to generate test data; and
a memory, the test circuitry storing test data of a scan test to the memory in response to an interruption of the scan test due to the processor receiving an interrupt, the test circuitry retrieving the test data from the memory and using the test data for a resumption of the scan test of the at least one logic block.

### Claim 16 (depends on 15)

The data processing system of claim 15 wherein the test circuitry further comprises:
a signature analyzer, the signature analyzer generating an error detection code during a scan test, wherein the test circuitry stores the error detection code into the memory in response to an interruption of the scan test due to the processor receiving an interrupt, the test circuitry retrieving the error detection code from the memory and using the error detection code for a resumption of the scan test of the at least one logic block.

### Claim 17 (depends on 16)

The data processing system of claim 16 wherein the test circuitry uses the signature analyzer to generate a first set of error detection codes of the test data being stored in the memory and uses the signature analyzer to generate a second set of error detection codes of the test data retrieved from the memory, the test circuitry compares the first set of error detection codes with the second set of error detection codes to determine if there was an error in the storage of the test data in the memory.

### Claim 18 (depends on 15)

The data processing system of claim 15 wherein the test circuitry further comprises:
a pattern generator, the pattern generator generating test stimuli during a scan test, wherein the test circuitry stores a value from the pattern generator into the memory in response to an interruption of the scan test due to the processor receiving an interrupt, the test circuitry retrieving the value from the memory and loading the value into the pattern generator to use as a seed value for the generation of test stimuli for a resumption of the scan test of the at least one logic block.

### Claim 19 (depends on 15)

The data processing system of claim 15 wherein the processor includes a cache memory, wherein the test circuitry stores test data of a scan test to a portion of the cache memory in response to an interruption of the scan test due to the processor receiving an interrupt, the test circuitry retrieving the test data from the portion of the cache memory and using the test data for a resumption of the scan test of the at least one logic block.

### Claim 20 (depends on 19)

The data processing system of claim 19 wherein the portion of the cache memory is usable as a cache at a time when its not being used to store scan test data.

### Claim 21 (depends on 19)

The data processing system of claim 19 wherein the portion of the cache memory includes at least one of a tag portion, a data cache portion, and status bit portion, wherein the test circuitry stores test data in the at least one of tag portion, cache data portion, and the status bits portion.
