# US 2020/0394339 A1 · Resource protection

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

- Number: US 2020/0394339 A1
- Document ID: US20200394339A1
- Status: Published application
- Kind: A1
- Application number: 16/441,227
- Filed: 2019-06-14
- Published: 2020-12-17
- Earliest claimed: 2019-06-14
- Assignees: Infineon Technologies AG
- Applicants: Infineon Technologies AG
- Inventors: Albrecht Mayer; Glenn Ashley Farrall; Frank Hellwig
- Web page: https://patentgrep.com/patent/US20200394339A1

## CPC

- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 2221/2149: Restricted operating environment
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A System on Chip (SoC), including a plurality of processor cores including a secure master, which is configured to run security software, and a non-secure master, which is configured to run non-security software; a resource configured to be shared by the secure master and the non-secure master; and a state machine configured to protect the resource by allowing only the secure master to transition the resource to a particular state of the state machine, and allowing only the non-secure master to transition the resource to another particular state of the state machine.

## Claims

### Claim 1

A System on Chip (SoC), comprising:
a plurality of processor cores including a secure master, which is configured to run security software, and a non-secure master, which is configured to run non-security software;
a resource configured to be shared by the secure master and the non-secure master; and
a state machine configured to protect the resource by allowing only the secure master to transition the resource to a particular state of the state machine, and allowing only the non-secure master to transition the resource to another particular state of the state machine.

### Claim 2 (depends on 1)

The SoC of claim 1, wherein the non-secure master is a safe master configured to execute safety software.

### Claim 3 (depends on 1)

The SoC of claim 1, wherein the secure master is configured to identify itself as the secure master to the resource as a part of a bus transaction.

### Claim 4 (depends on 1)

The SoC of claim 1, wherein the secure master or the non-secure master is identifiable by a master identification, which is part of the bus transaction and comparable to a configurable or hard-coded reference master identification stored at the resource.

### Claim 5 (depends on 4)

The SoC of claim 4, wherein the configurable reference master identification is write protected.

### Claim 6 (depends on 5)

The SoC of claim 5, wherein only the secure master or the non-secure master identifiable by the master identification matching the reference master identification is permitted to change the reference master identification to identify another one of the plurality of processor cores as the secure master or the non-secure master, respectively.

### Claim 7 (depends on 3)

The SoC of claim 3, wherein the secure master is configured to transmit its identification as the secure master to the resource protection register via a sideband signal as part of the bus transaction.

### Claim 8 (depends on 1)

The SoC of claim 1, wherein the resource is a register.

### Claim 9 (depends on 1)

The SoC of claim 1, further comprising:
a plurality of resources; and
a plurality of state machines, each of which corresponds with a respective one of the plurality of resources.

### Claim 10 (depends on 1)

The SoC of claim 1, wherein the state machine is configured to allow only the non-secure master to transition the resource from a run state to a configuration state, during which only the non-secure master is allowed to reconfigure the resource.

### Claim 11 (depends on 10)

The SoC of claim 10, wherein the reconfiguration comprises writing new configuration data to shadow registers, to prevent an impermissible configuration from becoming active before being checked by the secure master.

### Claim 12 (depends on 1)

The SoC of claim 1, wherein the state machine is configured to allow only the secure master to transition the resource from a configuration state to a check state, during which a configuration of the resource or of shadow registers of the resource cannot be changed and is checked.

### Claim 13 (depends on 12)

The SoC of claim 12, wherein the state machine is configured to allow only the secure master to transition the resource from the check state to a run state, during which the resource operates normally in a secure manner with the checked configuration.

### Claim 14 (depends on 1)

The SoC of claim 1, wherein the resource is a bus Memory Protection Unit (MPU) which is configured to control access to a memory.

### Claim 15

A System on Chip (SoC), comprising:
a plurality of processor cores including a master comprising a plurality of virtual machines including a secure virtual machine, which is configured to run security software, and a non-secure virtual machine, which is configured to run non-security software;
a resource configured to be shared by the secure virtual machine and the non-secure virtual machine; and
a state machine configured to protect the resource by allowing only the secure virtual machine to transition the resource to a particular state of the state machine, and allowing only the non-secure virtual machine to transition the resource to another particular state of the state machine.

### Claim 16 (depends on 15)

The SoC of claim 15, wherein the secure virtual machine is identifiable by a secure virtual machine identification, which is part of a bus transaction and comparable to a configurable or hard-coded reference identification stored at the resource.

### Claim 17 (depends on 15)

The SoC of claim 15, wherein the secure virtual machine is configured to identify itself as the secure virtual machine to the resource as a part of a bus transaction.

### Claim 18

A System on Chip (SoC), comprising:
a plurality of processor cores including a secure master configured to run security software; and
a state machine configured to protect a resource by allowing only the secure master to transition the resource to a particular state of the state machine.

### Claim 19 (depends on 18)

The SoC of claim 18, wherein the secure master is a Hardware Security Module (HSM).
