Cyclic redundancy code checking circuit, checking method and storage chip
By configuring a special CRC check module in the cyclic redundancy code check circuit to check the integer and non-integer byte sampling frequency information, the problem of CRC calculation errors of non-integer byte data in the existing technology is solved. The accuracy and completeness judgment of interface data and the reliability of data reading are realized.
Patent Information
- Application Number
- CN202310244601.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-20
AI Technical Summary
In the prior art, there are errors when the cyclic redundancy code check circuit performs CRC calculation on non-integer byte interface interaction data, resulting in inaccurate judgment of the correctness and integrity of the interface interaction data.
A cyclic redundancy code check circuit is designed. The first CRC check module is configured to check the integer byte sampling frequency information, and the second CRC check module is configured to check the non-integer byte sampling frequency information. , combined with the XOR operation logic unit, to achieve complete CRC calculation of sampling frequency information.
The CRC check operation performance is improved, ensuring the correctness and integrity of interface data for specific length data, and ensuring reliable reading of the third set of interface data.
Smart Images

Figure CN118675600A
Abstract
Description
Background Art
[0002] In the related art, in order to improve the application reliability of FLASH (flash memory) chips, a CRC (Cyclic Redundancy Check) algorithm is used to perform CRC calculation on the interface interaction data of the FLASH chip to judge the correctness and integrity of the Flash chip interface interaction data.
[0003] However, the current cyclic redundancy check circuit used for CRC calculation has a limit on the length of interface interaction data, that is, CRC calculation of interface interaction data of certain specific lengths will result in errors, resulting in incorrect judgments on the correctness and integrity of the interface interaction data.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present disclosure is to provide a cyclic redundancy code check circuit, a check method and a storage chip, which at least to a certain extent overcome the problem of inaccurate judgment on the correctness and integrity of interface interaction data caused by the inability to perform CRC calculation on interface interaction data of non-integer bytes in the related art.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to one aspect of the present disclosure, a cyclic redundancy code check circuit is provided, comprising: a first CRC check module, used to perform CRC check on a first group of interface data of a storage chip, the first group of interface data including sampling frequency information of an integer byte; a second CRC check module, used to perform CRC check on a second group of interface data of the storage chip, the second group of interface data including the sampling frequency information of a non-integer byte, wherein the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read a third group of interface data.
[0008] In one embodiment of the present disclosure, the first CRC check module is specifically used to: detect the first group of interface data transmitted based on the read instruction, and perform a CRC check on the first group of interface data; the second CRC check module is specifically used to: detect the second group of interface data transmitted based on the read instruction, and perform a CRC check on the second group of interface data, wherein the second group of interface data is transmitted later than the first group of interface data.
[0009] In one embodiment of the present disclosure, the first CRC check module includes an 8-bit parallel circuit; the second CRC check module includes an A-bit parallel circuit, A is less than 8, and A is configured according to the number of bits of the sampling frequency information of the non-integer byte.
[0010] In one embodiment of the present disclosure, the number of bits of the sampling frequency information that is not an integer byte is configured based on a read instruction type corresponding to the third group of interface data.
[0011] In one embodiment of the present disclosure, the parallel circuit includes an XOR operation logic unit.
[0012] In one embodiment of the present disclosure, it also includes: a first register, which is electrically connected to the first CRC check module and the second CRC check module respectively, and is used to store the check code generated by the first CRC check module and / or the second CRC check module.
[0013] In one embodiment of the present disclosure, it also includes: a second register, which is electrically connected to the first CRC check module and the second CRC check module respectively, and is used to store the first group of interface data and the second group of interface data.
[0014] In one embodiment of the present disclosure, it is characterized in that the first CRC check module is also used to: detect the third group of interface data transmitted based on the read instruction, and perform CRC check on the third group of interface data.
[0015] According to another aspect of the present disclosure, a cyclic redundancy code check method for interface data is provided, which is applied to a storage chip, including: the storage chip transmits a first group of interface data and a second group of interface data in response to a first read instruction, and a CRC check module performs a CRC check on the first group of interface data to generate a first check code, and the first group of interface data includes sampling frequency information of an integer byte; the CRC check module performs a CRC check on the second group of interface data based on the first check code to generate a second check code, and the second group of interface data includes the sampling frequency information of a non-integer byte, wherein the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read a third group of interface data.
[0016] In one embodiment of the present disclosure, it also includes: after transmitting the second group of interface data, sending the second verification code to an external device, so that the external device verifies the first group of interface data and the second group of interface data based on the second verification code; the storage chip transmits a third group of interface data in response to a second read instruction; performing CRC check on the third group of interface data based on the second verification code, and generating a third verification code, so that the external device verifies the third group of interface data based on the third verification code.
[0017] In one embodiment of the present disclosure, it further includes: performing a retransmission operation on the first group of interface data and the second group of interface data, wherein the retransmission operation is performed when the external device fails verification based on the second verification code.
[0018] In one embodiment of the present disclosure, before performing a retransmission operation on the first group of interface data and the second group of interface data, it also includes: receiving feedback information from the external device, wherein the feedback information is used to indicate that the verification of the first group of interface data and the second group of interface data has failed; or receiving the first read instruction resent by the external device.
[0019] In one embodiment of the present disclosure, sending the second verification code to the external device includes: sending the second verification code to the external device based on the first read instruction; or receiving a third read instruction to send the second verification code to the external device based on the third read instruction, and the third read instruction is specifically used to read the second verification code.
[0020] In one embodiment of the present disclosure, it also includes: the storage chip transmits the third group of interface data in response to a fourth read instruction; performs CRC check on the third group of interface data based on the second check code, and generates a third check code, so as to check the first group of interface data, the second group of interface data and the third group of interface data based on the third check code in an external device.
[0021] In one embodiment of the present disclosure, it also includes: performing a retransmission operation on the first group of interface data, the second group of interface data, and the third group of interface data, wherein the retransmission operation is performed when the external device fails verification based on the third check code.
[0022] According to another aspect of the present disclosure, a cyclic redundancy code check method for interface data is provided, which is applied to an external device, including: sending a first read instruction to a storage chip, so that the storage chip transmits a first group of interface data and a second group of interface data in response to the first read instruction, and performing CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of an integer byte, the second group of interface data includes the sampling frequency information of a non-integer byte, the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read a third group of interface data.
[0023] In one embodiment of the present disclosure, it also includes: receiving a second check code, the second check code is generated by the storage chip performing CRC check on the second group of interface data based on the first check code, and the first check code is generated by the storage chip performing CRC check on the first group of interface data; sending a second read instruction to the storage chip, so that the storage chip transmits the third group of interface data in response to the second read instruction; after receiving the third group of interface data, receiving a third check code to verify the third group of interface data based on the third check code, and the third check code is generated by the storage chip performing CRC check on the third group of interface data based on the second check code.
[0024] In one embodiment of the present disclosure, it also includes: if the first group of interface data and the second group of interface data fail to be verified based on the second verification code, feedback information is sent to the storage chip, or the first read instruction is resent to the storage chip.
[0025] In one embodiment of the present disclosure, before receiving the second verification code, the method further includes: sending a third read instruction to read the second verification code based on the third read instruction.
[0026] In one embodiment of the present disclosure, it also includes: sending a fourth read instruction to the storage chip, so that the storage chip transmits the third group of interface data in response to the fourth read instruction; receiving a third check code, the third check code is generated by the storage chip performing CRC check on the third group of interface data based on the second check code; and checking the first group of interface data, the second group of interface data and the third group of interface data based on the third check code.
[0027] According to another aspect of the present disclosure, a cyclic redundancy code check method for interface data is provided, which is applied to a storage chip, including: the storage chip transmits a first group of interface data, a second group of interface data and a third group of interface data in response to a fifth read instruction, a CRC check module performs a CRC check on the first group of interface data to generate a first check code, and the first group of interface data includes sampling frequency information of an integer byte; the CRC check module performs a CRC check on the second group of interface data based on the first check code to generate a second check code, and the second group of interface data includes the sampling frequency information of a non-integer byte, wherein the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read the third group of interface data.
[0028] In one embodiment of the present disclosure, it also includes: performing CRC check on the third group of interface data based on the second verification code to generate a third verification code; after transmitting the third group of interface data, sending the third verification code to an external device, so that the external device can verify the first group of interface data, the second group of interface data and the third group of interface data based on the third verification code.
[0029] In one embodiment of the present disclosure, it also includes: performing a retransmission operation on the first group of interface data, the second group of interface data, and the third group of interface data, wherein the retransmission operation is performed when the external device fails verification based on the third check code.
[0030] According to another aspect of the present disclosure, a cyclic redundancy code check method for interface data is provided, which is applied to an external device, and includes: sending a fifth read instruction to a storage chip, so that the storage chip transmits a first group of interface data, a second group of interface data, and a third group of interface data in response to the fifth read instruction, and performing CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of an integer byte, the second group of interface data includes the sampling frequency information of a non-integer byte, the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read the third group of interface data.
[0031] In one embodiment of the present disclosure, it also includes: after receiving the third group of interface data, receiving a third check code, the third check code is generated by the storage chip performing a CRC check on the third group of interface data based on the second check code, the second check code is generated by the storage chip performing a CRC check on the second group of interface data based on the first check code, and the first check code is generated by the storage chip performing a CRC check on the first group of interface data; and the first group of interface data, the second group of interface data and the third group of interface data are checked based on the third check code.
[0032] According to another aspect of the present disclosure, there is provided a memory chip, comprising: a cyclic redundancy check circuit as described in any one of the above embodiments.
[0033] The cyclic redundancy code check circuit and the related check method provided by the embodiments of the present disclosure configure a first CRC check module and a second CRC check module to check the whole byte data in the sampling frequency information based on the first CRC check module, and to check the non-whole byte data in the sampling frequency information based on the second CRC check module, thereby realizing CRC calculation of the complete sampling frequency information, so as to facilitate the external device to judge the correctness and integrity of the interface data with a specific length of data such as the sampling frequency information, thereby improving the CRC check operation performance and ensuring the reliable reading of the third group of interface data.
[0034] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0036] Figure 1 A schematic block diagram of a memory chip in an embodiment of the present disclosure is shown;
[0037] Figure 2 A schematic block diagram of a cyclic redundancy code check circuit in an embodiment of the present disclosure is shown;
[0038] Figure 3 A schematic block diagram showing another cyclic redundancy code check circuit in an embodiment of the present disclosure is shown;
[0039] Figure 4 A schematic diagram of a second CRC check module in the related art is shown;
[0040] Figure 5 A schematic block diagram showing another memory chip in an embodiment of the present disclosure is shown;
[0041] Figure 6 A schematic diagram showing a flow chart of another cyclic redundancy code checking method in an embodiment of the present disclosure;
[0042] Figure 7A schematic diagram showing a flow chart of another cyclic redundancy code checking method in an embodiment of the present disclosure is shown;
[0043] Figure 8 A schematic diagram showing a flow chart of another cyclic redundancy code checking method in an embodiment of the present disclosure is shown;
[0044] Fig. 9 A schematic diagram showing a flow chart of another cyclic redundancy code checking method in an embodiment of the present disclosure is shown;
[0045] Fig.10 A schematic diagram showing a flow chart of another cyclic redundancy code checking method in an embodiment of the present disclosure is shown;
[0046] Fig.11 A schematic diagram showing a flow chart of another cyclic redundancy code checking method in an embodiment of the present disclosure is shown;
[0047] Fig.12 A flow chart of another cyclic redundancy code checking method in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0048] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0049] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0050] like Figure 1As shown, the memory chip 10 is electrically connected to the electronic device. The memory chip 10 can be a built-in or external storage device of the electronic device. The memory chip 10 can be a volatile and non-volatile memory. Volatile memory requires power to maintain data, such as random access memory (RAM), dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM). Non-volatile memory can still maintain storage data when power is off, such as NAND flash memory, NOR flash memory, electrically erasable programmable ROM (EEPROM), phase change random access memory (PCRAM), resistive random access memory (RRAM) and magnetoresistive random access memory (MRAM).
[0051] Specifically, the memory chip 10 includes a controller 100, a memory array 200, a data bus 300, an I / O control circuit 400, and a data buffer 500. The data bus 300 is used to transmit interface interaction data between an external device, such as a processor and a memory chip, including addresses, instructions, and target data, etc. In order to determine the correctness of the interface interaction data, the memory chip 10 performs CRC calculation on the interface interaction data, generates a CRC code, and stores the CRC code in an internal register of the memory chip 10. The main control chip or other external device obtains the CRC code and determines whether the received interface interaction data is correct based on the CRC code to ensure the security and accuracy of data transmission.
[0052] The data bus 300 is provided with an I / O interface, and the I / O interface includes a single interface, a dual interface, and a quad interface. For the convenience of circuit design, CRC calculation is usually performed according to 1 Byte or an integer multiple of Byte. If the interface interaction data is not a complete Byte data, an abnormality will occur in the CRC calculation, especially for the quad mode of the quad interface, that is, for the SPI (Serial Peripheral Interface) Flash, 4 bits of data are transmitted in one clock cycle, and an error will be reported in the CRC calculation of the transmission data of a non-integer Byte.
[0053] In order to implement CRC calculation for interface interaction data of different lengths, an embodiment of the present disclosure proposes a cyclic redundancy code check circuit applicable to different types.
[0054] like Figure 2 As shown, the cyclic redundancy code check circuit according to an embodiment of the present disclosure specifically includes: a first CRC check module 202 and a second CRC check module 204.
[0055] The first CRC check module 202 is used to perform CRC check on the first group of interface data of the storage chip, where the first group of interface data includes sampling frequency information of whole bytes.
[0056] Specifically, the storage device includes a solid-state hard disk, etc. The storage device mainly includes a storage chip and a main control chip, wherein the main control chip can be understood as one of the external devices involved in the present disclosure. The main control chip sends read and write instructions to the storage chip to write data to the storage chip or read data from the storage chip. In the process of reading data, the main control chip usually first needs to read a set of fixed data, namely, sampling frequency information, and determine the clock edge that triggers the data reading based on the sampling frequency information to calibrate the clock signal in the storage chip, so as to realize the reading of the target data, namely, the third group of interface data, based on the triggering of the clock edge.
[0057] Since the sampling frequency information includes frequency information of whole bytes and frequency information of incomplete bytes, the first CRC check module is used to check the frequency information of whole bytes, and the second CRC check module is used to check the frequency information of incomplete bytes.
[0058] That is, the second CRC check module 204 is used to perform CRC check on the second group of interface data of the storage chip, and the second group of interface data includes sampling frequency information of non-integer bytes.
[0059] The sampling frequency information of non-integer bytes may also be understood as data with a bit number less than 1 byte, such as 6-bit data or 7-bit data.
[0060] It can be understood by those skilled in the art that, in the present disclosure, the number of the second CRC check modules can be one or more, and the specific number of the second CRC check modules is configured according to actual applications.
[0061] Those skilled in the art can also understand that the sampling frequency information can also be understood as a kind of DLP (Data Learning Pattern) data.
[0062] In this embodiment, by configuring the first CRC check module and the second CRC check module, the whole byte data in the sampling frequency information is checked based on the first CRC check module, and the non-whole byte data in the sampling frequency information is checked based on the second CRC check module, thereby realizing CRC calculation of the complete sampling frequency information, so as to facilitate the external device to judge the correctness and integrity of the interface data with a specific length of data such as the sampling frequency information, thereby improving the CRC check operation performance and ensuring the reliable reading of the third group of interface data.
[0063] In one embodiment of the present disclosure, it also includes: a first register, which is electrically connected to the first CRC check module and the second CRC check module respectively, and is used to store the check code generated by the first CRC check module and / or the second CRC check module.
[0064] In this embodiment, by setting a first register for storing the generated verification code, based on the data transmission timing, when a new verification code is generated, the newly generated verification code is used to overwrite the old verification code stored in the first register to ensure that the external device can read the latest verification code, so as to further ensure the consistency of the interface data verification corresponding to the verification code.
[0065] In one embodiment of the present disclosure, it further includes: a second register, which is electrically connected to the first CRC check module and the second CRC check module respectively, and is used to store the first group of interface data and the second group of interface data.
[0066] In this embodiment, by setting a second register for storing sampling frequency information, in response to an external device reading the third group of interface data, the first group of interface data and the second group of interface data are read from the second register, and a CRC check is performed accordingly to generate a check code to ensure the accuracy and completeness of the external device reading the third group of interface data that needs to be read.
[0067] like Figure 3 As shown, in one embodiment of the present disclosure, the first group of interface data and the second group of interface data are read from the second register 302 based on the read instruction transmission.
[0068] The first CRC check module 202 is specifically used to: perform CRC check on the first group of interface data, generate a first check code, and store the first check code in the first register 302.
[0069] The second CRC check module 204 is specifically used to: detect the second group of interface data transmitted based on the read instruction, perform CRC check on the second group of interface data based on the first check code, generate a second check code, and store the second check code in the first register 302.
[0070] The second group of interface data is transmitted later than the first group of interface data.
[0071] Specifically, the read instruction can be a read instruction for the third group of interface data, or it can be an instruction dedicated to reading the first group of interface data and the second group of interface data. When it is dedicated to reading the first group of interface data and the second group of interface data, it can be just one instruction, or it can be further divided into two read instructions to read the first group of interface data and the second group of interface data respectively.
[0072] In this embodiment, the first group of interface data and the second group of interface data are both transmitted based on the read instruction. When the first group of interface data is transmitted, a CRC check is performed on the first group of interface data through a first CRC check module. After the first group of interface data is transmitted and when the second group of interface data is transmitted, a CRC check is performed on the second group of interface data through a second CRC check module. The corresponding CRC check operation is specified based on the timing of the sampling frequency information, thereby ensuring reliable verification of the sampling frequency information by the data receiving end.
[0073] Furthermore, according to an embodiment of the cyclic redundancy code check circuit of the present disclosure, it may also include a control module, which is electrically connected to the first CRC check module and the second CRC check module respectively, and the control module is used to control the first CRC check module and the second CRC check module to perform a check operation based on the timing relationship between the first group of interface data and the second group of interface data.
[0074] There may be one control module, which is shared by the first CRC check module and the second CRC check module, or there may be multiple control modules, each of which controls a CRC check module to control the switching of each CRC check module to perform CRC operation.
[0075] In addition, assuming that the calculation bit number of the first CRC check module is N bits, when using an N-bit parallel circuit to calculate M-bit binary interface data, data with a bit width of N needs to be input for processing in each clock cycle, and the relationship that M can divide N needs to be satisfied. If there is less than 1 byte of interface data, a second CRC check module needs to be used for CRC calculation.
[0076] In one embodiment of the present disclosure, for a storage chip including 4 interfaces, the corresponding first CRC check module includes an 8-bit parallel circuit. In addition, in order to realize the CRC calculation of the above-mentioned interface data less than 1 byte, the second CRC check module includes an A-bit parallel circuit, A is less than 8, and A is configured according to the number of bits of the sampling frequency information of the non-integer byte.
[0077] As a specific implementation, each parallel circuit is used to perform CRC calculation on 1-bit interface data by setting the first CRC check module to an 8-bit parallel circuit, so as to ensure the reliability of CRC calculation of data such as sampling frequency information of a whole byte.
[0078] In addition, those skilled in the art will also understand that setting the first CRC check module as an 8-bit parallel circuit is only a preferred implementation. Depending on the calculation requirements and the number of bits of the register storing the CRC code, a 16-bit parallel circuit or a 32-bit parallel circuit may also be selected. For example, the first CRC check module including a 32-bit parallel circuit requires at least a 32-bit register to store the generated CRC code.
[0079] The second CRC check module is constructed using an A-bit calculation unit that is less than 8, and the value of A is based on the number of bits of the sampling frequency information that is not an integer byte.
[0080] In this embodiment, the second CRC check module is configured based on the number of bits of the sampling frequency information that is not an integer byte, so as to ensure the reliability of the CRC check on the second group of interface data.
[0081] In one embodiment of the present disclosure, the number of bits of the sampling frequency information of the non-integer byte is configured based on the read instruction type corresponding to the third group of interface data.
[0082] Specifically, multiple second CRC check modules can be set based on multiple commonly used read instruction types, and the number of parallel circuit bits of each second CRC check module is different, or only one second CRC check module is set, for example, a 7-bit parallel circuit is set, and based on the read instruction type, a control module is used to control all or part of the 7-bit parallel circuit to participate in the CRC calculation, so as to achieve adaptive adjustment of the second CRC check module.
[0083] In this embodiment, for different types of data reading instructions, the number of bits of the corresponding sampling frequency information is also different. Therefore, in order to ensure the integrity of the calculation of the sampling frequency information, it is necessary to determine the number of bits of the sampling frequency information based on the type of data reading instruction to further determine the number of parallel circuit bits of the second CRC check module.
[0084] In one embodiment of the present disclosure, the parallel circuit includes an XOR operation logic unit.
[0085] Specifically, the CRC calculation process mainly includes: first, a CRC generating polynomial G(x) is selected, then the interface data is shifted left by K bits, and zeros are padded on the right side, where K is the highest power of the generating polynomial. Further, G(x) is divided modulo 2 using the shifted and zero-padded data. The modulo 2 division process is implemented through an XOR operation logic unit, and the remainder obtained at the end is the obtained CRC check code.
[0086] Controlling the XOR operation logic unit to perform the XOR operation may also be performed by the above-mentioned control module.
[0087] In this embodiment, the parallel circuit of the first CRC check module and the second CRC check module is constructed by adopting an XOR operation logic unit to ensure the reliability of CRC calculation.
[0088] Specifically, Figure 4 As shown, taking A=4 as an example, that is, the second group of interface data is 4-bit data, the 4-bit data is represented as: b3000⊕0b200⊕00b10⊕000b0.
[0089] CRC calculation is performed on each of the above groups of data based on the generating polynomial, and then an exclusive OR operation XOR is performed bit by bit to generate a second check code.
[0090] In one embodiment of the present disclosure, it is characterized in that the first CRC check module is also used to: detect a third group of interface data transmitted based on a read instruction, and perform a CRC check on the third group of interface data.
[0091] In this embodiment, since the third group of interface data are all whole-byte data, the first CRC check is used to perform CRC calculation, so that the external device can detect whether the transmission of the third group of interface data is erroneous through the received verification code.
[0092] like Figure 5 As shown, a memory chip according to an embodiment of the present disclosure includes: a cyclic redundancy check circuit 50 and a memory matrix 60 as shown in any of the above embodiments.
[0093] The cyclic redundancy check circuit 50 includes Figure 3 The first CRC check module 202, the second CRC check module 204, the second register 302 and the first register 304 shown in FIG.
[0094] The second register 302 is used to provide the first group of interface data and the second group of interface data, the storage matrix 60 is used to provide the third group of interface data, and the cyclic redundancy check circuit 50 is used to perform CRC calculation on the first group of interface data, the second group of interface data and the third group of interface data.
[0095] like Figure 6 As shown, a cyclic redundancy code checking method for interface data according to an embodiment of the present disclosure is applied to a storage chip, comprising:
[0096] Step S602, the memory chip transmits a first group of interface data and a second group of interface data in response to a first read instruction, and a CRC check module performs CRC check on the first group of interface data to generate a first check code, wherein the first group of interface data includes sampling frequency information of a whole byte.
[0097] The first read instruction is used to transmit the first group of interface data and the second group of interface data.
[0098] Step S604: The CRC check module performs CRC check on the second group of interface data based on the first check code to generate a second check code, where the second group of interface data includes sampling frequency information of non-integer bytes.
[0099] The sampling frequency information is used to calibrate the clock signal, and the clock signal is used to read the third group of interface data.
[0100] In this embodiment, when the first read instruction is used for the first group of interface data and the second group of interface data, a CRC check module is configured to check the whole byte data and the non-whole byte data in the sampling frequency information based on the CRC check module, thereby realizing CRC calculation of the complete sampling frequency information, so as to facilitate the external device to judge the correctness and integrity of the interface data with a specific length of data such as the sampling frequency information, thereby improving the CRC check operation performance and ensuring the reliable reading of the third group of interface data.
[0101] like Figure 7 As shown, as a verification method in the present disclosure, after step S504, the cyclic redundancy code verification method of the interface data further includes:
[0102] Step S702: after transmitting the second group of interface data, sending a second verification code to the external device, so that the external device verifies the first group of interface data and the second group of interface data based on the second verification code.
[0103] Step S704 : the memory chip transmits a third group of interface data in response to the second read instruction.
[0104] The second read instruction is used to read the third group of interface data.
[0105] Step S706, performing CRC check on the third group of interface data based on the second check code, and generating a third check code, so that the external device can check the third group of interface data based on the third check code.
[0106] In this embodiment, at the external device end, the first group of interface data and the second group of interface data are verified based on the second verification code. If the verification passes, the storage chip transmits the third group of interface data based on the new second read instruction, and uses the second verification code to verify the third group of interface data, thereby realizing the separate verification of the first group of interface data and the second group of interface data, as well as the third group of interface data, thereby ensuring the validity of the separate verification of the first group of interface data, the second group of interface data, and the third group of interface data.
[0107] In one embodiment of the present disclosure, it also includes: when the external device fails to verify the first group of interface data and the second group of interface data based on the second verification code, retransmitting the first group of interface data and the second group of interface data until the verification of the first group of interface data and the second group of interface data passes.
[0108] In this embodiment, a retransmission operation is performed on the first group of interface data and the second group of interface data to ensure that the external device can receive the correct sampling frequency information, and then obtain a clock signal for reading the third group of interface data based on the correct sampling frequency information, thereby ensuring reliable reading of the third group of interface data.
[0109] In one embodiment of the present disclosure, a feedback method when the verification of the first group of interface data and the second group of interface data performed by an external device based on a second verification code fails, that is, before performing a retransmission operation on the first group of interface data and the second group of interface data, also includes: receiving feedback information from the external device, and the feedback information is used to indicate that the verification of the first group of interface data and the second group of interface data fails.
[0110] In this embodiment, the retransmission operation on the first group of interface data and the second group of interface data may be performed based on the received feedback information.
[0111] In one embodiment of the present disclosure, another feedback method when the external device fails to pass the verification of the first group of interface data and the second group of interface data based on the second verification code, that is, before performing the retransmission operation on the first group of interface data and the second group of interface data, also includes: receiving a first read instruction resent by the external device.
[0112] In this embodiment, the retransmission operation on the first group of interface data and the second group of interface data may also be performed based on the resent first read instruction.
[0113] In one embodiment of the present disclosure, a triggering method for sending the second verification code to the external device includes: sending the second verification code to the external device based on the first read instruction.
[0114] In this embodiment, the second verification code can be triggered as a response to the first read instruction and directly sent to the external device after being generated. This method is conducive to simplifying the interaction process between the memory chip and the external device.
[0115] In one embodiment of the present disclosure, another triggering method of sending the second verification code to the external device includes: receiving a third read instruction, so as to send the second verification code to the external device based on the third read instruction.
[0116] The third read instruction is specifically used to read the second verification code.
[0117] In this embodiment, by further receiving a read instruction sent by the external device specifically for reading the second verification code, the second verification code is sent to the external device as a response trigger to the third read instruction, so that the external device verifies the first group of interface data and the second group of interface data based on the second verification code.
[0118] like Figure 8 As shown, as another verification method in the present disclosure, after generating the second verification code, it also includes:
[0119] Step S802 : The memory chip transmits a third group of interface data in response to a fourth read instruction.
[0120] Step S804, performing CRC check on the third group of interface data based on the second check code, and generating a third check code, so that the external device can check the first group of interface data, the second group of interface data and the third group of interface data based on the third check code.
[0121] The fourth read instruction is used to read the third group of interface data.
[0122] In this embodiment, in a manner that does not require an external device to verify the second verification code, a third group of interface data is sent directly based on a new fourth read instruction received from the external device, and a third verification code is generated accordingly, so that the external device can directly verify the first group of interface data, the second group of interface data, and the third group of interface data based on the third verification code. This scheme can simplify the verification steps while ensuring the security of interface data transmission, thereby helping to improve the transmission efficiency of interface data.
[0123] In one embodiment of the present disclosure, it further includes: performing a retransmission operation on the first group of interface data, the second group of interface data, and the third group of interface data, wherein the retransmission operation is performed when the external device fails verification based on the third check code.
[0124] In this embodiment, if the external device fails the verification based on the third verification code, the first group of interface data, the second group of interface data and the third group of interface data are retransmitted to ensure the accuracy of the interface data read by the external device.
[0125] like Fig. 9 As shown, a cyclic redundancy code checking method for interface data according to another embodiment of the present disclosure is applied to an external device, comprising:
[0126] Step S902, sending a first read instruction to the storage chip, so that the storage chip transmits a first group of interface data and a second group of interface data in response to the first read instruction, and performs CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of whole bytes, the second group of interface data includes sampling frequency information of non-whole bytes, the sampling frequency information is used to calibrate the clock signal, and the clock signal is used to read the third group of interface data.
[0127] In this embodiment, when the first read instruction is used for the first group of interface data and the second group of interface data, the first read instruction is sent to the storage chip so that the storage chip verifies the whole-byte data and the non-whole-byte data in the sampling frequency information based on the CRC verification module, thereby realizing CRC calculation of the complete sampling frequency information, so as to facilitate the external device to judge the correctness and integrity of the interface data with a specific length of data such as the sampling frequency information, thereby improving the CRC verification operation performance and ensuring the reliable reading of the third group of interface data.
[0128] In one embodiment of the present disclosure, it also includes: receiving a second check code, the second check code is generated by the storage chip performing CRC check on the second group of interface data based on the first check code, and the first check code is generated by the storage chip performing CRC check on the first group of interface data; sending a second read instruction to the storage chip, so that the storage chip transmits a third group of interface data in response to the second read instruction; after receiving the third group of interface data, receiving a third check code to verify the third group of interface data based on the third check code, the third check code is generated by the storage chip performing CRC check on the third group of interface data based on the second check code.
[0129] At the external device end, the first group of interface data and the second group of interface data are verified based on the second verification code. If the verification passes, the storage chip transmits the third group of interface data based on the new second read instruction, and uses the second verification code to verify the third group of interface data, thereby realizing the separate verification of the first group of interface data and the second group of interface data, as well as the third group of interface data, thereby ensuring the validity of the separate verification of the first group of interface data and the second group of interface data, as well as the third group of interface data.
[0130] In one embodiment of the present disclosure, it further includes: if the first group of interface data and the second group of interface data fail to be verified based on the second verification code, feedback information is sent to the storage chip.
[0131] In this embodiment, feedback information is sent so that the memory chip performs retransmission operations on the first group of interface data and the second group of interface data based on the received feedback information.
[0132] In one embodiment of the present disclosure, the further step includes: resending the first read instruction to the memory chip if the first group of interface data and the second group of interface data are not verified based on the second verification code.
[0133] In this embodiment, the first read instruction is resent so that the retransmission operation on the first group of interface data and the second group of interface data is performed based on the resent first read instruction.
[0134] In one embodiment of the present disclosure, before receiving the second verification code, the method further includes: sending a third read instruction to read the second verification code based on the third read instruction.
[0135] In this embodiment, a read instruction dedicated to reading the second verification code is sent as a response trigger of the third read instruction, and the second verification code is received to verify the first group of interface data and the second group of interface data based on the second verification code.
[0136] In one embodiment of the present disclosure, it also includes: sending a fourth read instruction to the storage chip so that the storage chip transmits a third group of interface data in response to the fourth read instruction; receiving a third check code, the third check code is generated by the storage chip performing CRC check on the third group of interface data based on the second check code; and checking the first group of interface data, the second group of interface data and the third group of interface data based on the third check code.
[0137] In this embodiment, in a manner that does not require verification of the second verification code, a fourth read instruction is sent to the storage chip to receive feedback of a third group of interface data and a correspondingly generated third verification code, so that the first group of interface data, the second group of interface data, and the third group of interface data are directly verified based on the third verification code. This scheme can simplify the verification steps while ensuring the security of interface data transmission, thereby helping to improve the transmission efficiency of interface data.
[0138] like Fig.10 As shown, a cyclic redundancy code checking method for interface data according to another embodiment of the present disclosure is applied to a storage chip, comprising:
[0139] Step S1002, the storage chip transmits the first group of interface data, the second group of interface data and the third group of interface data in response to the fifth read instruction, and the CRC check module performs CRC check on the first group of interface data to generate a first check code, and the first group of interface data includes sampling frequency information of a whole byte.
[0140] The first read instruction is used to trigger the storage chip to transmit the first group of interface data, the second group of interface data and the third group of interface data.
[0141] Step S1004: The CRC check module performs CRC check on the second group of interface data based on the first check code to generate a second check code, where the second group of interface data includes sampling frequency information of non-integer bytes.
[0142] The sampling frequency information is used to calibrate the clock signal, and the clock signal is used to read the third group of interface data.
[0143] In this embodiment, when the fifth read instruction is used for the first group of interface data, the second group of interface data and the third group of interface data, a CRC check module is configured to check the whole byte data and the non-whole byte data in the sampling frequency information based on the CRC check module, thereby realizing CRC calculation of the complete sampling frequency information, so as to facilitate the external device to judge the correctness and integrity of the interface data with a specific length of data such as the sampling frequency information, thereby improving the CRC check operation performance and ensuring the reliable reading of the third group of interface data.
[0144] In one embodiment of the present disclosure, as a processing method of the second verification code, the second group of interface data is sent to an external device, so that the transmission of the third group of interface data and the verification of the first group of interface data and the second group of interface data by the external device based on the second verification code are processed in parallel.
[0145] In one embodiment of the present disclosure, as another processing method of the second verification code, it also includes: performing CRC check on the third group of interface data based on the second verification code to generate a third verification code; after transmitting the third group of interface data, sending the third verification code to an external device, so that the external device can verify the first group of interface data, the second group of interface data and the third group of interface data based on the third verification code.
[0146] In this embodiment, instead of sending the second verification code to the external device, a third verification code is generated based on the second verification code, and the third verification code is sent to the external device, so that the external device verifies the first group of interface data, the second group of interface data and the third group of interface data based on the third verification code. This method can be executed only based on the response to the fifth read instruction, making the cyclic redundancy code check process of the interface data faster.
[0147] In one embodiment of the present disclosure, it further includes: performing a retransmission operation on the first group of interface data, the second group of interface data, and the third group of interface data, wherein the retransmission operation is performed when the external device fails verification based on the third check code.
[0148] In this embodiment, if the external device fails the verification based on the third verification code, the first group of interface data, the second group of interface data and the third group of interface data are retransmitted to ensure the accuracy of the interface data read by the external device.
[0149] like Fig.11 As shown, a cyclic redundancy code checking method for interface data according to another embodiment of the present disclosure is applied to an external device, including:
[0150] Step S1102, sending a fifth read instruction to the storage chip, so that the storage chip transmits the first group of interface data, the second group of interface data and the third group of interface data in response to the fifth read instruction, and performs CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of whole bytes, the second group of interface data includes sampling frequency information of non-whole bytes, the sampling frequency information is used to calibrate the clock signal, and the clock signal is used to read the third group of interface data.
[0151] In this embodiment, when the fifth read instruction is used for the first group of interface data, the second group of interface data and the third group of interface data, the fifth read instruction is sent to the storage chip so that the storage chip verifies the whole byte data and the non-whole byte data in the sampling frequency information based on the CRC verification module, thereby realizing CRC calculation of the complete sampling frequency information, so as to facilitate the external device to judge the correctness and integrity of the interface data with a specific length of data such as the sampling frequency information, thereby improving the CRC verification operation performance and ensuring the reliable reading of the third group of interface data.
[0152] In one embodiment of the present disclosure, it also includes: after receiving the third group of interface data, receiving a third check code, the third check code is generated by the storage chip performing CRC check on the third group of interface data based on the second check code, the second check code is generated by the storage chip performing CRC check on the second group of interface data based on the first check code, and the first check code is generated by the storage chip performing CRC check on the first group of interface data; and checking the first group of interface data, the second group of interface data and the third group of interface data based on the third check code.
[0153] In this embodiment, by verifying the first group of interface data, the second group of interface data and the third group of interface data based on the third verification code, this method can be executed only based on the response to the fifth read instruction, making the cyclic redundancy code verification process of the interface data faster.
[0154] like Fig.12 As shown, a cyclic redundancy code checking method for interface data according to another embodiment of the present disclosure specifically includes:
[0155] Step S1202: In response to the acquired instruction information, a first CRC check module is used to perform CRC calculation on the instruction information to obtain a preset check code, and store the preset check code in a first register.
[0156] The instruction information includes a read instruction and a corresponding logical address of the third group of interface data to be read.
[0157] Step S1204: The first CRC check module performs CRC calculation on the first group of interface data based on the preset check code to obtain a first check code, and overwrites the preset check code and stores it in the first register.
[0158] Step S1206: The second CRC check module performs CRC calculation based on the second group of interface data whose first check code is not an integer byte, obtains a second check code, and overwrites the first check code and stores it in the first register.
[0159] Step S1208: read a third set of interface data from the storage area based on the received logical address, and send the data to the external device.
[0160] Step S1210: The first CRC check module performs CRC calculation on the third group of interface data based on the second check code to obtain a third check code.
[0161] Step S1212: Send the third verification code to the external device, so that the external device verifies whether the third group of interface data is correct based on the third verification code.
[0162] It should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0163] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0164] According to this embodiment of the present disclosure, the cyclic redundancy code check device is expressed in the form of a hardware module. The components of the cyclic redundancy code check device may include but are not limited to: a first CRC check module, which is used for the storage chip to transmit the first group of interface data and the second group of interface data in response to the first read instruction, and the first CRC check module performs CRC check on the first group of interface data to generate a first check code, and the first group of interface data includes sampling frequency information of an entire byte; a second CRC check module, which is used for the second CRC check module to perform CRC check on the second group of interface data based on the first check code to generate a second check code, and the second group of interface data includes sampling frequency information of a non-integer byte, wherein the sampling frequency information is used to calibrate the clock signal, and the clock signal is used to read the third group of interface data.
[0165] The components of the cyclic redundancy code check device may also include but are not limited to: a sending module, used to send a first read instruction to the storage chip, so that the storage chip transmits a first group of interface data and a second group of interface data in response to the first read instruction, and performs CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of an integer byte, the second group of interface data includes sampling frequency information of a non-integer byte, the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read a third group of interface data.
[0166] The components of the cyclic redundancy code check device may also include but are not limited to: a first CRC check module, used for the storage chip to transmit the first group of interface data, the second group of interface data and the third group of interface data in response to the fifth read instruction, the first CRC check module performs CRC check on the first group of interface data to generate a first check code, and the first group of interface data includes sampling frequency information of an integer byte; a second CRC check module, used for the second CRC check module to perform CRC check on the second group of interface data based on the first check code to generate a second check code, and the second group of interface data includes sampling frequency information of a non-integer byte, wherein the sampling frequency information is used to calibrate the clock signal, and the clock signal is used to read the third group of interface data.
[0167] The components of the cyclic redundancy code check device may also include but are not limited to: a sending module, used to send a fifth read instruction to the storage chip, so that the storage chip transmits the first group of interface data, the second group of interface data and the third group of interface data in response to the fifth read instruction, and performs CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of whole bytes, the second group of interface data includes sampling frequency information of non-whole bytes, the sampling frequency information is used to calibrate the clock signal, and the clock signal is used to read the third group of interface data.
[0168] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0169] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0170] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the cyclic redundancy check scheme for the memory chip interface data in the above embodiment.
[0171] In this application, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance; the term "plurality" refers to two or more, unless otherwise expressly defined. Terms such as "installed", "connected", "connected", and "fixed" should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0172] In the description of the present application, it should be understood that the directions or positional relationships indicated by the terms "up", "down", "left", "right", "front", "back", etc. are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or unit referred to must have a specific direction, be constructed and operated in a specific orientation, and therefore, should not be understood as a limitation on the present application.
[0173] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. After considering the specification and practicing the invention disclosed here, those skilled in the art will easily think of other embodiments of the present disclosure. The present application is intended to cover any modification, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes the common knowledge or customary technical means in the technical field not disclosed in the present disclosure. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims
1. A cyclic redundancy check circuit for interface data, characterized in that: include: A first CRC check module, used to perform CRC check on a first group of interface data of the storage chip, wherein the first group of interface data includes sampling frequency information of whole bytes; A second CRC check module is used to perform CRC check on a second group of interface data of the storage chip, wherein the second group of interface data includes the sampling frequency information of non-integer bytes, The sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read a third group of interface data.
2. The cyclic redundancy check circuit according to claim 1, characterized in that: The first CRC check module is specifically used to: detect the first group of interface data transmitted based on the read instruction, and perform a CRC check on the first group of interface data; The second CRC check module is specifically used to: detect the second group of interface data transmitted based on the read instruction, and perform a CRC check on the second group of interface data, The second group of interface data is transmitted later than the first group of interface data.
3. The cyclic redundancy check circuit according to claim 1, characterized in that: The first CRC check module includes an 8-bit parallel circuit; The second CRC check module includes an A-bit parallel circuit, where A is less than 8. Wherein, A is configured according to the number of bits of the sampling frequency information which is not an integer byte.
4. The cyclic redundancy check circuit according to claim 3, characterized in that: The number of bits of the sampling frequency information that is not an integer byte is configured based on a read instruction type corresponding to the third group of interface data.
5. The cyclic redundancy check circuit according to claim 3, characterized in that: The parallel circuit also includes an XOR operation logic unit.
6. The cyclic redundancy check circuit according to claim 1, characterized in that: Also includes: The first register is electrically connected to the first CRC check module and the second CRC check module respectively, and is used to store the check code generated by the first CRC check module and / or the second CRC check module.
7. The cyclic redundancy check circuit according to claim 1, characterized in that: Also includes: The second register is electrically connected to the first CRC check module and the second CRC check module respectively, and is used to store the first group of interface data and the second group of interface data.
8. The cyclic redundancy check circuit according to any one of claims 1 to 7, characterized in that: The first CRC check module is further used for: detecting the third group of interface data transmitted based on the read instruction, and performing a CRC check on the third group of interface data.
9. A cyclic redundancy code checking method for interface data, characterized in that: Applied to memory chips, including: The storage chip transmits a first group of interface data and a second group of interface data in response to a first read instruction, and a CRC check module performs CRC check on the first group of interface data to generate a first check code, wherein the first group of interface data includes sampling frequency information of a whole byte; The CRC check module performs a CRC check on the second group of interface data based on the first check code to generate a second check code, wherein the second group of interface data includes the sampling frequency information of a non-integer byte, The sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read a third group of interface data.
10. The cyclic redundancy code checking method for interface data according to claim 9, characterized in that: Also includes: After transmitting the second group of interface data, sending the second verification code to an external device, so that the first group of interface data and the second group of interface data are verified by the external device based on the second verification code; The memory chip transmits a third set of interface data in response to a second read instruction; A CRC check is performed on the third group of interface data based on the second check code, and a third check code is generated, so that the third group of interface data is checked on the external device based on the third check code.
11. The cyclic redundancy code checking method for interface data according to claim 10, characterized in that: Also includes: performing a retransmission operation on the first group of interface data and the second group of interface data, The retransmission operation is performed when the external device fails verification based on the second verification code.
12. The cyclic redundancy code checking method for interface data according to claim 11, characterized in that: Before performing a retransmission operation on the first group of interface data and the second group of interface data, the method further includes: receiving feedback information from the external device, the feedback information being used to indicate that verification of the first set of interface data and the second set of interface data has failed; or Receive the first read instruction resent by the external device.
13. The cyclic redundancy code checking method for interface data according to claim 10, characterized in that: The sending the second verification code to the external device comprises: Sending the second verification code to the external device based on the first read instruction; or A third read instruction is received to send the second verification code to the external device based on the third read instruction, wherein the third read instruction is specifically used to read the second verification code.
14. The cyclic redundancy code checking method for interface data according to claim 9, characterized in that: Also includes: The memory chip transmits the third group of interface data in response to a fourth read instruction; The third group of interface data is CRC-checked based on the second check code, and a third check code is generated, so that the first group of interface data, the second group of interface data and the third group of interface data are checked based on the third check code in an external device.
15. The cyclic redundancy code checking method for interface data according to claim 14, characterized in that: Also includes: performing a retransmission operation on the first group of interface data, the second group of interface data, and the third group of interface data, The retransmission operation is performed when the external device fails verification based on the third verification code.
16. A cyclic redundancy code checking method for interface data, characterized in that: Applicable to external devices, including: A first read instruction is sent to a storage chip, so that the storage chip transmits a first group of interface data and a second group of interface data in response to the first read instruction, and performs CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of an integer byte, the second group of interface data includes the sampling frequency information of a non-integer byte, the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read a third group of interface data.
17. The cyclic redundancy code checking method for interface data according to claim 16, characterized in that: Also includes: receiving a second check code, where the second check code is generated by the storage chip performing a CRC check on the second group of interface data based on the first check code, and the first check code is generated by the storage chip performing a CRC check on the first group of interface data; Sending a second read instruction to the memory chip, so that the memory chip transmits the third group of interface data in response to the second read instruction; After receiving the third group of interface data, a third check code is received to verify the third group of interface data based on the third check code, wherein the third check code is generated by the storage chip performing a CRC check on the third group of interface data based on the second check code.
18. The cyclic redundancy code checking method for interface data according to claim 17, characterized in that: Also includes: If the first group of interface data and the second group of interface data fail to be verified based on the second verification code, feedback information is sent to the storage chip, or the first read instruction is resent to the storage chip.
19. The cyclic redundancy code checking method for interface data according to claim 17, characterized in that: Before receiving the second verification code, the method further includes: A third read instruction is sent to read the second verification code based on the third read instruction.
20. The cyclic redundancy code checking method for interface data according to claim 16, characterized in that: Also includes: Sending a fourth read instruction to the memory chip, so that the memory chip transmits the third group of interface data in response to the fourth read instruction; receiving a third check code, where the third check code is generated by the storage chip performing a CRC check on the third group of interface data based on the second check code; The first group of interface data, the second group of interface data, and the third group of interface data are verified based on the third verification code.
21. A cyclic redundancy code checking method for interface data, characterized in that: Applied to memory chips, including: The memory chip transmits a first group of interface data, a second group of interface data and a third group of interface data in response to a fifth read instruction, and a CRC check module performs a CRC check on the first group of interface data to generate a first check code, wherein the first group of interface data includes sampling frequency information of a whole byte; The CRC check module performs a CRC check on the second group of interface data based on the first check code to generate a second check code, wherein the second group of interface data includes the sampling frequency information of a non-integer byte, The sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read the third group of interface data.
22. The cyclic redundancy code checking method for interface data according to claim 21, characterized in that: Also includes: Performing CRC check on the third group of interface data based on the second verification code to generate a third verification code; After transmitting the third group of interface data, the third verification code is sent to an external device, so that the first group of interface data, the second group of interface data and the third group of interface data are verified at the external device based on the third verification code.
23. The cyclic redundancy code checking method for interface data according to claim 22, characterized in that: Also includes: performing a retransmission operation on the first group of interface data, the second group of interface data, and the third group of interface data, The retransmission operation is performed when the external device fails verification based on the third verification code.
24. A cyclic redundancy code checking method for interface data, characterized in that: Applicable to external devices, including: A fifth read instruction is sent to the memory chip, so that the memory chip transmits a first group of interface data, a second group of interface data and a third group of interface data in response to the fifth read instruction, and performs CRC check on the first group of interface data and the second group of interface data, the first group of interface data includes sampling frequency information of an integer byte, the second group of interface data includes the sampling frequency information of a non-integer byte, the sampling frequency information is used to calibrate a clock signal, and the clock signal is used to read the third group of interface data.
25. The cyclic redundancy code checking method for interface data according to claim 24, characterized in that: Also includes: After receiving the third group of interface data, receiving a third check code, the third check code is generated by the storage chip performing a CRC check on the third group of interface data based on the second check code, the second check code is generated by the storage chip performing a CRC check on the second group of interface data based on the first check code, and the first check code is generated by the storage chip performing a CRC check on the first group of interface data; The first group of interface data, the second group of interface data, and the third group of interface data are verified based on the third verification code.
26. A memory chip, characterized in that: include: A cyclic redundancy check circuit as claimed in any one of claims 1 to 8.
