Bus bridge, chip and laser radar

By adding a data verification mechanism in the bus bridge, the problem of difficulty in ensuring accuracy and reliability during the LiDAR data transmission process is solved, and higher data transmission reliability and safety are achieved, suitable for autonomous driving and smart transportation field.

CN118400223BActive Publication Date: 2024-11-15SUTENG INNOVATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410824941.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-11-15
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

In the fields of autonomous driving and smart transportation, there are problems with difficulty in ensuring accuracy and reliability during the data transmission of lidar, which may lead to serious safety accidents.

Method used

A bus bridge is designed to ensure the accuracy and completeness of the data during the transmission process by adding a data verification mechanism, including a receiving data verification module, a data specification conversion module and an output data encoding module. and set up a data verification mechanism during the data buffering process to improve the reliability of the bus bridge.

Benefits of technology

It effectively improves the accuracy and reliability of data transmission, issues warnings or warnings in a timely manner, avoids unanticipated serious safety accidents, and is suitable for high-standard application scenarios such as autonomous driving lidar systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400223B_ABST
    Figure CN118400223B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a bus bridge, a chip and a laser radar thereof. The bus bridge includes: a received data verification module, configured to: determine the received data verification result according to the received data verification information carried by the received data; a data specification conversion module, configured to: convert the received data that complies with the initial data transmission specification into output data that complies with the target data transmission specification; an output data encoding module, configured to: encode at least a part of the output data, generate corresponding output data verification information, so that the output data carries the corresponding output data verification information. The bus bridge can improve the reliability of data transmission by adding an additional data verification mechanism during the data transmission specification conversion process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic circuit technology, and in particular to a bus bridge, a chip and a laser radar thereof. Background Art

[0002] In areas such as autonomous driving and smart transportation, how to enable vehicles or other vehicles to quickly and accurately perceive road and surrounding conditions is the core of achieving automated driving.

[0003] Usually, vehicles and other vehicles rely on one or more sensors to sense the road and surrounding environment. Among the various sensor devices, LiDAR is the most core device. The position / size / motion information of traffic participants sensed and collected by LiDAR is the most important information required by the decision-making system.

[0004] The main control chip inside the LiDAR is its core component, responsible for the collection, processing and transmission of all LiDAR information. As a complex system composed of many components, the effectiveness and reliability of the relevant safeguards used to ensure the correctness and integrity of data information during the transmission process of the main control chip still need to be improved. Summary of the invention

[0005] The bus bridge, chip and laser radar provided in the embodiments of the present application are intended to solve at least some of the defects in the existing data transmission process.

[0006] In a first aspect, the embodiment of the present application provides the following technical solution: a bus bridge. The bus bridge includes: a received data verification module, configured to: determine the received data verification result according to the received data verification information carried by the received data; a data specification conversion module, configured to: convert the received data that complies with the initial data transmission specification into output data that complies with the target data transmission specification; an output data encoding module, configured to: encode at least a part of the output data and generate corresponding output data verification information so that the output data carries the corresponding output data verification information.

[0007] In a second aspect, the embodiment of the present application provides the following technical solution: a chip. The chip includes: at least one first device; each of the first devices is connected to a first bus; at least one second device; each of the second devices is connected to a second bus; the bus bridge as described above; the bus bridge is bridged between the first bus and the second bus to establish a communication connection between the first device and the second device.

[0008] In a third aspect, the embodiments of the present application provide the following technical solution: a laser radar. The laser radar includes the chip described above.

[0009] At least one advantageous aspect of the bus bridge provided by the embodiment of the present application is that by additionally setting up a data verification mechanism during the data transmission specification conversion process of the bus bridge, the accuracy and integrity of the data transmission process can be improved, and early warnings or warnings can be issued in a timely manner for errors occurring during the data transmission process, thereby ensuring the reliability of data transmission and avoiding unexpected serious safety accidents. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0011] Figure 1 This is a schematic diagram of a chip according to an embodiment of the present application, illustrating an application scenario of a bus bridge.

[0012] Figure 2A Schematic diagram of a first data verification mechanism according to an embodiment of the present application.

[0013] Figure 2B Schematic diagram of a second data verification mechanism according to an embodiment of the present application.

[0014] Figure 3A FIG. 1 is a schematic diagram of a bus bridge according to an embodiment of the present application.

[0015] Figure 3B This is a schematic diagram of a bus bridge according to an embodiment of the present application, illustrating a situation where a first conversion path and a second conversion path are set.

[0016] Figure 4 This is a schematic diagram of a bus bridge according to an embodiment of the present application, illustrating a situation in which a data buffer unit is set.

[0017] Figure 5 This is a schematic diagram of a bus bridge according to an embodiment of the present application, illustrating a situation in which a data verification mechanism is set for a data buffering process.

[0018] Fig. 6A Schematic diagram of a first cache check module according to an embodiment of the present application.

[0019] Figure 6B Schematic diagram of a second cache verification module according to an embodiment of the present application.

[0020] Figure 7 This is a schematic diagram of a bus bridge according to an embodiment of the present application, illustrating a situation in which first type data and second type data are distinguished for verification.

[0021] Fig. 8AThis is a schematic diagram of a bus bridge according to an embodiment of the present application, showing a situation where the first data buffer unit is provided with two data buffer paths.

[0022] Figure 8B This is a schematic diagram of a bus bridge according to an embodiment of the present application, showing a situation where the second data buffer unit is provided with two data buffer paths.

[0023] Fig. 9A This is a schematic diagram of a bus bridge according to an embodiment of the present application, illustrating a situation where command data is converted from an AHB bus to an APB bus.

[0024] Fig. 9B This is a schematic diagram of a bus bridge according to an embodiment of the present application, illustrating a situation where feedback data is converted from an APB bus to an AHB bus. DETAILED DESCRIPTION

[0025] In order to facilitate the understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments.

[0026] It should be noted that when an element is referred to as being "disposed on" another element, it may be directly on the other element or there may be an intermediate element. When an element is considered to be "connected" to another element, it may be directly connected to the other element or there may be an intermediate element at the same time, or it may mean that the two elements are interactively connected through signals. When an element is considered to be "coupled" / "coupled to" another element, it may be directly coupled to the other element or there may be an intermediate element at the same time, or it may mean that the two elements interact through signals.

[0027] The term "bus bridging" refers to the process of transferring data between two buses that use different data transmission specifications. It can be implemented by one or more hardware and / or software components.

[0028] The term "chip" refers to an integrated circuit, small electronic device or component made of semiconductor material (such as silicon), having one or more electronic functions and capable of performing one or more specific electronic tasks.

[0029] The term "component" refers to an independent part of a system or device with a specific function. Each component contains all the components and logic required to complete its function and can cooperate with other components to form a complex system. Components can exist in the form of software, hardware, or a combination of both.

[0030] The term "data verification mechanism" refers to the method of detecting whether errors occur during data transmission and correcting errors that occur during data transmission. The term "verification" refers to the process of verifying the correctness and integrity of data. Verification can include multiple processes such as error detection, error location and / or error correction in sequence, and provide corresponding results for each process.

[0031] The term "interrupt" refers to a mechanism used in computer systems to handle asynchronous events. An interrupt can cause the processing core to pause the current execution flow, respond to and handle external or internal events in a timely manner, and then continue with the original task.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The terms "and / or" and "and / or" used herein include any and all combinations of one or more related listed items.

[0033] In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.

[0034] Figure 1 This is an application scenario of the bus bridge of the embodiment of the present application, which exemplarily shows the application of the bus bridge in the chip. Figure 1 As shown, the chip 1 may generally include the following functional modules: a processor core 10 , a plurality of different functional devices 20 , a bus 30 and a bus bridge 40 .

[0035] The processor core 10 refers to an independent processing unit in the chip that is responsible for executing program instructions, processing data, controlling data flow, and other one or more logical operations. It can complete operations such as fetching, decoding, executing, and storing results of instruction data. For example, Figure 1 Only one processor core 10 is shown in the figure. Alternatively, the chip may also include two or more processor cores to cope with and meet different usage requirements.

[0036] The functional device 20 is relative to the above-mentioned processor core, does not directly participate in the basic instruction execution process of the processor core, but is used to assist the operation of the chip or other devices that expand the chip function.

[0037] The bus 30 is a communication system for connecting the processor core and various functional devices in the chip and allowing bidirectional or unidirectional data transmission between them.

[0038] The communication system can be considered to be composed of physical connection lines and corresponding data transmission specifications. The physical connection lines provide the transmission medium, and the data transmission specifications define the flow rules of data on the physical connection lines.

[0039] Please continue reading Figure 1 According to different requirements for data transmission performance, the functional device 20 included in the chip can be divided into a first device 21 and a second device 22.

[0040] For example, in Figure 1 The figure shows that the first device 21 is a high-demand device that needs high-speed data transmission, and the second device 22 is a low-demand device. Of course, the first device 21 can also be used as a high-demand device and the second device 22 as a low-demand device according to actual needs.

[0041] In this application, "high-demand device" and "low-demand device" are a pair of relative technical concepts. High-demand devices refer to those functional devices that require higher data throughput and need to meet high-speed data transmission relative to low-demand devices, and vice versa.

[0042] For example, high-demand devices include, but are not limited to, RAM controllers, DMA controllers, and graphics processing units (GPUs). Low-demand devices include, but are not limited to, serial communication interfaces (UARTs), real-time clocks (RTCs), input / output ports (GPIOs), and power management controllers. It is understood that the processor core 10 of the chip is also a high-demand device.

[0043] Correspondingly, in order to meet the requirements of different functional devices for data transmission performance, the bus 30 also includes at least two different types, which are respectively suitable for high-speed data transmission and low-speed data transmission scenarios.

[0044] For example, Figure 1 3 shows different types of first buses 31 and second buses 32. Those skilled in the art will appreciate that more different types of buses may be provided according to actual needs.

[0045] The first bus 31 is a high-performance bus that can support high data throughput, has low latency and high bandwidth. The first device 21 and the processor core 10 are connected via the first bus 31 to form a communication system to achieve data interaction between them.

[0046] The second bus 32 is a simple bus that does not support high-speed data transmission compared to the first bus 31. The plurality of second devices 22 are connected via the second bus 32 to form another communication system to achieve data exchange between each other.

[0047] Of course, the second bus 32 may have advantages such as saving power consumption due to its simple design, and may match the actual use requirements of the second device 22 .

[0048] Please continue reading Figure 1 , in the case where there are at least two bus types on the chip (e.g. Figure 1 As shown in the figure, the first bus 31 and the second bus 32), an additional bus bridge 40 can be used to help complete the data transfer process between different buses (for example, data transfer between the second device 22 and the processor core 10).

[0049] In this article, "bus bridge" refers to a device that can implement the bus bridging function. For example, the command data sent by the processor core 10 can be transmitted to the bus bridge 40 through the first bus 31. After the bus bridge 40 converts the command data into output data that conforms to the data transmission specification of the second bus 32, it is provided to the corresponding second device 22 through the second bus 32; or the feedback data of the second device 22 can be transmitted to the bus bridge 40 through the second bus 32, and after the bus bridge 40 converts the feedback data into output data that conforms to the data transmission specification of the first bus 31, it is provided to the processor core 10 through the first bus 31.

[0050] In the process of implementing this application, the applicant has found that the introduction of a bus bridge may cause some unexpected negative effects on data transmission. For example, the accuracy and reliability of data transmission are difficult to ensure in the process of bus bridging across two different communication systems.

[0051] Such negative impacts are fatal or very serious in some high-standard application scenarios that require high accuracy and reliability of data transmission. For example, when used in LiDAR to provide detection data for autonomous driving, once data transmission errors occur in the normal working process of LiDAR and cannot be promptly warned or corrected, it is easy to cause serious consequences.

[0052] Based on this, an additional data verification mechanism can be appropriately added to the bus bridge to more effectively ensure the accuracy and reliability of data transmission, thereby significantly improving the performance of the chip and better helping to adapt to the usage requirements of high-standard application scenarios.

[0053] In order to fully illustrate the inventive concept of this application, the following Figure 2A The schematic diagram shown in the figure introduces in detail the specific implementation process and verification principle of the data verification mechanism.

[0054] The data verification mechanism is mainly carried out by cooperating data encoding and data decoding. Figure 2AAs shown, data encoding can be performed at the transmitting end Tx. Before the original data data1 is transmitted, the transmitting end Tx can calculate the original data by a preset encoding method, obtain the corresponding calculation result data2 and transmit it to the receiving end Rx together with the original data.

[0055] In this article, "corresponding" defines the relationship between two data information, that is, there is a mathematical relationship between the corresponding calculation result and the original data.

[0056] Please continue reading Figure 2A , data decoding can be performed at the receiving end Rx. After the original data is transmitted to the receiving end Rx, the receiving end Rx can use the same encoding method as the transmitting end Tx to calculate the original data data1 and obtain another calculation result data3.

[0057] Based on the following assumptions: the same data information should be able to obtain consistent calculation results after the same encoding calculation.

[0058] Based on this, the receiving end Rx can compare the calculation result data3 calculated by itself with the calculation result data2 carried by the original data to determine whether the two are consistent. Among them, when the two are consistent, it can be determined that there is no error in the transmission process of the original data. The original data received by the receiving end Rx is correct and complete, and vice versa.

[0059] On the basis of error detection, it is possible to further encode by using more complex mathematical operations (i.e., higher computational complexity) to obtain calculation results with a larger amount of data information, thereby providing the receiving end with sufficient additional information to achieve error location and / or error correction.

[0060] In this article, "error location" refers to determining the information that has errors in the original data. "Error correction" refers to correcting the information that has errors in the original data to restore it to correct information.

[0061] For example, Figure 2B As shown, when a more complex data operation method is selected for calculation, the calculation result data2 obtained after the original data data1 is encoded and calculated at the transmitting end Tx contains more redundant information.

[0062] Therefore, in addition to comparing the calculation result data3 with the calculation result data2 carried by the original data to determine whether an error has occurred in the original data data1 during the transmission process, the receiving end Rx can also use data2 with more redundant information to locate and correct the error in the original data data1 when it is determined that an error has occurred in the original data data1, so as to restore it to correct data.

[0063] In this application, the term "first data verification mechanism" is used to refer to data verification mechanisms that use coding methods that do not have error correction capabilities. Exemplarily, the first data verification mechanism includes but is not limited to: data verification based on a parity check algorithm, data verification based on a cyclic redundancy check code, and data verification based on a Hamming code.

[0064] In addition, the term "second data verification mechanism" is used to represent data verification mechanisms of coding methods that have error correction capabilities. Exemplarily, the second data verification mechanism includes but is not limited to: data verification based on error correction codes.

[0065] It should be noted that the degree of error correction that the second data verification mechanism can provide is limited. Having error correction capability does not mean that the data verification mechanism can complete the task of error correction in all cases. For example, if there are serious errors in the original data or the missing part accounts for a very large proportion, error correction cannot be completed even if a fairly complex mathematical operation is used.

[0066] Figure 3A The figure shows a bus bridge with an additional data verification mechanism. Figure 3A , describe the composition of the bus bridge in detail.

[0067] For simplicity of description, in the following text, data received by the bus bridge before data transmission specification conversion is referred to as "received data", and data obtained after the bus bridge performs data transmission specification conversion is referred to as "output data".

[0068] It should be noted that the received data and the output data are only used to distinguish the direction of data transmission, and are not used to limit the specific form, format or content of the data.

[0069] like Figure 3A As shown, the bus bridge 40 may include: a data specification conversion module 41 , a received data verification module 42 and an output data encoding module 43 .

[0070] The data specification conversion module 41 is a component for realizing the data transmission specification conversion function, which can convert the received data conforming to the initial data transmission specification into the output data conforming to the target data transmission specification, so that the data can be transmitted between different communication systems.

[0071] For example, in Figure 1 In the application scenario shown, in order to satisfy the data transmission between the two buses, the data specification conversion module 41 has a bidirectional conversion function. Figure 3B As shown, it can form a first conversion path 41a capable of converting first received data from the first bus 31 into first output data that complies with the data transmission specification of the second bus 32, and a second conversion path 41b capable of converting second received data from the second bus 32 into second output data that complies with the data transmission specification of the first bus 31.

[0072] The received data verification module 42 is a component related to the data verification function. It is located at the front end of the data specification conversion module 41 and can verify the received data according to the verification information carried by the received data itself, and then determine the verification result of the received data (for example, whether the received data has an error during the bus transmission process).

[0073] The output data encoding module 43 is a component related to the verification information generation function. It is arranged at the back end of the data specification conversion module 41, and can encode the output data generated by the data specification conversion module 41, and generate verification information corresponding to the output data, so that the output data of the bus bridge also carries the corresponding verification information.

[0074] by Figure 1 Taking the application scenario shown in the figure as an example, when a data verification mechanism is added, Figure 3B As shown, the data transmitted in the first bus 31 and the second bus 32 both carry corresponding verification information. Whether the bus bridge receives the first received data from the first bus or the second received data from the second bus, the first received data verification module 42a and the second received data verification module 42b can verify the first received data and the second received data based on the corresponding verification information carried by the received data, thereby ensuring the correctness and integrity of the data during the transmission process of the first bus or the second bus.

[0075] In some embodiments, in order to achieve the purpose of data transmission speed matching and data integration, the bus bridge may also have a data buffering function when performing data transmission specification conversion. In this application, the term "data buffer unit" is used to represent a functional unit for implementing the data buffering function. It controls the orderly entry and exit of each received data into and out of the data buffer unit through a preset data management mechanism, thereby realizing temporary storage of the received data.

[0076] The data buffering function additionally provided in the bus bridge can achieve the effects of matching data transmission speed, supporting asynchronous operation, reducing delays and irregularities in the data transmission process, etc., thereby effectively improving the reliability and performance of the bus bridge. Figure 4 The schematic diagram of the bus bridge provided by the embodiment of the present application exemplarily shows the situation that the data buffer unit is set in both conversion paths of the bus bridge. Figure 4 As shown, different from Figure 3B The bus bridge shown in the figure has a first conversion path 41a comprising: a first data buffer unit 41a1 and a protocol packet unit 41a2, which are used to implement data buffering and data encapsulation functions respectively. The second conversion path 41b comprises: a second data buffer unit 41b1 for implementing data buffering.

[0077] The first data buffer unit 41a1 and the second data buffer unit 41b1 are components that provide storage space of appropriate size. They achieve data buffering effect by temporarily storing one or more received data. The first data buffer unit 41a1 and the second data buffer unit 41b1 can control each received data to enter and leave the buffer in an orderly manner with a preset data management mechanism to achieve the required data buffering effect.

[0078] Specifically, the preset data management mechanism is a rule and standard for defining the way data enters and leaves the buffer. For example, a rule called "first-input, first-out" (FIFO) can be selected as the data management mechanism.

[0079] Taking the first data buffer unit 41a1 as an example, it can determine the order in which each received data leaves the buffer according to the order in which each received data enters the first data buffer unit 41a1, so that the order in which the received data enters the first data buffer unit 41a1 is consistent with the order in which the received data leaves the first data buffer unit 41a1.

[0080] The protocol package unit 41a2 is a component arranged at the rear end of the first data buffer unit 41a1, which receives the first received data from the first data buffer unit 41a1 and performs one or more data package processing on the data according to the data transmission specification of the second bus to obtain the corresponding first output data.

[0081] In this application, "data encapsulation" refers to the process of packaging data in the format of a specific communication protocol. Data encapsulation processing may include, but is not limited to: adding protocol headers / tailers, aggregating / decomposing data, etc., so that data can be correctly transmitted and parsed in a network or bus system. The specific data encapsulation processing is not specifically limited here, and it only needs to ensure that the data maintains integrity and correctness during bus transmission.

[0082] It should be noted that the provision of the protocol packet unit 41a2 is not essential and can be selectively provided in the conversion path depending on specific application scenarios and data transmission requirements.

[0083] For example, in the conversion process from Advanced High-performance Bus (AHB) to Advanced Peripheral Bus (APB), since complex AHB signals need to be converted into simple APB signals, a protocol packet unit needs to be set up to handle data encapsulation operations such as timing, control signal conversion, address and data alignment, etc., to ensure the correct transmission of data on APB.

[0084] In the conversion process from APB to AHB, since the data transmission mode of APB is simple, AHB can directly receive and process the data on APB without additional data encapsulation processing. Therefore, in such a conversion path, there is no need to set up an additional protocol package unit for processing.

[0085] It will be understood by those skilled in the art that although Figure 4 FIG. 4 exemplarily shows a situation in which a protocol packetization unit 41 a2 is provided in the first conversion path 41 a and no protocol packetization unit is provided in the second conversion path 41 b.

[0086] However, according to the first bus and the second bus of a specific application, the protocol packetization unit may be respectively provided in the first conversion path 41a and the second conversion path 41b, or the protocol packetization unit may not be provided in the first conversion path 41a and the second conversion path 41b.

[0087] In the process of the above data entering / leaving the data buffer unit, there is also the possibility of errors. In order to ensure the accuracy and reliability of the data when it is processed by data buffering, a data verification mechanism can be further set for the data buffering process. In the present application, the data verification mechanism of the data buffering process can be implemented by a cache encoding module and a cache verification module that cooperate with each other. Among them, the cache encoding module can encode the received data before entering the data buffer unit and generate corresponding cache verification information. The cache verification module determines the cache verification result of the received data after leaving the data buffer unit based on the cache verification information.

[0088] Figure 5 The schematic diagram of the bus bridge provided by the embodiment of the present application exemplarily shows the situation that the cache encoding module and the cache checking module are respectively set in the two conversion paths of the bus bridge. Figure 5 As shown, different from Figure 4 In the bus bridge shown in FIG. 1 , the first conversion path 41a in the bus bridge is further provided with a first cache encoding module 45a and a first cache checking module 46a. Correspondingly, the second conversion path 41b is further provided with a second cache encoding module 45b and a second cache checking module 46b.

[0089] The first cache coding module 45a and the second cache coding module 45b are both components for performing data coding to generate verification information corresponding to the cache data. The difference between the two is that the data objects to be encoded are different. The first cache coding module 45a encodes the first received data before entering the first data buffer unit 41a1 to generate the corresponding first verification information, while the second cache coding module 45b encodes the second received data before entering the second data buffer unit 41b1 to generate the corresponding second verification information.

[0090] The first cache check module 46a and the second cache check module 46b are both components for performing data decoding. Similarly, the main difference between the two is that the data objects to be checked are different. The first cache check module 46a determines the check result of the first received data (hereinafter referred to as the first cache data) after leaving the first data buffer unit 41a1 based on the first check information, while the second cache check module 46b determines the check result of the second received data (hereinafter referred to as the second cache data) after leaving the second data buffer unit 41b1 based on the second check information.

[0091] Through the cooperation between the cache encoding module and the cache verification module, data verification of the process of data entering / leaving the data buffer unit is achieved, which can ensure the accuracy and reliability of the data transmission process.

[0092] Specifically, Fig. 6A As shown, the first cache check module 46a may include: a first check information buffer unit 46a1, a first check information encoder 46a2 and a first check information comparator 46a3.

[0093] The first verification information buffer unit 46a1 is a component for implementing a data buffering function, and has an information storage area for temporarily storing the first verification information calculated by the first cache encoding module 45a to implement data buffering of the first verification information.

[0094] The first verification information encoder 46a2 is a component for encoding the first buffered data to obtain a first encoding result. In this embodiment, the encoding method used by the first verification information encoder 46a2 is the same as that of the first cache encoding module 45a, so that when the first received data and the first cached data are consistent, the first encoding result obtained by the first verification information encoder 46a2 is consistent with the first verification information obtained by the first cache encoding module 45a.

[0095] The first verification information comparator 46a3 is a component for comparing the first verification information leaving the first verification information buffer unit 46a1 with the first encoding result. It can output a judgment result of whether the first verification information and the first encoding result are consistent, and then determine whether an error occurs in the first received data before and after entering and leaving the first data buffer unit 41a1 (i.e., whether the first received data is consistent with the first cached data).

[0096] Similarly, if Figure 6B As shown, the second cache check module 46b may include: a second check information buffer unit 46b1, a second check information encoder 46b2 and a second check information comparator 46b3.

[0097] The second verification information buffer unit 46b1 can control each second verification information generated by the second cache encoding module 45b to enter and leave the second verification information buffer unit 46b1 in an orderly manner according to a preset data management mechanism, thereby playing a role of data buffering.

[0098] The second verification information encoder 46b2 uses the same encoding method as the second cache encoding module 45b to encode the second cache data leaving the second data buffer unit 41b1 to obtain a corresponding second encoding result.

[0099] The second verification information comparator 46b3 compares the second verification information leaving the second verification information buffer unit 46b1 with the second encoding result, and determines whether an error occurs in the second received data before or after entering and leaving the second data buffer unit based on whether the output second verification information and the second encoding result are consistent.

[0100] The bus bridge provided by the embodiment of the present application performs data verification in addition to data verification during the transmission process on the bus, and further performs data verification during the data buffering process. Through the double data verification method, the correctness and integrity of the data during the conversion process of the bus bridge are effectively ensured.

[0101] As described in the data verification mechanism above, the encoding method selected for use in the data verification mechanism has a significant impact on the reliability and computational complexity of data verification. More complex encoding methods have higher computational complexity and generate more verification information, but can provide higher reliability and error correction capabilities. Simpler encoding methods, on the contrary, have lower computational complexity and less verification information, but affect data reliability and cannot achieve error correction.

[0102] In some embodiments, in order to achieve a balance between reliability and computational complexity, the bus bridge may also integrate a first data verification mechanism and a second data verification mechanism, using a more complex second data verification mechanism for a more important portion of the data while using a simpler first data verification mechanism for the rest of the data.

[0103] For simplicity of presentation, in the following text, part of the received data that uses the first data verification mechanism is referred to as "first type data", and the rest of the received data that uses the second data verification mechanism is referred to as "second type data".

[0104] Figure 7 FIG. 4 shows a bus bridge that integrates the use of a first data check mechanism and a second data check mechanism. Figure 7 The first conversion path is used as an example for demonstration. However, those skilled in the art can understand that the integration of the first data verification mechanism and the second data verification mechanism of the first conversion path can also be applied to the second conversion path or other data protocol conversion components with the same characteristics, and is not limited to Figure 7 shown.

[0105] The following Figure 7 Taking the first received data verification module and the first output data encoding module presented in the example, the specific implementation method of integrating the two data verification mechanisms is described in detail. Figure 7 As shown, the first received data verification module 42a may include: a first type verification unit 42a1 and a second type verification subunit 42a2.

[0106] The first type verification unit 42a1 is a component for verifying the first type of data. It performs error detection on the first type of data based on the first type of verification information, determines whether there is an error in the first type of data, and outputs a corresponding verification result. In this embodiment, the verification information carried by the received data is also divided into two types accordingly. The verification information applied to the first data verification mechanism can be called "first type verification information", and the verification information applied to the second data verification mechanism is called "second type verification information".

[0107] The second type check subunit 42a2 is a component for checking and correcting the second type data in the received data, and can perform error detection and error correction on the second type data according to the second type check information.

[0108] Specifically, the second type check subunit 42a2 can be roughly divided into: an error detection subunit 42a21 for performing error detection and an error correction subunit 42a22 for performing error correction when an error occurs.

[0109] Of course, the error correction capability of the error correction subunit 42a22 has an upper limit. In the case where there are too many errors in the second type of data, the error correction subunit 42a22 may be unable to complete the error correction.

[0110] Please continue reading Figure 7 In order to adapt to the above-mentioned two data verification mechanisms, the first output data encoding module 43a also includes: a first type encoding unit 43a1 and a second type encoding unit 43a2.

[0111] The first type encoding unit 43a1 is a component for performing preset first type encoding on the first type data in the first output data to generate corresponding first type output data verification information. In this embodiment, the first type encoding represents the encoding method used by the first data verification mechanism.

[0112] The second type encoding unit 43a2 performs a preset second type encoding on the second type data in the first output data to generate corresponding second type output data verification information. In this embodiment, the second type encoding represents the encoding method used by the second data verification mechanism.

[0113] The bus bridge provided in the embodiment of the present application selectively performs a more complex second type of encoding with error correction capability on only the more important data among the data, so that the correctness and integrity of the important data information can be better guaranteed while avoiding excessive occupation of computing resources and data transmission bandwidth.

[0114] Specifically, the first type checking unit 42a1 may include two basic functional units: a first type encoder 42a11 and a first type comparator 42a12.

[0115] The first type encoder 42a11 is a component for performing first type encoding, and is designed to perform a preset first type encoding on the first type data in the received data to obtain a corresponding first type encoding result.

[0116] The first type comparator 42a12 is a component for comparing the difference between data information, and can compare the first type check information with the first type encoding result and determine whether the two are consistent.

[0117] As described above, under the premise that the first type check information is generated by the same first type coding calculation, if the first type data in the received data has no error during the bus transmission process, the first type coding result generated by the first type encoder 42a11 should be consistent with the first type check information. On the contrary, if the first type data in the received data has an error during the bus transmission process, the first type check information will differ from the first type coding result.

[0118] Therefore, when the first type comparator 42a12 determines that the first type check information is inconsistent with the first type encoding result, it can output a corresponding check result, indicating that an error exists in the first type data in the received data.

[0119] Please continue reading Figure 7 The error detection subunit 42a21 may include: a second type encoder 42a211 and a second type comparator 42a212.

[0120] The second type encoder 42a211 is a component for performing second type encoding, and is designed to perform second type encoding on the second type data in the first received data to obtain a corresponding second type encoding result.

[0121] The second type comparator 42a212 is a component for comparing the difference between data information. Because the objects of comparison are the second type check information and the second type encoding result, it is called the second type comparator to distinguish it from the first type comparator.

[0122] Based on the above similar principles, under the premise that the second type check information is generated by the same second type coding calculation, if the second type data in the received data has no error during the bus transmission process, the second type coding result generated by the second type encoder 42a211 should be consistent with the second type check information. On the contrary, if the second type data in the received data has an error during the bus transmission process, the second type check information will differ from the second type coding result.

[0123] Therefore, when the second type comparator 42a212 determines that the second type check information is inconsistent with the second type encoding result, it can output a corresponding check result, indicating that an error exists in the second type data in the received data.

[0124] For further information, please refer to Figure 7 Based on the characteristic that the second type of encoding can realize error correction, when the second type comparator 42a212 determines that there is an error in the second type of data, the error correction subunit 42a22 can also first use the redundant second type check information to attempt to correct and recover the errors in the second type of data, and provide feedback on whether the correction and recovery can be completed.

[0125] The technical features of the bus bridge described in the above multiple embodiments can also be arbitrarily combined with each other to obtain more different embodiments. For example, based on the design idea of ​​dividing the received data into two parts, each data buffer unit can also be divided into a content buffer sub-unit and an instruction buffer sub-unit, which are used for data buffering of content data and instruction data in the received data, respectively.

[0126] In this application, content data and instruction data are the result of classifying received data based on the role played by the data. "Content data" refers to the actual data information in the received data, which usually represents some information or state (such as sensor readings, file contents, or user input, etc.). "Instruction data" refers to command information that controls the behavior of a system or device, which can instruct the system or device on how to process content data or perform specific tasks.

[0127] Specifically, the above classification of the received data into the first type of data and the second type of data may be associated with the classification of the content data and the instruction data. For example, the content data may be regarded as the second type of data, while the instruction data may be regarded as the above first type of data.

[0128] Alternatively, a portion of the more important data in the content data may be selected as the second type of data, while the remaining content data and instruction data may be selected as the first type of data.

[0129] For example, Fig. 8A As shown, the content buffer subunit and the instruction buffer subunit formed by the first data buffer unit 41a1 can be respectively referred to as "first content buffer subunit 41a11" and "first instruction buffer subunit 41a12". The content data and instruction data in the first received data are respectively referred to as "first content" and "first instruction".

[0130] Among them, the first content buffer subunit 41a11 uses a preset data management mechanism (for example, the first-in-first-out mechanism mentioned above) to control the orderly entry and exit of the first content to achieve temporary storage of the first content, and the first instruction buffer subunit 41a12 uses the same data management mechanism to control each first instruction to enter and leave in an orderly manner to achieve temporary storage of the first instruction.

[0131] like Figure 8B As shown, the content buffer subunit and the instruction buffer subunit formed by the second data buffer unit 41b1 can be respectively referred to as the second content buffer subunit 41b11 and the second instruction buffer subunit 41b12, which are respectively used for data buffering of the content data and the instruction data in the second received data. The content data and the instruction data in the second received data are respectively referred to as "second content" and "second instruction".

[0132] The second content buffer subunit 41b11 controls the orderly entry and exit of the second content using a preset data management mechanism (eg, the first-in-first-out mechanism mentioned above), while the second instruction buffer subunit 41b12 controls the orderly entry and exit of each second instruction using the same data management mechanism.

[0133] In other embodiments, adapted to the fact that each data buffer unit is divided into a content buffer sub-unit and an instruction buffer sub-unit, the above-mentioned cache encoding module and cache verification module can also be respectively set as corresponding sub-modules, which are used to perform data verification on the content data and instruction data during the buffering process.

[0134] The cache encoding module includes: a content cache encoding submodule and an instruction cache encoding submodule. The content cache encoding submodule is used to encode the content data before entering the content buffer subunit and generate corresponding content verification information; while the instruction cache encoding submodule is used to encode the instruction data before entering the instruction buffer subunit and generate corresponding instruction verification information.

[0135] The cache verification module includes: a content cache verification submodule and an instruction cache verification submodule, which are respectively used to determine the cache verification result of the content data after leaving the content buffer unit according to the content cache verification information, and to determine the cache verification result of the instruction data after leaving the instruction buffer unit according to the instruction cache verification information.

[0136] For example, please refer to Fig. 8A , the content cache encoding submodule and the instruction cache encoding submodule of the first cache encoding module 45a can be respectively referred to as "the first content cache encoding submodule 45a1" and "the first instruction cache encoding submodule 45a2". The content cache check submodule and the instruction cache check submodule of the first cache check module 46a can be respectively referred to as "the first content cache check submodule 46a1" and "the first instruction cache check submodule 46a2".

[0137] Similarly, please refer to Figure 8B When the second data buffer unit 41b1 also forms a content buffer sub-unit and an instruction buffer sub-unit, while the second cache encoding module 45b forms a content cache encoding sub-module and an instruction cache encoding sub-module, the second cache verification module 46b also forms a content cache verification sub-module and an instruction cache verification sub-module.

[0138] The content cache coding submodule and the instruction cache coding submodule of the second cache coding module 45b can be respectively referred to as the "second content cache coding submodule 45b1" and the "second instruction cache coding submodule 45b2". The content cache check submodule and the instruction cache check submodule of the second cache check module 46b can be respectively referred to as the "second content cache check submodule 46b1" and the "second instruction cache check submodule 46b2".

[0139] Preferably, based on the consideration that the chance of data errors occurring during the data buffering process is relatively small, the cache coding module and cache verification module described above may use a first verification mechanism based on the first coding type and having only error detection capability, so as to achieve the effect of reducing computing resource consumption and the amount of redundant information.

[0140] In order to integrate the verification results of the data verification mechanism set in one or more of the above implementations, timely and effectively report the data verification results during the data transmission process, such as Fig. 8A and Figure 8B As shown, the bus bridge may further include: a functional safety management module 44 for collecting and integrating verification results.

[0141] Among them, in the above-mentioned verification module, the "verification result" determined or outputted by it can be roughly divided into two types: data error exists and data error does not exist. In this article, they can be respectively referred to as "verification failure information" and "verification success information".

[0142] The functional safety management module 44 establishes communication interaction with all the verification modules (i.e., the first received data verification module, the second received data verification module, the first cache verification module, and the second cache verification module), and can receive the verification failure information generated by the verification modules. In other words, the verification failure information generated or formed by any verification module will be collected in the functional safety management module 44.

[0143] In addition, specific logical judgment rules can be preset in the functional safety management module 44, and such logical judgment rules can be used to screen and process all collected verification failure information, form corresponding error reporting instructions, and provide them to higher-level systems or devices so that they can promptly confirm data errors that occur in the bus bridge during data transmission, and make corresponding responses and actions to avoid the occurrence of safety accidents.

[0144] The specific form of the error reporting instruction can be set by the technician according to the actual needs, and is not specifically limited here. For example, it can be an IRQ interrupt signal (Interrupt Request) or a FIQ interrupt signal (Interrupt Request).

[0145] Specifically, as described in one or more of the above embodiments, the verification failure information generated by all verification modules may include: first verification failure information indicating that there is an error in the first type of received data; second verification failure information indicating that there is an error in the second type of received data; third verification failure information indicating that there is an error in the first received data after leaving the first data buffer unit; and fourth verification failure information indicating that there is an error in the second received data after leaving the second data buffer unit.

[0146] According to the actual needs, the first to fourth verification failure information can be set or assigned corresponding reporting priorities. Thus, the functional safety management module 44 can filter all received verification failure information according to the reporting priority, thereby forming a corresponding error reporting instruction.

[0147] For example, a lower reporting priority can be set for the second verification failure information relative to the first verification failure information, so that the functional safety management module 44 can appropriately wait for the error correction result of the second type of received data before deciding whether to trigger the corresponding interrupt signal.

[0148] Alternatively, a lower reporting priority can be set for the third verification failure information and the fourth verification failure information relative to the first verification failure information, so that when only data errors occur during data buffering, the functional safety management module 44 appropriately generates an IQR ordinary interrupt signal with a relatively slow response speed instead of a fast response FQR interrupt signal.

[0149] In order to fully illustrate the specific implementation method of the embodiment of the present application, the following takes the bus bridge applied between the APB (Advanced Peripheral Bus) bus and the AHB (Advanced High-performance Bus) bus as an example to exemplarily describe the specific working process of the bus bridge in the above embodiment.

[0150] Fig. 9A and Fig. 9B The figure shows a situation where a bus bridge is connected between two communication systems based on an APB bus and an AHB bus. A host (e.g., an ARM processor core) in the communication system of the AHB bus can achieve bidirectional communication with a slave (e.g., a serial communication interface or an analog-to-digital converter) in the communication system of the APB bus through the bus bridge.

[0151] 1) When the host sends a command to the slave, the specific working process of the bus bridge is:

[0152] The command sent by the host is the first data that meets the AHB bus transmission specification. Fig. 9A As shown, the first data may be composed of the following series of instructions: an instruction hwrite indicating a write operation, an instruction htrans indicating a data transmission type, an instruction hburst indicating a burst type of data transmission, an instruction hsize indicating a data width, an instruction hstrb indicating valid bytes in the data, an instruction haddr indicating a data transmission address, an instruction hwdata indicating written data content, an instruction hparity indicating a parity check result, and an instruction hecc indicating an ECC encoding result.

[0153] 1.1) Data verification process based on ECC encoding:

[0154] First, the instruction haddr indicating the data transmission address and the data content hwdata indicating the writing are sent to the ECC decoding unit 701, which performs ECC encoding operation after splicing to obtain the corresponding ECC encoding result ecc1_1.

[0155] Then, the ECC encoding result ecc1_1 obtained by the ECC decoding unit 701 is provided to the comparator 702, and the instruction hecc carried in the first data is also provided to the comparator 702. The comparator 702 performs error detection and error correction on the instruction haddr and the data content hwdata according to the comparison result between the instruction hecc and the ECC encoding result ecc1_1, and provides the corresponding verification result to the functional safety management module 900.

[0156] 1.2) Data verification process based on parity check:

[0157] First, the instruction hwrite indicating a write operation, the instruction htrans indicating a data transmission type, the instruction hburst indicating a burst type of data transmission, the instruction hsize indicating a data width, and the instruction hstrb indicating a valid byte in the data are sent to the parity calculation unit 703, which performs parity calculation after splicing to obtain a corresponding parity calculation result parity1_1.

[0158] Then, the parity calculation result parity1_1 obtained by the parity calculation unit 703 is provided to the comparator 704, and the instruction hparity carried in the first data is also provided to the comparator 704. The comparator 704 performs error detection on the instruction hwrite, the instruction htrans, the instruction hburst, the instruction hsize and the instruction hstrb according to the comparison result of the instruction hparity and the parity calculation result parity1_1, and provides the result of the data verification to the functional safety management module 900.

[0159] 1.3) Data buffering process:

[0160] The bus bridge uses two relatively independent data buffer units, which can be respectively referred to as a content data buffer unit 705 and an instruction data buffer unit 706 .

[0161] On the one hand, the data content hwdata indicating writing is provided to the content data buffer unit 705. The content data buffer unit 705 implements data buffering with a "first in, first out" (FIFO) data management mechanism.

[0162] On the other hand, the instruction hwrite indicating a write operation, the instruction htrans indicating a data transmission type, the instruction hburst indicating a burst type of data transmission, the instruction hsize indicating a data width, the instruction hstrb indicating a valid byte in the data, and the instruction haddr indicating a data transmission address are provided to the instruction data buffer unit 706. The instruction data buffer unit 706 also uses a "first in, first out" (FIFO) data management mechanism to implement data buffering.

[0163] 1.4) Data verification during data buffering:

[0164] Based on the above two independent content data buffering units 705 and instruction data buffering units 706, the data verification of the data buffering process can also be roughly divided into two parts, which are described below respectively:

[0165] For the data buffering process of the content data buffering unit 705:

[0166] First, before entering the content data buffer unit 705, the data content hwdata indicating writing is also provided to the parity calculation unit 707 for parity calculation to obtain the parity calculation result parity1_2. The parity calculation result parity1_2 is provided to the comparator 709 through the check data buffer unit 708.

[0167] Subsequently, the data content hwdata leaving the content data buffer unit 705 is provided to another parity calculation unit 710 for parity calculation to obtain a parity calculation result parity1_3 which is also provided to the comparator 709 .

[0168] Finally, the comparator 709 performs error detection on the data content hwdata based on the comparison result of the parity calculation result parity1_2 and the parity calculation result parity1_3, and provides the check result (i.e., whether there is an error in the data content hwdata leaving the content data buffer unit) to the functional safety management module 900.

[0169] For the data buffering process of the instruction data buffer unit 706:

[0170] First, before entering the instruction data buffer unit 706, the instruction hwrite indicating the write operation, the instruction htrans indicating the data transmission type, the instruction hburst indicating the burst type of data transmission, the instruction hsize indicating the data width, the instruction hstrb indicating the valid bytes in the data, and the instruction haddr indicating the data transmission address are all provided to the parity calculation unit 711, which performs parity calculation after splicing to obtain the corresponding parity calculation result parity1_4. The parity calculation result parity1_4 is provided to the comparator 713 through another check data buffer unit 712.

[0171] Subsequently, the instructions hwrite, htrans, hburst, hsize, hstrb and haddr that leave the instruction data buffer unit 706 are provided to another parity calculation unit 714. The parity calculation unit 714 performs parity calculation after splicing to obtain the corresponding parity calculation result parity1_5. The parity calculation result parity1_5 is also provided to the comparator 713.

[0172] Finally, the comparator 713 performs error detection according to the parity calculation results parity1_4 and parity calculation results parity1_5 , and provides the check result to the functional safety management module 900 .

[0173] 1.5) Protocol Packaging Process:

[0174] Through the temporary storage of data content by the content data buffer unit 705 and the temporary storage of different instructions by the instruction data buffer unit 706, the transmission speed matching between data content and different instructions can be achieved, so that the data content hwdata, instruction hwrite, instruction htrans, instruction hburst, instruction hsize, instruction hstrb and instruction haddr of the same received data can be simultaneously provided to the protocol packet unit 715 for one or more data processing (for example, adding necessary header information, control characters, etc.), thereby generating second data that complies with the APB bus transmission specification.

[0175] The second data may be composed of the following instructions: pwdata indicating the data content to be transmitted, paddr indicating the transmission address, psel indicating the slave to which the data is to be transmitted, penable indicating the transmission enable state, and pwrite indicating a write operation.

[0176] For the second data formed by the protocol packet unit 715, the data content pwdata and the instruction paddr which record relatively important information can be further provided to the ECC encoding unit 716. After being spliced ​​and ECC encoded by the ECC encoding unit 716, the corresponding ECC encoding result is obtained. The ECC encoding result is marked as the instruction pecc and is output along with the second data as part of the verification information.

[0177] The remaining instructions psel, penable and pwrite in the second data can be provided to the parity calculation unit 717. After being spliced ​​and parity calculated by the parity calculation unit 717, the corresponding parity calculation result is obtained. The parity calculation result is marked as instruction pparity and is output along with the second data as part of the check information.

[0178] Thus, the second data carrying the verification information (ie, the instruction pecc and the instruction pparity) can reach a specific target slave through the communication system based on the APB bus.

[0179] 2) When the slave device feeds back to the host device, the specific working process of the bus bridge is:

[0180] The feedback data from the slave is the third data that meets the APB bus transmission specification. Fig. 9B As shown, the third data can be composed of the following series of instructions: prdata indicating the data content read from the slave, predy indicating whether the slave is ready for data transmission, pslverr indicating whether an error occurs in the slave, precc indicating the encoding result of ECC encoding, and prparity indicating the result of parity calculation.

[0181] 2.1) Data verification process based on ECC encoding:

[0182] First, the instruction prdata indicating the data content to be read from the slave is sent to the ECC decoding unit 801, and the ECC decoding unit 801 performs an ECC encoding operation to obtain a corresponding ECC encoding result ecc2_1.

[0183] Secondly, while the ECC encoding result ecc2_1 obtained by the ECC decoding unit 801 is provided to the comparator 802, the instruction precc carried in the third data is also provided to the comparator 802. The comparator 802 performs error detection and error correction on the data content prdata according to the comparison result between the ECC encoding result ecc2_1 and the instruction precc, and provides the verification result to the functional safety management module 900.

[0184] 2.2) Data verification process based on parity check:

[0185] First, the instruction pready indicating whether the slave is ready for data transmission and the instruction pslverr indicating whether an error occurs in the slave are sent to the parity calculation unit 803, which performs parity calculation after splicing to obtain the corresponding parity calculation result parity2_1.

[0186] Secondly, the parity calculation result parity2_1 obtained by the parity calculation unit 803 is provided to the comparator 804, and the instruction prparity carried in the third data is also provided to the comparator 804. The comparator 804 performs error detection on the instruction pready and the instruction pslverr according to the parity calculation result parity2_1 and the instruction prparity, and provides the detection result to the functional safety management module 900.

[0187] 2.3) Data buffering process:

[0188] The bus bridge uses two independent content data buffer units 805 and instruction data buffer units 806 to respectively buffer different parts of the third data.

[0189] On the one hand, the data content prdata indicating the data read from the slave is provided to the content data buffer unit 805. The content data buffer unit 805 implements data buffering with a "first in, first out" (FIFO) data management mechanism.

[0190] On the other hand, the instruction pready indicating whether the slave is ready for data transmission and the instruction pslverr indicating whether an error occurs in the slave are provided to the instruction data buffer unit 806. The instruction data buffer unit 806 also uses a "first in, first out" (FIFO) data management mechanism to implement data buffering.

[0191] 2.4) Data verification during data buffering:

[0192] Based on the above two independent content data buffering units 805 and instruction data buffering units 806, the data verification of the data buffering process can also be roughly divided into two parts, which are described below respectively:

[0193] For the data buffering process of the content data buffering unit 805:

[0194] First, before entering the content data buffer unit 805, the data content prdata is also provided to the parity calculation unit 807 for parity calculation to obtain the parity calculation result parity2_2. The parity calculation result parity2_2 is provided to the comparator 809 through the check data buffer unit 808.

[0195] Subsequently, the data content prdata leaving the content data buffer unit 805 is provided to another parity calculation unit 810 for parity calculation to obtain a parity calculation result parity2_3 which is also provided to the comparator 809 .

[0196] Finally, the comparator 809 performs error detection on the data content prdata according to the parity calculation results parity2_2 and parity calculation results parity2_3, and provides the check result to the functional safety management module 900.

[0197] For the data buffering process of the instruction data buffer unit 806:

[0198] First, before entering the instruction data buffer unit 806, the instruction pready and the instruction pslverr are both provided to the parity calculation unit 811, which performs parity calculation after splicing to obtain the corresponding parity calculation result parity2_4. The parity calculation result parity2_4 is provided to the comparator 813 through another check data buffer unit 812.

[0199] Subsequently, the instruction pready and the instruction pslverr leaving the instruction data buffer unit 806 are provided to another parity calculation unit 814. The parity calculation unit 814 performs parity calculation after splicing to obtain the corresponding parity calculation result parity2_5. The parity calculation result parity2_5 is also provided to the comparator 813.

[0200] Finally, the comparator 813 performs error detection according to the parity calculation results parity2_4 and parity calculation results parity2_5 , and provides the check result to the functional safety management module 900 .

[0201] 2.5) The process of generating verification information:

[0202] The data content prdata leaving the content data buffer unit 805 is converted into data content hrdata that complies with the AHB bus transmission specification. In addition, the data content hrdata can be further provided to the ECC encoding unit 816. After being spliced ​​and ECC encoded by the ECC encoding unit 815, the corresponding ECC encoding result is obtained. The ECC encoding result is marked as instruction hrecc as part of the verification information.

[0203] The instruction predy and instruction pslverr leaving the instruction data buffer unit 806 are also converted into the instruction hresp and instruction hready respectively in accordance with the AHB bus transmission specification. In addition, the instruction hresp and instruction hready are provided to the parity calculation unit 816. After being spliced ​​and parity calculated by the parity calculation unit 816, the corresponding parity calculation result is obtained. The parity calculation result is marked as hrparity as another part of the verification information.

[0204] Thus, the fourth data obtained by the bus bridge conversion conforms to the AHB bus transmission specification and carries the verification information, which can reach the corresponding host through the communication system based on the AHB bus.

[0205] 3) Processing of functional safety management module:

[0206] As described above, the functional safety management module 900 may receive verification results generated by multiple different comparators. The functional safety management module 900 may select and use any appropriate type of judgment rule according to the actual needs, perform logical judgment on the verification results generated by these different comparators and generate corresponding abnormal instructions (for example, interrupt signals), so that the chip actively and quickly responds to the occurrence of data transmission errors.

[0207] For example, the functional safety management module 900 can adopt a "one-vote veto" judgment rule. As long as any comparator fails the verification, it will be directly marked as an error and an interrupt signal will be provided, so that the computer system will execute a series of measures such as stopping the operation of the corresponding slave machine and not trusting the data from the slave machine.

[0208] The functional safety management module 900 may also adopt a "differentiation mark" judgment rule to mark a portion of the data as a specific error based on the different severity levels of verification failures in different comparators, while maintaining the basic operation of the computer system.

[0209] Finally, it should be noted that: for the convenience of display, the manual is attached Fig. 9A and Fig. 9B In the figure, a plurality of units with the same function are shown. However, it can be understood by those skilled in the art that the units with the same function can be combined into one component or distributed in multiple independent components.

[0210] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A bus bridge, It is characterized in that include: The received data verification module is configured to: determine a received data verification result according to the received data verification information carried by the received data; The data specification conversion module is configured to: convert the received data that complies with the initial data transmission specification into output data that complies with the target data transmission specification; an output data encoding module, configured to: encode at least a portion of the output data to generate corresponding output data verification information, so that the output data carries the corresponding output data verification information; The functional safety management module is configured to: process the reception verification result provided by the reception data verification module according to a preset rule to form a corresponding error reporting instruction; The bus bridge is connected between a first bus and a second bus; the first bus and the second bus have different data transmission specifications; The data specification conversion module forms a first conversion path and a second conversion path; The first conversion path is configured to: convert first received data from the first bus into first output data that complies with a data transmission specification of the second bus; The second conversion path is configured to: convert second received data from the second bus into second output data that complies with a data transmission specification of the first bus; The received data verification module includes: a first received data verification module arranged in the first conversion path and a second received data verification module arranged in the second conversion path; Wherein, the first received data verification module is configured to: determine the reception verification result of the first received data according to the first received data verification information carried by the first received data; The second received data verification module is configured to: determine a reception verification result of the second received data according to the second received data verification information carried by the second received data; The output data encoding module comprises: a first output data encoding module arranged in the first conversion path and a second output data encoding module arranged in the second conversion path; The first output data encoding module is configured to: encode at least a portion of the first output data to generate corresponding first output data verification information, so that the first output data carries the corresponding first output data verification information; The second output data encoding module is configured to: encode at least a portion of the second output data, and generate corresponding second output data verification information, so that the second output data carries the corresponding second output data verification information.

2. The bus bridge according to claim 1, It is characterized in that The received data includes: first type received data and second type received data; the received data verification information includes: first type received data verification information and second type received data verification information; The received data verification module comprises: A first type verification unit is configured to: determine whether there is an error in the first type received data according to the first type received data verification information; The second type of verification unit; the second type of verification unit includes: an error detection subunit and an error correction subunit; The error detection subunit is configured to: determine whether the second type of received data has an error according to the second type of received data verification information; The error correction subunit is configured to: in response to a situation where the second type of received data has an error, correct the second type of received data by using the second type of received data verification information.

3. The bus bridge according to claim 2, It is characterized in that The first type verification unit includes: A first type encoder is configured to: perform a preset first type encoding on the first type received data to obtain a corresponding first type encoding result; A first type comparator is configured to compare the first type received data verification information with the first type encoding result, and In response to a situation where the first-type received data verification information is inconsistent with the first-type encoding result, it is determined that the first-type received data has an error.

4. The bus bridge according to claim 2, It is characterized in that The error detection subunit comprises: The second type encoder is configured to: perform a preset second type encoding on the second type received data to obtain a corresponding second type encoding result; The second type comparator is configured to: in response to a situation where the second type received data verification information is inconsistent with the second type encoding result, determine that the second type received data has an error.

5. The bus bridge according to claim 2, It is characterized in that The reception verification result includes: first verification failure information that the first type of received data has errors and second verification failure information that the second type of received data has errors; The functional safety management module is specifically configured to: receive the first verification failure information and the second verification failure information, and According to a preset rule, the priority of the first verification failure information and the second verification failure information is determined to form the error reporting instruction.

6. The bus bridge according to claim 1, It is characterized in that The output data includes: first type output data and second type output data; the output data verification information includes: first type output data verification information and second type output data verification information The output data encoding module comprises: A first type encoding unit is configured to: perform a preset first type encoding on the first type output data to generate corresponding first type output data verification information; The second type encoding unit is configured to: perform a preset second type encoding on the second type output data to generate corresponding second type output data verification information.

7. The bus bridge according to claim 1, It is characterized in that At least one of the first conversion path and the second conversion path is provided with a data buffer unit; The data buffer unit is configured to control each piece of received data to enter and leave the data buffer unit in an orderly manner according to a preset data management mechanism.

8. The bus bridge according to claim 7, It is characterized in that Also includes: The cache encoding module is configured to: encode the received data before entering the data buffer unit and generate corresponding cache verification information The cache verification module is configured to determine a cache verification result of the received data after leaving the data buffer unit according to the cache verification information.

9. The bus bridge according to claim 8, It is characterized in that The data buffer unit comprises: The first data buffer unit provided in the first conversion path is configured to: control each of the first received data to enter and leave the first data buffer unit in an orderly manner by using the data management mechanism; The second data buffer unit provided in the second conversion path is configured to: control each of the second received data to enter and leave the second data buffer unit in an orderly manner by using the data management mechanism; The cache encoding module includes: A first cache encoding module is configured to: encode the first received data before entering the first data buffer unit to generate corresponding first cache verification information; A second cache encoding module is configured to: encode the second received data before entering the second data buffer unit to generate corresponding second cache verification information; The cache verification module includes: A first cache verification module is configured to: determine a cache verification result of the first received data after leaving the first data buffer unit according to the first cache verification information; The second cache verification module is configured to determine a cache verification result of the second received data after leaving the second data buffer unit according to the second cache verification information.

10. The bus bridge according to claim 8, It is characterized in that The received data includes: content data and instruction data; The data buffer unit comprises: The content buffer subunit is configured to: control the content data in each piece of received data to enter and leave the content buffer subunit in an orderly manner according to a preset data management mechanism; The instruction buffer subunit is configured to control the instruction data in each received data to enter and leave the instruction buffer subunit in an orderly manner according to a preset data management mechanism.

11. The bus bridge according to claim 10, It is characterized in that The cache encoding module includes: The content cache encoding submodule is configured to: encode the content data before entering the content buffer subunit to generate corresponding content cache verification information; The instruction cache encoding submodule is configured to: encode the instruction data before entering the instruction buffer subunit to generate corresponding instruction cache verification information; The cache verification module includes: The content cache verification submodule is configured to: determine a cache verification result of the content data after leaving the content buffer subunit according to the content cache verification information; The instruction cache check submodule is configured to determine the cache check result of the instruction data after leaving the instruction buffer subunit according to the instruction cache check information.

12. The bus bridge according to claim 8, It is characterized in that The cache verification module includes: A verification information buffer unit, wherein the verification information buffer unit is configured to: control each cache verification information generated by the cache encoding module to enter and leave the verification information buffer unit in an orderly manner according to a preset data management mechanism; A check information encoder is configured to: encode the received data after leaving the data buffer unit to obtain a corresponding encoding result; A check information comparator is configured to compare the cached check information leaving the check information buffer unit with the encoding result, and In response to a situation where the cache verification information is inconsistent with the encoding result, it is determined that the received data after leaving the data buffer unit has an error.

13. The bus bridge according to claim 8, It is characterized in that The functional safety management module is specifically configured to: receive the reception verification result from the reception data verification module and the cache verification result from the cache verification module, and According to a preset rule, the priority of the received verification result and the cache verification result is determined to form the error reporting instruction.

14. The bus bridge according to any one of claims 1 to 12, It is characterized in that At least one of the first conversion path and the second conversion path is further provided with a protocol packetizing unit; The protocol packet assembly unit is configured to: perform data encapsulation processing on the received data according to the target data transmission specification to form the output data.

15. A chip, It is characterized in that include: at least one first device; each of the first devices is connected to a first bus; at least one second device; each of the second devices is connected to the second bus; The bus bridge as claimed in any one of claims 1 to 14; the bus bridge is bridged between the first bus and the second bus to establish a communication connection between the first device and the second device.

16. A laser radar, It is characterized in that include: The chip as claimed in claim 15.