Chip error collection and error processing method, device and storage medium

CN115794472BActive Publication Date: 2026-09-22SHENZHEN XIHUA TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211607046.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2026-09-22
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

其中,芯片在使用过程中,也会出现各种各样的故障,目前来看,在故障发生时,往往会进行系统提示,在用户注意到故障时,往往需要手动进行修复,从而降低了芯片的智能性,因此,如何在芯片出现运行错误时,提升芯片的智能性的问题亟待解决

Benefits of technology

[0019]可以看出,本申请实施例中所描述的芯片的错误收集及错误处理方法、装置及存储介质,应用于芯片,芯片包括错误报告模块,错误报告模块包括多个独立通道,每一独立通道对应一个存储模块,该存储模块包括纠错代码模块,在芯片运行的过程中,通过错误报告模块获取芯片的目标错误信息,确定目标错误信息对应的目标错误类型,确定与目标错误类型对应的目标独立通道,其中,不同的错误类型对应不同的独立通道,调用目标独立通道对应的目标存储模块中的目标纠错代码模块,通过目标纠错代码模块对目标错误信息进行纠错处理,得到处理结果信息,即错误报告模块可以包括多个独立通道,每一通道对应一个存储模块,每一个通道有独立的配置和错误状态信息,通过多个独立通道受理多种错误信息,可以将错误信息进行分类,基于不同的分类提供相应的处理策略,能够在芯片出现运行错误时,提升芯片的智能性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794472B_ABST
    Figure CN115794472B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a chip error collection and error processing method and device and a storage medium, which are applied to a chip. The chip comprises an error reporting module, the error reporting module comprises a plurality of independent channels, each independent channel corresponds to a storage module, the storage module comprises an error correction code module, and the method comprises the following steps: obtaining target error information of the chip through the error reporting module in the process of running of the chip; determining a target error type corresponding to the target error information; determining a target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels; calling a target error correction code module in a target storage module corresponding to the target independent channel; and performing error correction processing on the target error information through the target error correction code module to obtain processing result information. The embodiments of the present application can improve the intelligence of the chip when the chip has a running error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of chip technology, specifically to a chip error collection and error handling method, apparatus, and storage medium. Background Technology

[0002] With the rapid development of electronic technology, new energy vehicles are gradually being accepted by the public and are becoming a future development trend. New energy vehicles can integrate various chips to enhance their intelligence. However, these chips can experience various malfunctions during use. Currently, when a malfunction occurs, the system often provides a warning, but users often need to manually repair it after noticing the fault, thus reducing the chip's intelligence. Therefore, how to improve the intelligence of chips when operational errors occur is an urgent problem to be solved. Summary of the Invention

[0003] This application provides a method, apparatus, and storage medium for collecting and handling errors in a chip, which can improve the intelligence of the chip when operational errors occur.

[0004] In a first aspect, embodiments of this application provide a method for collecting and handling errors in a chip, applied to a chip, the chip including an error reporting module, the error reporting module including multiple independent channels, each independent channel corresponding to a storage module, the storage module including an error correction code module, the method including:

[0005] During the operation of the chip, the target error information of the chip is obtained through the error reporting module;

[0006] Determine the target error type corresponding to the target error information;

[0007] Determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels;

[0008] Call the target error correction code module in the target storage module corresponding to the target independent channel;

[0009] The target error information is corrected by the target error correction code module to obtain the processing result information.

[0010] Secondly, embodiments of this application provide a chip error collection and error handling apparatus, applied to a chip. The chip includes an error reporting module, which includes multiple independent channels. Each independent channel corresponds to a storage module, which includes an error correction code module. The apparatus includes: an acquisition unit, a determination unit, a recall unit, and an error correction unit.

[0011] The acquisition unit is used to acquire the target error information of the chip through the error reporting module during the operation of the chip;

[0012] The determining unit is used to determine the target error type corresponding to the target error information; and to determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels;

[0013] The calling unit is used to call the target error correction code module in the target storage module corresponding to the target independent channel;

[0014] The error correction unit is used to perform error correction processing on the target error information through the target error correction code module to obtain processing result information.

[0015] Thirdly, embodiments of this application provide a chip including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the first aspect of embodiments of this application.

[0016] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the first aspect of embodiments of this application.

[0017] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of embodiments of this application. The computer program product may be a software installation package.

[0018] Implementing the embodiments of this application has the following beneficial effects:

[0019] As can be seen, the chip error collection and error handling method, apparatus, and storage medium described in the embodiments of this application are applied to a chip. The chip includes an error reporting module, which includes multiple independent channels. Each independent channel corresponds to a storage module, and the storage module includes an error correction code module. During chip operation, the error reporting module obtains the target error information of the chip, determines the target error type corresponding to the target error information, and determines the target independent channel corresponding to the target error type. Different error types correspond to different independent channels. The target error correction code module in the target storage module corresponding to the target independent channel is called, and the target error information is processed by the target error correction code module to obtain the processing result information. That is, the error reporting module can include multiple independent channels, each channel corresponds to a storage module, and each channel has independent configuration and error status information. By accepting multiple types of error information through multiple independent channels, the error information can be classified, and corresponding processing strategies can be provided based on different classifications. This can improve the intelligence of the chip when an operational error occurs. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of the structure of a chip provided in an embodiment of this application;

[0022] Figure 2 This is a flowchart illustrating a chip error collection and error handling method provided in an embodiment of this application;

[0023] Figure 3 This is a flowchart illustrating another chip error collection and error handling method provided in an embodiment of this application;

[0024] Figure 4 This is a schematic diagram of the structure of a chip provided in an embodiment of this application;

[0025] Figure 5 This is a block diagram of the functional units of a chip error collection and error handling device provided in an embodiment of this application. Detailed Implementation

[0026] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that comprises a series of steps or units is not limited to the listed steps or units, but in one possible example includes steps or units not listed, or in one possible example includes other steps or units inherent to these processes, methods, products, or apparatuses.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0029] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. The chip includes an error reporting module, which includes multiple independent channels. Each independent channel corresponds to a storage module, and the storage module includes an error correction code module.

[0030] In this embodiment, the error reporting module (ERM) can be used to collect and report the decoding part of the error correcting code (ECC) module of the chip storage module. After the error information is collected by the ERM module, a corresponding interrupt notification is generated according to the configuration, and it can also be sent to the system's fault collection and control unit (FCCU).

[0031] The error reporting module may include multiple independent channels, each corresponding to a storage module. The storage module includes an error correction code module, which may include an error correction program, through which error correction functionality can be achieved.

[0032] In this embodiment of the application, all registers of the ERM module support at least one of the following functions: administrator mode access, write data bit width is only supported to 32 bits, user mode access, non-32-bit access, or a bus error will be returned if an invalid address is accessed.

[0033] In this embodiment, the fault collection and control unit (FCCU) provides a hardware interface to collect faults and place the device in a safe state when a fault is detected. The FCCU's collection and control operations do not require CPU intervention; instead, it utilizes an internal state machine for fault collection and processing.

[0034] Please see Figure 2 , Figure 2 This is a flowchart illustrating a chip error collection and error handling method provided in an embodiment of this application. As shown in the figure, it is applied to... Figure 1 The chip shown includes an error reporting module, which comprises multiple independent channels, each corresponding to a storage module. The storage module includes an error correction code module. The method includes:

[0035] 201. During the operation of the chip, the target error information of the chip is obtained through the error reporting module.

[0036] In this embodiment, error information can be used to describe information generated when the chip malfunctions (such as a fault). For example, the error information can be hardware fault information or software fault information. Specifically, during chip operation, the target error information of the chip can be obtained through an error reporting module. The target error information may include one or more error messages.

[0037] 202. Determine the target error type corresponding to the target error information.

[0038] In this embodiment, different error messages can correspond to different error types. Error types can be predefined or defaulted to by the system, and different error messages can include different keywords, with different keywords corresponding to different error types.

[0039] Some error messages can be corrected, such as single-bit errors reported by ECC; others cannot be corrected, such as multi-bit errors detected by ECC.

[0040] In the embodiments of this application, the storage module may include at least one of the following: SRAML, SRAMU, FTFC command operation storage module, FlashAXBS bus storage module, etc., which are not limited here.

[0041] In practice, different error types can use different independent channels to select the corresponding storage modules for error correction. The error types supported by each storage module are listed below:

[0042] Optionally, step 202 above, determining the target error type corresponding to the target error information, may include the following steps:

[0043] A21. Extract keywords from the target error information to obtain target keywords;

[0044] A22. Determine the target error type corresponding to the target keyword according to the preset mapping relationship between keywords and error types.

[0045] In this embodiment of the application, the chip can pre-store a mapping relationship between preset keywords and error types. In specific implementation, the target error information can be extracted to obtain the target keyword, and then the target error type corresponding to the target keyword can be determined according to the preset mapping relationship between keywords and error types.

[0046] 203. Determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels.

[0047] In this embodiment of the application, different error types can correspond to different independent channels. That is, a preset mapping relationship between error types and independent channels can be set in advance. Based on this mapping relationship, the target independent channel corresponding to the target error type can be determined.

[0048] In this embodiment, different storage modules support different error types.

[0049] 204. Call the target error correction code module in the target storage module corresponding to the target independent channel.

[0050] In specific implementation, in the embodiments of this application, different independent channels correspond to different storage modules, and each storage module stores the corresponding error correction code program.

[0051] 205. The target error information is corrected by the target error correction code module to obtain the processing result information.

[0052] In this embodiment of the application, the error correction code module can store the error correction program. Then, the corresponding error correction code can be called through the target error correction code module to perform error correction processing on the target error information and obtain the processing result information, that is, the information after error correction processing can be obtained.

[0053] In this embodiment of the application, when there are multiple error messages, after determining the error type of each error message, the multiple error messages can be assigned to the corresponding independent channels. The error correction code module in the corresponding storage module can then call the corresponding error correction program to perform error correction processing, thereby improving error correction efficiency.

[0054] In this embodiment of the application, the ERM module may include multiple independent channels, each channel corresponding to a storage module, and each channel has independent configuration and error status information. By accepting various error information through multiple independent channels, the error information can be classified, and corresponding processing strategies can be provided based on different classifications.

[0055] In this embodiment, the chip may further include a CPU. The freeze mode can be requested by the CPU setting the HALT bit of the MCR register or when the chip enters debug mode. In both cases, the MCR.FRZ bit is 1 and FLEXCAN is not in low-power mode. When FLEXCAN accesses a memory space with an uncorrectable error during internal processes and the MECR.NCEFAFRZ bit is 1, FLEXCAN will automatically set the HALT and FRZ bits to enter freeze mode. Specifically, whether FLEXCAN successfully enters freeze mode can be determined by whether the MCR.FRZACK bit is set. When both the request and feedback conditions are met, the CPU considers FLEXCAN to have entered freeze mode.

[0056] Optionally, step 205 above, which involves correcting the target error information using the target error correction code module to obtain the processing result information, may include the following steps:

[0057] 51. Determine the target flag bit corresponding to the target error information;

[0058] 52. Detect whether the target error information can be corrected based on the target flag bit;

[0059] 53. When the target error information can be corrected, determine the target register configuration parameters corresponding to the target error type;

[0060] 54. Perform error correction processing on the target error information according to the target register configuration parameters to obtain the processing result information.

[0061] In this embodiment, the error information may include a flag bit, which indicates whether the error can be corrected. For example, 0 indicates that it cannot be corrected, and 1 indicates that it can be corrected. The target register configuration parameters may include at least one of the following: target register identifier and the number of times a target correctable error has occurred.

[0062] Specifically, the target flag corresponding to the target error information can be determined, and then the target error information can be checked based on the target flag. If the target error information can be corrected, the target register configuration parameters corresponding to the target error type can be determined. Specifically, a preset mapping relationship between error types and register configuration parameters can be stored in advance. Then, the target register configuration parameters corresponding to the target error type can be determined based on the mapping relationship. Finally, the target error information can be corrected based on the target register configuration parameters to obtain the processing result information.

[0063] Optionally, the target register configuration parameters include: target register identifier and the number of times the target correctable error occurs; step 54 above, which performs error correction processing on the target error information according to the target register configuration parameters to obtain the processing result information, may include the following steps:

[0064] 541. Detect whether the number of times the target can correct errors has reached a preset number;

[0065] 542. When the number of correctable errors of the target does not reach the preset number, the target register corresponding to the target register identifier is called. Different register identifiers are used to store different error correction programs.

[0066] 543. The target error correction program is called through the target register to perform error correction processing on the target error information, and the processing result information is obtained;

[0067] 544. When the number of times the target correctable error occurs reaches the preset number, the corresponding counter is cleared, and the step of calling the target register corresponding to the target register identifier is executed. Different register identifiers are used to store different error correction programs. The target error correction program is called through the target register to perform error correction processing on the target error information to obtain the processing result information.

[0068] In this embodiment of the application, the preset number of times can be preset or set by system default.

[0069] Specifically, it can detect whether the number of correctable errors occurring in the target has reached a preset number. If the number of correctable errors has not reached the preset number, the target register corresponding to the target register identifier can be called. Different register identifiers are used to store different error correction programs. Then, the target error correction program is called through the target register to perform error correction processing on the target error information and obtain the processing result information. When the number of correctable errors occurring in the target has reached the preset number, the corresponding counter is cleared, and the steps of calling the target register corresponding to the target register identifier, different register identifiers are used to store different error correction programs, and calling the target error correction program through the target register to perform error correction processing on the target error information and obtain the processing result information are executed.

[0070] Optionally, the following steps may also be included:

[0071] A1. Initialize the data in the target storage module to store the corresponding target error correction program;

[0072] A2. During the initialization process of the target storage module, if the error reporting module detects a target error event, it uses an interrupt to notify the target error event so as to suspend the processing of the target error event.

[0073] A3. When the initialization process is completed, resume processing the target error event.

[0074] In this embodiment of the application, the data in the target storage module is initialized to store the corresponding target error correction program. During the initialization process of the target storage module, if the error reporting module detects a target error event, an interrupt is used to notify the target error event to suspend the processing of the target error event. When the initialization process is completed, the processing of the target error event is resumed.

[0075] In the specific implementation, each channel of ERM can initialize the data in memory before starting the error interrupt notification in order to store the corresponding ECC code. During the memory initialization process, if ERM acquires any error event, it needs to clear the corresponding ERM_SR[SBCn] and ERM_SR[NCEn] to clear the event record, and then configure the registers ERM_CR0[ESCIEn] and ERM_CR0[ENCIEn] to enable interrupt notification.

[0076] Optionally, the following steps may also be included:

[0077] B1. When the target error information cannot be corrected, report the target error information;

[0078] B2. Determine the target fault information corresponding to the target error information;

[0079] B3. Determine the target early warning parameters based on the target fault information;

[0080] B4. Perform early warning operations based on the target early warning parameters.

[0081] In this embodiment, the fault information may include at least one of the following: fault type, fault cause, fault location, fault level, etc., which are not limited here. The warning parameters may include at least one of the following: warning method, control parameters corresponding to the warning method, etc., which are not limited here. The control parameters corresponding to the warning method are used to control the warning effect.

[0082] In practice, the warning method may include at least one of the following: voice warning, vibration warning, light warning, etc., without limitation.

[0083] In this embodiment, when the target error information cannot be corrected, the target error information can be reported. Alternatively, the target fault information corresponding to the target error information can be determined according to the preset mapping relationship between error information and fault information. Then, the target warning parameter corresponding to the target fault information can be determined according to the preset mapping relationship between fault information and warning parameters. Finally, a warning operation can be performed based on the target warning parameter.

[0084] Optionally, step 202 above, determining the target error type corresponding to the target error information, may include the following steps:

[0085] B21. Obtain the target source identifier of the target error information;

[0086] B22. According to the preset mapping relationship between source identifiers and error types, determine at least one error type corresponding to the target source identifier, wherein the target error type is one of the at least one error types;

[0087] This may also include the following steps:

[0088] B1. Determine the target priority order corresponding to the at least one error type;

[0089] B2. According to the target priority order, the target error information is sent to the corresponding independent channel to call the error correction code module in the corresponding storage module to perform error correction processing on the target error information;

[0090] B3. If the error correction code module in any storage module successfully corrects the target error information, the target error information will no longer be sent to the next independent channel. Alternatively, if the error correction code module in the last storage module completes the error correction process for the target error information, the target error information will also no longer be sent to the next independent channel.

[0091] In this embodiment, different modules correspond to different identifiers, and different modules generate different error messages. In specific implementation, a preset mapping relationship between source identifiers and error types can be stored in advance. The target source identifier of the target error information can be obtained, and then at least one error type corresponding to the target source identifier can be determined according to the preset mapping relationship between source identifiers and error types. The target error type is one of the at least one error type.

[0092] In practice, at least one error type can be identified as having a target priority order. Then, the target error information is sent to the corresponding independent channel according to the target priority order to call the error correction code module in the corresponding storage module to perform error correction processing on the target error information. If the error correction code module in any storage module successfully corrects the target error information, the target error information will not be sent to the next independent channel. Alternatively, if the error correction code module in the last storage module completes the error correction processing on the target error information, the target error information will not be sent to the next independent channel.

[0093] As can be seen, the chip error collection and error handling method described in the embodiments of this application is applied to a chip. The chip includes an error reporting module, which includes multiple independent channels. Each independent channel corresponds to a storage module, which includes an error correction code module. During chip operation, the error reporting module obtains the target error information of the chip, determines the target error type corresponding to the target error information, and determines the target independent channel corresponding to the target error type. Different error types correspond to different independent channels. The target error correction code module in the target storage module corresponding to the target independent channel is called, and the target error information is corrected by the target error correction code module to obtain the processing result information. That is, the error reporting module can include multiple independent channels, each channel corresponds to a storage module, and each channel has independent configuration and error status information. By accepting multiple types of error information through multiple independent channels, the error information can be classified, and corresponding processing strategies can be provided based on different classifications. This can improve the intelligence of the chip when a fault occurs.

[0094] With the above Figure 2 The illustrated embodiments are consistent with those shown in the example. Please refer to [link / reference]. Figure 3 , Figure 3 This is a flowchart illustrating a chip error collection and handling method provided in an embodiment of this application. Applied to a chip, the chip includes an error reporting module with multiple independent channels. Each independent channel corresponds to a storage module, which includes an error correction code module. The chip error collection and handling method includes:

[0095] 301. During the operation of the chip, the target error information of the chip is obtained through the error reporting module.

[0096] 302. Extract keywords from the target error information to obtain target keywords.

[0097] 303. Determine the target error type corresponding to the target keyword according to the preset mapping relationship between keywords and error types.

[0098] 304. Determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels.

[0099] 305. Call the target error correction code module in the target storage module corresponding to the target independent channel.

[0100] 306. The target error information is corrected by the target error correction code module to obtain the processing result information.

[0101] The specific descriptions of steps 301-306 above can be found in the above descriptions. Figure 2 The corresponding steps of the error collection and error handling method for the described chip will not be repeated here.

[0102] As can be seen, the chip error collection and error handling method described in this application embodiment is applied to a chip. The chip includes an error reporting module, which includes multiple independent channels. Each independent channel corresponds to a storage module, which includes an error correction code module. During chip operation, the error reporting module obtains the target error information of the chip, extracts keywords from the target error information to obtain target keywords, determines the target error type corresponding to the target keyword according to the preset mapping relationship between keywords and error types, and determines the target independent channel corresponding to the target error type. Different error types correspond to different independent channels. The target error correction code module in the target storage module corresponding to the target independent channel is called, and the target error information is corrected through the target error correction code module to obtain the processing result information. That is, the error reporting module can include multiple independent channels, each channel corresponds to a storage module, and each channel has independent configuration and error status information. By accepting multiple error information through multiple independent channels, the error information can be classified, and corresponding processing strategies can be provided based on different classifications. This can improve the intelligence of the chip when an operational error occurs.

[0103] Consistent with the above embodiments, please refer to Figure 4 , Figure 4This is a schematic diagram of a chip structure provided in an embodiment of this application. As shown in the figure, the chip includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. The chip includes an error reporting module, which includes multiple independent channels. Each independent channel corresponds to a storage module, and the storage module includes an error correction code module. In this embodiment, the program includes instructions for performing the following steps:

[0104] During the operation of the chip, the target error information of the chip is obtained through the error reporting module;

[0105] Determine the target error type corresponding to the target error information;

[0106] Determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels;

[0107] Call the target error correction code module in the target storage module corresponding to the target independent channel;

[0108] The target error information is corrected by the target error correction code module to obtain the processing result information.

[0109] Optionally, in the step of performing error correction processing on the target error information through the target error correction code module to obtain processing result information, the above program includes instructions for performing the following steps:

[0110] Determine the target flag bit corresponding to the target error information;

[0111] Based on the target flag, determine whether the target error information can be corrected;

[0112] When the target error information can be corrected, the target register configuration parameters corresponding to the target error type are determined;

[0113] The target error information is corrected according to the target register configuration parameters to obtain the processing result information.

[0114] Further, optionally, the target register configuration parameters include: target register identifier and the number of times the target correctable error occurs; in terms of performing error correction processing on the target error information according to the target register configuration parameters to obtain the processing result information, the above program includes instructions for performing the following steps:

[0115] The detection function checks whether the target can correct the number of errors that occur to a preset number.

[0116] When the number of times the target correctable error occurs does not reach the preset number, the target register corresponding to the target register identifier is called. Different register identifiers are used to store different error correction programs.

[0117] The target error information is corrected by calling the target error correction program through the target register, and the processing result information is obtained.

[0118] When the number of times the target correctable error occurs reaches the preset number, the corresponding counter is cleared, and the step of calling the target register corresponding to the target register identifier is executed. Different register identifiers are used to store different error correction programs. The target error correction program is called through the target register to perform error correction processing on the target error information, and the processing result information is obtained.

[0119] Optionally, the above procedure may also include instructions for performing the following steps:

[0120] Initialize the data in the target storage module to store the corresponding target error correction program;

[0121] During the initialization process of the target storage module, if the error reporting module detects a target error event, it uses an interrupt notification to suspend the processing of the target error event.

[0122] Once the initialization process is complete, the processing of the target error event resumes.

[0123] Optionally, the above procedure may also include instructions for performing the following steps:

[0124] When the target error information cannot be corrected, the target error information is reported;

[0125] Determine the target fault information corresponding to the target error information;

[0126] Determine the target early warning parameters based on the target fault information;

[0127] Perform an early warning operation based on the target early warning parameters.

[0128] Optionally, in determining the target error type corresponding to the target error information, the above procedure includes instructions for performing the following steps:

[0129] Keyword extraction is performed on the target error information to obtain the target keywords;

[0130] The target error type corresponding to the target keyword is determined according to the preset mapping relationship between keywords and error types.

[0131] Optionally, in determining the target error type corresponding to the target error information, the above procedure includes instructions for performing the following steps:

[0132] Obtain the target source identifier of the target error information;

[0133] According to the preset mapping relationship between source identifiers and error types, at least one error type corresponding to the target source identifier is determined, and the target error type is one of the at least one error types;

[0134] The above procedure also includes instructions for performing the following steps:

[0135] Determine the target priority order corresponding to the at least one error type;

[0136] According to the target priority order, the target error information is sent to the corresponding independent channel to call the error correction code module in the corresponding storage module to perform error correction processing on the target error information;

[0137] If the error correction code module in any storage module successfully corrects the target error information, then the target error information will no longer be sent to the next independent channel. Alternatively, if the error correction code module in the last storage module completes the error correction process for the target error information, then the target error information will no longer be sent to the next independent channel.

[0138] As can be seen, the chip described in this embodiment includes an error reporting module, which comprises multiple independent channels. Each independent channel corresponds to a storage module, and the storage module includes an error correction code module. During chip operation, the error reporting module obtains the target error information of the chip, determines the target error type corresponding to the target error information, and determines the target independent channel corresponding to the target error type. Different error types correspond to different independent channels. The target error correction code module in the target storage module corresponding to the target independent channel is called, and the target error information is corrected by the target error correction code module to obtain the processing result information. That is, the error reporting module can include multiple independent channels, each channel corresponds to a storage module, and each channel has independent configuration and error status information. By accepting multiple error information through multiple independent channels, the error information can be classified, and corresponding processing strategies can be provided based on different classifications. This can improve the intelligence of the chip when an operational error occurs.

[0139] Figure 5This is a functional unit block diagram of a chip error collection and error handling device 500 according to an embodiment of this application. The device 500 is applied to a chip, which includes an error reporting module. The error reporting module includes multiple independent channels, each corresponding to a storage module. The storage module includes an error correction code module. The device 500 includes: an acquisition unit 501, a determination unit 502, a recall unit 503, and an error correction unit 504.

[0140] The acquisition unit 501 is used to acquire the target error information of the chip through the error reporting module during the operation of the chip;

[0141] The determining unit 502 is used to determine the target error type corresponding to the target error information; and to determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels;

[0142] The calling unit 503 is used to call the target error correction code module in the target storage module corresponding to the target independent channel;

[0143] The error correction unit 504 is used to perform error correction processing on the target error information through the target error correction code module to obtain processing result information.

[0144] Optionally, in the step of performing error correction processing on the target error information through the target error correction code module to obtain processing result information, the error correction unit 504 is specifically used for:

[0145] Determine the target flag bit corresponding to the target error information;

[0146] Based on the target flag, determine whether the target error information can be corrected;

[0147] When the target error information can be corrected, the target register configuration parameters corresponding to the target error type are determined;

[0148] The target error information is corrected according to the target register configuration parameters to obtain the processing result information.

[0149] Optionally, the target register configuration parameters include: target register identifier and the number of times the target correctable error occurs; in terms of performing error correction processing on the target error information according to the target register configuration parameters to obtain the processing result information, the error correction unit 504 is specifically used for:

[0150] The detection function checks whether the target can correct the number of errors that occur to a preset number.

[0151] When the number of times the target correctable error occurs does not reach the preset number, the target register corresponding to the target register identifier is called. Different register identifiers are used to store different error correction programs.

[0152] The target error information is corrected by calling the target error correction program through the target register, and the processing result information is obtained.

[0153] When the number of times the target correctable error occurs reaches the preset number, the corresponding counter is cleared, and the step of calling the target register corresponding to the target register identifier is executed. Different register identifiers are used to store different error correction programs. The target error correction program is called through the target register to perform error correction processing on the target error information, and the processing result information is obtained.

[0154] Optionally, the device 500 is further specifically used for:

[0155] Initialize the data in the target storage module to store the corresponding target error correction program;

[0156] During the initialization process of the target storage module, if the error reporting module detects a target error event, it uses an interrupt notification to suspend the processing of the target error event.

[0157] Once the initialization process is complete, the processing of the target error event resumes.

[0158] Optionally, the device 500 is further specifically used for:

[0159] When the target error information cannot be corrected, the target error information is reported;

[0160] Determine the target fault information corresponding to the target error information;

[0161] Determine the target early warning parameters based on the target fault information;

[0162] Perform an early warning operation based on the target early warning parameters.

[0163] Optionally, in determining the target error type corresponding to the target error information, the determining unit 502 is specifically used for:

[0164] Keyword extraction is performed on the target error information to obtain the target keywords;

[0165] The target error type corresponding to the target keyword is determined according to the preset mapping relationship between keywords and error types.

[0166] Optionally, in determining the target error type corresponding to the target error information, the determining unit 502 is specifically used for:

[0167] Obtain the target source identifier of the target error information;

[0168] According to the preset mapping relationship between source identifiers and error types, at least one error type corresponding to the target source identifier is determined, and the target error type is one of the at least one error types;

[0169] The device 500 is further specifically used for:

[0170] Determine the target priority order corresponding to the at least one error type;

[0171] According to the target priority order, the target error information is sent to the corresponding independent channel to call the error correction code module in the corresponding storage module to perform error correction processing on the target error information;

[0172] If the error correction code module in any storage module successfully corrects the target error information, then the target error information will no longer be sent to the next independent channel. Alternatively, if the error correction code module in the last storage module completes the error correction process for the target error information, then the target error information will no longer be sent to the next independent channel.

[0173] As can be seen, the chip error collection and error handling device described in this application embodiment is applied to a chip. The chip includes an error reporting module, which includes multiple independent channels. Each independent channel corresponds to a storage module, which includes an error correction code module. During chip operation, the error reporting module obtains the target error information of the chip, determines the target error type corresponding to the target error information, and determines the target independent channel corresponding to the target error type. Different error types correspond to different independent channels. The target error correction code module in the target storage module corresponding to the target independent channel is called, and the target error information is corrected by the target error correction code module to obtain the processing result information. That is, the error reporting module can include multiple independent channels, each channel corresponds to a storage module, and each channel has independent configuration and error status information. By accepting multiple types of error information through multiple independent channels, the error information can be classified, and corresponding processing strategies can be provided based on different classifications. This can improve the intelligence of the chip when an operational error occurs.

[0174] It is understood that the functions of each program module of the chip error collection and error handling device in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, and will not be repeated here.

[0175] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes a chip.

[0176] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer includes a chip.

[0177] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0178] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0179] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0180] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0181] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0182] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0183] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0184] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for collecting and handling errors in a chip, characterized in that, Applied to a chip, the chip includes an error reporting module, the error reporting module includes multiple independent channels, each independent channel corresponds to a storage module, the storage module includes an error correction code module, and the method includes: During the operation of the chip, the target error information of the chip is obtained through the error reporting module; the target error information is used to describe the information generated when the chip malfunctions. Determine the target error type corresponding to the target error information; Determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels; Call the target error correction code module in the target storage module corresponding to the target independent channel; The target error information is corrected by the target error correction code module to obtain the processing result information.

2. The method according to claim 1, characterized in that, The step of correcting the target error information through the target error correction code module to obtain the processing result information includes: Determine the target flag bit corresponding to the target error information; Based on the target flag, determine whether the target error information can be corrected; When the target error information can be corrected, the target register configuration parameters corresponding to the target error type are determined; The target error information is corrected according to the target register configuration parameters to obtain the processing result information.

3. The method according to claim 2, characterized in that, The target register configuration parameters include: target register identifier and the number of times the target correctable error occurs; the step of performing error correction processing on the target error information according to the target register configuration parameters to obtain the processing result information includes: The detection function checks whether the target can correct the number of errors that occur to a preset number. When the number of times the target correctable error occurs does not reach the preset number, the target register corresponding to the target register identifier is called. Different register identifiers are used to store different error correction programs. The target error information is corrected by calling the target error correction program through the target register, and the processing result information is obtained. When the number of times the target correctable error occurs reaches the preset number, the corresponding counter is cleared, and the step of calling the target register corresponding to the target register identifier is executed. Different register identifiers are used to store different error correction programs. The target error correction program is called through the target register to perform error correction processing on the target error information, and the processing result information is obtained.

4. The method according to claim 3, characterized in that, The method further includes: Initialize the data in the target storage module to store the corresponding target error correction program; During the initialization process of the target storage module, if the error reporting module detects a target error event, it uses an interrupt notification to suspend the processing of the target error event. Once the initialization process is complete, the processing of the target error event resumes.

5. The method according to any one of claims 2-4, characterized in that, The method further includes: When the target error information cannot be corrected, the target error information is reported; Determine the target fault information corresponding to the target error information; Determine the target early warning parameters based on the target fault information; Perform an early warning operation based on the target early warning parameters.

6. The method according to any one of claims 1-4, characterized in that, Determining the target error type corresponding to the target error information includes: Keyword extraction is performed on the target error information to obtain the target keywords; The target error type corresponding to the target keyword is determined according to the preset mapping relationship between keywords and error types.

7. The method according to any one of claims 1-4, characterized in that, Determining the target error type corresponding to the target error information includes: Obtain the target source identifier of the target error information; According to the preset mapping relationship between source identifiers and error types, at least one error type corresponding to the target source identifier is determined, and the target error type is one of the at least one error types; The method further includes: Determine the target priority order corresponding to the at least one error type; According to the target priority order, the target error information is sent to the corresponding independent channel to call the error correction code module in the corresponding storage module to perform error correction processing on the target error information; If the error correction code module in any storage module successfully corrects the target error information, then the target error information will no longer be sent to the next independent channel. Alternatively, if the error correction code module in the last storage module completes the error correction process for the target error information, then the target error information will no longer be sent to the next independent channel.

8. A chip error collection and error handling device, characterized in that, The device is applied to a chip, which includes an error reporting module. The error reporting module includes multiple independent channels, each corresponding to a storage module. This storage module includes an error correction code module. The device comprises: an acquisition unit, a determination unit, a recall unit, and an error correction unit. The acquisition unit is used to acquire target error information of the chip through the error reporting module during the chip's operation; the target error information is used to describe the information generated when the chip malfunctions. The determining unit is used to determine the target error type corresponding to the target error information; and to determine the target independent channel corresponding to the target error type, wherein different error types correspond to different independent channels; The calling unit is used to call the target error correction code module in the target storage module corresponding to the target independent channel; The error correction unit is used to perform error correction processing on the target error information through the target error correction code module to obtain processing result information.

9. A chip, characterized in that, It includes a processor and a memory, the memory being used to store one or more programs and configured to be executed by the processor, the programs including instructions for performing the steps of the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, A computer program for storing electronic data interchange, wherein the computer program causes a computer to perform the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Method for selecting error correction circuit in memory

    CN104036826A

  • Error correction method, device and system

    CN104298572A

  • Method, system and device for processing system management interruption

    CN113127245A

  • Multi-channel Chinese text correction method and device, computer equipment and storage medium

    CN114881011A