# US 2015/0144948 A1 · Semiconductor device

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

- Number: US 2015/0144948 A1
- Document ID: US20150144948A1
- Status: Published application
- Kind: A1
- Application number: 14/542,859
- Filed: 2014-11-17
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: Semiconductor Energy Laboratory Co., Ltd.
- Applicants: Semiconductor Energy Laboratory Co., Ltd.
- Inventors: Yoshiyuki Kurokawa
- Web page: https://patentgrep.com/patent/US20150144948A1

## CPC

- G01R 31/31724: {Test controller, e.g. BIST state machine (for scan test G01R31/318555)}
- G01R 31/31707: {Test strategies (methods for generation of test sequences G01R31/318371)}
- G01R 31/31723: {Hardware for routing the test signal within the device under test to the circuits to be tested, e.g. multiplexer for multiple core testing, accessing internal nodes (routing the test signal to or from the device under test G01R31/31926)}
- G01R 31/3187: Built-in tests
- H10D 30/6755: {Oxide semiconductors, e.g. zinc oxide, copper aluminium oxide or cadmium stannate}
- H10D 62/80: characterised by the materials
- G01R 31/318508: {Board Level Test, e.g. P1500 Standard (features related to boundary scan G01R31/318533)}
- G06F 11/1407: {Checkpointing the instruction stream}
- G06F 11/3636: {by tracing the execution of the program}
- H10D 30/6713: {characterised by the properties of the source or drain regions, e.g. compositions or sectional shapes}
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)
- H10D: INORGANIC ELECTRIC SEMICONDUCTOR DEVICES
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A semiconductor device in which the area of a circuit that is unnecessary during normal operation is small. The semiconductor device includes a first circuit and a second circuit. The first circuit includes a third circuit storing at least one pair of first data including a history of a branch instruction and a first address corresponding to the branch instruction; a fourth circuit comparing a second address of an instruction and the first address; and a fifth circuit selecting the first data of one pair among the at least one pair in accordance with a comparison result. The second circuit includes a plurality of sixth circuits having a function of generating a signal for testing operation of the first circuit in accordance with second data, and a function of storing the at least one pair together with the second circuit after the operation is tested.

## Claims

### Claim 1

A semiconductor device comprising:
a first circuit; and
a second circuit,
wherein the first circuit comprises a first memory storing first data corresponding to a history of a first branch instruction of the first circuit, and
wherein the second circuit comprises a second memory storing second data to generate a signal for an operation test of the first circuit and third data corresponding to a history of a second branch instruction of the first circuit after the operation test.

### Claim 2 (depends on 1)

The semiconductor device according to claim 1,
wherein the second memory comprises a first transistor and a second transistor, and
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor.

### Claim 3 (depends on 1)

The semiconductor device according to claim 1,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor, and
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor.

### Claim 4 (depends on 1)

The semiconductor device according to claim 1,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor, and
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor.

### Claim 5 (depends on 1)

The semiconductor device according to claim 1,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor, and
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor.

### Claim 6 (depends on 1)

The semiconductor device according to claim 1,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor, and
wherein the oxide semiconductor comprises at least one of In, Ga, and Zn.

### Claim 7 (depends on 1)

The semiconductor device according to claim 1,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor,
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor, and
wherein the oxide semiconductor comprises at least one of In, Ga, and Zn.

### Claim 8

A semiconductor device comprising:
a first circuit; and
a second circuit,
wherein the first circuit comprises a first memory storing first data corresponding to a history of a first branch instruction of the first circuit and a first address of the first branch instruction and a comparator circuit comparing an address of an instruction and the first address, and
wherein the second circuit comprises a second memory storing second data to generate a signal for an operation test of the first circuit, and third data corresponding to a history of a second branch instruction of the first circuit and a second address of the second branch instruction after the operation test in accordance with the signal.

### Claim 9 (depends on 8)

The semiconductor device according to claim 8,
wherein the second memory comprises a first transistor and a second transistor, and
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor.

### Claim 10 (depends on 8)

The semiconductor device according to claim 8,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor, and
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor.

### Claim 11 (depends on 8)

The semiconductor device according to claim 8,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor, and
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor.

### Claim 12 (depends on 8)

The semiconductor device according to claim 8,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor, and
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor.

### Claim 13 (depends on 8)

The semiconductor device according to claim 8,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor, and
wherein the oxide semiconductor comprises at least one of In, Ga, and Zn.

### Claim 14 (depends on 8)

The semiconductor device according to claim 8,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor,
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor, and
wherein the oxide semiconductor comprises at least one of In, Ga, and Zn.

### Claim 15

A semiconductor device comprising:
a first circuit; and
a second circuit,
wherein the first circuit comprises a first memory storing first data corresponding to a history of a first branch instruction of the first circuit and a first address of the first branch instruction, a comparator circuit comparing an address of an instruction and the first address, and a selector circuit selecting the first address in accordance with a comparison result of the comparator circuit, and
wherein the second circuit comprises a second memory storing second data to generate a signal for an operation test of the first circuit, and third data corresponding to a history of a second branch instruction of the first circuit and a second address of the second branch instruction after the operation test in accordance with the signal.

### Claim 16 (depends on 15)

The semiconductor device according to claim 15,
wherein the second memory comprises a first transistor and a second transistor, and
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor.

### Claim 17 (depends on 15)

The semiconductor device according to claim 15,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor, and
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor.

### Claim 18 (depends on 15)

The semiconductor device according to claim 15,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor, and
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor.

### Claim 19 (depends on 15)

The semiconductor device according to claim 15,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor, and
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor.

### Claim 20 (depends on 15)

The semiconductor device according to claim 15,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor, and
wherein the oxide semiconductor comprises at least one of In, Ga, and Zn.

### Claim 21 (depends on 15)

The semiconductor device according to claim 15,
wherein the second memory comprises a first transistor and a second transistor,
wherein a first terminal of the first transistor is electrically connected to a gate of the second transistor,
wherein an on/off state of the second transistor is selected according to the second data input through the first transistor,
wherein the first transistor comprises a channel formation region comprising an oxide semiconductor, and
wherein the oxide semiconductor comprises at least one of In, Ga, and Zn.
