# US 2013/0254592 A1 · Semiconductor integrated circuit device and system using the same

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

- Number: US 2013/0254592 A1
- Document ID: US20130254592A1
- Status: Published application
- Kind: A1
- Application number: 13/796,304
- Filed: 2013-03-12
- Published: 2013-09-26
- Earliest claimed: 2012-03-22
- Assignees: Renesas Electronics Corporation
- Applicants: Renesas Electronics Corporation
- Inventors: Hiromichi YAMADA; Nobuyasu Kanekawa; Tsutomu Yamada; Kesami Hagiwara
- Web page: https://patentgrep.com/patent/US20130254592A1

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 11/1492: using run-time replication performed by the application software, e.g. N-modular type
- G06F 11/1497: Time redundant execution of software on a single processing unit
- G06F 11/1641: {where the comparison is not performed by the redundant processing components}
- G06F 11/1691: {using a quantum}
- G06F 11/2041: {with more than one idle spare processing component}
- G06F 11/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3404: {for parallel or distributed programming}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention provides a semiconductor integrated circuit device realizing improved detection of a failure while suppressing deterioration in performance. In a semiconductor integrated circuit device executing a plurality of threads while switching them synchronously with clocks, registers used for executing the threads are provided for the respective threads. Programs independent of each other and the same program as the threads are executed while being switched. In the case of executing the same program by a plurality of threads, a comparison circuit for comparing results of execution using registers provided in correspondence with the threads is provided.

## Claims

### Claim 1

A semiconductor integrated circuit device which executes a plurality of threads each as a software execution unit while switching the threads synchronously with clocks, comprising:
a first register used for execution of a first thread in the threads;
a second register used for execution of a second thread different from the first thread, in the threads; and
a comparison circuit for comparing a result of execution of the first thread and a result of execution of the second thread when the first and second threads are execution units of the same specific software,
wherein the first and second registers are different registers.

### Claim 2 (depends on 1)

The semiconductor integrated circuit device according to claim 1, further comprising a third register for designating the first and second threads from the threads.

### Claim 3 (depends on 2)

The semiconductor integrated circuit device according to claim 2, further comprising a first limit circuit for limiting execution of the first or second thread so that the difference between the number of instruction execution times in the first thread and the number of instruction execution times in the second thread becomes a predetermined value.

### Claim 4 (depends on 3)

The semiconductor integrated circuit device according to claim 3, further comprising a second limit circuit for limiting execution of the second thread when an exception occurs in execution of the first thread.

### Claim 5 (depends on 3)

The semiconductor integrated circuit device according to claim 3, wherein when an interrupt request is generated in execution of the first thread, in the case where the number of instruction execution times in the first thread and that in the second thread have a predetermined relation, the interrupt request is received.

### Claim 6 (depends on 1)

The semiconductor integrated circuit device according to claim 1, wherein the first and second threads are executed by a same CPU core.

### Claim 7 (depends on 1)

The semiconductor integrated circuit device according to claim 1, wherein the first thread is executed by a first CPU core, and the second thread is executed by a second CPU core different from the first CPU core.

### Claim 8

A semiconductor integrated circuit device which operates a plurality of threads each as a software execution unit, two threads out of the threads being specific software for accessing a memory, comprising:
a first buffer for storing an address on a memory access;
a second buffer for storing read data obtained by a memory access; and
a first comparison circuit for comparing the address on the memory access with an address stored in the first buffer,
wherein in the case where a read access to the memory is performed in a first thread out of the two threads, the address on the read access is stored in the first buffer,
wherein, in the case where a read access to the memory is performed in a second thread out of the two threads, the address and the address stored in the first buffer are compared by the first comparison circuit and,
wherein, in response to a mismatch from the first comparison circuit, a process corresponding to a failure is performed.

### Claim 9 (depends on 8)

The semiconductor integrated circuit device according to claim 8, wherein read data stored in the second buffer is set as read data according to a read access in the second thread in response to a match from the first comparison circuit.

### Claim 10 (depends on 9)

The semiconductor integrated circuit device according to claim 9, further comprising:
a third buffer for storing data to be written in a memory; and
a second comparison circuit for comparing data to be written in a memory with data stored in the third buffer,
wherein in the case where a write access to the memory is performed in the first thread, an address on the write access is stored in the first buffer and data to be written is stored in the third buffer,
wherein, in the case where a write access to the memory is performed in the second thread, the address and the address stored in the first buffer are compared by the first comparison circuit, data to be written and data stored in the third buffer are compared by the second comparison circuit and,
wherein, in response to a mismatch from at least one of the first and second comparison circuits, a process corresponding to a failure is performed.

### Claim 11 (depends on 10)

The semiconductor integrated circuit device according to claim 10, wherein in response to a match from the first and second comparison circuits, data stored in the third buffer is written in an address in the memory according to the address stored in the first buffer.

### Claim 12 (depends on 8)

The semiconductor integrated circuit device according to claim 8, wherein the first and second threads are executed by a single CPU core.

### Claim 13

A semiconductor integrated circuit device which operates while switching a plurality of threads each as a software execution unit,
two threads out of the threads being same software for accessing a memory, comprising:
a first buffer for storing an address on a memory access;
a third buffer for storing data to be written in a memory;
a first comparison circuit for comparing the address on the memory access with an address stored in the first buffer; and
a second comparison circuit for comparing data to be written in a memory and data stored in the third buffer,
wherein in the case where a write access to the memory is performed in a first thread out of the two threads, the address on the write access is stored in the first buffer and data to be written is stored in the third buffer,
wherein, in the case where a write access to the memory is performed in a second thread out of the two threads, the address and the address stored in the first buffer are compared by the first comparison circuit, the data to be written and write data stored in the third buffer are compared by the second comparison circuit and,
wherein, in response to a mismatch from at least one of the first and second comparison circuits, a process corresponding to a failure is performed.

### Claim 14 (depends on 13)

The semiconductor integrated circuit device according to claim 13, wherein in response to a match from the first and second comparison circuits, the data to be written which is stored in the third buffer is written in the address in the memory according to the write address stored in the first buffer.

### Claim 15 (depends on 13)

The semiconductor integrated circuit device according to claim 13, wherein the first and second threads are executed by the same CPU core.

### Claim 16 (depends on 1)

A system comprising the semiconductor integrated circuit device according to claim 1.
