TWI707350B - Operation method of one-time programming read-only memory, processor chip and information processing device - Google Patents

Operation method of one-time programming read-only memory, processor chip and information processing device Download PDF

Info

Publication number
TWI707350B
TWI707350B TW109104589A TW109104589A TWI707350B TW I707350 B TWI707350 B TW I707350B TW 109104589 A TW109104589 A TW 109104589A TW 109104589 A TW109104589 A TW 109104589A TW I707350 B TWI707350 B TW I707350B
Authority
TW
Taiwan
Prior art keywords
data
bit
read
memory
time programming
Prior art date
Application number
TW109104589A
Other languages
Chinese (zh)
Other versions
TW202131341A (en
Inventor
李士達
Original Assignee
大陸商北京集創北方科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大陸商北京集創北方科技股份有限公司 filed Critical 大陸商北京集創北方科技股份有限公司
Priority to TW109104589A priority Critical patent/TWI707350B/en
Application granted granted Critical
Publication of TWI707350B publication Critical patent/TWI707350B/en
Publication of TW202131341A publication Critical patent/TW202131341A/en

Links

Images

Landscapes

  • Read Only Memory (AREA)

Abstract

本發明主要揭示一種一次性編程唯讀記憶體之操作方法,其用以將一次性編程唯讀記憶體的一儲存空間分割為一表頭儲存區塊以及一數據儲存區塊。執行數據寫入程序時,透過令一數據包包含至少一第一位元、至少一第二位元以及一數據位元組的方式,可利用該第一位元表示一數據儲存單元內是否已儲存相同的數據位元組,且利用該第二位元表示該數據包所包含的該數據位元組是否正確寫入該數據儲存單元之中。在應用本發明之操作方法的情況下,可以有效提高一次性編程唯讀記憶體的利用率,保證寫入數據的正確性,不會使相同的數據位元組被重複燒寫,同時還可縮短讀寫數據的時間。 The present invention mainly discloses an operation method of one-time programming read-only memory, which is used to divide a storage space of one-time programming read-only memory into a header storage block and a data storage block. When executing the data writing process, by making a data packet include at least one first bit, at least one second bit, and a data byte, the first bit can be used to indicate whether a data storage unit has been The same data byte group is stored, and the second bit is used to indicate whether the data byte group contained in the data packet is correctly written into the data storage unit. In the case of applying the operating method of the present invention, the utilization rate of the read-only memory for one-time programming can be effectively improved, the correctness of the written data is ensured, the same data byte group will not be repeatedly programmed, and at the same time Shorten the time to read and write data.

Description

一次性編程唯讀記憶體之操作方法、處理器晶片及資訊處理裝置Operation method of one-time programming read-only memory, processor chip and information processing device

本發明係關於非揮發性記憶體之讀寫操作的技術領域,尤指一種一次編程唯讀記憶體之操作方法。 The present invention relates to the technical field of read and write operations of non-volatile memory, and particularly refers to an operation method for programming read-only memory once.

隨著3C電子產品的普及使用,廠商對於獨立開發的電子產品的安全性保護也越加重視。舉例而言,為了保護處理器晶片之中的數據,廠商通常會在處理器晶片之中設有一次性編程唯讀記憶體(One Time Programmable Read Only Memory,OTPROM),用以儲存至少一根秘鑰(root key)、一公鑰、及/或一晶片識別碼(chip ID)。目前,一次性編程唯讀記憶體也被應用在智慧型手機所搭載的各種感測晶片之中,從而儲存用以對感測晶片所具有的類比電路進行補正及/或修整的相關參數。另一方面,一次性編程唯讀記憶體也被應用在智慧型手機之中,用以表示該智慧型手機之操作系統的軟體更新級別。 With the widespread use of 3C electronic products, manufacturers are paying more and more attention to the safety protection of independently developed electronic products. For example, in order to protect the data in the processor chip, manufacturers usually set up One Time Programmable Read Only Memory (OTPROM) in the processor chip to store at least one secret key (root key), a public key, and/or a chip ID (chip ID). At present, the one-time programming read-only memory is also used in various sensor chips mounted on smart phones, so as to store relevant parameters for correcting and/or trimming the analog circuit of the sensor chip. On the other hand, one-time programmable read-only memory is also used in smart phones to indicate the software update level of the smart phone's operating system.

OTP唯讀記憶體的編程過程是不可逆的破壞活動,僅允許數據寫入一次。一般而言,初始狀態的OTP唯讀記憶體的各存儲區塊內的各記憶胞(memory cell)所記錄的位元都相同,例如所有位元均為“0”。利用一讀寫控制晶片對該OTP唯讀記憶體進行一次性數據燒寫(寫入)程序之後,即可將指定存儲區塊內之多個記憶胞(memory cell)的位元自“0”改寫為“1”。 The programming process of OTP read-only memory is an irreversible destructive activity, and data is only allowed to be written once. Generally speaking, the bits recorded by each memory cell in each storage block of the OTP read-only memory in the initial state are the same, for example, all bits are "0". After a one-time data programming (write) process is performed on the OTP read-only memory using a read-write control chip, the bits of multiple memory cells in the specified memory block can be reset from "0" Rewritten as "1".

相較於可複寫(Rewritable)記憶體,OTP唯讀記憶體具有較低的製造成本和儲存資料不易遺失的優點。然而,OTP唯讀記憶體僅能進行一次性的數據燒寫。更詳細地說明,一旦前述指定存儲區塊內之特定幾個記憶胞的位元經由所述一次性數據寫入程序而被改寫,所述指定存儲區塊內之該些特定記憶胞便無法被再次執行數據燒錄。 Compared with rewritable memory, OTP read-only memory has the advantages of lower manufacturing cost and less easy loss of stored data. However, OTP read-only memory can only perform one-time data programming. In more detail, once the bits of the specific memory cells in the designated storage block are rewritten through the one-time data write procedure, the specific memory cells in the designated storage block cannot be rewritten. Perform data programming again.

現有技術係透過分區燒寫的方式提高OTP唯讀記憶體的利用率,避免該OTP唯讀記憶體在一次數據燒寫錯誤之後便不能再次燒寫數據。然而,由於無法保證各儲存區塊之燒寫數據的正確性以及避免相同數據同時被分別燒寫在不同存儲區塊內,因此現有技術之可分區燒寫的OTP唯讀記憶體的利用率仍有待改善,且還具有讀寫時間過長的缺陷。In the prior art, the utilization of the OTP read-only memory is improved by partition programming, so as to prevent the OTP read-only memory from being unable to program data again after a data programming error. However, since the correctness of the programming data of each storage block cannot be guaranteed and the same data is prevented from being programmed into different storage blocks at the same time, the utilization rate of the OTP read-only memory that can be programmed by partition in the prior art is still Needs to be improved, and also has the defect of too long read and write time.

由上述說明可知,本領域亟需能夠提高利用率和保證燒寫數據正確性的一種新式的一次性編程唯讀記憶體之操作方法。It can be seen from the above description that there is an urgent need in the art for a new one-time programming read-only memory operation method that can improve the utilization rate and ensure the correctness of the programming data.

本發明之主要目的在於提供一種一次性編程唯讀記憶體之操作方法,從而有效提高現有的任一種一次性編程唯讀記憶體的利用率,使其利用率在理想的情況下為100%。The main purpose of the present invention is to provide an operating method for one-time programming read-only memory, thereby effectively improving the utilization rate of any existing one-time programming read-only memory, so that the utilization rate is 100% under ideal conditions.

本發明之另一目的在於提供一種一次性編程唯讀記憶體之操作方法,從而一次性編程唯讀記憶體的數據寫入正確性,使相同的數據不會被重複寫入該一次性編程唯讀記憶體,同時縮短該一次性編程唯讀記憶體的讀/寫時間。Another object of the present invention is to provide a one-time programming read-only memory operation method, so that the data writing accuracy of the one-time programming read-only memory, so that the same data will not be repeatedly written into the one-time programming only Read the memory and shorten the read/write time of the one-time programming read-only memory.

為達成上述目的,本發明提出所述一次性編程唯讀記憶體之操作方法之一實施例,包括:To achieve the above objective, the present invention proposes an embodiment of the operating method of the one-time programming read-only memory, including:

一初始化程序,包括以下步驟:An initialization procedure, including the following steps:

將一個一次性編程唯讀記憶體的一儲存空間分割為一表頭儲存區塊以及一數據儲存區塊,其中該數據儲存區塊包含複數個數據儲存單元,且該表頭儲存區塊包含複數個表頭儲存單元以分別對應所述複數個數據儲存單元;以及A storage space of a one-time programmable read-only memory is divided into a header storage block and a data storage block, wherein the data storage block includes a plurality of data storage units, and the header storage block includes a plurality of numbers Each table header storage unit corresponds to the plurality of data storage units; and

一數據寫入程序,包括以下步驟:A data writing procedure includes the following steps:

編寫包括至少一第一位元、至少一第二位元以及一待寫入數據位元組的一數據包,其中該第一位元用以表示一個所述數據儲存單元是否已儲存一數據位元組,且該第二位元用以表示該數據位元組是否寫入正確;Write a data packet including at least one first bit, at least one second bit, and a data byte group to be written, wherein the first bit is used to indicate whether a data storage unit has stored a data bit Tuple, and the second bit is used to indicate whether the data byte is written correctly;

自一個所述數據儲存單元讀出所述數據位元組,且在所述待寫入數據位元組和該數據位元組不一致的情況下,將該數據包所含有的所述第一位元和該待寫入數據位元組分別寫入該表頭儲存單元和該數據儲存單元之中;及The data byte group is read from one of the data storage units, and when the data byte group to be written is inconsistent with the data byte group, the first bit contained in the data packet is The element and the data byte group to be written are written into the header storage unit and the data storage unit respectively; and

重複自該數據儲存單元讀出所述數據位元組,且在讀出的所述數據位元組和前述待寫入數據位元組為一致的情況下,將該數據包所含有的所述第二位元寫入該表頭儲存單元。Repeatedly read the data bytes from the data storage unit, and when the read data bytes are consistent with the aforementioned data bytes to be written, the data contained in the data packet The second bit is written into the header storage unit.

在一實施例中,本發明之所述一次性編程唯讀記憶體之操作方法,更包括一數據讀取程序,其包括以下步驟:In one embodiment, the operating method of the one-time programming read-only memory of the present invention further includes a data reading program, which includes the following steps:

自該表頭儲存單元讀取所述第一位元和所述第二位元;及Read the first bit and the second bit from the header storage unit; and

在依據所述第一位元和所述第二位元確認該數據位元組的寫入時間為最新之情況下,將該數據位元組讀出。When it is confirmed that the write time of the data byte is the latest according to the first bit and the second bit, the data byte is read.

在一實施例中,該一次性編程唯讀記憶體為一熔絲型一次性編程唯讀記憶體,且在將該第一位元和該第二位元寫入該表頭儲存單元之前,係先將該第一位元和該第二位元的位元值設為1。In one embodiment, the one-time programming read-only memory is a fuse type one-time programming read-only memory, and before the first bit and the second bit are written into the header storage unit, First, set the bit value of the first bit and the second bit to 1.

在一實施例中,該一次性編程唯讀記憶體為一反熔絲型一次性編程唯讀記憶體,且在將該第一位元和該第二位元寫入該表頭儲存單元之前,係先將該第一位元和該第二位元的位元值設為0。In one embodiment, the one-time programming read-only memory is an anti-fuse type one-time programming read-only memory, and before the first bit and the second bit are written into the header storage unit , First set the bit value of the first bit and the second bit to 0.

本發明同時提出一種處理器晶片,其具有一數據讀寫單元以執行如前所述本發明之一次性編程唯讀記憶體之操作方法。The present invention also provides a processor chip with a data read/write unit to perform the one-time programming read-only memory operation method of the present invention as described above.

本發明同時提出一種資訊處理裝置,其具有一處理器晶片,且該處理器晶片具有一數據讀寫單元以執行如前所述本發明之一次性編程唯讀記憶體之操作方法。The present invention also provides an information processing device, which has a processor chip, and the processor chip has a data reading and writing unit to execute the one-time programming read-only memory operation method of the present invention as described above.

在可能的實施例中,前述資訊處理裝置可為智慧型手機、平板電腦、筆記型電腦、桌上型電腦、伺服器電腦、工業電腦、一體式電腦、指紋式打卡裝置、門禁裝置或類比信號量測裝置。In possible embodiments, the aforementioned information processing device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a server computer, an industrial computer, an all-in-one computer, a fingerprint punching device, an access control device, or an analog signal Measuring device.

為使  貴審查委員能進一步瞭解本發明之結構、特徵、目的、與其優點,茲附以圖式及較佳具體實施例之詳細說明如後。In order to enable your reviewer to further understand the structure, features, purpose, and advantages of the present invention, the drawings and detailed descriptions of preferred specific embodiments are attached as follows.

圖1顯示應用本發明之一種一次性編程唯讀記憶體之操作方法的一處理器晶片1和一個一次性編程唯讀記憶體2的架構圖。並且,圖2顯示本發明之一種一次性編程唯讀記憶體之操作方法的流程圖。本發明之一次性編程唯讀記憶體之操作方法主要包含三個執行步驟,即步驟S1:初始化程序、步驟S2:數據寫入程序、以及步驟S3:數據讀取程序。FIG. 1 shows a structure diagram of a processor chip 1 and a one-time programming read-only memory 2 using the operating method of a one-time programming read-only memory of the present invention. In addition, FIG. 2 shows a flow chart of an operating method of one-time programming read-only memory of the present invention. The operating method of the one-time programming read-only memory of the present invention mainly includes three execution steps, namely step S1: initialization procedure, step S2: data writing procedure, and step S3: data reading procedure.

對所述一次性編程唯讀記憶體2執行讀/寫操作前,處理器晶片1依據本發明之操作方法先以其所具有的一數據讀寫單元11對該一次性編程唯讀記憶體2進行初始化,亦即,執行步驟S1:初始化程序。執行初始化之時,係將該一次性編程唯讀記憶體2的一儲存空間分割為一表頭(header)儲存區塊21以及一數據儲存區塊22,其中該數據儲存區塊22包含複數個數據儲存單元221,且該表頭儲存區塊21包含複數個表頭儲存單元211以分別對應該複數個數據儲存單元221。Before performing read/write operations on the one-time programming read-only memory 2, the processor chip 1 first uses a data reading and writing unit 11 of the one-time programming read-only memory 2 according to the operating method of the present invention. Initialization is performed, that is, step S1: initialization procedure is performed. When performing initialization, a storage space of the one-time programming read-only memory 2 is divided into a header storage block 21 and a data storage block 22, wherein the data storage block 22 includes a plurality of The data storage unit 221, and the header storage block 21 includes a plurality of header storage units 211 to correspond to the plurality of data storage units 221 respectively.

完成該步驟S1之後,處理器晶片1便可接著依據本發明之操作方法而以其所述數據讀寫單元11對該一次性編程唯讀記憶體2進行數據寫入程序,即執行步驟S2。執行數據寫入程序時,首先編寫包括至少一第一位元、至少一第二位元以及一待寫入數據位元組的一數據包,其中該第一位元用以表示一個所述數據儲存單元221是否已儲存一數據位元組,且該第二位元用以表示該數據位元組是否寫入正確。接著,處理器晶片1的數據讀寫單元11自一個所述數據儲存單元221讀出所述數據位元組,且在所述待寫入數據位元組和該數據位元組不一致的情況下,將該數據包所含有的所述第一位元和該待寫入數據位元組分別寫入該表頭儲存單元211和該數據儲存單元221之中。After the step S1 is completed, the processor chip 1 can then use the data reading and writing unit 11 to perform the data writing procedure on the one-time programmable read-only memory 2 according to the operating method of the present invention, that is, execute step S2. When executing the data writing program, first write a data packet including at least one first bit, at least one second bit, and a data byte to be written, wherein the first bit is used to represent one of the data Whether the storage unit 221 has stored a data byte, and the second bit is used to indicate whether the data byte is written correctly. Then, the data read/write unit 11 of the processor chip 1 reads the data byte from one of the data storage units 221, and when the data byte to be written is inconsistent with the data byte , Writing the first bit contained in the data packet and the data byte group to be written into the header storage unit 211 and the data storage unit 221, respectively.

更詳細地說明,在所述待寫入數據位元組和該數據位元組不一致的情況下,表示該數據儲存單元221之中並未儲存與所述待寫入數據位元組相同的數據位元組;此時,在將該第一位元寫入該表頭儲存單元之前,處理器晶片1會先將該第一位元的位元值設為1,之後才將其寫入與該數據儲存單元221對應的一個所述表頭儲存單元211之中。補充說明的是,若所述一次性編程唯讀記憶體(One Time Programmable Read Only Memory, OTPROM)2為一熔絲型(fuse type)OTPROM,則處理器晶片1會將該第一位元的位元值設為1。相反地,若所述一次性編程唯讀記憶體2為一反熔絲型(anti-fuse type)OTPROM,則處理器晶片1會將該第一位元的位元值設為0,之後將其寫入該表頭儲存單元211,以表示對應的所述數據儲存單元221已經儲存一個所述數據位元組。In more detail, when the data byte group to be written is inconsistent with the data byte group, it means that the data storage unit 221 does not store the same data as the data byte group to be written. Byte; at this time, before writing the first bit to the header storage unit, the processor chip 1 will first set the bit value of the first bit to 1, and then write it and The data storage unit 221 corresponds to one of the header storage units 211. It is added that if the One Time Programmable Read Only Memory (OTPROM) 2 is a fuse type OTPROM, the processor chip 1 will set the first bit The bit value is set to 1. Conversely, if the one-time programming read-only memory 2 is an anti-fuse type OTPROM, the processor chip 1 will set the bit value of the first bit to 0, and then set It is written into the header storage unit 211 to indicate that the corresponding data storage unit 221 has stored one data byte group.

在該數據包的該第一位元和該待寫入數據位元組都被寫入一次性編程唯讀記憶體2之後,依據本發明之操作方法,該處理器晶片1以其所述數據讀寫單元11重複自該數據儲存單元221讀出所述數據位元組,且在讀出的所述數據位元組和前述待寫入數據位元組為一致的情況下,將該數據包所含有的所述第二位元寫入該表頭儲存單元211。更詳細地說明,在完成儲存的該數據位元組和未儲存之所述待寫入數據位元組為一致的情況下,表示該數據儲存單元221之中所儲存的該數據位元組是正確的;此時,在將該第二位元寫入該表頭儲存單元之前,處理器晶片1會先將該第二位元的位元值設為1,之後才將其寫入與該數據儲存單元221對應的一個所述表頭儲存單元211之中。補充說明的是,若所述一次性編程唯讀記憶體2為一熔絲型OTPROM,則處理器晶片1會將該第二位元的位元值設為1。相反地,若所述一次性編程唯讀記憶體2為一反熔絲型OTPROM,則處理器晶片1會將該第一位元的位元值設為0,之後將其寫入該表頭儲存單元211,以表示對應的所述數據儲存單元221所儲存之所述數據位元組係寫入正確。After the first bit of the data packet and the data byte to be written are written into the one-time programming read-only memory 2, according to the operating method of the present invention, the processor chip 1 uses the data The read-write unit 11 repeatedly reads the data byte from the data storage unit 221, and when the read data byte is consistent with the aforementioned data byte to be written, the data packet The included second bit is written into the header storage unit 211. In more detail, when the data byte that has been stored is consistent with the unstored data byte to be written, it means that the data byte stored in the data storage unit 221 is Correct; at this time, before writing the second bit to the header storage unit, the processor chip 1 will first set the bit value of the second bit to 1, and then write it to the The data storage unit 221 corresponds to one of the header storage units 211. It is added that if the one-time programming read-only memory 2 is a fuse type OTPROM, the processor chip 1 will set the bit value of the second bit to 1. On the contrary, if the one-time programming read-only memory 2 is an anti-fuse OTPROM, the processor chip 1 will set the bit value of the first bit to 0, and then write it into the header The storage unit 211 indicates that the data byte group stored in the corresponding data storage unit 221 is written correctly.

完成數據寫入程序之後,依據本發明之操作方法,該處理器晶片1便能夠以其所述數據讀寫單元11執行步驟S3:數據讀取程序,從而自該表頭儲存單元211讀取所述第一位元和所述第二位元,且在依據所述第一位元和所述第二位元確認對應的該數據儲存單元221所儲存之數據位元組的寫入時間為最新之情況下,自該數據儲存單元221將所述數據位元組讀出,完成所述數據讀取程序。After completing the data writing procedure, according to the operating method of the present invention, the processor chip 1 can execute step S3: data reading procedure with its data reading and writing unit 11, thereby reading all data from the meter storage unit 211 The first bit and the second bit, and confirming that the write time of the data byte stored in the data storage unit 221 corresponding to the first bit and the second bit is the latest In this case, the data byte group is read from the data storage unit 221 to complete the data reading procedure.

如此,上述已完整且清楚地說明本發明之一種一次性編程唯讀記憶體之操作方法;並且,經由上述可得知本發明具有下列優點:In this way, the above has completely and clearly explained a one-time programming read-only memory operation method of the present invention; and from the above, it can be seen that the present invention has the following advantages:

(1)本發明揭示一種一次性編程唯讀記憶體之操作方法,其用以將一次性編程唯讀記憶體的一儲存空間分割為一表頭儲存區塊以及一數據儲存區塊。執行數據寫入程序時,透過令一數據包包含至少一第一位元、至少一第二位元以及一數據位元組的方式,可利用該第一位元以表示一數據儲存單元內是否已儲存相同的數據位元組,且利用該第二位元以表示該數據包所包含的該數據位元組是否正確寫入該數據儲存單元之中。因此,在應用本發明之操作方法的情況下,可以有效提高一次性編程唯讀記憶體的利用率,保證寫入數據的正確性,不會使相同的數據位元組被重複燒寫,同時還可縮短讀寫數據的時間。(1) The present invention discloses a one-time programming read-only memory operation method, which is used to divide a storage space of the one-time programming read-only memory into a header storage block and a data storage block. When executing the data writing process, by making a data packet include at least one first bit, at least one second bit, and a data byte, the first bit can be used to indicate whether a data storage unit is The same data byte group is stored, and the second bit is used to indicate whether the data byte group contained in the data packet is correctly written into the data storage unit. Therefore, when the operating method of the present invention is applied, the utilization rate of the read-only memory for one-time programming can be effectively improved, the correctness of the written data can be ensured, and the same data byte group will not be repeatedly programmed, and at the same time It can also shorten the time to read and write data.

(2)本發明同時提供一種處理器晶片,其具有一數據讀寫單元用以執行如前所述本發明之一次性編程唯讀記憶體之操作方法。(2) The present invention also provides a processor chip with a data read/write unit for executing the one-time programming read-only memory operation method of the present invention as described above.

(3)並且,本發明同時提供一種資訊處理裝置,其具有一處理器晶片,且該處理器晶片具有一數據讀寫單元用以執行如前所述本發明之一次性編程唯讀記憶體之操作方法。(3) In addition, the present invention also provides an information processing device, which has a processor chip, and the processor chip has a data read and write unit for executing the one-time programming read-only memory of the present invention as described above Method of operation.

(4)在可行的實施例中,前述本發明之資訊處理裝置可為智慧型手機、平板電腦、筆記型電腦、桌上型電腦、伺服器電腦、工業電腦、一體式電腦、指紋式打卡裝置、門禁裝置或類比信號量測裝置。(4) In feasible embodiments, the aforementioned information processing device of the present invention may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a server computer, an industrial computer, an all-in-one computer, and a fingerprint punching device , Access control device or analog signal measuring device.

必須加以強調的是,前述本案所揭示者乃為較佳實施例,舉凡局部之變更或修飾而源於本案之技術思想而為熟習該項技藝之人所易於推知者,俱不脫本案之專利權範疇。It must be emphasized that the foregoing disclosures in this case are preferred embodiments, and any partial changes or modifications that are derived from the technical ideas of this case and are easily inferred by those who are familiar with the art will not deviate from the patent of this case. Right category.

綜上所陳,本案無論目的、手段與功效,皆顯示其迥異於習知技術,且其首先發明合於實用,確實符合發明之專利要件,懇請  貴審查委員明察,並早日賜予專利俾嘉惠社會,是為至禱。In summary, regardless of the purpose, means and effects of this case, it is shown that it is very different from the conventional technology, and its first invention is suitable for practicality, and it does meet the patent requirements of the invention. Please check it out and grant the patent as soon as possible. Society is for the best prayer.

<本發明> 1:處理器晶片 11:數據讀寫單元 2:一次性編程唯讀記憶體 21:表頭儲存區塊 211:表頭儲存單元 22:數據儲存區塊 221:數據儲存單元 S1:初始化程序 S2:數據寫入程序 S3:數據讀取程序 <The present invention> 1: processor chip 11: Data reading and writing unit 2: One-time programming read-only memory 21: header storage block 211: header storage unit 22: Data storage block 221: data storage unit S1: Initialization program S2: Data writing program S3: Data reading program

<習知> 無 <Acquaintances> no

圖1為顯示應用本發明之一種一次性編程唯讀記憶體之操作方法的一處理器晶片和一個一次性編程唯讀記憶體的架構圖;以及 圖2為本發明之一種一次性編程唯讀記憶體之操作方法的流程圖。 Figure 1 is a diagram showing the architecture of a processor chip and a one-time programming read-only memory using a one-time programming read-only memory operating method of the present invention; and Fig. 2 is a flow chart of an operating method of one-time programming read-only memory according to the present invention.

S1:初始化程序 S1: Initialization program

S2:數據寫入程序 S2: Data writing program

S3:數據讀取程序 S3: Data reading program

Claims (7)

一種一次性編程唯讀記憶體之操作方法,包括:一初始化程序,包括以下步驟:將一個一次性編程唯讀記憶體的一儲存空間分割為一表頭儲存區塊以及一數據儲存區塊,其中該數據儲存區塊包含複數個數據儲存單元,且該表頭儲存區塊包含複數個表頭儲存單元以分別對應所述複數個數據儲存單元;以及一數據寫入程序,包括以下步驟:編寫包括至少一第一位元、至少一第二位元以及一待寫入數據位元組的一數據包,其中所述至少一第一位元用以表示所述複數個數據儲存單元是否已儲存一數據位元組,且該第二位元用以表示該數據位元組是否寫入正確;自所述複數個數據儲存單元讀出所述數據位元組,且在所述待寫入數據位元組和該數據位元組不一致的情況下,將該數據包所含有的所述至少一第一位元和該待寫入數據位元組分別寫入該些表頭儲存單元和所述複數個數據儲存單元之中;及重複自所述複數個數據儲存單元讀出所述數據位元組,且在讀出的所述數據位元組和前述待寫入數據位元組為一致的情況下,將該數據包所含有的所述至少一第二位元寫入該些表頭儲存單元。 An operating method for one-time programming read-only memory includes: an initialization procedure, including the following steps: dividing a storage space of a one-time programming read-only memory into a header storage block and a data storage block, The data storage block includes a plurality of data storage units, and the header storage block includes a plurality of header storage units to correspond to the plurality of data storage units respectively; and a data writing procedure includes the following steps: writing A data packet including at least one first bit, at least one second bit, and a data byte group to be written, wherein the at least one first bit is used to indicate whether the plurality of data storage units have been stored A data byte, and the second bit is used to indicate whether the data byte is written correctly; the data byte is read from the plurality of data storage units, and the data to be written When the byte and the data byte are inconsistent, the at least one first bit contained in the data packet and the data byte to be written are written into the header storage units and the Among a plurality of data storage units; and repeatedly reading the data bytes from the plurality of data storage units, and the read data bytes are consistent with the aforementioned data bytes to be written In this case, the at least one second bit contained in the data packet is written into the header storage units. 如申請專利範圍第1項所述之一次性編程唯讀記憶體之操作方法,更包括一數據讀取程序,其包括以下步驟:自該些表頭儲存單元讀取所述至少一第一位元和所述至少一第二位元;及在依據所述至少一第一位元和所述至少一第二位元確認該數據位元組的寫入時間為最新之情況下,將該數據位元組讀出。 The operating method of one-time programming read-only memory as described in item 1 of the scope of patent application further includes a data reading program, which includes the following steps: reading the at least one first bit from the header storage units And the at least one second bit; and when it is confirmed that the write time of the data byte is the latest according to the at least one first bit and the at least one second bit, the data Byte readout. 如申請專利範圍第1項所述之一次性編程唯讀記憶體之操作方法,其中,所述一次性編程唯讀記憶體為一熔絲型一次性編程唯讀記憶體,且在將所述至少一第一位元和所述至少一第二位元寫入該些表頭儲存單元之前,係先將所述至少一第一位元和所述至少一第二位元的位元值設為1。 The operating method of one-time programming read-only memory as described in item 1 of the scope of patent application, wherein the one-time programming read-only memory is a fuse type one-time programming read-only memory, and the Before the at least one first bit and the at least one second bit are written into the header storage units, the bit values of the at least one first bit and the at least one second bit are first set Is 1. 如申請專利範圍第1項所述之一次性編程唯讀記憶體之操作 方法,其中,所述一次性編程唯讀記憶體為一反熔絲型一次性編程唯讀記憶體,且在將所述至少一第一位元和所述至少一第二位元寫入該些表頭儲存單元之前,係先將所述至少一第一位元和所述至少一第二位元的位元值設為0。 One-time programming of read-only memory operation as described in item 1 of the scope of patent application A method, wherein the one-time programming read-only memory is an anti-fuse type one-time programming read-only memory, and the at least one first bit and the at least one second bit are written into the Before these header storage units, the bit values of the at least one first bit and the at least one second bit are set to zero. 一種處理器晶片,其具有一數據讀寫單元用以執行如申請專利範圍第1項至第4項中之任一項所述之一次性編程唯讀記憶體之操作方法。 A processor chip has a data read-write unit for executing the one-time programming read-only memory operation method as described in any one of items 1 to 4 of the scope of patent application. 一種資訊處理裝置,其具有一處理器晶片,且該處理器晶片具有一數據讀寫單元用以執行如申請專利範圍第1項至第4項中之任一項所述之一次性編程唯讀記憶體之操作方法。 An information processing device, which has a processor chip, and the processor chip has a data read-write unit for executing the one-time programming read-only as described in any one of items 1 to 4 of the scope of patent application How to operate the memory. 如申請專利範圍第6項所述之資訊處理裝置,其係選自於由智慧型手機、平板電腦、筆記型電腦、桌上型電腦、伺服器電腦、工業電腦、一體式電腦、指紋式打卡裝置、門禁裝置、類比信號量測裝置所組成之群組的一種電子裝置。 For example, the information processing device described in item 6 of the scope of patent application is selected from smart phones, tablet computers, notebook computers, desktop computers, server computers, industrial computers, all-in-one computers, and fingerprint punching An electronic device in the group consisting of devices, access control devices, and analog signal measurement devices.
TW109104589A 2020-02-13 2020-02-13 Operation method of one-time programming read-only memory, processor chip and information processing device TWI707350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109104589A TWI707350B (en) 2020-02-13 2020-02-13 Operation method of one-time programming read-only memory, processor chip and information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109104589A TWI707350B (en) 2020-02-13 2020-02-13 Operation method of one-time programming read-only memory, processor chip and information processing device

Publications (2)

Publication Number Publication Date
TWI707350B true TWI707350B (en) 2020-10-11
TW202131341A TW202131341A (en) 2021-08-16

Family

ID=74091766

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109104589A TWI707350B (en) 2020-02-13 2020-02-13 Operation method of one-time programming read-only memory, processor chip and information processing device

Country Status (1)

Country Link
TW (1) TWI707350B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060097325A1 (en) * 2004-11-09 2006-05-11 Ching-Sung Yang One-time programmable read only memory and operating method thereof
US20120095966A1 (en) * 2008-09-10 2012-04-19 Yoav Yogev Method for using an otp storage device
US9495285B2 (en) * 2014-09-16 2016-11-15 Integrated Device Technology, Inc. Initiating operation of a timing device using a read only memory (ROM) or a one time programmable non volatile memory (OTP NVM)
TWI578326B (en) * 2014-07-08 2017-04-11 力旺電子股份有限公司 One time programming memory cell, array structure and operating method thereof
US9880856B2 (en) * 2013-02-22 2018-01-30 Marvell World Trade Ltd. Patching boot code of read-only memory
CN110729010A (en) * 2018-07-17 2020-01-24 旺宏电子股份有限公司 Semiconductor circuit and method of operating the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060097325A1 (en) * 2004-11-09 2006-05-11 Ching-Sung Yang One-time programmable read only memory and operating method thereof
US7663904B2 (en) * 2004-11-09 2010-02-16 Powerchip Semiconductor Corp. Operating method of one-time programmable read only memory
US20120095966A1 (en) * 2008-09-10 2012-04-19 Yoav Yogev Method for using an otp storage device
US9880856B2 (en) * 2013-02-22 2018-01-30 Marvell World Trade Ltd. Patching boot code of read-only memory
TWI578326B (en) * 2014-07-08 2017-04-11 力旺電子股份有限公司 One time programming memory cell, array structure and operating method thereof
US9495285B2 (en) * 2014-09-16 2016-11-15 Integrated Device Technology, Inc. Initiating operation of a timing device using a read only memory (ROM) or a one time programmable non volatile memory (OTP NVM)
CN110729010A (en) * 2018-07-17 2020-01-24 旺宏电子股份有限公司 Semiconductor circuit and method of operating the same

Also Published As

Publication number Publication date
TW202131341A (en) 2021-08-16

Similar Documents

Publication Publication Date Title
US8417902B2 (en) One-time-programmable memory emulation
US7818611B2 (en) Memory device internal parameter reliability
US20080016415A1 (en) Evaluation system and method
TWI545582B (en) Methods for accessing a storage unit of a flash memory and apparatuses using the same
US10861572B2 (en) Memory device
TWI707350B (en) Operation method of one-time programming read-only memory, processor chip and information processing device
US20090063593A1 (en) Semiconductor memory device and operation method thereof
JP6816990B2 (en) Programmable logic device, information processing device, soft error recording method, and soft error recording program
US20210090672A1 (en) Novel memory device
TWI396090B (en) Flash memory apparatus, data storage system, and method for sending special instructions to a flash memory apparatus
JPS63106996A (en) Semiconductor integrated circuit device
TW202028969A (en) Method of generating bios-change record
CN108229178A (en) BIOS Write-protection methods, device, equipment and computer readable storage medium
CN110275845B (en) Memory control method and device and electronic equipment
CN113870931A (en) Data writing method, data reading method, data writing device, data reading device, electronic equipment and storage medium
JPS63219045A (en) Ic card
TW202103006A (en) OTP programming method, control chip and information processing device in which the control chip has a register unit, an OTP memory unit, a programming control unit and a reading control unit
TW201629780A (en) Systems and methods for restricting write access to non-volatile memory
WO2019169615A1 (en) Method for accessing code sram, and electronic device
JP3487873B2 (en) IC card issuing process management method
TWI811674B (en) Operation method of flash memory, system single chip and information processing device
JP2864288B2 (en) Error checking method for IC card
TW201117103A (en) Interrupt signal processing method and computer system
TWI773516B (en) Method for evolving root of trust and electronic device using the same
CN112468296B (en) Key programming method, system, electronic equipment and storage medium