主权项 |
1. A method for reading a data block of a nonvolatile memory of a processing unit, comprising:
subdividing the nonvolatile memory into sectors; writing to the sectors consecutively in each case from a sector beginning to a sector end with different versions of different data blocks; writing a current version of a data block to a current position in a current sector, wherein for each data block, an entry is present in a cache memory that characterizes the respective data block; if a current version of a particular data block is being searched for, reading in an entry of the cache memory that characterizes the particular data block; and if the entry of the cache memory that characterizes the particular data block includes no address of the current version of the particular data block, performing a search mode in which:
the sectors are searched, starting from the current sector, from a respective sector beginning to a respective sector end, until the current version of the particular data block is found in one sector, andif, during the search mode, a current version of one of the remaining data blocks is found, an address of the current version of the respective data block is entered in the cache memory as an entry characterizing the respective data block. |