CN115344493A - System safety and reliability self-testing system and method - Google Patents
System safety and reliability self-testing system and method Download PDFInfo
- Publication number
- CN115344493A CN115344493A CN202211001937.1A CN202211001937A CN115344493A CN 115344493 A CN115344493 A CN 115344493A CN 202211001937 A CN202211001937 A CN 202211001937A CN 115344493 A CN115344493 A CN 115344493A
- Authority
- CN
- China
- Prior art keywords
- self
- test
- control unit
- testing
- logic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
- G06F21/123—Restricting unauthorised execution of programs by using dedicated hardware, e.g. dongles, smart cards, cryptographic processors, global positioning systems [GPS] devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention relates to a system safety and reliability self-testing system and a method. The system comprises a configuration bus module, a nonvolatile memory and a self-test control unit, wherein the self-test control unit comprises a register, a collector, a logic block and a storage block; the register controls the start of self-testing, monitors the running states of the logic block and the storage block and checks the self-testing result; testing the logic block management logic unit; testing the memory block management embedded MEM; the collector collects and updates the execution state of the self-test logic and the self-test result, and carries out different division and processing on the collected result according to the configuration type. Before the main user application program is started, the self-test control unit controls the equipment self-test sequence, so that the normal operation of the system is ensured, and the aim of improving the safety and the reliability of the whole system is fulfilled.
Description
Technical Field
The invention belongs to the technical field of integrated circuit design, and particularly relates to a system safety and reliability self-testing system and method.
Background
With the wide application of integrated circuit technology, the safety and reliability of integrated circuits need to be improved. To achieve this, the logic and critical memory circuits of the integrated circuit need to be tested to meet the required level of safety integrity for the system. The self-testing control unit is a component in the whole safe complete subsystem, runs a self-testing sequence before the main user application program starts to run, and processes collected fault errors according to classification.
Disclosure of Invention
In order to solve the technical problems in the background art, the invention provides a system safety and reliability self-testing system and a method.
The technical solution of the invention is as follows: the invention relates to a system safety and reliability self-testing system, which is characterized in that: the system comprises a configuration bus module, a nonvolatile memory and a self-test control unit, wherein the self-test control unit comprises a register, a collector, a logic block and a storage block; the register controls the self-testing starting, monitors the running states of the logic block and the storage block and checks the self-testing result; testing the logic block management logic unit; testing the memory block management embedded MEM; and the collector collects and updates the execution state of the self-test logic and the self-test result, and carries out different division and processing on the collected result according to the configuration type.
Further, the system also comprises a fault collection control unit, and the collector is connected with the fault collection control unit.
Further, the system also comprises a mode control unit, and the collector is connected with the mode control unit.
Furthermore, the system also comprises a logic unit, and the logic block is connected with the logic unit.
Further, the system also comprises embedded MEMs, and the memory block is connected with the embedded MEMs.
Further, the self-test control unit further comprises a watchdog timer, the watchdog timer is connected with the register, and the watchdog timer provides a prevention mechanism for the following operations: deadlock or runaway occurs in the self-test process; the self-test control unit starts self-test but the self-test logic engine does not run, and the self-test logic is guaranteed to run correctly by exiting in time.
Furthermore, a configuration interface is connected outside the register, the configuration bus module is connected with the configuration bus module through the configuration interface, the configuration interface is used for resetting the operation state of the withdrawn self-test module and classifying the loading, the fault and the error types of the configuration values, and the constant value of the self-test can be loaded through the configuration interface under the condition that no processor participates.
Furthermore, the system also comprises a processor, the register is externally connected with an APB interface, the processor is connected with the register through the APB interface, and the APB interface is used for acquiring the running state and the self-checking result.
The system for realizing the safety and reliability self-test of the system is characterized in that: the method comprises the following steps:
1) And (3) self-checking:
1.1 After the self-test control unit is reset, the configuration bus module detects that the self-test of the equipment is not operated, and reads self-test parameters from the nonvolatile memory;
1.2 A configuration bus module loads self-test parameters into a self-test control unit and transmits control to the self-test control unit, and a register manages a storage block and a logic block and updates the internal state of the storage block and the logic block;
1.3 If a fault is detected, the collector collects fault information from the storage block and the logic block and reports the fault information to the fault collection control unit, and simultaneously informs the mode configuration module that the detection is completed, and the boot sequence enters a function reset phase; if a reset hold failure occurs, the mode control unit keeps the device reset until an application self-test control unit reset event;
2) Function reset phase:
2.1 Mode configuration module triggers a function reset;
2.2 The configuration bus module detects that a device self-test has run and passes control to the processor;
2.3 Integrity software checks the results of the self-test;
2.4 Integrity software self-check is completed and the device may be considered to pass the check and pass control information to the application software.
According to the system safety and reliability self-testing system and method provided by the invention, the key part of the chip is self-tested, the self-testing result is collected, and the self-testing result is divided according to the error and fault types, so that different operations and processing are realized, the normal operation of the system is ensured, and the purpose of improving the safety and reliability of the whole system is achieved. The system of the present invention covers all components of the safety integrity subsystem, with the self-test control unit controlling the device self-test sequence before the main user application is started. The invention also provides integrity software operations: after the self-test, the integrity software operates based on the running status of the self-test control unit. Even if no error is reported, the integrity software needs to confirm that the actual and expected values with the check and the associated registers are error free. Software validation prevents the passing of tests that result from incorrect errors within the self-test control unit.
Drawings
FIG. 1 is a system block diagram of the present invention;
FIG. 2 is a diagram of the self-test phase application of the present invention;
fig. 3 is a functional reset phase application diagram of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, the structure of the specific embodiment of the system safety and reliability self-testing system of the present invention includes a configuration bus module, a nonvolatile memory, a self-testing control unit, a failure collection control unit, a mode control unit, a logic unit, an embedded MEM, and a processor, where the self-testing control unit includes a register, a collector, a logic block, and a memory block, the configuration bus module is respectively connected with the nonvolatile memory and the register, the register is respectively connected with the logic block and the memory block, the logic block is connected with the logic unit, the memory block is connected with the embedded MEM, and the logic block and the memory block are respectively connected with the collector; the collector is connected with the failure collection control unit and the mode control unit respectively. Wherein:
the register controls the self-testing starting, monitors the running states of the logic block and the storage block and checks the self-testing result; testing a logic block management logic unit; testing the memory block management embedded MEM; the collector collects and updates the execution state of the self-test logic and the self-test result, and carries out different division and processing on the collected result according to the configuration type.
The self-test control unit further comprises a watchdog timer, the watchdog timer being connected to the register, the watchdog timer providing a prevention mechanism for: deadlock or runaway occurs in the self-testing process; the self-test control unit starts self-test but the self-test logic engine does not run, and the self-test logic is ensured to run correctly by exiting overtime.
The register is externally connected with a configuration interface, the configuration bus module is connected with the configuration bus module through the configuration interface, the configuration interface is used for resetting the running state of the withdrawn self-test module and classifying the loading, the fault and the error types of the configuration values, and the constant value of the self-test can be loaded through the configuration interface under the condition that no processor participates.
The APB interface is connected outside the register, the processor is connected with the register through the APB interface, and the APB interface is used for obtaining the running state and the self-checking result.
When a reset event of the self-test control unit occurs, the system of the invention passes through a boot sequence of two phases: a self-checking phase and a function resetting phase.
Referring to fig. 2, the first stage: a self-checking stage;
1.1 After the self-test control unit is reset, the configuration bus module detects that the equipment self-test is not operated, and reads self-test parameters from the nonvolatile memory;
1.2 A configuration bus module loads self-test parameters into a self-test control unit and transfers control to the self-test control unit, and a register manages a storage block and a logic block and updates the internal state thereof;
1.3 If a failure is detected, the collector collects failure information from the memory block and the logic block and reports the failure information to the failure collection control unit while notifying the mode configuration module that the detection is complete and the boot sequence enters functional reset; if a reset hold failure occurs, the mode control unit holds the device in reset until a self-test control unit reset event is applied.
Referring to fig. 3, the second stage: a function resetting stage;
2.1 Mode configuration module triggers a function reset;
2.2 The configuration bus module detects that a device self-test has run and passes control to the processor;
2.3 Integrity software checks the results of the self-test;
2.4 Integrity software self-check is completed and the device may be considered to pass the check and pass control information to the application software.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (9)
1. A system for security and reliability self-test of a system, comprising: the system comprises a configuration bus module, a nonvolatile memory and a self-testing control unit, wherein the self-testing control unit comprises a register, a collector, a logic block and a storage block, the configuration bus module is respectively connected with the nonvolatile memory and the register, the register is respectively connected with the logic block and the storage block, and the logic block and the storage block are respectively connected with the collector; the register controls the self-testing starting, monitors the running states of the logic block and the storage block and checks the self-testing result; the logic block manages the testing of the logic unit; the memory block manages testing of the embedded MEMs; the collector collects and updates the execution state of the self-test logic and the self-test result, and carries out different division and processing on the collected result according to the configuration type.
2. The system security and reliability self-test system of claim 1, wherein: the system also comprises a fault collection control unit, and the collector is connected with the fault collection control unit.
3. The system security and reliability self-test system of claim 2, wherein: the system also includes a mode control unit, the collector being connected to the mode control unit.
4. The system security and reliability self-test system of claim 1, wherein: the system also includes a logic unit, the logic block being connected to the logic unit.
5. The system security and reliability self-test system of claim 4, wherein: the system also includes an embedded MEM to which the memory block is coupled.
6. The system security and reliability self-test system of claim 1, wherein: the self-test control unit further comprises a watchdog timer, the watchdog timer being connected to the register, the watchdog timer providing a preventive mechanism for: deadlock or runaway occurs in the self-testing process; the self-test control unit starts self-test but the self-test logic engine does not run, and the self-test logic is ensured to run correctly by exiting overtime.
7. A system safety and reliability self-test system according to any of claims 1 to 6, wherein: the register is externally connected with a configuration interface, the configuration bus module is connected with the configuration bus module through the configuration interface, the configuration interface is used for resetting the operation state of the withdrawn self-test module and classifying the loading, fault and error types of the configuration values, and the constant value of the self-test can be loaded by using the configuration interface under the condition that no processor participates.
8. The system for security and reliability self-testing of a system according to claim 7, wherein: the system further comprises a processor, wherein an APB interface is externally connected with the register, the processor is connected with the register through the APB interface, and the APB interface is used for obtaining the running state and the self-checking result.
9. A system security and reliability self-test system implementing the system of claim 1, characterized by: the method comprises the following steps:
1) And (3) self-checking:
1.1 After the self-test control unit is reset, the configuration bus module detects that the self-test of the equipment is not operated, and reads self-test parameters from the nonvolatile memory;
1.2 A configuration bus module loads self-test parameters into a self-test control unit and transfers control to the self-test control unit, and a register manages a storage block and a logic block and updates the internal state thereof;
1.3 If a failure is detected, the collector collects failure information from the memory block and the logic block and reports the failure information to the failure collection control unit, while notifying the mode configuration module that the detection is complete and the boot sequence enters a function reset phase; if a reset hold failure occurs, the mode control unit keeps the device reset until an application self-test control unit reset event;
2) Function reset phase:
2.1 Mode configuration module triggers a function reset;
2.2 The configuration bus module detects that a device self-test has run and passes control to the processor;
2.3 Integrity software checks the results of the self-test;
2.4 Integrity software self-check is completed and the device may be considered to pass the check and pass control information to the application software.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211001937.1A CN115344493A (en) | 2022-08-20 | 2022-08-20 | System safety and reliability self-testing system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211001937.1A CN115344493A (en) | 2022-08-20 | 2022-08-20 | System safety and reliability self-testing system and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115344493A true CN115344493A (en) | 2022-11-15 |
Family
ID=83952979
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211001937.1A Pending CN115344493A (en) | 2022-08-20 | 2022-08-20 | System safety and reliability self-testing system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115344493A (en) |
-
2022
- 2022-08-20 CN CN202211001937.1A patent/CN115344493A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12373276B2 (en) | Method, system and apparatus for fault positioning in starting process of server | |
| US5948112A (en) | Method and apparatus for recovering from software faults | |
| JP3520662B2 (en) | Monitoring device for electronic control unit | |
| US6457145B1 (en) | Fault detection in digital system | |
| CN115344493A (en) | System safety and reliability self-testing system and method | |
| CN114217925B (en) | Business program operation monitoring method and system for realizing abnormal automatic restarting | |
| CN112231710B (en) | QNX BSP startup verification method and startup verification module | |
| EP0486222B1 (en) | Improvements in and relating to microprocessor based systems | |
| CN115220786A (en) | Microcontroller unit and corresponding operating method | |
| Mariani et al. | A flexible microcontroller architecture for fail-safe and fail-operational systems | |
| CN111865719A (en) | A kind of switch fault injection automatic test method and device | |
| CN115904793A (en) | Memory unloading method, system and chip based on multi-core heterogeneous system | |
| Beckschulze et al. | Fault handling approaches on dual-core microcontrollers in safety-critical automotive applications | |
| US20250238325A1 (en) | Dual Timing Circuit | |
| TWI881780B (en) | Method of a dual bios image processing mechanism | |
| CN120722878B (en) | A functional safety hardware fault management system and method | |
| Sander et al. | Architectural measures against radiation effects in multicore SoC for safety critical applications | |
| CN119557886A (en) | Highly reliable MCU startup method, hardware structure and electronic device | |
| CN116700224B (en) | Method and device for detecting functional safety mechanism failure of vehicle | |
| Newgard et al. | Using multiple processors in a single reconfigurable fabric for high-assurance applications | |
| CN118965341B (en) | Virtualization platform life cycle monitoring method and equipment | |
| JP5629981B2 (en) | Semiconductor integrated circuit and fault diagnosis method for semiconductor integrated circuit | |
| Caldwell et al. | Minimalist recovery techniques for single event effects in spaceborne microcontrollers | |
| CN117195234A (en) | Safety starting device, method and system | |
| JP3326546B2 (en) | Computer system failure detection method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |