SEMICONDUCTOR STORAGE DEVICE
A semiconductor storage apparatus is coupled with a system bus to receive a write request accompanied with first and second blocks of data, which are stored in nonvolatile semiconductor memories. A control device sends a first erase command to one of the nonvolatile memories to initiate a first internal erase operation of data within the nonvolatile memories. After the first erase command has been sent, the control device sends a second erase command to another one of the nonvolatile memories, to initiate a second internal erase operation of data within the other nonvolatile memory.
This application is a continuation of application Ser. No. 12/466,907, filed May 15, 2009, which, in turn, is a continuation of application Ser. No. 10/784,995, filed Feb. 25, 2004 (now abandoned), which, in turn, is a continuation of application Ser. No. 10/387,478, filed Mar. 14, 2003 (now U.S. Pat. No. 6,728,826), which, in turn, is a continuation of application Ser. No. 09/879,960, filed Jun. 14, 2001 (now U.S. Pat. No. 6,549,974), which, in turn, is a continuation of Ser. No. 09/706,843, filed on Nov. 7, 2000 (now U.S. Pat. No. 6,457,092), which, in turn, is a continuation of Ser. No. 09/006,486, filed on Jan. 13, 1998 (now U.S. Pat. No. 6,145,050), which, in turn, is a continuation of application Ser. No. 08/669,914, filed on Jun. 25, 1996 (now U.S. Pat. No. 5,809,515), which, in turn, is a continuation of application Ser. No. 08/079,550, filed Jun. 22, 1993 (now U.S. Pat. No. 5,530,828); and the entire disclosures of which are hereby incorporated by reference. In addition, as another line of copendency, the present application is a continuation of application U.S. Ser. No. 12/466,907, filed May 15, 2009, which, in turn, is a continuation of application Ser. No. 10/387,478, filed Mar. 14, 2003 (now U.S. Pat. No. 6,728,826), which, in turn, is a continuation of application Ser. No. 10/132,322, filed Apr. 26, 2002 (now U.S. Pat. No. 6,598,115), which, in turn, is a continuation of Ser. No. 09/706,843, filed on Nov. 7, 2000 (now U.S. Pat. No. 6,457,092), which, in turn, is a continuation of Ser. No. 09/006,486, filed on Jan. 13, 1998 (now U.S. Pat. No. 6,145,050) which, in turn, is a continuation of application Ser. No. 08/669,914, filed on Jun. 25, 1996 (now U.S. Pat. No. 5,809,515), which, in turn, is a continuation of application Ser. No. 09/079,550, filed Jun. 22, 1993 (now U.S. Pat. No. 5,530,828), the entire disclosures of which are hereby incorporated by reference.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to a semiconductor storage device employing flash memories. More particularly, it relates to a technique for continuously writing data into a semiconductor disk pack or the like which employs flash memories.
2. Description of the Related Art
A flash EEPROM (electrically erasable programmable read-only memory) is adapted to read out data therefrom and write data thereinto in word units with one word consisting of a plurality of bits, and to electrically erase data therefrom in chip units or in plural-word units. With respect to known art, there is a storage device, a. g., a disk pack wherein a plurality of such flash EEPROM's are packaged, and wherein data are written into the flash EEPROM's or erased therefrom in succession.
The prior art will be explained in conjunction with
The above technique requires a considerable time period in the case of continuously writing the data of a plurality of words. The command and the data of one word can be written in a time period on the order of several tens nanosec.˜several hundred nanosec. However, a time period of several microsec.˜several tens microsec. is expended from the time data of one word is initially fed to the flash memory until the end of the writing operation within the flash memory chip, and the flash memory cannot be accessed in the meantime. Therefore, the total time period for writing data of one word is considerably longer than a time period for reading out data of one word. Moreover, in the case of continuously writing data of the plurality of words, the writing time period increases in proportion to the number of words. By way of example, in a case where a semiconductor disk pack is constructed using such flash memories, data of several kilowords˜several tens kilowords or more are continuously written. Then, the writing time period increases in proportion to the quantity of the data to-be-written, so that the transfer of the data which are to be written becomes slow, and this affects the whole system.
SUMMARY OF THE INVENTIONIt is accordingly an object of the present invention to provide a semiconductor storage device which shortens a time period for writing data.
In order to accomplish this object, in one aspect of the present invention, a semiconductor storage device comprises a plurality of flash memories which store data therein; and control means for sending a first instruction of writing the data to one of the flash memories, and for sending a second write instruction to another of the flash memories different from the flash memory to which the first write instruction has been sent and which is under a write operation, before the flash memory to which the first instruction has been sent becomes capable of accepting a next write instruction.
Each of the flash memories is slower in the data writing operation than in a data reading operation. Nevertheless, since the control means sends the write instructions to the different flash memories in succession, a large amount of continuous data can be written at high speed when the storage device is considered overall.
According to the present invention, in the case of writing continuous data, the write operation is so controlled that the data are not continuously written into an identical flash memory, but that they are written into different flash memories.
The flash memory into which the data of one word have been written inevitably involves a latency time period or waiting time of several microsec.˜several tens microsec. before the next data are written thereinto. Therefore, in the presence of data which are to be continuously written, data of each additional word are continuously written into a different flash memory than that associated with the preceding word during the latency time period of the flash memory of the preceding word. When the latency time period of the flash memory initially subjected to the write operation has lapsed, status polling is started from the first flash memory, and the next data of one word are written into this flash memory upon acknowledging the status thereof.
More specifically, the status polling in an example proceeds as stated below. A processor 2 (to be explained later) receives data of 8 bits from that one of a plurality of flash memory chips in which the data of one word have been written. When bit #7 of the received data of 8 bits has a value which is a logically inverted value of the written data of this bit #7, the processor determines that the operation of writing the data into the flash memory chip has ended.
The status polling also serves to determine whether the flash memory chip has become defective. By way of example, when the above status indicating the end of the write operation is not acknowledged, the status polling is performed every 6 microsec. Unless the status is acknowledged after iterating the status polling 20˜30 times, the chip is determined to be defective.
Incidentally, regarding the operation of erasing data, the status polling is utilized in order to determine completion of the erase operation when the bit #7 of the data of 8 bits has become “0”.
As stated above, during the latency time period of one flash memory, data are written into a different flash memory.
In a semiconductor storage device which includes a plurality of flash memories and which is used for writing continuous data of a plurality of words, the write operation which is of low speed in each flash memory can be quickened for the whole device in accordance with the present invention. More specifically, in a semiconductor disk pack which includes the flash memories, continuous data of a plurality of words are written. In the case of writing continuous data, the operation of writing the data into each flash memory is slow compared with the operation of reading out data therefrom, so that a transfer rate for the whole disk pack is lowered. According to the present invention, however, the data writing speed of the whole disk pack can be increased in spite of the low writing speed of each flash memory.
Now, an embodiment of the present invention will be described in detail with reference to the drawings.
In the semiconductor disk pack constructed as shown in
After the write management table has been set, the data of the 3 sectors transferred through the standard bus 1 are received in the three areas of the blocks #1˜#3 of the write buffer memory 5 as designated by the write management table (step 24). Then, the semiconductor disk pack releases (i.e., interrupts) the right of access to the standard bus 1, so as to process the operation of writing the data into the flash memories 4 within the disk pack only.
Under this state, the data received in the write buffer memory 5 are written into the flash memories 4. First, the processor 2 selects management No. 0 of the write management table (step 25), whereby the physical addresses of the write buffer memory 5 and the flash memories 4 are delivered to the memory address bus 71. Thus, data of one word are read out of the block #1 of the write buffer memory 5 (step 26), a write command is written into the chip #0 of the flash memories 4 (step 27), and the data of one word read out of the write buffer memory 5 are written into sector #3 of the chip #0 of the flash memories 4 (step 28). At this time, the operation of writing the data is started within the chip #0 of the flash memory 4, but data cannot be read out and written into the chip #0 until the internal write operation ends. The processor 2 determines if there is next write data, i.e. if data exist which are to be written next into the next chip (e.g., chip #1) are existent (step 29). When data to be written next are determined to exist, they are written into another of the flash memory chips 4 during the above latency time period of the chip #0. As stated above concerning the conversion of logical sectors into the physical sectors, data of successive sectors to be written have been assigned to the different chips in sector units. Regarding the data to be written next, the processor 2 designates management No. 1 of the write management table (step 25), and data of one word read out of the block #2 of the write buffer memory 5 are written into the chip #1 of the flash memories 4 (steps 26, 27 and 28). Subsequently, management No. 2 is designated, and the data of one word read out of the block #3 of the write buffer memory 5 are written into sector #7 of the chip #2 of the flash memory 4 (steps 26, 27 and 28).
When data corresponding to one word have been respectively written into the chips #0, #1 and #2 of the flash memories 4 in accordance with steps 26 to 28, and the processor 2 determines the next data is nonexistent in accordance with step 29, the management No. designated by the write management table is updated (step 30). Status polling is performed for the chip #0 of the flash memories 4 which was first subjected to the write operation (step 33), to determine if the write operation within this chip has ended. Also at this time, the processor 2 designates management No. 0 of the write management table is in the write operation, whereby status polling is performed for the chip #0 of the flash memory 4. Here, if the internal write operation of the chip #0 of the flash memory 4 has not ended, the status polling is iterated. On the other hand, if the internal write operation has ended, the counter value of the management No. of the write management table is incremented (step 34). As in the foregoing, the processor 2 determines if the next management No. exists in the write management table (step 35). Since the management No. 1 exists herein, it is designated (step 30), and the status polling is performed for the chip #1 of the flash memory 4 subjected to the data writing operation next to the chip #0 (step 33). If the write operation within the chip #1 of the flash memories 4 has ended, status polling is performed for the chip #2 of the flash memories 4 subjected to the data writing operation next to the chip #1 (step 33). When all of the chips #0˜#2 of the flash memories 4 have ended the internal write operations, that is, a condition in which it is determined that the next management No. is nonexistent (step 35), the write sequence proceeds to a step 36.
Here at the step 36, the processor 2 determines if the counter has reached 512 bytes. The state in which the counter has reached 512 bytes signifies that all the data have been written from the buffer memory 5 into the flash memories 4. When the counter has not yet reached 512 bytes, the write operation explained above (steps 25˜35) is iterated until the operation of writing the data of 512 bytes has ended. On the other hand, when the counter has reached 512 bytes, that is, when the operation of writing all the data from the write buffer memory 5 into the flash memories 4 has ended, the processor 2 actuates the Vpp generator circuit 6 to stop the generation of the writing supply voltage Vpp (step 37).
As is apparent from the description of this embodiment, data of 3 sectors can be written into the flash memories in a time period which is substantially equal to the writing time period of one sector. Although the operation of writing the 3 sectors is exemplified in the embodiment, it is to be understood that the data of more sectors can be similarly written.
In this embodiment, the flash memories for writing the data in sector units are the separate chips. There is also a method in which 512 bytes within each sector are divided into a plurality of blocks. With this method, data to be written are allocated to different flash memories in divisional block units. By way of example, 512 bytes are divided into 16 blocks in units of 32 bytes. The blocks #1˜#16 are respectively written into the different chips of the flash memories. The divisional units of 32 bytes are not restrictive, but 512 bytes may be divided in units in which each is of a desired number of bytes, such as 16 bytes or 64 bytes.
In the embodiment described above, each of the flash memories has a predetermined latency time period determined by the waiting time from completion of the operation of writing the write command and the data of one word until the operation of writing the next data of one word therein begins. It is also possible to employ flash memories each of which is capable of having data written therein in page units, that is, each flash memory can have data of a plurality of words continuously written therein after a page write command is written therein and each of which has a predetermined latency time period associated with each page of data beginning from the time in which data are provided to that flash memory until the end of the operation of writing the data into the designated memory chip within that flash memory. In this case, in the same manner as in the above-described embodiment, the data of one page are written into the first one of the flash memory chips, and the data of another page are written into the second one of the flash memory chips different from the first flash memory chip within the time period which extends from the write operation of the first flash memory chip until the status polling thereof.
The merit of this embodiment is not restricted to the operation of writing the data into the flash memories 4, but it holds true also of the operation of erasing data. The flash memories 4 are erased in chip units, or in block units each consisting of a plurality of words. A method for the erase operation will now be explained. An address indicative of a block to be erased is designated for one of the flash memories 4, while at the same time, an erase command is written into a designated one of the flash memories 4. Thus, an erase process within the flash memories 4 is started. Then, a latency of a predetermined time period is involved until the erase process within the flash memories 4 ends. Meanwhile, the flash memories 4 under the erase process cannot be accessed except for the status polling thereof. When the end of the internal erase process has been acknowledged by the status polling upon the lapse of the predetermined time period, the operation of erasing the next data from the designated one of the flash memories 4 is begun. During the predetermined time period, an erase command is written into another of the flash memories 4 different from the flash memory 4 which is under the erase process. Thus, the plurality of flash memories 4 are erased in parallel. Accordingly, the operation speed for erasing data with respect to the whole semiconductor disk pack is increased.
The erase operation which the processor 2 controls in the semiconductor disk pack constructed as shown in
The previous embodiment has referred to flash memories 4 which erase data in a sector unit. The erase unit, however, differs depending upon flash memories. Therefore, the method of setting the write management table is changed in accordance with the different erase units of the flash memories. In a case where each of the flash memories erases data in terms of chip units, only the column of the chip Nos. of the flash memories may be set in the write management table. In a case where each of the flash memories erases data in terms of plural-word units, the two columns of the chip Nos. and sector Nos. of the flash memories are set in the write management table. However, even with the flash memory which erases data in terms of plural-word units, the data are not always erased in a sector unit. In a case where the flash memory erases the data with the storage capacity of a plurality of sectors as one block, the column of the sector Nos. of the flash memories is set in the write management table, whereby a plurality of sectors are erased.
In the foregoing embodiment, the writing supply voltage Vpp is applied to all the flash memories 4 when it is required in the write or erase operation. There is also a method in which the writing supply voltage Vpp is applied to only the flash memory or those ones of the flash memories 4 into which data are to be written. Such an embodiment of a semiconductor disk pack is illustrated as a block diagram in
The above embodiments are directed to flash memories 4 each of which requires, in both the write and erase operations, a writing supply voltage Vpp which is different (of greater magnitude) than the power supply voltage Vcc. However, certain flash memories suffice with a single supply voltage, that is, they do not require the writing supply voltage Vpp. A semiconductor disk pack directed to such packaged flash memories is illustrated as a block diagram in
In the above embodiments, the chips of the flash memories 4 into which data are to be written are selected by the chip enable signal CE. There is also a method in which the selection of the flash memories 4, to have data written thereinto, is controlled by a write enable signal WE, not by the chip enable signal CE. A semiconductor disk pack based on this method is illustrated as a block diagram in
In another type of disk pack arrangement, certain flash memories are not provided with the write enable signal WE. In case of writing data into such flash memories, the write operation is controlled by controlling the chip enable signal CE and the writing supply voltage Vpp. Even with such flash memories, the present invention can enhance the speed for both the writing of and erasing of data.
Another embodiment will now be described with reference to
In the embodiment shown in
The flash memory needs to erase the data of a corresponding area before writing data into the area, and it inevitably repeats erase and write operations. The repetition of the erase and write operations degrades the erase and write characteristics of the flash memory, and lengthens time periods required for the erase and write operations. Moreover, the degradations of the erase and write characteristics differ depending upon the chips of the flash memories. That is, some chips are less prone to the degradations of the characteristics in spite of the repeated erase and write operations, whereas others undergo degradations comparatively early. Even in a case where the semiconductor disk pack in any of the foregoing embodiments is constructed including the plurality of flash memories whose characteristics differ in the individual chips, as stated above, the speed of the write operation of the whole pack can be enhanced according to the present invention.
It is supposed in the ensuing explanation that the flash memories of different characteristics coexist in the semiconductor disk pack shown in
Upon receiving a write request from the standard bus 1, the processor 2 receives data transferred through the standard bus 1, which data are temporarily held in the write buffer memory 5 (steps 21, 22, 23 and 24).
The data received in the write buffer memory 5 are respectively written into the chips #0, #1 and #2 of the flash memories 4 in accordance with that listed in the write management table shown in
When data of one word have been written into each of the chips #0, #1 and #2 of the flash memories 4 (step 29), the status polling of the flash memory chip #0 initially subjected to the write operation is performed (step 331) to determine if the write operation has ended within the flash memory chip #0. Here, when the write operation within the flash memory chip #0 has not ended, a minus number is registered as the counter value of the management No. 0 in the write management table (step 341). On the other hand, when the write operation has ended, the counter value is incremented (step 34). When a minus number is registered as the counter value in the write management table, the management number can only be incremented after the minus sign is changed into plus. Likewise, the status polling is performed for the chips #1 and #2 of the flash memories 4 (steps 30, 331, 34, 341 and 35). When the status polling has been performed for all the chips of the flash memories 4 subjected to the write operations, the processor 2 then determines if additional data to be written remain (step 36). When such additional data exists, the operation of writing the data is iterated (steps 25, 26, 27, 28 and 29). At this time, when the counter value in the write management table is a minus number, it indicates the chip in which the last status polling showed that the internal write operation of that chip had not ended. Therefore, the additional data are not written into that chip.
The processor 2 determines if the counter has reached 512 bytes, i.e. whether additional data exists which remains to be written (step 36). When the counter has not reached 512 bytes yet or is a minus number, the write operation explained above (steps 25˜35) is iterated until the operation of writing the data of 512 bytes has ended. A showing by the counter as having reached 512 bytes for a corresponding chip signifies that the series of data have been written thereinto. Accordingly, the next data can be written into this chip any time.
As is apparent from the description of the embodiment, even when the characteristics of the flash memories packaged in the semiconductor disk pack differ depending upon the chips, the chips of good characteristics complete the data writing operations early and can have the next data written thereinto. Therefore, in case of writing a large amount of data into the flash memories, the write operation speed corresponding to the whole disk pack is increased.
As understood from the above description, the present invention brings forth the effect that, even when flash memories, the write operation of which is slow as compared with the read operation thereof, are incorporated in an auxiliary storage device or the like into which a large amount of data are written, the speed of writing of data with respect to the whole device can be increased. The effect is great especially in a case where a large amount of continuous data are to be written. Moreover, a plurality of areas to be simultaneously erased can be erased at high speed.
Owing to the construction described above, the present invention can provide a semiconductor storage device which shortens a time period for writing data thereinto.
Claims
1. A semiconductor storage apparatus to be coupled with a system bus to receive a write request accompanied with first and second sectors of data, comprising;
- a plurality of nonvolatile semiconductor memories which store said first and second sectors of data therein; and
- a control module to be coupled with said system bus, and coupled with said plurality of nonvolatile semiconductor memories,
- wherein said control module sends a first erase command to one of said plurality of nonvolatile semiconductor memories to initiate a first internal erase operation of data within said one of said plurality of nonvolatile semiconductor memories, and
- wherein, after said first erase command has been sent, said control module sends a second erase command to another of said plurality of nonvolatile semiconductor memories, different from said one of said plurality of nonvolatile semiconductor memories to which said first erase command was sent to initiate a second internal erase operation of data within said other of said plurality of nonvolatile semiconductor memories while said one of said plurality of nonvolatile semiconductor memories is still performing said first internal erase operation responsive to said first erase command.
2. A semiconductor storage apparatus according to claim 1, farther comprising:
- a buffer memory, coupled commonly with said plurality of nonvolatile semiconductor memories, which holds said first and second sectors of data as write data to be written into said plurality of nonvolatile semiconductor memories,
- wherein said control module responds to said write request, carries out read operations of said first and second sectors of data as said write data from said buffer memory and carries out write operations of said first and second sectors of data as said write data read out from said buffer memory into said plurality of nonvolatile semiconductor memories, wherein said write operations into said plurality of nonvolatile semiconductor memories are controlled by sending a first write command from said control module to one of said plurality of nonvolatile semiconductor memories and by sending a second write command from said control module to another of said plurality of nonvolatile semiconductor memories different from said one to which said first write command has been sent while said one of said plurality of nonvolatile semiconductor memories is still performing a write operation responsive to said first write command.
3. A semiconductor storage apparatus according to claim 1, wherein each of said plurality of nonvolatile semiconductor memories is comprised of a flash memory semiconductor chip.
4. A semiconductor storage apparatus according to claim 2, wherein each of said plurality of nonvolatile semiconductor memories is comprised of a flash memory semiconductor chip.
5. A semiconductor storage apparatus according to claim 2, wherein said buffer memory has a storage memory capacity corresponding to a plurality of sectors in units of 512 bytes which is a sector capacity of a standard disk.
6. A semiconductor storage apparatus according to claim 1, wherein said control module includes a processor.
7. A semiconductor storage apparatus according to claim 2, wherein said control module includes a processor
8. A semiconductor storage apparatus according to claim 1, wherein said control module further includes an address controller.
9. A semiconductor storage apparatus according to claim 2, wherein said control module further includes an address controller,
10. A semiconductor storage apparatus according to claim 1, wherein each of said plurality of nonvolatile semiconductor memories is comprised of a flash memory semiconductor chip, and wherein said buffer memory has a storage memory capacity corresponding to a plurality of sectors in units of 512 bytes which is a sector capacity of a standard disk.
11. A semiconductor storage apparatus according to claim 2,
- wherein each of said plurality of nonvolatile semiconductor memories is comprised of a flash memory semiconductor chip, and
- wherein said buffer memory has a storage memory capacity corresponding to a plurality of sectors in units of 512 byte which is a sector capacity of a standard disk.
12. A semiconductor storage apparatus according to claim 10, wherein said control module includes a processor.
13. A semiconductor storage apparatus according to claim 11, wherein said control module includes a processor.
14. A semiconductor storage apparatus according to claim 10, wherein said control module further includes an address controller.
15. A semiconductor storage apparatus according to claim 11, wherein said control module further includes an address controller.
16. A semiconductor storage apparatus to be coupled with a system bus comprising:
- a plurality of nonvolatile semiconductor memories which write data from said system therein in sector units and erase said data in block units, said each block including a plurality of said sectors; and
- a control module to be coupled with said system bus, and coupled with said plurality of nonvolatile semiconductor memories,
- wherein said control module sends a first erase command to one of said plurality of nonvolatile semiconductor memories to initiate a first internal erase operation of data in said block units within said one of said plurality of nonvolatile semiconductor memories, and
- wherein, after said first erase command has been sent, said control module sends a second erase command to an other of said plurality of nonvolatile semiconductor memories, different from said one of said plurality of nonvolatile semiconductor memories to which said first erase command was sent, to initiate a second internal erase operation of data in said block units within said other of said plurality of nonvolatile semiconductor memories while said one of said plurality of nonvolatile semiconductor memories is still performing said first internal erase operation responsive to said first erase command.
17. A semiconductor storage apparatus according to claim 16, wherein said control module carries out a status polling operation in an order of said nonvolatile semiconductor memories to which said control module sent said erase commands, after said control module sent said erase commands to all of said nonvolatile semiconductor memories.
Type: Application
Filed: Aug 16, 2011
Publication Date: Jan 12, 2012
Inventors: Kenichi Kaki (Yokohama-shi), Kunihiro Katayama (Yokohama-shi), Takashi Tsunehiro (Ebina-shi)
Application Number: 13/210,831
International Classification: G06F 12/02 (20060101);