Mailbox implementation method and device supporting information and functional safety

By configuring the firewall, safe interrupt and copy mechanism in Mailbox, the problem of inter-core communication failing to ensure information and functional security in the existing technology is solved, and the security protection of complex chip communication is achieved.

CN118520482BActive Publication Date: 2024-09-27SIENGINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410959415.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Existing inter-core communication technology cannot effectively ensure information and functional security, and cannot meet the communication security requirements of complex chips such as onboard chips.

Method used

By configuring the firewall in Mailbox to protect the register space and shared memory, using safe interrupts and parity bits to protect APB transmission data, and creating a copy mechanism to protect FIFO data, ensure information and functional security.

Benefits of technology

It realizes information and functional security protection for inter-core communication, meets the communication security requirements of on-board chips, and prevents data tampering and illegal access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520482B
    Figure CN118520482B
Patent Text Reader

Abstract

The present invention discloses a method and device for implementing Mailbox that supports information and functional security, and relates to the field of computer communication technology. The method includes configuring a firewall, and based on the configured firewall, protecting the register space of the Mailbox and the shared memory used for inter-core communication; configuring the communication with the security Core as a secure interrupt, and using a check bit to protect the APB transmission data and the control and status register CSR; creating a Duplication mechanism, and protecting the data from the port Port to the FIFO through the Duplication mechanism. Based on the original inter-core communication Mailbox implementation, this application adds an information security protection mechanism and a functional security protection mechanism to meet the communication requirements of the on-board chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer communication technology, and in particular to a method and device for implementing a Mailbox that supports information and functional security. Background Art

[0002] The current chip design is becoming more and more complex. In order to effectively cope with a variety of application scenarios, it has become very common to integrate multiple cores on a smaller chip. In order to complete system tasks, communication between multiple cores is inevitable. Therefore, Mailbox (a mechanism for communication between different processor cores) used for inter-core communication is an indispensable part of the chip hardware and software structure design. Due to the rapid development of the Internet of Vehicles and smart cars, the functional safety and information security requirements for on-board chips are relatively high, especially for more complex chips such as cockpit chips and smart driving chips. It is urgent to solve the problem of secure communication between multiple cores inside the chip.

[0003] The commonly used method for existing inter-core communication is to isolate and mutually exclude IPC (Inter Processor Communication) resources in advance according to the configuration file based on the inter-core communication needs, thereby ensuring that there is no conflict between the RPMSG (a standard binary interface used to define the communication between cores in a heterogeneous multi-core processing system) method and the Shared Memory (shared memory) method for IPC transmission and reception, and realizing the simultaneous inter-core communication of the two methods to meet the user's communication needs; in addition, the read and write API (Application Programming Interface) functions are called according to the configuration file, and the user customizes the communication method allocation ratio and the communication query method.

[0004] It can be seen that the existing inter-core communication technologies are all based on hardware or software mechanisms to achieve simple communication between multiple cores. During the design and implementation process, the information security and functional safety of the communication are not considered, and the security of transmitted information and the robustness of the transmission channel cannot be guaranteed, and the requirements for boarding the vehicle cannot be met. Summary of the invention

[0005] The present application provides a Mailbox implementation method and device that supports information and functional security. On the basis of the original inter-core communication Mailbox implementation, an information security protection mechanism and a functional security protection mechanism are added to meet the communication requirements of the on-board chip.

[0006] In a first aspect, an embodiment of the present application provides a method for implementing a Mailbox that supports information and functional safety, and the method for implementing a Mailbox that supports information and functional safety includes:

[0007] Configure a firewall and protect the Mailbox register space and the shared memory used for inter-core communication based on the configured firewall;

[0008] Configure the communication with the security core as a secure interrupt, and use the check bit to protect the APB transmission data and the control and status register CSR;

[0009] A duplication mechanism is created, and protection of data from the port Port to the FIFO is implemented through the duplication mechanism.

[0010] In combination with the first aspect, in one implementation, configuring a firewall and implementing protection of the register space of the Mailbox and the shared memory used for inter-core communication based on the configured firewall specifically includes:

[0011] Configure a firewall to protect the register space of the Mailbox so that the register space can only be accessed by the core corresponding to each register space;

[0012] Configure a firewall to protect the shared memory used for inter-core communication so that the shared memory can only be accessed by the two cores that are to perform inter-core communication.

[0013] In combination with the first aspect, in one implementation, the secure Core is a Core that supports Arm TrustZone technology and can issue secure access.

[0014] In combination with the first aspect, in one implementation, the use of a check bit to protect the APB transmission data and the control and status register CSR specifically includes:

[0015] A check bit is used to protect the data transmitted by APB, and for the data transmitted by APB, each byte is protected by a check bit;

[0016] A check bit is used to protect the control and status register CSR.

[0017] In combination with the first aspect, in one implementation, the creating a duplication mechanism and implementing the protection of data from the port Port to the FIFO through the duplication mechanism specifically includes:

[0018] Create a Duplication mechanism to protect FIFO;

[0019] For the data transmitted from the port Port to the FIFO, a copy is performed, one copy is transmitted to the created first FIFO, and the other copy is transmitted to the created second FIFO;

[0020] The comparison module compares whether the data in the first FIFO and the second FIFO are consistent, and transmits the data from the port Port to the FIFO according to the comparison result.

[0021] In combination with the first aspect, in one implementation, the transmitting the data from the port Port to the FIFO according to the comparison result specifically includes:

[0022] If the data in the first FIFO and the second FIFO are consistent, the data is transferred from the port Port to the FIFO;

[0023] If the data in the first FIFO and the second FIFO are inconsistent, a functional failure error is reported and the fault management unit is notified, and then a retransmission or reset operation is performed according to a preset strategy.

[0024] In combination with the first aspect, in one implementation, the data transmitted from the port Port to the FIFO includes control information, address information and status information.

[0025] In a second aspect, an embodiment of the present application provides a Mailbox implementation device that supports information and functional security, including:

[0026] A configuration module, which is used to configure a firewall and implement protection of the register space of Mailbox and the shared memory used for inter-core communication based on the configured firewall;

[0027] The setup module is used to configure the communication with the security core as a secure interrupt, using the check bit to protect the APB transmission data and the control and status register CSR;

[0028] A creation module is used to create a duplication mechanism, and the protection of data from the port Port to the FIFO is realized through the duplication mechanism.

[0029] In conjunction with the second aspect, in one implementation, configuring a firewall and implementing protection of the register space of the Mailbox and the shared memory used for inter-core communication based on the configured firewall specifically includes:

[0030] Configure a firewall to protect the register space of the Mailbox so that the register space can only be accessed by the core corresponding to each register space;

[0031] Configure a firewall to protect the shared memory used for inter-core communication so that the shared memory can only be accessed by the two cores that are to perform inter-core communication.

[0032] In combination with the second aspect, in one implementation, the secure Core is a Core that supports Arm TrustZone technology and can issue secure access.

[0033] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0034] By configuring a firewall and based on the configured firewall, the register space of the Mailbox and the shared memory used for inter-core communication are protected, and the communication with the security Core is configured as a secure interrupt, the APB transmission data and the control and status register CSR are protected by a check bit, and a Duplication mechanism is created. The data from the port Port to the FIFO is protected through the Duplication mechanism. By adding information security protection mechanism and functional security protection mechanism on the basis of the original inter-core communication Mailbox implementation, the communication requirements of the on-board chip are met. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of the MAILBOX implementation method that supports information and functional security for this application;

[0036] Figure 2 The application block diagram corresponding to the Mailbox implementation method supporting information and functional safety in this application;

[0037] Figure 3 A schematic diagram of the functional modules of the MAILBOX implementation device that supports information and functional security for this application;

[0038] Figure 4 Schematic diagram of the hardware structure of the MAILBOX implementation device that supports information and functional security for this application. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0041] On the first aspect, the embodiment of the present application provides a MAILBOX implementation method that supports information and functional security. On the basis of the original inter-core communication Mailbox implementation, an information security protection mechanism and a functional security protection mechanism are added to meet the communication requirements of the on-board chip.

[0042] In one embodiment, referring to Figure 1 , Figure 1 This is a flowchart of the MAILBOX implementation method that supports information and functional security for this application. Figure 1 As shown, the MAILBOX implementation method that supports information and functional security includes:

[0043] S1: Configure a firewall and protect the Mailbox register space and the shared memory used for inter-core communication based on the configured firewall;

[0044] Furthermore, in one embodiment, a firewall is configured, and based on the configured firewall, protection of the register space of the Mailbox and the shared memory used for inter-core communication is implemented, specifically including:

[0045] S101: Configure a firewall to protect the register space of the Mailbox so that the register space can only be accessed by the Core corresponding to each register space;

[0046] The register space of Mailbox is protected by a firewall, and only the core corresponding to each register space is allowed to perform operations and access;

[0047] S102: Configure a firewall to protect the shared memory used for inter-core communication, so that the shared memory can only be accessed by the two cores that are to perform inter-core communication.

[0048] The shared memory used for inter-core communication is protected by a firewall so that the shared memory can only be accessed by the two cores that are to perform inter-core communication.

[0049] S2: Configure the communication with the security core as a secure interrupt, and use the check bit to protect the APB transmission data and the control and status register CSR;

[0050] It should be noted that in this application, the secure core is a core that supports Arm TrustZone technology (a security extension technology in the ARM architecture) and can issue secure access. That is, when communicating with the secure core, it can be configured as a secure interrupt.

[0051] Furthermore, in one embodiment, the APB transmission data and the control and status register CSR are protected by using a check bit, specifically including:

[0052] S201: using a check bit to protect data transmitted by APB (Advanced Peripheral Bus), and for data transmitted by APB, each byte is protected by a check bit;

[0053] That is, for APB transmission, check bits are used for protection, and each byte corresponds to a check bit. For example, 32 bits require a total of 4 check bits for protection.

[0054] S202: Use a check bit to protect the control and status register CSR.

[0055] S3: Create a duplication mechanism, and use the duplication mechanism to protect data from the port Port to the FIFO (First Input First Output).

[0056] Furthermore, in one embodiment, a duplication mechanism is created, and the protection of data from the port Port to the FIFO is implemented through the duplication mechanism, specifically including:

[0057] S301: Create a Duplication mechanism to protect FIFO;

[0058] S302: For the data transmitted from the port Port to the FIFO, copy processing is performed, one copy is transmitted to the created first FIFO, and the other copy is transmitted to the created second FIFO; the data transmitted from the port Port to the FIFO includes control information, address information and status information;

[0059] S302: Compare whether the data in the first FIFO and the second FIFO are consistent based on a comparison module, and transmit the data from the port Port to the FIFO according to the comparison result.

[0060] Further, the data is transmitted from the port Port to the FIFO according to the comparison result, specifically including:

[0061] If the data in the first FIFO and the second FIFO are consistent, the data is transferred from the port Port to the FIFO;

[0062] If the data in the first FIFO and the second FIFO are inconsistent, a function fault error (i.e., Functionfault) is reported and a fault management unit (i.e., Fault Management Unit, FMU for short) is notified, and then a retransmission or reset operation is performed according to a preset strategy.

[0063] The information security problem and functional security problem of Mailbox can be solved through the Mailbox implementation method supporting information and functional security of the present application.

[0064] The application block diagram corresponding to the Mailbox implementation method supporting information and functional safety described in this application is shown in Figure 2 As shown, Figure 2 In the figure, Core0 and Core1 represent two communicating cores, Firewall represents firewall, INTR represents the interface for changing soft interrupt, APB represents peripheral bus, Port A and Port B represent ports, CSR represents control and status register, ParityProtection represents check bit protection, FIFO1 and FIFO11 represent two hardware buffers corresponding to Core0, FIFO0 and FIFO00 represent two hardware buffers corresponding to Core1, Comparison represents comparison module, and IPC represents inter-core communication.

[0065] This application solves the problem of secure communication between multiple cores in a complex chip by adding information security mechanisms and functional security mechanisms. Mainly, the security protection of Mailbox is implemented based on secure interrupts and firewall protection, the security protection of Mailbox's APB bus and registers is implemented based on a check bit mechanism, the security protection of Mailbox's FIFO is implemented based on a replication mechanism, and the integrity of transmitted data is protected by a software-based cyclic redundancy check mechanism.

[0066] The Mailbox implementation method that supports information and functional safety in an embodiment of the present application configures a firewall and protects the register space of the Mailbox and the shared memory used for inter-core communication based on the configured firewall, configures the communication with the security Core as a secure interrupt, uses check bits to protect APB transmission data and control and status registers CSR, and creates a Duplication mechanism. The Duplication mechanism is used to protect data from the port Port to the FIFO. By adding information security protection mechanism and functional security protection mechanism on the basis of the original inter-core communication Mailbox implementation, the communication requirements of the on-board chip are met.

[0067] In a second aspect, an embodiment of the present application also provides a MAILBOX implementation device that supports information and functional security.

[0068] In one embodiment, referring to Figure 3 , Figure 3 This is a functional module diagram of the MAILBOX implementation device that supports information and functional safety in this application. Figure 3As shown, the MAILBOX implementation device supporting information and functional security includes a configuration module, a setting module, and a creation module.

[0069] The configuration module is used to configure the firewall, and based on the configured firewall, implement the protection of the Mailbox register space and the shared memory used for inter-core communication; the setting module is used to configure the communication with the security core as a secure interrupt, and use the check bit to protect the APB transmission data and the control and status register CSR; the creation module is used to create a Duplication mechanism, and the protection of data from the port Port to the FIFO is implemented through the Duplication mechanism.

[0070] In this application, a firewall is configured, and based on the configured firewall, protection of the Mailbox register space and the shared memory used for inter-core communication is implemented, specifically including:

[0071] Configure a firewall to protect the register space of the Mailbox so that the register space can only be accessed by the core corresponding to each register space;

[0072] Configure a firewall to protect the shared memory used for inter-core communication so that the shared memory can only be accessed by the two cores that are to perform inter-core communication.

[0073] That is, the register space of Mailbox is protected by a firewall, and only the core corresponding to each register space is allowed to perform operation access; the shared memory used for inter-core communication is protected by a firewall, so that the shared memory can only be accessed by the two cores to perform inter-core communication.

[0074] In this application, a secure Core is a Core that supports Arm TrustZone technology and can issue secure access.

[0075] In this application, the check bit is used to protect the APB transmission data and the control and status register CSR, specifically including:

[0076] A check bit is used to protect the data transmitted by APB, and for the data transmitted by APB, each byte is protected by a check bit; that is, for APB transmission, a check bit is used for protection, and each byte corresponds to a check bit;

[0077] A check bit is used to protect the control and status register CSR.

[0078] In this application, a duplication mechanism is created to protect data from the port Port to the FIFO, which specifically includes:

[0079] Create a Duplication mechanism to protect FIFO;

[0080] For the data transmitted from the port Port to the FIFO, a copy is performed, one copy is transmitted to the created first FIFO, and the other copy is transmitted to the created second FIFO;

[0081] The comparison module compares whether the data in the first FIFO and the second FIFO are consistent, and transmits the data from the port Port to the FIFO according to the comparison result.

[0082] In this application, data is transmitted from the port Port to the FIFO according to the comparison result, specifically including:

[0083] If the data in the first FIFO and the second FIFO are consistent, the data is transferred from the port Port to the FIFO;

[0084] If the data in the first FIFO and the second FIFO are inconsistent, a functional failure error is reported and the fault management unit is notified, and then a retransmission or reset operation is performed according to a preset strategy.

[0085] In the present application, data transmitted from the port Port to the FIFO includes control information, address information and status information.

[0086] The information security problem and functional safety problem of Mailbox can be solved by the Mailbox implementation device supporting information and functional safety of the present application.

[0087] Among them, the functional implementation of each module in the above-mentioned MAILBOX implementation device supporting information and functional safety corresponds to the various steps in the above-mentioned MAILBOX implementation method embodiment supporting information and functional safety, and its functions and implementation processes are no longer repeated here one by one.

[0088] The Mailbox implementation device supporting information and functional safety in the embodiment of the present application configures a firewall and protects the register space of the Mailbox and the shared memory used for inter-core communication based on the configured firewall, configures the communication with the security Core as a secure interrupt, uses check bits to protect APB transmission data and control and status registers CSR, and creates a Duplication mechanism. The Duplication mechanism is used to protect data from the port Port to the FIFO. By adding information security protection mechanism and functional safety protection mechanism on the basis of the original inter-core communication Mailbox implementation, the communication requirements of the on-board chip are met.

[0089] On the third aspect, an embodiment of the present application provides a MAILBOX implementation device that supports information and functional security. The MAILBOX implementation device that supports information and functional security may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0090] Reference Figure 4 , Figure 4 The hardware structure diagram of the MAILBOX implementation device supporting information and functional safety involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the MAILBOX implementation device supporting information and functional safety may include a processor, a memory, a communication interface, and a communication bus.

[0091] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0092] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the MAILBOX device supporting information and functional safety, and the interconnection of the MAILBOX device supporting information and functional safety with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0093] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0094] The processor may be a general-purpose processor, which may call the MAILBOX implementation program for supporting information and functional safety stored in the memory, and execute the MAILBOX implementation method for supporting information and functional safety provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the MAILBOX implementation program for supporting information and functional safety is called may refer to the various embodiments of the MAILBOX implementation method for supporting information and functional safety of the present application, which will not be described in detail here.

[0095] Those skilled in the art will understand that Figure 4 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0096] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0097] The computer-readable storage medium of the present application stores a MAILBOX implementation program that supports information and functional safety, wherein when the MAILBOX implementation program that supports information and functional safety is executed by a processor, the steps of the MAILBOX implementation method that supports information and functional safety as described above are implemented.

[0098] Among them, the method implemented when the MAILBOX implementation program supporting information and functional security is executed can refer to the various embodiments of the MAILBOX implementation method supporting information and functional security of the present application, and will not be repeated here.

[0099] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0100] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0101] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0102] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0103] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0105] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A Mailbox implementation method supporting information and functional security, It is characterized in that The Mailbox implementation method supporting information and functional safety includes: Configure a firewall and protect the Mailbox register space and the shared memory used for inter-core communication based on the configured firewall; Configure the communication with the security core as a secure interrupt, and use the check bit to protect the APB transmission data and the control and status register CSR; A duplication mechanism is created, and the protection of data from the port Port to the FIFO is realized through the duplication mechanism; The creation of a duplication mechanism to protect data from the port Port to the FIFO through the duplication mechanism specifically includes: Create a Duplication mechanism to protect FIFO; For the data transmitted from the port Port to the FIFO, a copy is performed, one copy is transmitted to the created first FIFO, and the other copy is transmitted to the created second FIFO; The comparison module compares whether the data in the first FIFO and the second FIFO are consistent, and transmits the data from the port Port to the FIFO according to the comparison result.

2. A method for implementing a Mailbox supporting information and functional safety as claimed in claim 1, It is characterized in that The configuration of the firewall and the protection of the register space of the Mailbox and the shared memory used for inter-core communication based on the configured firewall specifically include: Configure a firewall to protect the register space of the Mailbox so that the register space can only be accessed by the core corresponding to each register space; Configure a firewall to protect the shared memory used for inter-core communication so that the shared memory can only be accessed by the two cores that are to perform inter-core communication.

3. A method for implementing a Mailbox supporting information and functional safety as claimed in claim 1, Features: The secure core is a core that supports the Arm TrustZone technology and can issue secure access.

4. A method for implementing a Mailbox supporting information and functional safety as claimed in claim 1, It is characterized in that The use of the check bit to protect the APB transmission data and the control and status register CSR specifically includes: A check bit is used to protect the data transmitted by APB, and for the data transmitted by APB, each byte is protected by a check bit; A check bit is used to protect the control and status register CSR.

5. A method for implementing a Mailbox supporting information and functional safety as claimed in claim 1, It is characterized in that The transmitting of data from the port Port to the FIFO according to the comparison result specifically includes: If the data in the first FIFO and the second FIFO are consistent, the data is transferred from the port Port to the FIFO; If the data in the first FIFO and the second FIFO are inconsistent, a functional failure error is reported and the fault management unit is notified, and then a retransmission or reset operation is performed according to a preset strategy.

6. A method for implementing a Mailbox supporting information and functional safety as claimed in claim 1 or 5, It is characterized in that The data transmitted from the port Port to the FIFO includes control information, address information and status information.

7. A Mailbox implementation device supporting information and functional security, It is characterized in that include: A configuration module, which is used to configure a firewall and implement protection of the register space of Mailbox and the shared memory used for inter-core communication based on the configured firewall; The setup module is used to configure the communication with the security core as a secure interrupt, using the check bit to protect the APB transmission data and the control and status register CSR; A creation module is used to create a duplication mechanism, and the protection of data from the port Port to the FIFO is realized through the duplication mechanism; The creation of a duplication mechanism to protect data from the port Port to the FIFO through the duplication mechanism specifically includes: Create a Duplication mechanism to protect FIFO; For the data transmitted from the port Port to the FIFO, a copy is performed, one copy is transmitted to the created first FIFO, and the other copy is transmitted to the created second FIFO; The comparison module compares whether the data in the first FIFO and the second FIFO are consistent, and transmits the data from the port Port to the FIFO according to the comparison result.

8. A Mailbox implementation device supporting information and functional safety as claimed in claim 7, It is characterized in that The configuration of the firewall and the protection of the register space of the Mailbox and the shared memory used for inter-core communication based on the configured firewall specifically include: Configure a firewall to protect the register space of the Mailbox so that the register space can only be accessed by the core corresponding to each register space; Configure a firewall to protect the shared memory used for inter-core communication so that the shared memory can only be accessed by the two cores that are to perform inter-core communication.

9. A Mailbox implementation device supporting information and functional safety as claimed in claim 7, Features: The secure core is a core that supports the Arm TrustZone technology and can issue secure access.