# US 2022/0292237 A1 · Function safety and fault management modeling at electrical system level (esl)

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

- Number: US 2022/0292237 A1
- Document ID: US20220292237A1
- Status: Published application
- Kind: A1
- Application number: 17/804,411
- Filed: 2022-05-27
- Published: 2022-09-15
- Earliest claimed: 2017-07-26
- Assignees: Taiwan Semiconductor Manufacturing Company, Ltd.
- Applicants: Taiwan Semiconductor Manufacturing Co., Ltd.
- Inventors: Kai-Yuan TING; Hsin-Cheng Chen; Sandeep Kumar Goel; Mei Hsu Wong; Yun-Han Lee
- Web page: https://patentgrep.com/patent/US20220292237A1

## CPC

- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F 30/367: Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
- G06F 2119/06: Power analysis or power optimisation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Electronic system level (ESL) design and verification of the present disclosure is utilized to provide an electronic simulation and modeling of function safety and fault management of an electronic device. A method for simulating a safety circuit includes providing an electronic architectural design to perform one or more functional behaviors of the electronic device in accordance with an electronic design specification. The method further includes modeling the safety circuit of the electronic architectural design and one or more other electronic circuits of the electronic architectural design that communicate with the safety circuit. The method further includes simulating, using the modeling, operation of the safety circuit while the electronic architectural design is performing the one or more functional behaviors. The method also includes determining whether the simulated operation of the safety circuit satisfies the electronic design specification.

## Claims

### Claim 1

A method for simulating fault management in an electronic system, wherein the electronic system comprises a master device, a slave device, a fault monitor model, and a fault injection model, the method comprising:
injecting, by a function safety model of the slave device, a fault into a function run by a logical module of the slave device;
characterizing, by a specific fault module of the slave device, the fault;
generating, by the fault monitor model and based on the characterization of the fault, a report of the fault comprising a category of the fault;
generating, by a fault interrupt generation module of the fault injection model and based on the report, an interrupt; and
sending the interrupt to the master device for the master device to handle the fault.

### Claim 2 (depends on 1)

The method of claim 1, wherein the master device comprises a central processing unit (CPU), and wherein the slave device comprises an input/output (I/O) device, a speed sensor, a rotational speed sensor, a traction control sensor, an anti-lock braking sensor, or a steering lock sensor.

### Claim 3 (depends on 1)

The method of claim 1, further comprising performing the function by a state machine of the logical module of the slave device, wherein the state machine is defined by an initial state, an end state, and a condition for a transition from the initial state to the end state, and wherein the state machine comprises a logical AND gate, a logical OR gate, a logical XOR gate, a logical XNOR gate, a logical NOT gate, and combinations thereof.

### Claim 4 (depends on 1)

The method of claim 1, further comprising performing the function by the logical module of the slave device in an interconnected series of functions, wherein the interconnected series of functions are modeled by a high-level software language.

### Claim 5 (depends on 1)

The method of claim 1, wherein characterizing the fault comprises characterizing the fault as a stuck-at-1 fault, a stuck-at-0 fault, a soft error fault, a transient fault, a lock-step fault, or an error correcting code fault.

### Claim 6 (depends on 1)

The method of claim 1, wherein generating the report further comprises generating the report of the fault comprising a time of the fault and the slave device injecting the fault.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the report further comprises using a machine learning algorithm to analyze the fault and predict a next occurrence of the fault.

### Claim 8 (depends on 1)

The method of claim 1, further comprising storing the fault in a register bank of the fault injection model on a first come first served basis or based on the category of the fault.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
increasing a value of a fault counter of the fault injection model; and
comparing the value of the fault counter with a threshold value, wherein generating the interrupt is in response to the value of the fault counter being greater than the threshold value.

### Claim 10 (depends on 1)

The method of claim 1, further comprising acknowledging, by the master device, that the fault is being handled or the interrupt is cleared after the fault is handled.

### Claim 11

An electronic system, comprising:
a master device configured to receive an interrupt and handle a fault in response to receiving the interrupt;
a slave device, comprising:
a function safety model configured to inject the fault into a function run by a logical module of the slave device; and
a specific fault module configured to characterize the fault;
a fault monitor module configured to generate, based on the characterization of the fault, a report of the fault comprising a category of the fault; and
a fault injection model configured to:
generate, by a fault interrupt generation module of the fault injection model and based on the report, the interrupt; and
send the interrupt to the master device.

### Claim 12 (depends on 11)

The electronic system of claim 11, wherein the logical module of the slave device is configured to run the function by a state machine defined by an initial state, an end state, and a condition for a transition from the initial state to the end state, and wherein the state machine comprises a logical AND gate, a logical OR gate, a logical XOR gate, a logical XNOR gate, a logical NOT gate, and combinations thereof.

### Claim 13 (depends on 11)

The electronic system of claim 11, wherein the logical module of the slave device is configured to run the function in an interconnected series of functions, and wherein the interconnected series of functions are modeled by a high-level software language.

### Claim 14 (depends on 11)

The electronic system of claim 11, wherein the specific fault module of the slave device is configured to characterize the fault as a stuck-at-1 fault, a stuck-at-0 fault, a soft error fault, a transient fault, a lock-step fault, or an error correcting code fault.

### Claim 15 (depends on 11)

The electronic system of claim 11, wherein the report of the fault further comprises a time of the fault and the slave device injecting the fault.

### Claim 16 (depends on 11)

The electronic system of claim 11, wherein the fault injection model is further configured to:
increase a value of a fault counter of the fault injection model; and
compare the value of the fault counter with a threshold value, wherein the fault injection model is configured to generate the interrupt in response to the value of the fault counter being greater than the threshold value.

### Claim 17

An electronic system, comprising:
a master device configured to receive an interrupt and handle a fault in response to receiving the interrupt;
a slave device comprising a logical module configured to run a function;
a global function safety model configured to inject the fault into the function;
a global fault monitor model configured to:
characterize the fault; and
generate, based on the characterization of the fault, a report of the fault comprising a category of the fault; and
a global fault injection model configured to:
generate, by a fault interrupt generation module of the global fault injection model and based on the report, the interrupt; and
send the interrupt to the master device.

### Claim 18 (depends on 17)

The electronic system of claim 17, wherein the global function safety model is further configured to inject additional faults into functions run by logical modules of additional slave devices.

### Claim 19 (depends on 18)

The electronic system of claim 18, wherein the global fault monitor model is further configured to:
characterize the additional faults; and
generate, based on the characterization of the additional faults, the report of the fault and the additional faults.

### Claim 20 (depends on 18)

The electronic system of claim 18, wherein the global fault injection model is further configured to:
generate additional interrupts corresponding to the additional faults; and
send the additional interrupts to the master device.
