Method and apparatus for memory management
First Claim
1. A method comprising:
- performing by one or more circuits comprising memory, in response to an instruction to write data to said memory;
if a first portion of a first block of said memory has been erased more recently than it has been written to, writing data to said first portion of said first block of said memory without first erasing said first block of said memory;
if said first portion of said first block of said memory has been written to more recently than it has been erased, and a first portion of a second block of said memory has been erased more recently than it has been written to, writing data to said first portion of said second block of memory without first erasing said second block of said memory; and
if said first portion of said first block of said memory has been written to more recently than it has been erased, and said first portion of said second block of said memory has been written to more recently than it has been erased, recombining said first block of said memory and said second block of said memory and, subsequent to said recombining, writing said data to said first portion of said first block of said memory;
storing an index associated with a said second block of said memory in said first block of said memory.
5 Assignments
0 Petitions
Accused Products
Abstract
One or more circuits of a device may comprise a memory. A first portion of a first block of the memory may store program code and/or program data, a second portion of the first block may store an index associated with a second block of the memory, and a third portion of the first block may store an indication of a write status of the first portion. Each bit of the third portion of the first block may indicate whether an attempt to write data to a corresponding one or more words of the first portion of the first block has failed since the last erase of the corresponding one or more words of the first portion of the first block. Whether data to be written to a particular virtual address is written to the first block or the second block may depend on the write status of the first block and the second block.
155 Citations
18 Claims
-
1. A method comprising:
performing by one or more circuits comprising memory, in response to an instruction to write data to said memory; if a first portion of a first block of said memory has been erased more recently than it has been written to, writing data to said first portion of said first block of said memory without first erasing said first block of said memory; if said first portion of said first block of said memory has been written to more recently than it has been erased, and a first portion of a second block of said memory has been erased more recently than it has been written to, writing data to said first portion of said second block of memory without first erasing said second block of said memory; and
if said first portion of said first block of said memory has been written to more recently than it has been erased, and said first portion of said second block of said memory has been written to more recently than it has been erased, recombining said first block of said memory and said second block of said memory and, subsequent to said recombining, writing said data to said first portion of said first block of said memory;storing an index associated with a said second block of said memory in said first block of said memory. - View Dependent Claims (2, 3, 4, 6, 7, 8)
-
5. A method comprising:
performing by one or more circuits comprising memory in response to an instruction to write said data to said memory; if a first portion of a first block of said memory has been erased more recently than it has been written to, writing data to said first portion of said first block of said memory without first erasing said first block of said memory; if said first portion of said first block of said memory has been written to more recently than it has been erased, and a first portion of a second block of said memory has been erased more recently than it has been written to, writing data to said first portion of said second block of memory without first erasing said second block of said memory; if said first portion of said first block of said memory has been written to more recently than it has been erased, and said first portion of said second block of said memory has been written to more recently than it has been erased, recombining said first block of said memory and said second block of said memory and, subsequent to said recombining, writing said data to said first portion of said first block of said memory; reading an index associated with said second block of said memory from said first block of said memory; and determining a physical address of said second block of said memory using said index of said second block of said memory.
-
9. A system comprising:
one or more circuits comprising a memory, wherein; a first portion of a first block of said memory stores program code and/or program data; a second portion of said first block of said memory stores an index associated with a second block of said memory; and a third portion of said first block of said memory stores an indication of a write status of said first portion of said first block of said memory; a first portion of said second block of said memory stores program code and/or program data; a second portion of said second block of said memory stores an index associated with said first block of said memory; a third portion of said second block of said memory stores an indication of a write status of said first portion of said second block of said memory. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17, 18)
Specification