A magnetic storage structure and a method of detecting interference based thereon

By dividing the magnetic storage structure into monitoring and verification storage areas and using verification circuits to detect data rewriting, the problem of data rewriting in magnetic random access memory under harsh environments is solved, achieving high accuracy and low cost in interference detection.

CN116417020BActive Publication Date: 2026-06-19ZHEJIANG HIKSTOR TECHOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG HIKSTOR TECHOGY CO LTD
Filing Date
2021-12-29
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

In harsh environments such as high temperature and high-intensity magnetic fields, the data in magnetic random access memory is easily rewritten. Existing technologies require additional sensors and sensing devices, which increases cost and complexity.

Method used

The magnetic storage structure is divided into a monitoring storage area and a verification storage area. The verification circuit is used to determine whether the monitoring data has been overwritten. The data overwriting situation in the main storage area is inferred from the data overwriting situation in the monitoring storage area, simplifying the structure without adding sensors.

🎯Benefits of technology

It improves the accuracy of data rewriting in harsh environments, reduces costs, and maintains high accuracy in abnormal scenarios such as high temperature and strong magnetic field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116417020B_ABST
    Figure CN116417020B_ABST
Patent Text Reader

Abstract

This invention provides a magnetic storage structure and a method for detecting interference based thereon. The magnetic storage structure includes a magnetic storage area, a non-magnetic storage area, and a verification circuit. The magnetic storage area comprises a main storage area and a monitoring storage area, with the monitoring storage area used to write initial monitoring data. The non-magnetic storage area includes a verification storage area, with the verification storage area used to write verification data. The verification circuit acquires the monitoring data currently stored in the monitoring storage area and uses the verification data to verify the monitoring data, thereby determining whether the initial monitoring data written to the monitoring storage area has been overwritten. Since the main storage area and the monitoring storage area, both being magnetic storage, have the same interference characteristics, the method infers whether the data stored in the main storage area has been overwritten by monitoring the data rewriting status of the monitoring storage area. This improves the accuracy of interference detection by detecting whether the data stored in the magnetic storage structure has been overwritten under harsh environments such as high temperature and high-intensity magnetic fields. The structure is simplified, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of storage technology, and in particular to a magnetic storage structure and a method for detecting interference based thereon. Background Technology

[0002] Magnetic random access memory (RAM) is susceptible to data rewriting in harsh environments such as high temperatures and strong magnetic fields. Currently, two main technical approaches are used to address this issue. The first approach, from a protective perspective, involves adding antimagnetic and high-temperature resistant materials and structures, such as antimagnetic encapsulation or plastic encapsulation with heat sinks. The second approach, from a preventative perspective, involves adding structures or devices that detect interference from harsh external environments such as high temperatures or strong magnetic fields. This can be achieved by adding magnetic and thermal sensors to detect changes in the surrounding environment of the RAM, providing data for subsequent response mechanisms. However, the second approach requires additional sensor devices, and different sensors are needed for different types of interference, increasing costs and production complexity. Summary of the Invention

[0003] This invention provides a magnetic storage structure and a method for detecting interference based thereon, which can monitor whether the data in the main storage area of ​​the magnetic storage device is rewritten due to external interference without adding additional sensors or additional fabrication steps, thus simplifying the structure and reducing costs.

[0004] In a first aspect, the present invention provides a magnetic storage structure, comprising a magnetic storage area, a non-magnetic storage area, and a verification circuit. The magnetic storage area includes a main storage area and a monitoring storage area, the monitoring storage area being used to write initial monitoring data. The non-magnetic storage area includes a verification storage area, which is used to write verification data, which is generated based on the initial monitoring data. The verification circuit is used to acquire the monitoring data currently stored in the monitoring storage area and to verify the monitoring data using the verification data, in order to determine whether the initial monitoring data written to the monitoring storage area has been overwritten.

[0005] In the above scheme, a monitoring storage area is defined within the magnetic storage area, and initial monitoring data is written into this area. A verification storage area is defined within the non-magnetic storage area to store verification data generated from the initial monitoring data. A verification circuit uses the verification data to verify the monitoring data currently stored in the monitoring storage area, thus determining whether the initial monitoring data written into the monitoring storage area has been overwritten. Since both the main storage area and the monitoring storage area, being magnetic storage, have the same interference characteristics, the data rewriting status of the monitoring storage area can fully characterize the status of the main storage area when the external environment's temperature and magnetic field strength change. By inferring whether the data stored in the main storage area has been overwritten through the data rewriting status of the monitoring storage area, the accuracy of interference detection can be improved by detecting whether the data stored in the magnetic storage structure has been overwritten under harsh environments such as high temperature and high-intensity magnetic fields. The interference detection structure shown above utilizes the magnetic storage array and non-magnetic storage array inherent in the magnetic random access memory (RAM). This allows for monitoring whether the data in the main storage area of ​​the magnetic RAM has been overwritten due to external interference without adding additional sensors or fabrication steps, simplifying the structure and reducing costs. This invention enables the magnetic storage structure to detect data rewriting caused by interference and feeds this information back to an external system for appropriate countermeasures. Furthermore, the interference detection structure and method of this invention are more effective and accurate in application scenarios where interference factors such as high temperatures and strong magnetic fields are not the norm—that is, when the occurrence of strong interference environments is low-probability (abnormal) or intentional.

[0006] In one specific implementation, the non-magnetic storage area further includes a configuration storage area containing a verification flag. The verification flag is used to write a first flag and a second flag; the first flag indicates that the initial monitoring data written to the monitoring storage area has not been overwritten, and the second flag indicates that the initial monitoring data written to the monitoring storage area has been overwritten. By allocating a configuration storage area containing the verification flag from the non-magnetic storage area, the verification results can be stored, allowing external systems to obtain information about data interference in the main storage area by reading the verification flag.

[0007] In one specific implementation, there is at least one monitoring storage area; and at least one monitoring storage area is distributed within the main storage area, so that the data rewriting status of the monitoring storage area can more accurately reflect the data rewriting status within the main storage area.

[0008] In one specific implementation, the main storage area includes at least one storage block, and each storage block contains at least one monitoring storage area. This can take into account the uneven distribution of the interfering magnetic field, so that the data rewriting status of the monitoring storage area can more accurately reflect the data rewriting status in the main storage area.

[0009] In one specific implementation, the non-magnetic storage area is a one-time programmable memory to prevent the verification data from being overwritten due to interference.

[0010] In one specific embodiment, the magnetic storage structure further includes: a verification trigger circuit connected to the verification circuit to trigger the verification circuit to perform verification, which facilitates the triggering of the verification circuit to perform detection.

[0011] In one specific embodiment, the magnetic storage structure further includes an input control circuit and an output control circuit. The input control circuit is connected to the verification trigger circuit and is used to input a data stream containing verification trigger bits. "0" and "1" on the verification trigger bits indicate that the verification circuit is triggered for verification detection and that the verification circuit is not triggered for verification, respectively. The output control circuit is connected to the verification circuit and is used to output a data stream containing verification completion bits and verification result data bits. "0" and "1" on the verification completion bits indicate that the verification circuit has not completed verification and that the verification circuit has completed verification, respectively. When the verification result data bits are a first data string, it indicates that the initial monitoring data in the monitoring storage area has not been overwritten; when the verification result data bits are a second data string, it indicates that the initial monitoring data in the monitoring storage area has been overwritten. This facilitates the external system to embed trigger signals for the verification circuit to detect in the input data stream, and also facilitates the magnetic storage structure to output verification results to the outside.

[0012] Secondly, the present invention also provides a method for detecting interference based on the above-mentioned magnetic storage structure. The method includes: writing initial monitoring data into a monitoring storage area; generating verification data based on the initial monitoring data; writing the verification data into a verification storage area; obtaining the monitoring data currently stored in the monitoring storage area; and using the verification data to verify the monitoring data to determine whether the initial monitoring data written into the monitoring storage area has been rewritten.

[0013] In the above scheme, a monitoring storage area is defined within the magnetic storage area, and initial monitoring data is written into this area. A verification storage area is defined within the non-magnetic storage area to store verification data generated from the initial monitoring data. A verification circuit uses the verification data to verify the monitoring data currently stored in the monitoring storage area, thus determining whether the initial monitoring data written into the monitoring storage area has been overwritten. Since both the main storage area and the monitoring storage area, being magnetic storage, have the same interference characteristics, the data rewriting status of the monitoring storage area can fully characterize the status of the main storage area when the external environment's temperature and magnetic field strength change. By inferring whether the data stored in the main storage area has been overwritten through the data rewriting status of the monitoring storage area, the accuracy of interference detection can be improved by detecting whether the data stored in the magnetic storage structure has been overwritten under harsh environments such as high temperature and high-intensity magnetic fields. The interference detection structure shown above utilizes the magnetic storage array and non-magnetic storage array inherent in the magnetic random access memory (RAM). This allows for monitoring whether the data in the main storage area of ​​the magnetic RAM has been overwritten due to external interference without adding additional sensors or fabrication steps, simplifying the structure and reducing costs. This invention enables the magnetic storage structure to detect data rewriting caused by interference and feeds this information back to an external system for appropriate countermeasures. Furthermore, the interference detection structure and method of this invention are more effective and accurate in application scenarios where interference factors such as high temperatures and strong magnetic fields are not the norm—that is, when the occurrence of strong interference environments is low-probability (abnormal) or intentional.

[0014] In one specific implementation, the non-magnetic storage area also includes a configuration storage area containing a verification flag. The interference detection method further includes: when it is determined that the initial monitoring data in the monitoring storage area has not been modified, the verification flag is written to a first flag; when it is determined that the initial monitoring data in the monitoring storage area has been modified, the verification flag is written to a second flag. By allocating a configuration storage area containing a verification flag within the non-magnetic storage area, the verification results can be stored, facilitating external systems to obtain information about the interference status of the data in the main storage area by reading the verification flag.

[0015] In one specific implementation, writing initial monitoring data to the monitoring storage area includes: writing the factory information of the magnetic storage structure to the monitoring storage area, thereby reducing storage space consumption by using the factory information that must be stored in the magnetic storage structure as the initial monitoring data.

[0016] In one specific implementation, generating verification data based on initial monitoring data includes using the initial monitoring data as verification data, so that when generating verification data, only copying is required, without the need for calculation, thus reducing the amount of computation.

[0017] In one specific implementation, generating verification data based on initial monitoring data includes: inputting the initial monitoring data into a verification algorithm to generate verification data corresponding to the initial monitoring data; and obtaining the corresponding verification data through the verification algorithm based on the input initial monitoring data, thereby reducing the length of the verification data and reducing the storage space required for the verification storage area.

[0018] In one specific implementation, the verification algorithm is a parity check algorithm, Hamming code algorithm, CRC16 / 32 check algorithm, Adler-32 check algorithm, MD5 check algorithm, or SHA1 / 256 / 512 check algorithm, which facilitates the generation of verification data corresponding to the initial monitoring data.

[0019] In one specific implementation, the verification circuit is also connected to a verification trigger circuit. Before acquiring the monitoring data currently stored in the monitoring storage area, the interference detection method includes: triggering the verification circuit through the verification trigger circuit to perform verification, which facilitates the triggering of the verification circuit for detection.

[0020] In one specific implementation, the verification trigger circuit is also connected to an input control circuit, and the verification circuit is also connected to an output control circuit. Before triggering the verification circuit to perform verification, the interference detection method further includes: the input control circuit inputting a data stream containing verification trigger bits; wherein, "0" and "1" on the verification trigger bits indicate that the verification circuit is triggered to perform verification detection and that the verification circuit is not triggered to perform verification, respectively. After using the verification data to verify the monitoring data to determine whether the initial monitoring data written into the monitoring storage area has been overwritten, the interference detection method further includes: the output control circuit outputting a data stream containing verification completion bits and verification result data bits; wherein, "0" and "1" on the verification completion bits indicate that the verification circuit has not completed verification and that the verification circuit has completed verification, respectively; when the verification result data bits are the first data string, it indicates that the initial monitoring data in the monitoring storage area has not been overwritten; when the verification result data bits are the second data string, it indicates that the initial monitoring data in the monitoring storage area has been overwritten. This facilitates the external system to embed a trigger signal for triggering the verification circuit to perform detection in the input data stream, and also facilitates the magnetic storage structure to output the verification result to the outside. Attached Figure Description

[0021] Figure 1 This is a structural block diagram of a magnetic storage structure provided in an embodiment of the present invention;

[0022] Figure 2 This is a structural block diagram of another magnetic storage structure provided in an embodiment of the present invention;

[0023] Figure 3 This is a structural block diagram of another magnetic storage structure provided in an embodiment of the present invention;

[0024] Figure 4 This is a structural block diagram of another magnetic storage structure provided in an embodiment of the present invention;

[0025] Figure 5 This is a schematic diagram illustrating the distribution of monitoring storage areas within the main storage area, as provided in an embodiment of the present invention.

[0026] Figure 6 A flowchart of a method for detecting interference provided in an embodiment of the present invention;

[0027] Figure 7 A flowchart of another method for detecting interference provided in an embodiment of the present invention.

[0028] Figure label:

[0029] 11-Main storage area 12-Monitoring storage area 21-Verification storage area

[0030] 22-Configuration storage area 221-Verification flag 30-Verification circuit

[0031] 31-Verification trigger circuit; 41-Input control circuit; 42-Output control circuit Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0033] To facilitate understanding of the magnetic storage structure provided in the embodiments of the present invention, the application scenarios of the magnetic storage structure provided in the embodiments of the present invention will be described first. This magnetic storage structure is applied to memories such as, but not limited to, MRAM, and can also be applied to servers containing magnetic memories. The magnetic storage structure will now be described in detail with reference to the accompanying drawings.

[0034] refer to Figure 1 and Figure 6The magnetic storage structure provided in this embodiment of the invention includes a magnetic storage area, a non-magnetic storage area, and a verification circuit 30. The magnetic storage area includes a main storage area 11 and a monitoring storage area 12, with the monitoring storage area 12 used to write initial monitoring data. The non-magnetic storage area includes a verification storage area 21, which is used to write verification data, generated based on the initial monitoring data. The verification circuit 30 is used to acquire the monitoring data currently stored in the monitoring storage area 12 and use the verification data to verify the monitoring data, thereby determining whether the initial monitoring data written to the monitoring storage area 12 has been overwritten.

[0035] In the above scheme, a monitoring storage area 12 is divided within the magnetic storage area, and initial monitoring data is written into the monitoring storage area 12. A verification storage area 21 is divided within the non-magnetic storage area to store verification data generated based on the initial monitoring data. The verification circuit 30 uses the verification data to verify the monitoring data currently stored in the monitoring storage area 12 to determine whether the initial monitoring data written into the monitoring storage area 12 has been overwritten. Since the main storage area 11 and the monitoring storage area 12, which are both magnetic storage, have the same interference characteristics, the data overwriting status of the monitoring storage area 12 can fully characterize the status of the main storage area 11 when the temperature and magnetic field strength of the external environment change. By inferring whether the data stored in the main storage area 11 has been overwritten by monitoring the data overwriting status of the monitoring storage area 12, the accuracy of interference detection can be improved by detecting whether the data stored in the magnetic storage structure has been overwritten under the interference of harsh environments such as high temperature and high-intensity magnetic fields. The interference detection structure shown above utilizes the magnetic storage array and non-magnetic storage array inherent in the magnetic random access memory (RAM). This allows monitoring of whether data in the main storage area 11 of the magnetic RAM has been overwritten due to external interference without adding additional sensors or fabrication steps, simplifying the structure and reducing costs. In other words, this invention enables the magnetic storage structure to detect data rewriting caused by interference and feeds this information back to an external system for appropriate countermeasures. Furthermore, the interference detection structure and method of this invention are more effective and accurate in application scenarios where interference factors such as high temperature and strong magnetic fields are not normal, i.e., when the occurrence of strong interference environments is low-probability (abnormal) or intentional. The various structures described above will be described in detail below with reference to the accompanying drawings.

[0036] When setting up main storage area 11, refer to... Figure 1This magnetic storage area contains a large number of magnetic storage units. Each magnetic storage unit uses a flipping magnetic field to toggle between two states representing "0" and "1" to achieve data storage, specifically for storing data from external systems. Specifically, each magnetic storage unit may contain a magnetic tunnel junction for data storage. The magnetic storage area is divided into a main storage area 11 and a monitoring storage area 12. The main storage area 11 is used for normal data storage; this data is not used for subsequent verification by the verification circuit 30. For the specific configuration of the main storage area 11, refer to... Figure 5 The main storage area 11 may contain at least one storage bank, and each storage bank has multiple magnetic tunnel junctions arranged in an array. For example, when the main storage area 11 supports 1GB of storage space, four storage banks can be set up, and each storage bank supports 256MB of storage space.

[0037] like Figure 1 and Figure 6 As shown, a monitoring storage area 12 is also divided within the magnetic storage area. This monitoring storage area 12 is used to write initial monitoring data. Subsequent verification of whether the initial monitoring data in the monitoring storage area 12 has been overwritten determines whether the data stored in the main storage area 11 has been overwritten due to interference. When specifically dividing the monitoring storage area 12, at least one monitoring storage area 12 can be divided within the magnetic storage area. This monitoring storage area 12 can be located outside the main storage area 11, i.e., at the edge of the main storage area 11. Alternatively, at least one monitoring storage area 12 can be arranged within the main storage area 11, thus allowing the data overwriting status of the monitoring storage area 12 to more accurately reflect the data overwriting status within the main storage area 11. Specifically, one, two, three, four, eight, or twelve monitoring storage areas 12 can be divided within the magnetic storage area. For example, a monitoring storage area 12 can be divided in each of the four corner areas of the magnetic storage area, or a monitoring storage area 12 can be divided in the center area of ​​the magnetic storage area. Of course, reference... Figure 5 Furthermore, at least one monitoring storage area 12 can be distributed in each storage block to account for the uneven distribution of interfering magnetic fields, allowing the data rewriting situation in the monitoring storage area 12 to more accurately reflect the data rewriting situation in the main storage area 11. It should be understood that the above only shows a few ways to divide the magnetic storage area into monitoring storage areas 12; other methods can also be used.

[0038] When selecting initial monitoring data, any data string can be used. In a preferred embodiment, factory information can be used as the initial monitoring data. This factory information can be information that needs to be identified at the factory, such as, but not limited to, the chip serial number. In this case, when writing initial monitoring data to monitoring storage area 12, the factory information of the magnetic storage structure is specifically written to monitoring storage area 12. By using the factory information that must be stored in the magnetic storage structure as the initial monitoring data, and since the corresponding verification data is also stored in the verification storage area 21 of the magnetic storage structure, and the monitoring data can be derived from the verification data, there is no need to allocate additional storage space to store the factory information used as initial monitoring data, thus reducing storage space consumption. In addition, the monitoring data can be written into monitoring storage area 12 after initializing monitoring storage area 12 during wafer-level testing of the magnetic storage structure.

[0039] Continue to refer to Figure 1 This magnetic storage structure also includes a non-magnetic storage area. Specifically, the storage area of ​​the magnetic storage structure can be divided into magnetic and non-magnetic storage areas during the chip design stage. The storage principle of the storage cells in the non-magnetic storage area does not rely on the flipping magnetic field, so the data stored in the non-magnetic storage area will not be overwritten when the magnetic storage structure is subjected to magnetic interference. When specifically setting up the non-magnetic storage area, other non-magnetic NVMs (non-volatile memory) can be used, specifically one-time programmable memory, to store the configuration information and identification information of the magnetic storage structure, preventing verification data from being overwritten due to interference. It should be understood that the non-magnetic storage area is not limited to the one-time programmable memory setting method; other non-magnetic memories can also be used as the non-magnetic storage area. For example... Figure 1 and Figure 6 As shown, a verification storage area 21 is divided within the non-magnetic storage area. Verification storage area 21 is used to write verification data, which is generated based on the initial monitoring data; that is, the verification data and the initial monitoring data have a corresponding correlation. When there is a change between the monitoring data read from monitoring storage area 12 and the initial monitoring data, the verification data can detect the change, thereby verifying whether the initial monitoring data written to monitoring storage area 12 has been overwritten. Furthermore, this verification data can be written into the verification storage bit after initializing the configuration storage area 22 during wafer-level testing of the magnetic storage structure.

[0040] When generating verification data, the verification data can be identical to the monitoring data. That is, the data string of the verification data and the data string of the monitoring data must have the same length and the value of each data bit. Therefore, during subsequent verification, a direct comparison between the verification data and the monitoring data can reveal whether there are any differences, thus determining whether the initial monitoring data written to the monitoring storage area 12 has been overwritten. Furthermore, generating verification data only requires copying, eliminating the need for calculations and reducing computational load.

[0041] It should be noted that, in addition to the methods shown above, other methods can also be used to generate verification data. For example, a verification algorithm can be used to generate verification data corresponding to the initial monitoring data. Specifically, the initial monitoring data can be input into the verification algorithm to generate verification data corresponding to the initial monitoring data. By obtaining the corresponding verification data based on the input initial monitoring data through the verification algorithm, the length of the verification data can be reduced, thereby reducing the storage space required for the verification storage area 21. When specifically selecting a verification algorithm, various verification algorithms capable of generating uniquely corresponding check codes can be used. Specifically, the verification algorithm can be a parity check algorithm, Hamming code algorithm, CRC16 / 32 check algorithm, Adler-32 check algorithm, MD5 check algorithm, or SHA1 / 256 / 512 check algorithm, which facilitates the generation of verification data corresponding to the initial monitoring data.

[0042] like Figure 1 , Figure 6 and Figure 7As shown, a verification circuit 30 is also provided. This verification circuit 30 can acquire the monitoring data currently stored in the monitoring storage area 12. Specifically, the verification circuit 30 may include a read circuit that directly reads the currently stored monitoring data from the monitoring storage area 12. Alternatively, the verification circuit 30 may not have a read circuit that directly reads the currently stored monitoring data from the monitoring storage area 12, but instead be connected to the read circuit of the magnetic storage area to acquire the currently stored monitoring data from the read circuit. Of course, this verification circuit 30 can also acquire the verification data stored in the verification storage area 21. Specific implementation methods may include reading the read circuit of the verification storage area 21, or it may not include a read circuit but be connected to the read circuit to acquire the verification data stored in the verification storage area 21. This verification circuit 30 is also used to verify the monitoring data using the verification data to determine whether the initial monitoring data written into the monitoring storage area 12 has been overwritten. When determining whether a magnetic storage structure is subject to interference, since the main storage area 11 and the monitoring storage area 12, both being magnetic storage, have the same interference characteristics, the data rewriting status of the monitoring storage area 12 can fully characterize the status of the main storage area 11 when the external environment's temperature and magnetic field strength change. By monitoring the data rewriting status of the monitoring storage area 12, it can be inferred whether the data stored in the main storage area 11 has been rewritten. This allows for the detection of whether the data stored in the magnetic storage structure has been rewritten under harsh environments such as high temperature and high-intensity magnetic fields, improving the accuracy of interference detection. The interference detection structure shown above utilizes the magnetic storage array and non-magnetic storage array inherent in the magnetic random access memory. It can monitor whether the data in the main storage area 11 of the magnetic memory has been rewritten due to external interference without adding additional sensors or fabrication steps, simplifying the structure and reducing costs. In other words, by enabling the magnetic storage structure to detect data rewriting caused by interference and feeding it back to an external system, the external system can take countermeasures. Furthermore, the structure and method for detecting interference in this invention have higher detection effectiveness and accuracy in application scenarios where interference factors such as high temperature and strong magnetic field are not normal, that is, when the occurrence of strong interference environment in such scenarios is low probability (abnormal) or intentional.

[0043] Additionally, refer to Figure 2 , Figure 6 and Figure 7 In addition to the non-magnetic storage area, a configuration storage area 22 can also be set up, that is, the storage units in the configuration storage area 22 are all non-magnetic storage units. For example Figure 2As shown, a verification flag 221 is partitioned in the configuration storage area 22. This verification flag 221 is used to write a first flag and a second flag. The first flag indicates that the initial monitoring data written into the monitoring storage area 12 has not been overwritten, meaning that the magnetic storage structure has been subjected to interference sufficient to overwrite the data stored within it. The second flag indicates that the initial monitoring data written into the monitoring storage area 12 has been overwritten, meaning that the magnetic storage structure has not been subjected to interference sufficient to overwrite the data stored within it. The first flag can be a high-level signal, and the second flag can be a low-level signal. Of course, they can also be set in reverse. In addition, the first flag can be represented by binary "1", and the second flag can be represented by binary "0", or vice versa. By partitioning the non-magnetic storage area into a configuration storage area 22 containing the verification flag 221, the verification results can be stored, making it convenient for external systems to obtain the interference status of the data in the main storage area 11 by reading the verification flag 221.

[0044] Additionally, refer to Figure 3 A verification trigger circuit 31 can also be set up, which is connected to the verification circuit 30, to send a trigger signal to the verification circuit 30 to trigger the verification circuit 30 to perform verification, facilitating the detection of the verification circuit 30. This verification trigger circuit 31 can be connected to the read circuit of the magnetic storage area to automatically trigger the verification circuit 30 to perform verification after each read operation. Alternatively, the verification trigger circuit 31 can also be connected to the main control module in the magnetic storage structure, so that the main control module can issue a command to trigger the verification circuit 30 to perform verification.

[0045] Furthermore, the verification trigger circuit 31 can also trigger the verification circuit 30 via a verification command signal received from an external source through the magnetic storage structure. For details, see [reference needed]. Figure 4 and Figure 7In this magnetic storage structure, an input control circuit 41 and an output control circuit 42 can also be provided. The input control circuit 41 is connected to the verification trigger circuit 31 and is used to input a data stream containing a verification trigger bit. This data stream, in addition to the data stored in the verification trigger bit, can also contain other data that needs to be stored in the main storage area 11. A binary "0" or "1" can be written to the verification trigger bit, where "0" and "1" respectively indicate that the verification circuit 30 is triggered to perform verification detection and that verification detection is not triggered. Specifically, writing "0" to the verification trigger bit indicates that verification detection is not triggered, and writing "1" indicates that verification detection is triggered. The verification trigger circuit 31 triggers verification detection in the manner described above. Of course, the opposite representation can also be used. Of course, the data stream received by the input control circuit 41 can contain other data besides the verification trigger bit. This data could be data to be written to the main storage area 11, etc. That is, in this case, the command signal for triggering verification is embedded in the verification trigger bit to control the verification trigger circuit 31 to trigger the verification circuit 30 to perform verification. When the input control circuit 41 inputs the received data stream to the read / write circuit of the magnetic storage area for normal read / write operations, if the verification trigger bit is written to "0" to indicate that verification detection is not triggered, then normal read / write operations are performed, and the data to be written to the main storage area 11 in the data stream is written to the corresponding storage area. Specifically, the write operation can be implemented through a row decoder, column decoder, input control module, and input module. When the data stream received by the control input current also contains command information for performing a read operation, the corresponding read operation can be performed through the input control module, input module, row decoder, column decoder, and sensitive amplifier to obtain the target data.

[0046] The output control circuit 42 is connected to the verification circuit 30 and is used to output a data stream containing a verification completion bit and a verification result data bit. A "0" and a "1" on the verification completion bit indicate that the verification circuit 30 has not completed the verification and that the verification circuit 30 has completed the verification, respectively. Specifically, a "0" on the verification completion bit can indicate that the verification circuit 30 has not completed the verification. When the verification trigger bit in the data stream received by the input control circuit 41 is also "0" (meaning no verification is triggered), the control output circuit will also output a "0" on the verification completion bit of the output data stream to indicate that the verification circuit 30 has not completed the verification. When the verification trigger bit in the data stream received by the input control circuit 41 is "1" (meaning the verification circuit 30 is triggered to perform verification), and the verification circuit 30 is triggered and completes the verification, the output control circuit 42 will also write a "1" on the verification completion bit of its output data stream to indicate that the verification circuit 30 has completed the verification. Of course, the above representation can also be expressed in reverse.

[0047] Correspondingly, the output control circuit 42 writes a "1" to the verification completion bit in its output data stream to indicate that when the verification circuit 30 completes the verification, the output control circuit 42 still needs to further obtain the verification result. This verification result may be that the initial monitoring data in the monitoring storage area 12 has not been modified, or it may be that the initial monitoring data in the monitoring storage area 12 has been modified. Specifically, when embedding the verification result into its output data stream, the verification result is written to the verification result data bit. For example, when the verification result data bit is the first data string, for example, the first data string can be a data string such as AA..AA, which can indicate that the initial monitoring data in the monitoring storage area 12 has not been modified, that is, the data has not been modified due to interference. When the verification result data bit is the second data string, for example, the first data string can be a data string such as 55..55, which indicates that the initial monitoring data in the monitoring storage area 12 has been modified, that is, the data has been modified due to interference. This facilitates the external system to embed a trigger signal to trigger the verification circuit 30 to perform detection in the input data stream, and also facilitates the magnetic storage structure to output the verification result to the outside. Additionally, if the output control circuit 42 writes a "0" to the verification completion bit in its output data stream to indicate that the verification circuit 30 has not completed the verification, it can write a third data string, such as 00...00, different from the first and second data strings, to the verification result data bits to indicate that no verification result was output this time due to incomplete verification. Thus, the verification result is also output each time the control output circuit outputs a data stream.

[0048] The setup described above involves dividing the magnetic storage area into a monitoring storage area 12, where initial monitoring data is written; and dividing the non-magnetic storage area into a verification storage area 21 to store verification data generated based on the initial monitoring data. The verification circuit 30 uses the verification data to verify the monitoring data currently stored in the monitoring storage area 12, thereby determining whether the initial monitoring data written to the monitoring storage area 12 has been overwritten. Since the main storage area 11 and monitoring storage area 12, both being magnetic storage, have the same interference characteristics, the data rewriting status of the monitoring storage area 12 can fully characterize the status of the main storage area 11 when the external environment's temperature and magnetic field strength change. By inferring whether the data stored in the main storage area 11 has been overwritten through the data rewriting status of the monitoring storage area 12, the accuracy of interference detection can be improved by detecting whether the data stored in the magnetic storage structure has been overwritten under harsh environments such as high temperature and high-intensity magnetic fields. The interference detection structure shown above utilizes the magnetic storage array and non-magnetic storage array inherent in the magnetic random access memory (RAM). This allows for monitoring whether data in the main storage area 11 of the magnetic RAM has been rewritten due to external interference without adding additional sensors or fabrication steps, simplifying the structure and reducing costs. In other words, this invention enables the magnetic storage structure to detect data rewriting caused by interference and feeds this information back to an external system for appropriate countermeasures. Furthermore, the interference detection structure and method of this invention are more effective and accurate in application scenarios where interference factors such as high temperature and strong magnetic fields are not normal, meaning that the occurrence of strong interference environments is low-probability (abnormal) or intentional.

[0049] In addition, embodiments of the present invention also provide a method for detecting interference based on the above-described magnetic storage structure, referencing... Figure 1 and Figure 6 The method for detecting interference includes:

[0050] Write initial monitoring data to monitoring storage area 12;

[0051] Generate verification data based on the initial monitoring data;

[0052] Write the verification data to the verification storage area 21;

[0053] Obtain the monitoring data currently stored in monitoring storage area 12;

[0054] The monitoring data is verified using the verification data to determine whether the initial monitoring data written into the monitoring storage area 12 has been overwritten.

[0055] In the above scheme, a monitoring storage area 12 is divided within the magnetic storage area, and initial monitoring data is written into the monitoring storage area 12. A verification storage area 21 is divided within the non-magnetic storage area to store verification data generated based on the initial monitoring data. The verification circuit 30 uses the verification data to verify the monitoring data currently stored in the monitoring storage area 12 to determine whether the initial monitoring data written into the monitoring storage area 12 has been overwritten. Since the main storage area 11 and the monitoring storage area 12, which are both magnetic storage, have the same interference characteristics, the data overwriting status of the monitoring storage area 12 can fully characterize the status of the main storage area 11 when the temperature and magnetic field strength of the external environment change. By inferring whether the data stored in the main storage area 11 has been overwritten by monitoring the data overwriting status of the monitoring storage area 12, the accuracy of interference detection can be improved by detecting whether the data stored in the magnetic storage structure has been overwritten under the interference of harsh environments such as high temperature and high-intensity magnetic fields. The interference detection structure shown above utilizes the magnetic storage array and non-magnetic storage array inherent in the magnetic random access memory (RAM). This allows for monitoring whether data in the main storage area 11 of the magnetic RAM has been rewritten due to external interference without adding additional sensors or fabrication steps, simplifying the structure and reducing costs. In other words, this invention enables the magnetic storage structure to detect data rewriting caused by interference and feeds this information back to an external system for appropriate countermeasures. Furthermore, the interference detection structure and method of this invention are more effective and accurate in application scenarios where interference factors such as high temperature and strong magnetic fields are not normal, meaning that the occurrence of strong interference environments is low-probability (abnormal) or intentional.

[0056] For a detailed description of each of the above steps, please refer to the preceding description of the magnetic storage structure; it will not be repeated here.

[0057] Additionally, refer to Figure 2 and Figure 6 In addition, a configuration storage area 22 containing a verification flag 221 can be set in the non-magnetic storage area. The interference detection method also includes: when it is determined that the initial monitoring data in the monitoring storage area 12 has not been modified, the verification flag 221 is written to a first flag; when it is determined that the initial monitoring data in the monitoring storage area 12 has been modified, the verification flag 221 is written to a second flag. By dividing the non-magnetic storage area into a configuration storage area 22 containing the verification flag 221, the verification results can be stored, making it convenient for external systems to obtain the interference status of the data in the main storage area 11 by reading the verification flag 221. For specific implementation details, please refer to the aforementioned description of the magnetic storage structure; it will not be repeated here.

[0058] When writing initial monitoring data to the monitoring storage area 12, the factory information of the magnetic storage structure can be written to the monitoring storage area 12. By using the factory information that must be stored in the magnetic storage structure as the initial monitoring data, the loss of storage space can be reduced. The method for selecting this factory information can also refer to the description in the aforementioned magnetic storage structure section, and will not be repeated here.

[0059] When generating verification data based on initial monitoring data, the initial monitoring data can be used as the verification data. Therefore, when generating the verification data, only copying is required, eliminating the need for calculation and reducing computational load. For specific comparison methods, please refer to the description in the aforementioned magnetic storage structure section; further details will not be elaborated here.

[0060] Alternatively, other methods can be used to generate verification data. For example, initial monitoring data can be input into a verification algorithm to generate verification data corresponding to the initial monitoring data. The verification algorithm then obtains the corresponding verification data based on the input initial monitoring data, thereby reducing the length of the verification data and the storage space required for the verification storage area 21. Specifically, the verification algorithm can be a parity check algorithm, Hamming code algorithm, CRC16 / 32 check algorithm, Adler-32 check algorithm, MD5 check algorithm, or SHA1 / 256 / 512 check algorithm, facilitating the generation of verification data corresponding to the initial monitoring data. Specific generation methods can be referred to the description in the aforementioned magnetic storage structure section, and will not be repeated here.

[0061] Additionally, refer to Figure 3 The verification circuit 30 can also be connected to a verification trigger circuit 31. Before acquiring the monitoring data currently stored in the monitoring storage area 12, the interference detection method includes: triggering the verification circuit 30 to perform verification through the verification trigger circuit 31, which facilitates the triggering of the verification circuit 30 for detection. For specific implementation details, please refer to the description in the aforementioned magnetic storage structure section, which will not be repeated here.

[0062] Furthermore, refer to Figure 4 , Figure 6 and Figure 7The verification trigger circuit 31 can also be connected to an input control circuit 41, and the verification circuit 30 can also be connected to an output control circuit 42. Before the verification circuit 30 is triggered by the verification trigger circuit 31 for verification, the interference detection method further includes: the input control circuit 41 inputs a data stream containing verification trigger bits; wherein, "0" and "1" on the verification trigger bits indicate that the verification circuit 30 is triggered for verification detection and that the verification circuit 30 is not triggered for verification, respectively. After using the verification data to verify the monitoring data to determine whether the initial monitoring data written into the monitoring storage area 12 has been overwritten, the interference detection method further includes: the output control circuit 42 outputs a data stream containing verification completion bits and verification result data bits; wherein, "0" and "1" on the verification completion bits indicate that the verification circuit 30 has not completed verification and that the verification circuit 30 has completed verification, respectively; when the verification result data bits are the first data string, it indicates that the initial monitoring data in the monitoring storage area 12 has not been overwritten; when the verification result data bits are the second data string, it indicates that the initial monitoring data in the monitoring storage area 12 has been overwritten. This allows external systems to embed trigger signals for detection into the input data stream via the trigger verification circuit 30, and also facilitates the magnetic storage structure's output of verification results. The specific implementation method is described in the aforementioned magnetic storage structure section and will not be repeated here.

[0063] A monitoring storage area 12 is defined within the magnetic storage area, and initial monitoring data is written into it. A verification storage area 21 is defined within the non-magnetic storage area to store verification data generated based on the initial monitoring data. The verification circuit 30 uses the verification data to verify the monitoring data currently stored in the monitoring storage area 12, thereby determining whether the initial monitoring data written into the monitoring storage area 12 has been overwritten. Since the main storage area 11 and monitoring storage area 12, both being magnetic storage, have the same interference characteristics, the data rewriting status of the monitoring storage area 12 can fully characterize the status of the main storage area 11 when the external environment's temperature and magnetic field strength change. By inferring whether the data stored in the main storage area 11 has been overwritten through the data rewriting status of the monitoring storage area 12, the accuracy of interference detection can be improved by detecting whether the stored data in the magnetic storage structure has been overwritten under harsh environments such as high temperature and high-intensity magnetic fields. The interference detection structure shown above utilizes the magnetic storage array and non-magnetic storage array inherent in the magnetic random access memory (RAM). This allows for monitoring whether data in the main storage area 11 of the magnetic RAM has been rewritten due to external interference without adding additional sensors or fabrication steps, simplifying the structure and reducing costs. In other words, this invention enables the magnetic storage structure to detect data rewriting caused by interference and feeds this information back to an external system for appropriate countermeasures. Furthermore, the interference detection structure and method of this invention are more effective and accurate in application scenarios where interference factors such as high temperature and strong magnetic fields are not normal, meaning that the occurrence of strong interference environments is low-probability (abnormal) or intentional.

[0064] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A magnetic storage structure, characterized by, include: The magnetic storage area includes a main storage area and a monitoring storage area, wherein the monitoring storage area is used to write initial monitoring data; there is at least one monitoring storage area, and the at least one monitoring storage area is distributed within the main storage area; the main storage area contains at least one storage block, and each storage block contains at least one monitoring storage area. The non-magnetic storage area includes a verification storage area; the verification storage area is used to write verification data, which is generated based on the initial monitoring data. The verification circuit is used to acquire the monitoring data currently stored in the monitoring storage area and use the verification data to verify the monitoring data in order to determine whether the initial monitoring data written into the monitoring storage area has been rewritten, thereby inferring whether the data stored in the main storage area has been rewritten.

2. The magnetic storage structure of claim 1, wherein, The non-magnetic storage area is also provided with a configuration storage area containing a verification flag bit; The verification flag is used to write a first flag and a second flag; the first flag indicates that the initial monitoring data written into the monitoring storage area has not been overwritten, and the second flag indicates that the initial monitoring data written into the monitoring storage area has been overwritten.

3. The magnetic storage structure as described in claim 1, characterized in that, The non-magnetic storage area is a one-time programmable memory.

4. The magnetic storage structure as described in claim 1, characterized in that, Also includes: A verification trigger circuit connected to the verification circuit is used to trigger the verification circuit to perform verification.

5. The magnetic storage structure as described in claim 4, characterized in that, Also includes: An input control circuit connected to the verification trigger circuit is used to input a data stream containing a verification trigger bit; wherein, "0" and "1" on the verification trigger bit represent triggering the verification circuit to perform verification detection and not triggering the verification circuit to perform verification, respectively; An output control circuit connected to the verification circuit is used to output a data stream containing a verification completion bit and a verification result data bit; wherein, "0" and "1" on the verification completion bit indicate that the verification circuit has not completed the verification and the verification circuit has completed the verification, respectively; when the verification result data bit is a first data string, it indicates that the initial monitoring data in the monitoring storage area has not been modified; when the verification result data bit is a second data string, it indicates that the initial monitoring data in the monitoring storage area has been modified.

6. A method for detecting interference based on the magnetic storage structure of claim 1, characterized in that, include: Initial monitoring data is written to the monitoring storage area; Generate verification data based on the initial monitoring data; Write the verification data into the verification storage area; Obtain the monitoring data currently stored in the monitoring storage area; The monitoring data is verified using the verification data to determine whether the initial monitoring data written into the monitoring storage area has been overwritten, thereby inferring whether the data stored in the main storage area has been overwritten.

7. The interference detection method as described in claim 6, characterized in that, The non-magnetic storage area is also provided with a configuration storage area containing a verification flag bit; The method for detecting interference also includes: When it is determined that the initial monitoring data in the monitoring storage area has not been modified, the verification flag is written into the first flag; When it is determined that the initial monitoring data in the monitoring storage area has been rewritten, the verification flag is written into the second flag.

8. The interference detection method as described in claim 6, characterized in that, The step of writing initial monitoring data to the monitoring storage area includes: Write the factory information of the magnetic storage structure into the monitoring storage area.

9. The interference detection method as described in claim 6, characterized in that, The step of generating verification data based on the initial monitoring data includes: The initial monitoring data is used as the verification data.

10. The interference detection method as described in claim 6, characterized in that, The step of generating verification data based on the initial monitoring data includes: The initial monitoring data is input into the verification algorithm to generate the verification data corresponding to the initial monitoring data.

11. The method for detecting interference as described in claim 10, characterized in that, The verification algorithm is a parity check algorithm, Hamming code algorithm, CRC16 / 32 check algorithm, Adler-32 check algorithm, MD5 check algorithm, or SHA1 / 256 / 512 check algorithm.

12. The interference detection method as described in claim 6, characterized in that, The verification circuit is also connected to a verification trigger circuit; Before acquiring the monitoring data currently stored in the monitoring storage area, the interference detection method includes: triggering the verification circuit to perform verification through the verification trigger circuit.

13. The interference detection method as described in claim 12, characterized in that, The verification trigger circuit is also connected to an input control circuit, and the verification circuit is also connected to an output control circuit. Before triggering the verification circuit to perform verification via the verification trigger circuit, the interference detection method further includes: The input control circuit inputs a data stream containing a verification trigger bit; wherein, "0" and "1" on the verification trigger bit indicate that the verification circuit is triggered to perform verification detection and the verification circuit is not triggered to perform verification, respectively. After verifying the monitoring data using the verification data to determine whether the initial monitoring data written into the monitoring storage area has been overwritten, the interference detection method further includes: The output control circuit outputs a data stream containing a verification completion bit and a verification result data bit; wherein, "0" and "1" on the verification completion bit indicate that the verification circuit has not completed the verification and the verification circuit has completed the verification, respectively; when the verification result data bit is a first data string, it indicates that the initial monitoring data in the monitoring storage area has not been rewritten; when the verification result data bit is a second data string, it indicates that the initial monitoring data in the monitoring storage area has been rewritten.

Citation Information

Patent Citations

  • Security chip, and nonvolatile storage control device and method thereof

    CN106845289A

  • Data integrity validation in a computing environment

    US20100088579A1