A source block (B0) and the logical page number (“8”) of a write target page are identified from the logical address of the write target page. data objects (DN8, DN9, . . . , DN12) to be written, which a host stores in a page buffer (2), are written into the data areas (DA) of the pages (Q0, Q1, . . . , Q4) of a destination block (Bn), starting from the top page (Q0) in sequence. The logical page number (“8”) of the write target page is written into the redundant area (RA) of the top page (Q0). The physical page number (“6=8−2”) of the write target page is identified, based on the logical page number (“8”) of the write target page and the page offset (“2”) of the source block (B0). When notified by the host of the end of the sending of the data objects (DN8, . . . , DN12), the data items (D13, . . . , D31, D0, D1, . . . , D7) in the source block (B0) are transferred to the pages (Q5, Q6, . . . , Q31) in the destination block (Bn) via the page buffer (2) sequentially and cyclically, starting from the page (P11) situated cyclically behind the write target page (P6) by the number (“5”) of pages of the data objects (DN8, . . . , DN12).
|
0. 11. A controller comprising:
for writing data stored in a page buffer into a flash memory containing a plurality of blocks, each block including more than one page and being configured for data to be written into the block from a top page of the block in sequence, said controller comprising:
a memory controller for:
reading a physical address of a source block to which a write target page belongs and a logical page number of the write target page, the source block being one of the plurality of blocks contained on the flash memory;
selecting a destination block from the plurality of blocks contained on the flash memory;
writing data stored in the page buffer into the destination block from a top page of the destination block in sequence; and
writing data stored in the source block to a page next to or after a page area of the destination block,
wherein the memory controller writes, in a top page of the destination block, a page offset which is calculated from the logical page number and a physical page number of the write target page.
0. 9. A semiconductor memory apparatus comprising:
a flash memory containing a plurality of blocks, each block including more than one page and being configured for data to be written into the block from a top page of the block in sequence:
a page buffer for storing data which is received from a host device and which is to be written into the flash memory;
an address converter for receiving, from the host device, a logical address that specifies a write target page, and converting the logical address into a physical address of a source block to which the write target page belongs and a logical page number of the write target page, the source block being one of the plurality of blocks; and
a memory controller for:
reading the physical address of the source block and the logical page number of the write target page;
selecting a destination block from the plurality of blocks;
writing the data stored in the page buffer into the destination block from a top page of the destination block in sequence; and
writing data stored in the source block to a page next to or after a page area of the destination block,
wherein the memory controller writes, in a top page of the destination block, a page offset which is calculated from the logical page number and a physical page number of the write target page.
0. 10. An information system comprising:
a host device for transmitting information;
a semiconductor memory device for receiving and storing the information transmitted from the host device;
the semiconductor memory device comprising;
a flash memory containing a plurality of blocks, each block including more than one page and being configured for data to be written into the block from a top page of the block in sequence;
a page buffer for storing data which is received from the host device and which is to be written into the flash memory;
an address converter for receiving, from the host device, a logical address that specifies a write target page, and converting the logical address into a physical address of a source block to which the write target page belongs and a logical page number of the write target page, the source block being one of the plurality of blocks; and
a memory controller for:
reading the physical address of the source block and the logical page number of the write target page;
selecting a destination block from the plurality of blocks;
writing the data stored in the page buffer into the destination block from a top page of the destination block in sequence; and
writing data stored in the source block to a page next to or after a page area of the destination block;
wherein the memory controller writes, in a top page of the destination block, a page offset which is calculated from the logical page number and a physical page number of the write target page.
7. A method of writing data into a flash memory device, which is the method of writing data into a flash memory device comprising more than one block, each of which includes more than one page, and writing data into a blank block from its top page in sequence;
the method comprising the steps of:
(A) receiving from a host a logical address specifying a write target page;
(B) converting said logical address into a pair of a physical address of a source block and a logical page number of said write target page;
(C) selecting the blank block as a destination block;
(D) determining a page offset of said destination block based on the logical page number of said write target page, and writing the page offset into a page-offset storage section as a page offset of said destination block;
(E) reading a page offset of said source block from said page-offset storage section;
(F) determining a physical page number of said write target page based on the page offset of said source block and the logical page number of said write target page;
(G) writing a data object to be written, which is transferred from said host to a page buffer, into said destination block from its top page in sequence; and
(H) obtaining a physical page number of a transfer start page of said source block based on the number of pages of said data objects and the physical page number of said write target page, and transferring data stored in said source block, from said transfer start page in a sequential and cyclic manner, via said page buffer, to a page next to or after a page area of said destination block into which said data object is written.
5. A method of writing data into a flash memory device, which is the method of writing data into a flash memory device comprising more than one block, each of which includes more than one page, and writing data into a blank block from its top page in sequence;
the method comprising the steps of:
(A) receiving from a host a logical address specifying a write target page;
(B) converting said logical address into a pair of a physical address of a source block and a logical page number of said write target page;
(C) selecting the blank block as a destination block;
(D) determining a page offset of said destination block based on the logical page number of said write target page, and writing the page offset into a page-offset storage area in said lash memory device as a page offset of said destination block;
(E) reading a page offset of said source block from said page-offset storage area;
(F) determining a physical page number of said write target page based on the page offset of said source block and the logical page number of said write target page;
(G) writing a data object to be written, which is transferred from said host to a page buffer, into said destination block from its top page in sequence; and
(H) obtaining a physical page number of a transfer start page of said source block based on the number of pages of said data objects and the physical page number of said write target page, and transferring data stored in said source block, from said transfer start page in a sequential and cyclic manner, via said page buffer, to a page next to or after a page area of said destination block into which said data object is written.
3. A semiconductor memory apparatus comprising:
(A) a flash memory device comprising more than one block, each of which includes more than one page, and configured to write data into a blank block from its top page in sequence;
(B) a page-offset storage section for storing a page offset of each of said blocks;
(C) a page buffer in which the substantially same amount of data as the data storage capacity of one of said pages is temporarily stored;
(D) an address conversion section for receiving from a host a logical address that specifies a write target page, and converting the logical address into a pair of a physical address of a source block and a logical page number of said write target page; and
(E) a memory control section for
(a) reading the physical address of said source block and the logical page number of said write target page,
(b) selecting the blank block as a destination block,
(c) determining a page offset of said destination block based on the logical page number of said write target page, and writing the page offset into said page-offset storage section as the page offset of said destination block,
(d) reading a page offset of said source block from said page-offset storage section,
(e) obtaining a physical page number of said write target page based on the page offset of said source block and the logical page number of said write target page,
(f) writing a data object to be written, which is transferred from said host to said page buffer, into said destination block from its top page in sequence,
(g) obtaining a physical page number of a transfer start page of said source block based on the number of pages of said data objects and the physical page number of said write target page, and
(h) transferring data stored in said source block, from said transfer start page in a sequential and cyclic manner, via said page buffer, to a page next to or after a page area of said destination block into which said data object is written.
1. A semiconductor memory apparatus comprising:
(A) a flash memory device comprising more than one block, each of which includes more than one page, and a page-offset storage area in which a page offset of each of said blocks is stored, and configured to write data into a blank block front its top page in sequence;
(B) a page buffer in which the substantially same amount of data as the data storage capacity of one of said pages is temporarily stored;
(C) an address conversion section for receiving from a host a logical address that specifies a write target page, and converting the logical address into a pair of a physical address of a source block to which said write target page belongs, and a logical page number of said write target page; and
(D) a memory control section for
(a) reading the physical address of said source block and the logical page number of said write target page,
(b) selecting the blank block as a destination block,
(c) determining a page offset of said destination block based on the logical page number of said write target page, and writing the page offset into said page-offset storage area as the page offset of said destination block,
(d) reading a page offset of said source block from said page-offset storage area,
(e) obtaining a phys cal page number of said write target page based on the page offset of said source block and the logical page number of said write target page,
(f) writing a data object to be written, which is transferred from said host to said page buffer, into said destination block from its top page in sequence,
(g) obtaining a physical page number of a transfer start page of said source block based on the number of pages of said data objects and the physical page number of said write target page, and
(h) transferring data stored in said source block, from said transfer start page in a sequential and cyclic manner, via said page buffer, to a page next to or after a page area of said destination block into which said data object is written.
2. A semiconductor memory apparatus according to
(A) said semiconductor memory apparatus further comprising:
(a) a host interface for receiving the logical address of said write target page and said data object, which are sent out from said host; and
(b) an address-conversion-table storage section storing a logical/physical address conversion table showing a correspondence between a logical address and a physical address for each of said blocks in said flash memory device, and a flag for showing whether or not each of said blocks is said blank block; and
(B) said memory control section counts the number of pages of said page area, and starts data transmission from said source block to said destination block in one of the case when the number of the pages reaches a predetermined number and the case when said host provides notification of the end of sending of said data object.
4. A semiconductor memory apparatus according to
(A) said semiconductor memory apparatus further comprising:
(a) a host interface for receiving the logical address of said write target page and said data object, which are sent out from said host; and
(b) an address-conversion-table storage section storing a logical/physical address conversion table showing a correspondence between a logical address and a physical address for each of said blocks in said flash memory device, and a flag for showing whether or not each of said blocks is said blank block; and
(B) said memory control section counts the number of pages of said page area, and starts data transmission from said source block to said destination block in one of the case when the number of the pages reaches a predetermined number and the case when said host provides notification of the end of sending of said data object.
6. A method of writing data into a flash memory device according to
8. A method of writing data into a flash memory device according to
|
This application is a section 371 of International Application No. PCT/JP03/10718, filed Aug. 25, 2003, the disclosure of which is incorporated herein by reference.
The present invention relates to a semiconductor memory apparatus that includes a flash memory device. In particular, the invention relates to a method of writing data into the flash memory device.
Information processing appliances and, further in recent years, household electric appliances, such as television sets and refrigerators, include CPUs and realize advanced operating control by software. The appliances store (firmware) programs for the operating control and parameters in ROMs. Semiconductor memory apparatuses that include flash memory devices are extensively used as the ROMs. In addition, the semiconductor memory apparatuses are extensively used in portable information processing appliances (mobile appliances), such as notebook computers, personal digital assistants (PDA), digital cameras, portable audio players, and cellular phones, as external, miniature recording media like memory cards. Especially for the uses, it is desirable that the semiconductor memory apparatuses have large capacities and small sizes.
The storage area of a flash memory device is generally divided into a plurality of pages each having a fixed number of memory cells. Writing and reading of data are performed page by page. The storage area is further divided into a plurality of blocks each having a fixed number of the pages. A data erasing is performed collectively in each of the blocks. Accordingly, page-by-page overwriting of data cannot be performed in the strict sense in the flash memory device, in contrast to RAMs.
A conventional semiconductor memory apparatus realizes a renewal of data stored in some pages of flash memory devices (which is hereafter referred to as a renewal of pages) and a writing of new data onto blank pages (which is hereafter referred to as an addition of pages), for example, as follows.
The conventional semiconductor memory apparatus comprises the flash memory 1 and two RAMs; a saving buffer 20 and a page buffer 2. The flash memory 1 is divided into more than one block B0, B1, . . . A physical address is allocated to each of the blocks B0, B1, . . . Each of the blocks includes 32 pages. For example, the head block (or the first block) B0 includes pages P0, P1, . . . , and P31, and the (n+1)th block Bn (n≧1) includes pages Q0, Q1, . . . , and Q31. A page in the block is identified by the pair of the physical address of the block and a page number in the block. The page numbers are, for example, serial numbers 0-31 put on the respective pages of the block from its top page in sequence. The saving buffer 20 and the page buffer 2 each have a storage capacity substantially equal to that of one page of the flash memory 1.
A host sends out a logical address designating a write target page and data objects to be written, to the semiconductor memory apparatus. The semiconductor memory apparatus stores the data objects DN in the page buffer 2. On the other hand, the semiconductor memory apparatus identifies the corresponding page in the flash memory 1 from the logical address. For example, when the logical address designates the (p+1)th page Pp (0≦p≦31) of the head block B0, the semiconductor memory apparatus converts the logical address into the pair of the physical address of the head block B0 and the page number p of the (p+1)th page Pp. The physical address is identified as the physical address of a block being a source of data transfer (which is hereafter referred to as a source block). Then, the semiconductor memory apparatus selects, in the flash memory 1, one block in which data has not yet been written (which is hereafter referred to as a blank block). The semiconductor memory apparatus selects, for example, the (n+1)th block Bn being the blank block. The physical address of the (n+1)th block Bn is identified as a physical address of the block to which the data stored in the source block B0 is transferred (which is hereafter referred to as a destination block).
The conventional semiconductor memory apparatus transfers data items stored in the source block B0 to the destination block Bn as follows. First, the data item D0 of the top page P0 of the source block B0 is read into the saving buffer 20 (see the arrow R0 shown in
Semiconductor memory apparatuses are required to have large capacities and small Sizes as far as possible. However, improvements in packing density of the flash memory devices are not easy. Accordingly, size reductions of circuit parts except the flash memory devices are desirable. For example, when many functional sections each include common circuit parts, the common parts are to be integrated into a single part. Thereby, reductions in number of the common parts are desirable. Size reductions of the semiconductor memory apparatuses are more desirable since they reduce the costs of manufacturing through the reductions in area of chips. The conventional semiconductor memory apparatus has the two RAMs, the saving buffer and the page buffer, as described above. The RAMs share the commonalities, being used as a buffer memory and having the substantially same storage capacity as that of one page of the flash memory device. Accordingly, the integration of the saving buffer and the page buffer into one RAM is strongly desirable. In the renewal of pages by the conventional semiconductor memory apparatus, however, the page buffer has to hold data objects to be written until the write target page is set as a target of saving, as described above. Therefore, it is difficult that the page buffer doubles as the saving buffer.
An object of the present invention is to provide a semiconductor memory apparatus wherein the size of RAM is reduced through the integration of the saving buffer and the page buffer into a single RAM, and thereby miniaturization is achieved.
A semiconductor memory apparatus according to the present invention comprises:
(A) a flash memory device comprising more than one block, each of which includes more than one page, and a page-offset storage area in which a page offset of each of the blocks is stored, and writing data into a blank block from its top page in sequence;
(B) a page buffer in which the substantially same amount of data as the data storage capacity of one of the pages is temporarily stored;
(C) an address conversion section for receiving from a host a logical address that specifies a write target page, and converting the logical address into a pair of a physical address of the block (which is hereafter referred to as a source block) to which the write target page belongs, and a logical page number of the write target page; and
(D) a memory control section for (a) reading the physical address of the source block and the logical page number of the write target page, (b) selecting one of the blank blocks as a destination block, (c) determining a page offset of the destination block based on the logical page number of the write target page, and writing the page offset into the page-offset storage area as the page offset of the destination block, (d) reading a page offset of the source block from the page-offset storage area, (e) obtaining a physical page number of the write target page based on the page offset of the source block and the logical page number of the write target page, (f) writing a data object to be written, which is transferred from the host to the page buffer, into the destination block from its top page in sequence, (g) obtaining a physical page number of a transfer start page of the source block based on the number of pages of the data objects and the physical page number of the write target page, and (h) transferring data stored in the source block, from the transfer start page in a sequential and cyclic manner, via the page buffer, to a page next to or after a page area of the destination block into which the data object is written.
The logical page numbers are serial numbers allocated to the respective pages in the flash memory device by the host. The physical page numbers are serial numbers put on the respective pages of each block in the flash memory device, from the top page in sequence. The page offset of a block means a cyclic deviation of the logical page order from the physical page order in the block. The page offset of the block is preferably the same as the logical page number of the top page of the block. The above-described semiconductor memory apparatus according to the present invention stores the page offsets of the respective blocks in the flash memory device. Here, the actually stored data items may be the logical page numbers of particular pages, in addition to the page offsets themselves. The page offset storage areas are preferably the redundant areas of the top pages of the respective blocks. The redundant area of the page is the storage area accessible independently of the data area of the page. For example, the logical address corresponding to the page, the flag showing whether or not the page is a blank page, the flag showing that the data written onto the page is enabled/disabled (in other words, the access of the host to the page is allowed/inhibited), and the error-detecting code (e.g. CRC) of the data, are stored in the redundant area of the page. The storage space for the page offsets may be allocated to a non-volatile memory separated from the above-described flash memory device (which is hereafter referred to as a page-offset storage section), in addition to the page-offset storage area in the flash memory device. The page-offset storage section is included, for example, in the memory control section. The page buffer is a RAM, and preferably, an SRAM. The number of pages of the data objects to be written means the amount of the data objects expressed in the unit that is the data storage capacity per page in the flash memory device. The number of pages of the data objects is equal to the number of pages of the page area of the destination block into which the data objects are written.
In the above-described semiconductor memory apparatus according to the present invention, the logical page numbers of the pages in the flash memory device may shift from the physical page numbers of the pages in a cyclic manner in the respective blocks. The physical page number of each page is calculated based on the logical page number of the page and the page offset of the block to which the page belongs. When receiving from the host the instruction for a renewal of some pages or an addition of new pages in a block, the above-described semiconductor memory apparatus according to the present invention first writes the data objects to be written, which are transferred from the host to the page buffer, into the destination block, from its top page in sequence. Thereby, the page buffer is freed before the start of the saving process for the source block. Accordingly, the above-described semiconductor memory apparatus according to the present invention can use the page buffer as a saving buffer at the saving of the source block. As a result, the above-described semiconductor memory apparatus according to the present invention has RAMs smaller in size than those of conventional apparatuses. Therefore, the above-described semiconductor memory apparatus according to the present invention has the whole size smaller than that of the conventional apparatus when the sizes of the flash memory devices are fixed.
The above-described semiconductor memory apparatus according to the present invention may further comprise: (a) a host interface for receiving the logical address of the write target page and the data object, which are sent out from the host; and (b) an address-conversion-table storage section storing a logical/physical address conversion table showing a correspondence between a logical address and a physical address for each of the blocks in the flash memory device, and a flag for showing whether or not each of the blocks is the blank block; and the above-described memory control section may count the number of pages of the data objects and may start data transmission from the source block to the destination block, when the number of the pages reaches a predetermined number, or when the host provides notification of the end of sending of the data object. Here, the address-conversion-table storage section is preferably a RAM. The logical/physical address conversion table is the table showing the correspondences between the logical address allocated to each block in the flash memory device and the physical address of the block.
Since the host interface is independent of the memory control section, data communications between the host and the semiconductor memory apparatus are performed independently of data writing/reading in the flash memory device. Thereby, for example, the latency time of the host for writing data into the flash memory device is shortened.
The address conversion section scans, for example, the redundant areas of the pages in the flash memory device. Thereby, the logical addresses of the respective blocks in the flash memory device are listed. Thus, the address conversion section creates the logical/physical address conversion table, and stores the table into the address-conversion-table storage section. The address conversion section consults the logical/physical address conversion table, when converting the logical address of the write target page into the pair of the physical address of the source block and the logical page number of the write target page. Thereby, the section can promptly retrieve the physical address corresponding to the logical address.
The address conversion section further checks whether or not each block is a blank block, based on the data items stored in the scanned redundant areas. Thereby, the section determines the above-described flags for the respective blocks, and stores the flags into the address-conversion-table storage section. The memory control section consults the above-described flags, when selecting one of the blank blocks as a destination block. Thereby, the section can promptly determine the destination block.
For example, when transferring the data objects to be written, which the host stores in the page buffer, from the page buffer to the destination block, the memory control section counts the number of times of the transfer. The host may notify the semiconductor memory apparatus of the end of sending of the data objects, for example, using a predetermined command. In that case, the memory control section can detect the number of pages of the data objects from the above-described number of times of the transfer at the receipt of the notification. At the same time, the memory control section starts the data transfer from the source block to the destination block. Alternatively, the host may notify the semiconductor memory apparatus of the number of pages of the data objects before sending the data objects. In that case, the memory control section starts the data transfer from the source block to the destination block when the above-described number of times of the transfer reaches the notified number of pages.
A method of writing data into a flash memory device, which is the method of writing data into a flash memory device comprising more than one block, each of which includes more than one page, and writing data into a blank block from its top page in sequence;
the method comprising the steps of:
(A) receiving from a host a logical address specifying a write target page;
(B) converting the logical address into a pair of a physical address of a source block and a logical page number of the write target page;
(C) selecting one of the blank blocks as a destination block;
(D) determining a page offset of the destination block based on the logical page number of the write target page, and writing the page offset Into a page-offset storage area in the flash memory device as a page offset of the destination block;
(E) reading the page offset of the source block from the page-offset storage area;
(F) determining a physical page number of the write target page based on the page offset of the source block and the logical page number of the write target page;
(G) writing a data object to be written, which is transferred from the host to a page buffer, into the destination block from its top page in sequence; and
(H) obtaining a physical page number of a transfer start page of the source block based on the number of pages of the data objects and the physical page number of the write target page, and transferring data stored in the source block, from the transfer start page in a sequential and cyclic manner, via the page buffer, to a page next to or after a page area of the destination block into which the data object is written. Here, the logical page number, the physical page number, the page offset of the block, the page-offset storage area (or the page-off set storage section), the page buffer, and the number of pages of the data objects to be written are defined in a manner similar to the above-described ones.
In the above-described method of writing data according to the present invention, the logical page numbers of the pages in the flash memory device may shift from the physical page numbers of the pages in a cyclic manner in the respective blocks. The physical page number of each page is calculated based on the local page number of the page and the page offset of the block to which the page belongs. When the host provides the instruction for a renewal of some pages or an addition of new pages in a block, the data objects to be written, which are transferred from the host to the page buffer, are first written into the destination block, from its top page in sequence. Thereby, the page buffer is freed before the start of the saving process for the source block. Accordingly, the page buffer can double as a saving buffer at the saving of the source block. As a result, a RAM size required in the above-described method of writing data is smaller than that of the conventional method. Therefore, a semiconductor memory apparatus has the whole size smaller than that of the conventional apparatus when the sizes of the flash memory devices are fixed.
The method of writing data according to the present invention may further comprise the step of counting the number of pages of the page area of the destination block, into which the data objects are written, and starting data transmission from the source block to the destination block, when the number of the pages reaches a predetermined number, or when the host provides notification of the end of sending of the data object. For example, every time when the data object is transferred from the page buffer to the destination block, the number of times of the transfer is counted. The host may notify the semiconductor memory apparatus of the end of sending of the data object, for example, using a predetermined command. In that case, the number of pages of the above-described page area is detected from the above-described number of times of the transfer at the receipt of the notification. In addition, the data transfer from the source block to the destination block gets started at the notification. Alternatively, the host may notify the semiconductor memory apparatus of the number of pages of the data objects before sending the data objects. In that case, the data transfer from the source block to the destination block starts when the above-described number of times of the transfer reaches the notified number of pages.
The page buffer is freed before the start of the saving process for the source block in the above-described semiconductor memory apparatus and its method of writing data according to the present invention. Accordingly, the page buffer can double as a saving buffer at the saving process. As a result, the above-described semiconductor memory apparatus has RAMs smaller in size than those of conventional apparatuses. Therefore, the above-described semiconductor memory apparatus according to the present invention has the whole size smaller than that of the conventional apparatus when the sizes of the flash memory devices are fixed. Manufacturing costs of the above-described semiconductor memory apparatus according to the present invention reduce lower than those of the conventional apparatuses, since the chip area is particularly small.
While the novel features of the invention are set forth particularly in the appended claims, the invention, both as to organization and content, will be better understood and appreciated, along with other objects and features thereof, from the following detailed description taken in conjunction with the drawings.
It will be recognized that some or all of the figures are schematic representations for purposes of illustration and do not necessarily depict the actual relative sizes or locations of the elements shown.
The following describes the best embodiment of the present invention, referring to the figures.
The flash memory 1 is preferably a NAND-type EEPROM (electrically erasable programmable ROM).
When data streams of one block size or more are stored into the flash memory 1, the data streams are divided into pages and written into the data areas DA of the respective pages, from the top page of the blank block in sequence. In particular, the logical page order in each block may shift from the physical page order in the block in a cyclic manner as follows: In
The cyclic deviations between the logical page orders and the physical page orders generally vary among the blocks. This cyclic deviation of a block is referred to as a page offset of the block. The page offset of a block is the same as the logical page number of the top page of the block. In the flash memory 1, the page offsets are represented by integers between 0 and 31 inclusive and stored in page-offset storage areas of the respective blocks. Here, the page-offset storage area is, for example, the redundant area RA of the first page of each block. In
A host interface 3 (see
The page buffer 2 is an SRAM preferably, and temporarily stores the data items exchanged between the host interface 3 and the memory controller 6. The storage capacity of the page buffer 2 is 512 bytes, for example, and substantially the same as the storage capacity of (the data area DA of) one page in the flash memory 1.
The address conversion section 4 receives the logical address from the host interface 3. In the logical address, for example, the upper bits show the logical address of one block in the flash memory 1 (a logical block address), and the lower bits show the logical page number of one page in the block. The address conversion section 4 first divides the logical address input into the logical block address and the logical page number. The address conversion section 4 next accesses an address-conversion-table storage section 5. The address-conversion-table storage section 5 is a RAM preferably, and stores a logical/physical address conversion table L. The address conversion section 4 converts the logical block address into the physical address of the corresponding block, based on the logical/physical address conversion table L. The pair of the physical address and the logical page number is sent to the memory controller 6. Here, the logical/physical address conversion table L is a table bringing a-logical block address allocated to each enabled block in the flash memory 1 into correspondence with the physical address of the block. The address conversion section 4 scans the redundant areas RA of the top pages of blocks of the flash memory 1 at the start up of the semiconductor memory apparatus 10, for example, thereby listing the logical block addresses of the enabled blocks in the flash memory 1. Thus, the logical/physical address conversion table L is created and stored in the address-conversion-table storage section 5.
The address-conversion-table storage section 5 stores, for example, a flag F for each block of the flash memory 1 to show whether or not to be a blank block, in addition to the logical/physical address conversion table L. The address conversion section 4 checks each block in the flash memory 1 for a blank block, based do the data stored in the redundant area RA of the block, and determines the above-described flag F. The address conversion section 4 further stores the flags F into the address-conversion-table storage section 5.
The memory controller 6 identifies one page in the flash memory 1 based on the pair of the physical address and the logical page number, which is received from the address conversion section 4. The memory controller 6 performs data reading/writing for the identified page. For example, at the receipt of a read command from the host H, the memory controller 6 first receives from the address conversion section 4 the physical address that is converted from the destination address of the read command, and identifies a block corresponding to the physical address in the flash memory 1. The memory controller 6 next reads the page offset of the block from the redundant area of the top page of the block. The memory controller 6 identifies the physical page number corresponding to the logical page number, based on the page offset and the logical page number received from the address conversion section 4. The memory controller 6 reads from the flash memory 1 the data item stored on the page having the physical page number, and transfers the data item to the page buffer 2.
At the receipt of a write command from the host H, the memory controller 6 performs data writing into the flash memory 1, that is, a renewal or an addition of pages in one block of the flash memory 1 as follows:
The memory controller 6 first receives a physical address from the address conversion section 4. Then, the memory controller 6 identifies a block corresponding to the physical address as a source block in the flash memory 1. In
The memory controller 6 further receives the logical page number “8” of the write target page from the address conversion section 4, and determines the difference between the logical page number “8” and the page offset “2” of the source block B0: “8−2=6”. Here, the difference generally ranges from −31 to 31 inclusive. When the difference is not negative, the memory controller 6 identifies the difference as the physical page number of the write target page. When the above-described difference is negative, the memory controller 6 adds the total page number (=32) per block to the difference, and identifies the sum as the physical page number of the write target page. Thus, the physical page number of the write target page is determined as an integer between or equal to 0 and 31. In
The memory controller 6 accesses the address-conversion-table storage section 5 and, based on the flags F stored there, selects one of blank blocks in the flash memory 1 as a destination block. In
The host interface 3 receives data objects DN8-DN12 to be written that is sent from the host H, and writes the data objects into the page buffer 2 page by page. The memory controller 6 transfers the data objects DN8-DN12 from the page buffer 2 to the destination block Bn page by page (see the arrow shown in
Every time when transferring the data objects DN8-DN12 from the page buffer 2 to the destination block Bn, the memory controller 6 counts the number of times of the transfer. The host H notifies the semiconductor memory apparatus 10 of the end of sending of data objects to be written, using a predetermined command. The memory controller 6 detects the command through the host interface 3. At the detection of the command, the memory controller 6 determines the number of pages, “5”, of the storage region Q0-Q4 of the data objects DN8-DN12, based on the above-described number of times of the transfer. Then, the memory controller 6 further starts the data transfer from the source block B0 to the destination block Bn. Here, the host H may provide the semiconductor memory apparatus 10 with prior notification of the page number “5” required for the storage of the data objects DN8-DN12. In that case, when the above-described number of times of the transfer reaches the notified page number “5”, the memory controller 6 starts the data transfer from the source block B0 to the destination block Bn.
Before the start of a data transfer from the source block B0 to the destination block Bn (which is hereafter referred to as a block transfer), the page buffer 2 is freed. The memory controller 6, using the page buffer 2, performs the block transfer as follows (see
The memory controller 6 next transfers data items D2, D3, . . . , and D7 of the to page P0 through the page (the sixth page) P5 just before the write target page P6 of the source block B0 to the destination block Bn as follows (see
The physical page number of the transfer start page is equal to the sum of the physical page number of the write target page and the number of pages of the storage region of the data objects to be written. Here, when the sum is the total page number (=32) per block or more, the value of the sum minus the total page number is identified as the physical page number of the transfer start page. In that case, the memory controller 6 transfers the data items on the transfer start page through the page just before the write target page to the destination block Bn in a manner similar to the data transfers shown in
As a result of the above-described data transfers by the memory controller 6, the data items D8-D12 on the pages having the logical page numbers “8” through “12” are replaced with the new data items DN8-DN12 in the destination block Bn, in contrast to the source block B0 (see
At the completion of the block transfer, the memory controller 6 disables or collectively erases data items in the source block B0. At that time, the address conversion section 4 updates the logical/physical address conversion table L, and brings the logical address corresponding to the physical address of the source block B0 into correspondence with the physical-address of the destination block Bn. The address conversion section 4 further resets the flag F stored in the address-conversion-table storage section 5 to show that the source block B0 is a blank block. Thus, the renewal and addition of pages in one block of the flash memory 1 are realized.
The memory controller 6 performs the data writing from the page buffer 2 into the destination block Bn, starting from the top page Q0 of the destination block Bn and finishing at the final page Q31 as described above. This writing order is the same as that of conventional apparatuses. Accordingly, the same configuration as that of the conventional apparatuses may be used for the data writing from the page buffer into the destination block.
The method of writing data by the semiconductor memory apparatus 10 according to the embodiment is performed as shown by the following flow:
<Step S1>
A data write command is sent out from the host H. The host interface 3 receives the data write command and decodes it into the logical address of a write target page. The host interface 3 further sends the logical address to the address conversion section 4.
<Step S2>
The address conversion section 4 receives the logical address from the host interface 3. The address conversion section 4 then consults the logical/physical address conversion table L and converts the logical address into the pair of the physical address of the source block B0 and the logical page number q (0≦q≦31) of the write target page. The address conversion section 4 further sends the pair to the memory controller 6.
<Step S3>
The memory controller 6 accesses the address-conversion-table storage section 5 and selects one of blank blocks, Bn in the flash memory 1 as a destination block, based on the flags F. Here, when the source block B0 is a blank block, the source block B0 itself may be selected as the destination block Bn. In that case, the following steps S8 and S9 are skipped.
<Step S4>
The memory controller 6 writes the logical page number q received from the address conversion section 4 into the redundant area RA of the top page Q0 of the destination block Bn (see
<Step S5>
The memory controller 6 reads the page offset p (0≦p≦31) of the source block B0 from the redundant area RA of the top page P0 of the source block B0.
<Step S6>
The memory controller 6 determines the difference between the logical page number q of the write target page and the page offset p of the source block B0. When the difference q−p is negative (q−p<0), the controller adds the total page number (=32) per block to the difference q−p. A thus derived integer value between or equal to 0 and 31, q−p or 32+q−p, is identified as the physical page number r of the write target page: r=q−p or r=32+q−p.
<Step S7>
The host interface 3 receives data objects DN(q), DN(q+1), . . . to be written from the host H (reference symbols in parentheses beside the reference symbol DN show logical page numbers.) The host interface 3 transfers the data objects DN(q), DN(q+1), . . . to the page buffer 2 page by page. The host interface 3 further notifies the memory controller 6 of the transfer. The memory controller 6 transfers the data objects DN(q), DN(q+1), . . . in the page buffer 2 every notification from the host interface 3, starting from the top page Q0 of the destination block Bn in sequence.
The memory controller 6 starts a data transfer from the source block B0 to the destination block Bn (a block transfer).
The memory controller 6 collectively erases or disables data items in the source block B0. The address conversion section 4 then updates the logical/physical address conversion table L, and brings the logical address corresponding to the physical address of the source block B0 into correspondence with the physical address of the destination block Bn. The address conversion section 4 further resets the flag F stored in the address-conversion-table storage section 5 to show that the source block B0 is a blank block.
As described above, at the renewal and the addition of pages in one block of the flash memory 1, the semiconductor memory apparatus 10 according to the embodiment uses the page buffer 2 as a saving space of the data items in the original block, thereby including no saving buffer apart from the page buffer 2, in contrast to conventional apparatuses. As a result, the semiconductor memory apparatus has RAMs smaller in size than those of the conventional apparatuses. Therefore, a small size of the whole apparatus can be maintained.
The above-described disclosure of the invention in terms of the presently preferred embodiments is not to be interpreted as intended for limiting. Various alterations and modifications will no doubt become apparent to those skilled in the art to which the invention pertains, after having read the disclosure. As a corollary to that, such alterations and modifications apparently fall within the true spirit and scope of the invention. Furthermore, it is to be understood that the appended claims be intended as covering the alterations and modifications.
The semiconductor memory apparatus according to the present invention realizes miniaturization through the integration of page buffer and saving buffer. Therefore, the present invention has extremely high industrial applicability.
Honda, Toshiyuki, Inagaki, Yoshihisa
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5519847, | Jun 30 1993 | Intel Corporation | Method of pipelining sequential writes in a flash memory |
5579502, | Aug 09 1991 | Kabushiki Kaisha Toshiba | Memory card apparatus using EEPROMS for storing data and an interface buffer for buffering data transfer between the EEPROMS and an external device |
5611067, | Mar 31 1992 | Kabushiki Kaisha Toshiba | Nonvolatile semiconductor memory device having means for selective transfer of memory block contents and for chaining together unused memory blocks |
5745912, | Apr 02 1992 | Kabushiki Kaisha Toshiba | Memory card apparatus including a link table for managing the correspondency between the recorded contents in the memory card and that in the link table |
5963983, | Apr 15 1996 | International Business Machines Corporation | Method and apparatus for dynamically creating conversion tables to access a semiconductor memory device |
6141726, | Aug 26 1997 | Robert Bosch GmbH | Method for modifying data |
6721843, | Jul 07 2000 | U S BANK NATIONAL ASSOCIATION, AS COLLATERAL AGENT | Flash memory architecture implementing simultaneously programmable multiple flash memory banks that are host compatible |
6763424, | Jan 19 2001 | SanDisk Technologies LLC | Partial block data programming and reading operations in a non-volatile memory |
6938116, | Jun 04 2001 | Samsung Electronics Co., Ltd. | Flash memory management method |
6965963, | Jul 28 1999 | Sony Corporation | Continuous arrangement of data clusters across multiple storages |
20030204675, | |||
EP1134662, | |||
JP11203885, | |||
JP5046461, | |||
JP5313989, | |||
JP9282111, | |||
WO9843248, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Aug 25 2003 | Panasonic Corporation | (assignment on the face of the patent) | / | |||
Dec 03 2013 | PANASONIC CORPORATION FORMERLY MATSUSHITA ELECTRIC INDUSTRIAL CO , LTD | Godo Kaisha IP Bridge 1 | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 032209 | /0630 |
Date | Maintenance Fee Events |
Feb 22 2012 | ASPN: Payor Number Assigned. |
Jan 16 2014 | ASPN: Payor Number Assigned. |
Jan 16 2014 | RMPN: Payer Number De-assigned. |
Feb 25 2014 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Apr 23 2018 | REM: Maintenance Fee Reminder Mailed. |
Oct 15 2018 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Aug 23 2014 | 4 years fee payment window open |
Feb 23 2015 | 6 months grace period start (w surcharge) |
Aug 23 2015 | patent expiry (for year 4) |
Aug 23 2017 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 23 2018 | 8 years fee payment window open |
Feb 23 2019 | 6 months grace period start (w surcharge) |
Aug 23 2019 | patent expiry (for year 8) |
Aug 23 2021 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 23 2022 | 12 years fee payment window open |
Feb 23 2023 | 6 months grace period start (w surcharge) |
Aug 23 2023 | patent expiry (for year 12) |
Aug 23 2025 | 2 years to revive unintentionally abandoned end. (for year 12) |