Microcontroller fault injection method and system
AssigneeHitachi, Ltd.
InventorsYasuhiro Ito, Yasuo SUGURE
Life of this patent
Estimating the term…
Abstract
Temporary fault injection to existing hardware is performed using only software without changing an implementation of the hardware. A fault injection interrupt process starts on an operation of a CPU using an interrupt that is not used by software, and an internal state of hardware is updated to the same value as a result obtained when a fault has occurred during the interrupt process. A clock of the CPU during the interrupt process is accelerated so that a period of time of the interrupt process is smaller than a period of time until a fault becomes effective.
Claims9
A microcontroller fault injection method of verifying an embedded system while performing a simulation using a computer, comprising:
- a first step of designating a register to which information related to a fault of a microcontroller of the embedded system is injected and an injection timing of the fault;
- a second step of applying an interrupt at the timing;
- a third step of rewriting a value of the designated register among register values output through the interrupt with a fault value;
- and
- a fourth step of writing back the register value rewritten with the fault value at the injection timing of the fault.
A microcontroller fault injection system that verifies an embedded system configured with a mechanism, hardware, and software, comprising:
- a first unit that designates a register to which information related to a fault of a microcontroller of the embedded system is injected and an injection timing of the fault;
- a second unit that applies an interrupt at the timing;
- a third unit that rewrites a value of the designated register among register values output through the interrupt with a fault value;
- and
- a fourth unit that writes back the register value rewritten with the fault value at the injection timing of the fault.
Dependencies are inferred from the claim text.