# US 2020/0394147 A1 · Semiconductor device and method of operating the same

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

- Number: US 2020/0394147 A1
- Document ID: US20200394147A1
- Status: Published application
- Kind: A1
- Application number: 16/853,139
- Filed: 2020-04-20
- Published: 2020-12-17
- Earliest claimed: 2019-06-17
- Assignees: Renesas Electronics Corporation
- Applicants: Renesas Electronics Corporation
- Inventors: Yoshitaka TAKI; Tadaaki TANIMOTO
- Web page: https://patentgrep.com/patent/US20200394147A1

## CPC

- G06F 13/4022: {using switching circuits, e.g. switching matrix, connection or expansion network (G06F13/4009 takes precedence)}
- G06F 21/72: in cryptographic circuits
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

In a semiconductor device including a lockstep function, conflicts of bus accesses by a plurality of processors are suppressed. The semiconductor device includes a first processor, a second processor for monitoring operation of the first processor in a first mode, first and second buses, first and second non-shared resources dedicated to either the first or second processor in a second mode, and a first selector for selecting a bus for transferring interface signals between the second processor and the selected bus. In a second mode in which the first and second processors execute different instructions, the first selector selects the second bus. In the second mode, the first non-shared resource is accessed by the first processor via the first bus and the second non-shared resource is accessed by the second processor via the second bus.

## Claims

### Claim 1

A semiconductor device comprising:
a first processor;
a second processor that monitors operation of the first processor in a first mode;
first and second non-shared resources dedicated to either the first processor or the second processor,
a first bus with which the first processor, the second processor, the first non-shared resource and the second non-shared resource are coupled;
a second bus with which the second processor, the first non-shared resource and the second non-shared resource are coupled;
a first selector;
a second selector; and
a third selector,
wherein the first selector selects either the first bus or the second bus, and a group of interface signal is transferred between the second processor and a bus selected by the first selector,
wherein the second selector selects either the first bus or the second bus, and the first non-shared resource is accessed from the first processor and the second processor via a bus selected by the second selector,
wherein the third selector selects either the first bus or the second bus, and the second non-shared resource is accessed from the first processor or the second processor via a bus selected by the third selector,
wherein the first selector selects the first bus, and transfer a first group of interface signal included in the group of interface signal to the second processor in the first mode where the first processor and the second processor perform a same instruction stream,
wherein the first selector selects the second bus, and the second selector selects the first bus, and the third selector selects the second bus, and transfer a second group of interface signal included in the group of interface signal to the second processor in the second mode where the first processor and the second processor perform a different instruction stream.

### Claim 2 (depends on 1)

The semiconductor device according to claim 1, wherein in the second mode, the first processor accesses the first non-shared resource via the first bus, and the second processor accesses the second non-shared resource via the second bus.

### Claim 3 (depends on 1)

The Semiconductor device according to claim 1, further comprising:
a comparator,
wherein the second processor outputs a third group of interface signal included in the group of interface signals to the first selector,
wherein the first processor outputs a fourth group of interface signal not included in the group of interface signal to the first bus, and
wherein the comparator activates an error signal when the third group of interface signal and the fourth group of interface signal differ from each other.

### Claim 4 (depends on 3)

The semiconductor device according to claim 3, wherein the first selector prevents the third group of interface signal from being transmitted to the first bus in the first mode, and transfers the third group of interface signal to the second bus in the second mode.

### Claim 5 (depends on 1)

The semiconductor device according to claim 1, wherein, in the second mode, the second selector detects access from the second processor to the first non-shared resource as illegal access, and the third selector detects access from the first processor to the second non-shared resource as illegal access.

### Claim 6 (depends on 1)

The semiconductor device according to claim 1, wherein, in the second mode, a selection of the first bus or the second bus by each of the second selector and the third selector, is variable.

### Claim 7 (depends on 1)

The semiconductor device according to claim 1, further comprising a shared resource commonly utilized by the first and second processors,
wherein, in the second mode, the first processor accesses the shared resource via the first bus, and the second processor accesses the shared resource via the second bus.

### Claim 8 (depends on 1)

The semiconductor device according to claim 1, further comprising:
a shared resource commonly utilized by the first processor and the second processor;
a fourth selector; and
a fifth selector,
wherein the shared resource comprises:
a read interface; and
a write interface,
wherein the fourth selector selects either the first bus or the second bus, and the shared resource is accessed from the first processor or the second processor via a bus selected by the fourth selector,
wherein the fifth selector selects either the first bus or the second bus, and the shared resource is accessed from the first processor or the second processor via a bus selected by the fifth selector.

### Claim 9 (depends on 8)

The semiconductor device according to claim 8, wherein, in the second mode, the fourth selector and the fifth selector select a different bus from the first bus and the second bus.

### Claim 10 (depends on 9)

The semiconductor device according to claim 9,
wherein, in the second mode, the second processor includes a write access to the shared resource via the second bus when the first processor includes a read access to the shared resource via the first bus, and
wherein, in the second mode, the second processor includes a read access to the shared resource via the second bus when the first processor has a write access to the shared resource via the first bus.

### Claim 11 (depends on 1)

The semiconductor device according to claim 1, further comprising:
a first bus master; and
a second bus master,
wherein the first bus master is coupled to the first bus, and the second bus master is coupled to the second bus.

### Claim 12 (depends on 1)

The semiconductor device according to claim 1, wherein the second non-shared resource comprises a cryptographic coprocessor that perform cryptographic processing.

### Claim 13

A method of operating a semiconductor device including first and second processors, first and second non-shared resources, first and second buses, and first to third selectors, in which the first processor is coupled with the first bus, the method comprising:
setting either a first or a second mode of operation;
executing a same instruction stream in the first mode of operation by the first and second processors; and
executing a different instruction stream in the second mode of operation by the first and second processors,
wherein the executing a same instruction stream comprises:
selecting the first bus by the first selector and coupling the second processor with the first bus;
selecting the first bus by the second selector and coupling the first non-shared resource with the first bus;
selecting the first bus by the third selector and coupling the first bus with the second non-shared resource;
accessing the first non-shared resource and the second non-shared resource by the first processor via the first bus and the second selector;
transferring a group of interface signal through the first bus to the second processor via the second selector; and
comparing outputs of the first and second processors, and
wherein the executing a different instruction stream comprises:
selecting the second bus by the first selector and coupling the second processor with the second bus;
selecting the first bus by the second selector and coupling the first non-shared resource with the first bus;
selecting the second bus by the third selector, and coupling the second bus with the second non-shared resource;
accessing the first non-shared resource by the first processor via the first bus and the second selector; and
accessing the second non-shared resource by the second processor via the second bus and the third selector.

### Claim 14 (depends on 13)

The method of operating the semiconductor device according to claim 13, wherein the executing a different instruction stream further comprises determining an access to the second non-shared resource by the first processor and an access to the first non-shared resource by the second processor as an illegal access.

### Claim 15 (depends on 13)

The method of operating the semiconductor device according to claim 13, the semiconductor device further comprises a shared resource,
wherein the executing a different instruction stream further comprises:
accessing the shared resource by the first processor via the first bus; and
accessing the shared resource by the second processor via the first selector and the second bus.

### Claim 16 (depends on 13)

The method of operating the semiconductor device according to claim 13, the semiconductor device further comprises a first and second bus masters,
wherein the executing a different instruction stream further comprises:
coupling the first bus master to the first bus; and
coupling the second bus master to the second bus.

### Claim 17 (depends on 13)

The method of operating the semiconductor device according to claim 13, wherein the executing a different instruction stream further comprises executing cryptographic processing with the second non-shared resource.

### Claim 18

A semiconductor device comprising:
a first processor;
a second processor that monitors operation of the first processor in a first mode;
a shared resource commonly utilized by the first and second processor;
a non-shared resource dedicated to the second processor in a second mode,
a first bus with which the first processor, the second processor, the shared resource, the non-shared resource are coupled;
a second bus with which the second processor, the shared resource, the non-shared resource are coupled;
a first selector; and
a second selector,
wherein the first selector selects either the first bus or the second bus, and a group of interface signal is transferred between the second processor and a bus selected by the first selector,
wherein the second selector selects either the first bus or the second bus, and the non-shared resource is accessed from the first processor and the second processor via a bus selected by the second selector,
wherein the first selector selects the first bus, and transfer a first group of interface signal included in the group of interface signal to the second processor in the first mode where the first processor and the second processor perform a same instruction stream,
wherein the first selector selects the second bus, and the second selector selects the second bus, and transfer a second group of interface signal included in the group of interface signal to the second processor in the second mode where the first processor and the second processor perform a different instruction stream.
