The invention provides a writing method and a writing circuit based on an RRAM
chip, and relates to the technical field of memory
circuit design, the method comprises the following steps: when a writing instruction for a target RRAM
chip is received, reading a formation state flag of the target RRAM
chip; wherein if the formation state flag is not formed, the target RRAM chip does not execute one-time initialization operation; and when the formation state flag is not formed, executing an initialization operation on the target RRAM chip, and setting the target RRAM chip in the first
logic state through the initialization operation to complete the write-in instruction. According to the method and the device, the optimal writing reliability and
data stability can be provided for key application scenes, such as a solidified
test program code, a storage equipment calibration parameter or a secure root key, which only need to write data at one time.