US2016154607A1PendingUtilityA1

Method and apparatus for memory management

Assignee: BLACKBIRD TECHNOLOGY HOLDINGS INCPriority: Jan 21, 2011Filed: Feb 5, 2016Published: Jun 2, 2016
Est. expiryJan 21, 2031(~4.5 yrs left)· nominal 20-yr term from priority
G06F 12/12G06F 12/122G06F 3/065G06F 2212/20G06F 3/0608G06F 12/02G06F 3/0655G06F 12/128G06F 2212/7202G06F 3/0688G06F 3/0673G06F 3/0652G06F 3/0679G06F 3/061G06F 3/0619G06F 3/0604G06F 3/064G06F 12/0246
60
PatentIndex Score
0
Cited by
0
References
0
Claims

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.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
         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; 
 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. 
   
     
     
         2 . The method of  claim 1 , wherein said recombining said first block of said memory and said second block of said memory comprises:
 copying at least some of the contents of said first block of said memory to said second block of said memory;   erasing said first block of said memory; and   associating an index with said second block of said memory, wherein said index was associated with said first block of said memory prior to said recombining.   
     
     
         3 . The method of  claim 1 , comprising performing by said one or more circuits in response to said instruction to write said data to said memory:
 converting a virtual memory address of said instruction to an index associated with said first block of said memory.   
     
     
         4 . The method of  claim 3 , comprising performing by said one or more circuits in response to said instruction to write said data to said memory:
 determining a physical address of said first block of said memory based on said index associated with said first block of said memory.   
     
     
         5 . The method of  claim 1 , comprising performing by said one or more circuits in response to said instruction to write said data to said memory:
 storing an index associated with a said second block of said memory in said first block of said memory.   
     
     
         6 . The method of  claim 1 , comprising performing by said one or more circuits in response to said instruction to write said data to 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.   
     
     
         7 . The method of  claim 1 , wherein said memory is a NAND flash memory. 
     
     
         8 . The method of  claim 1 , wherein erasing any memory cell of said first block of said memory requires erasing all memory cells of said first block of said memory. 
     
     
         9 . The method of  claim 1 , wherein erasing any memory cell of said second block of said memory requires erasing all memory cells of said second block of said memory. 
     
     
         10 . 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; 
 a third portion of said first block of said memory stores an indication of a write status of said first portion of said first one of said memory blocks. 
   
     
     
         11 . The system of  claim 10 , wherein each bit of said third portion of said first block of said memory indicates whether an attempt to write data to a corresponding one or more words of said first portion of said first block of said memory has failed since the last erase of said corresponding one or more words of said first portion of said first block of said memory. 
     
     
         12 . The system of  claim 10 , wherein:
 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.   
     
     
         13 . The system of  claim 10 , wherein said one or more circuits are operable to:
 receive an instruction to write data to said memory;   write said data to a word of said first portion of said first block of said memory if said word of said first portion of said first block of said memory has been erased more recently than it has been written to; and   write said data to a word of a first portion of said second block of said memory if said word of said first portion of said first block of said memory has been written to more recently than it has been erased.   
     
     
         14 . The system of  claim 10 , wherein said one or more circuits are operable to:
 receive an instruction to write data to said memory;   detect that (i) a word of said first portion of said first block of said memory has been written to more recently than it has been erased, and (ii) a word of said first portion of said second block of said memory has been written to more recently than it has been erased; and   recombine said first block of said memory and said second block of said memory in response to said detection.   
     
     
         15 . The system of  claim 14 , wherein said recombining said first block of said memory and said second block of said memory comprises:
 copying at least some of the contents of said first block of said memory to said second block of said memory;   erasing said first block of said memory; and   associating said second block of said memory with an index formerly associated with said first block of said memory.   
     
     
         16 . The system of  claim 15 , wherein said recombining said first block of said memory and said second block of said memory comprises changing an index stored in said second portion of said second block of said memory. 
     
     
         17 . The system of  claim 16 , wherein said index stored in said second portion of said second block of said memory is changed to an index associated with a third block of said memory. 
     
     
         18 . The system of  claim 16 , wherein said index stored in said second portion of said second block of said memory is changed to an index formerly associated with said second block of said memory. 
     
     
         19 . The system of  claim 16 , wherein said new index is randomly selected from a plurality of available indices. 
     
     
         20 . The system of  claim 10 , wherein said memory is a NAND flash memory.

Join the waitlist — get patent alerts

Track US2016154607A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.