BACKGROUND OF THE INVENTION 
       [0001]    The present invention relates to a multilevel semiconductor memory device, data writing/reading methods thereto/therefrom, and a storage medium storing data writing/reading programs. 
         [0002]    As an error correction function of codes stored in a semiconductor memory device, a method of using Hamming codes has been used. In the semiconductor memory device using the Hamming codes, when four-bit data (m 1 , m 2 , m 3 , m 4 ), for instance is required to be stored, three check bits (p 1 , p 2 , p 3 ) are obtained by a coder, and seven bits in total of the four data bits and the three check bits are stored. 
         [0003]    When the Hamming codes stored in the semiconductor memory device are read, the read data (y 1 , y 2 , y 3 , y 4 , y 5 , y 6 , y 7 ) is given to a decoder to obtain error-corrected data (m 1 , m 2 , m 3 , m 4 ). In the above-mentioned semiconductor memory device, it is possible to correct an error of one bit of the read data (y 1 , y 2 , y 3 , y 4 , y 5 , y 6 , y 7 ). For further detail, refer to [Coding Theory] by Hideki IMAI, published by Electronic Information Communications Institute (Ver. 5), Jun. 10, 1994, for instance. 
         [0004]    Recently, however, as disclosed by Japanese Laid-Open Patent No. 6(1994)-195987, there has been developed a multilevel semiconductor memory device which can store three or more levels of data each in a single memory cell. A plurality of threshold voltages are set in the multilevel semiconductor memory device. For instance, in the case of four-level non-volatile semiconductor memory, four threshold voltages (0V, 2V, 4V, 6V) are set to each memory cell, respectively, so that two-bit data can be stored in a single memory cell. In other words, the threshold voltage of the memory cell is set to any one of 0V, 2V, 4V and 6V in correspondence to each of four storage contents of (00, 01, 10, 11). 
         [0005]    Here, when the error correction function based upon the Hamming codes is provided for the multilevel semiconductor memory device, bits of a code train obtained by the coding are stored in sequence and two adjacent bits are stored in the same memory cell. 
         [0006]    For instance, the case where check bits (p 11 , p 21 , p 31 ) and (p 12 , p 22 , p 32 ) are obtained on the basis of data bits (m 11 , m 21 , m 31 , m 41 ) and ((m 12 , m 22 , m 32 , m 42 ) and further these bits are stored in the multilevel memory cell will be explained hereinbelow. That is, when the Hamming codes composed of these data bits and these check bits are stored in the multilevel memory cell, these bits have been stored in the order of (m 11 , m 21 ), (m 31 , m 41 ), (p 11 , p 21 ), (p 31 , m 12 ), (m 22 , m 32 ), (m 42 , p 12 ), and (p 22 , p 32 ). 
         [0007]    Here, the way of producing an error in the multilevel semiconductor memory devices will be explained hereinbelow by taking the case of the multilevel non-volatile memory. In this case, since an error occurs due to change in threshold voltage, there exists a high possibility that an error occurs in two-bit data at the same time; that is, for example, “10” is changed to “01”. 
         [0008]    In other words, the errors caused in the multilevel semiconductor memory device are characterized in that errors occur concentrically in an interval of a code series according to the number of levels to be stored in a single multilevel memory cell. This is referred to as burst error. When this burst error occurs, the storage status of a single multilevel memory cell changes, and thus two-bit error occurs. In this case, since two or more errors occur in a single Hamming code, there exists a problem in that the code cannot be decoded correctly. 
         [0009]    As another method, other than the one using the Hamming code, Japanese Patent Laid-Open No. 60(1985)-163300 discloses an error correction method for a multilevel semiconductor memory device that uses multiple codes. In this method, however, the fact that burst errors occur with a high possibility in the case of the multilevel semiconductor memory device is not considered. Thus, there exists a problem in that the error correction efficiency is not high. 
         [0010]    Further, in the multilevel memory cell, there exists another problem in that the number of read operations required for a single memory cell increases. Here, a data reading method will be explained hereinbelow by taking the case of the read operation required for the four-level semiconductor memory device. In the semiconductor memory device, when receiving an external read instruction, the memory device waits an input address. In this case, the input address is a logical address not a physical address corresponding to an actual memory cell. The physical address is thus calculated on the basis of the Input logical address. 
         [0011]    Successively, on the basis of the calculated physical address, it is checked whether the threshold voltage of the designated memory cell is set to any one of 0V, 2V, 4V and 6V. The checked threshold voltage is then converted into two-bit data. In practice, reference voltages (e.g., 1V, 3V and 5V) are applied in sequence to the memory cell. In this case, when the reference voltage of 1V is applied, if a current flows through the source and drain of the memory cell, the threshold voltage of the memory cell is decided as being 0V, so that “00” data can be read. On the other hand, although a current does not flow at 1V, when a current, flows at 3V, the threshold voltage of the memory cell is decided as being 2V, so that “01” data can be read. Further, although the current does not flow at 1V and 3V, when a current flows at 5V, the threshold voltage of the memory cell is decided as being 4V, so that “10” data can be read. Further, when the current does not flow at all the voltages applied to the memory cell, the threshold voltage of the memory cell is decided as 6V, so that “11” is read. In the example, although four levels are set to a single memory cell; that is, two-bit data are stored, the method of writing and reading multilevel data (more than two) has been studied. 
         [0012]    In the case of the multilevel memory cell, however, there exists a problem in that the number of read operations required for a single memory cell increases. 
         [0013]    For instance, when four levels are stored in a single memory cell as described above, in the four-level semiconductor memory device, three read and check operations must be always executed to specify to which level of the four levels the threshold voltage of the memory cell belongs in each read operation, irrespective of the input address. In practice, although the read and check operations are executed by applying 1V, 3V and 5V stepwise to the memory cell, this is the same as that three read and check operations are necessary. 
         [0014]    To overcome this problem, the Inventors have already proposed a method of increasing the read operation speed of the memory cell, in Japanese Patent Laid-Open No. 7(1995)-201189. When this method is explained in correspondence to the four-level semiconductor device, first 3V is applied to the memory cell, and then the high-order bit of the two-bit data is decided according to whether a current flows or not. In this case, when a current flows, the high-order bit is decided as “0”, and when the current does not flow, the high-order bit is decided as “1”. Successively, when the high-order bit is decided as “0”, 1V is further applied to the memory cell. When a current flows, the two-bit data of the memory cell is decided as “00”, and when the current does not flow, the data is decided and output as “01”. On the other hand, when the high-order bit is decided as “1”, 5V is further applied to the memory cell. When a current flows, the two-bit data of the memory cell is decided as “10”, and when the current does not flow, the data is decided and output as “11”. As described above, in this data reading method proposed by the Inventors, it is possible to specify two-bit data stored in a single memory cell by two read operations. 
         [0015]    In this data reading method, however, it is always necessary to specify to which level of the four levels the threshold voltage of the memory cell belongs, irrespective of the logical address; that is, even when the logical address designates the high-order bit of the memory cell. 
         [0016]    As described above, in the multilevel semiconductor memory device, data are output after the data stored in the memory cell has been perfectly specified in the read operation, irrespective of the input logical address. There exists a problem in that a time longer than necessity is needed, with the result that the data reading speed is inevitably limited. 
       SUMMARY OF THE INVENTION 
       [0017]    With these problems in mind, therefore, it is the object of the present invention to provide a multilevel semiconductor memory device, writing/reading methods thereto/therefrom and a storage medium storing writing/reading programs which can execute the error correction effectively, even if the multilevel data stored in a single memory cell is lost. 
         [0018]    Further, another object of the present invention is to provide a multilevel semiconductor memory device, writing/reading methods thereto/therefrom and a storage medium storing writing/reading programs, which can read data of high access frequency at a high speed on the basis of the input logical address, to further shorten the access time required in the read operation. 
         [0019]    The present invention provides a semiconductor device comprising: a plurality of multilevel memory cells, each cell storing at least three levels of data each; arranging means for accepting at least a first data composed of a plurality of first data bits and a second data composed of a plurality of second data bits, the first and the second data being coded by a coding method, and for arranging the first and the second data bits in order that at least a bit of an N-order of the first data bits and a bit of the N-order of the second data bits are stored in one of the cells, the N being an integral number; generating means for generating at least a voltage corresponding to the N-order bits; and applying means for applying the voltage to the one of the cells in response to an address information corresponding to the one of the cells. 
         [0020]    Further, the present invention provides a method of writing data of bits in a semiconductor device having a plurality of multilevel memory cells, each cell storing at least three levels of data each, comprising the steps of: entering at least a first data composed of a plurality of first data bits and a second data composed of a plurality of second data bits, the first and the second data being coded by a coding method; arranging the first and the second data bits such that at least a bit of an N-order of the first data bits and a bit of the N-order of the second data bits are stored in one of the cells, the N being an integral number; generating at least a voltage corresponding to the N-order bits; and applying the voltage to the one of the cells in response to an address information corresponding to the one of the cells. 
         [0021]    Further, the present invention provides a computer readable medium storing program code for causing a computer to write data of bits in a semiconductor device having a plurality of multilevel memory cells, each cell storing at least three levels of data each, comprising: first program code means for entering at least a first data composed of a plurality of first data bits and a second data composed of a plurality of second data bits, the first and the second data being coded by a coding method; and second program code means for arranging the first and the second data bits such that at least a bit of an N-order of the first data bits and a bit of the N-order of the second data bits are stored in one of the cells, the N being an integral number. 
         [0022]    Further, the present invention provides a semiconductor device comprising: converting means for converting a logical address into a physical address; a plurality of multilevel memory cells arranged so as to correspond to a physical address space including the physical address, each cell storing 2 n  levels of data each expressed by n (n≧2) number of bits (X 1 , X 2 , . . . , Xn); judging means for judging whether a logical address space including the logical address matches the physical address space; specifying means for specifying the most significant bit X 1 , by one-time specifying operation, by means of a reference value when the logical address space matches the physical address space; and outputting means for outputting the specified bit from one of the cells corresponding to the physical address. 
         [0023]    Further, the present invention provides a method of reading n (n≧2) number of bits (X 1 , X 2 , . . . , Xn) from a plurality of multilevel memory cells arranged so as to correspond to a physical address space, each cell storing 2 n  levels of data each expressed by the bits (X 1 , X 2 , . . . , Xn), comprising the steps of: converting a logical address into a physical address included in the physical address space; judging whether a logical address space including the logical address matches the physical address space; specifying the most significant bit X 1 , by one-time specifying operation, by means of a reference value when judged that the logical address space matches the physical address space; and outputting the specified bit from one of the cells corresponding to the physical address. 
         [0024]    Further, the present invention provides a method of reading n (n≧2) number of bits (X 1 , X 2 , . . . Xn) from a plurality of multilevel memory cells arranged so as to correspond to a physical address space, each cell having at least one transistor, each cell storing 2 n  levels of data each expressed by the bits (X 1 , X 2 , . . . , and Xn), comprising the steps of: converting a logical address into a physical address included in the physical address space; judging whether a logical address space including the logical address matches the physical address space; specifying the most significant bit X 1  by applying a predetermined reference voltage to a gate of the transistor to determine whether a current flows between a source and a drain of the transistor when the logical address space matches the physical address space; and outputting the specified bit from one of the cells corresponding to the physical address. 
         [0025]    Further, the present invention provides a method of reading n (n≧2) number of bits (X 1 , X 2 , . . . , Xn) from a plurality of multilevel memory cells arranged so as to correspond to a physical address space, each cell having at least one transistor, each cell storing 2 n  levels of data each expressed by the bits (X 1 , X 2 , . . . , and Xn), comprising the steps of: converting a logical address into a physical address included in the physical address space; judging whether a logical address space including the logical address matches the physical address space; specifying the most significant bit X 1  by comparing an output voltage of the transistor corresponding to the most significant bit with a reference voltage when the logical address space matches the physical address space; and outputting the specified bit from one of the cells corresponding to the physical address. 
         [0026]    Further, the present invention provides a computer readable medium storing program code for causing a computer to read n (n≧2) number of bits (X 1 , X 2 , . . . , Xn) from a plurality of multilevel memory cells arranged so as to correspond to a physical address space, each cell storing 2 n  levels of data each expressed by the bits (X 1 , X 2 , . . . , Xn), comprising: first program code means for converting a logical address into a physical address included in the physical address space; second program code means fop judging whether a logical address space including the logical address matches the physical address space; third program code means for specifying the most significant bit X 1 , by one-time specifying operation, by means of a reference value when judged that the logical address space matches the physical address space; and fourth program code means for outputting the specified bit from one of the cells corresponding to the physical address. 
         [0027]    Further, the present invention provides a computer readable medium storing program code for causing a computer to read n (n≧2) number of bits (X 1 , X 2 , . . . , Xn) from a plurality of multilevel memory cells arranged so as to correspond to a physical address space, each cell having at least one transistor, each cell storing 2 n  levels of data each expressed by the bits (X 1 , X 2 , . . . , Xn), comprising: first program code means for converting a logical address into a physical address included in the physical address space; second program code means for judging whether a logical address space including the logical address matches the physical address space; third program code means for specifying the most significant bit X 1  by applying a reference voltage to a gate of the transistor when the logical address space matches the physical address space to determine whether a current flows between a source and a drain of the transistor; and fourth program code means for outputting the specified bit from one of the cells corresponding to the physical address. 
         [0028]    Further, the present invention provides a computer readable medium storing program code for causing a computer to read n (n≧2) number of bits (X 1 , X 2 , . . . , Xn) from a plurality of multilevel memory cells arranged so as to correspond to a physical address space, each cell having at least one transistor, each cell storing 2 n  levels of data each expressed by the bits (X 1 , X 2 , . . . , Xn), comprising: first program code means for converting a logical address into a physical address included in the physical address space; second program code means for judging whether a logical address space including the logical address matches the physical address space; third program code means for specifying the most significant bit X 1  by comparing an output voltage of the transistor corresponding to the most significant bit with a reference voltage when the logical address space matches the physical address space; and fourth program code means for outputting the specified bit from one of the cells corresponding to the physical address. 
         [0029]    Further, the present invention provides a semiconductor device having a plurality of multilevel memory cells, each cell storing one of at least three levels of data each, the semiconductor device comprising a bit disperser for dispersing bits over the plurality of multilevel memory cells to store the bits therein, the bits constituting at least one code data coded by a coding method to be stored in the cells. 
         [0030]    Further, the present invention provides a computer readable medium storing program code for causing a computer to store data in a semiconductor device having a plurality of multilevel memory cells, each cell storing one of at least three levels of data each, comprising a program code means for dispersing bits over the plurality of multilevel memory cells to store the bits therein, the bits constituting at least one code data coded by a coding method to be stored in the cells. 
         [0031]    Further, the present invention provides a method of writing at least one code data coded by a coding method in a semiconductor device having a plurality of multilevel memory cells, each cell storing one of at least three levels of data each, the method comprising the step of dispersing bits constituting the code data over the plurality of multilevel memory cells. 
         [0032]    Further, the present invention provides a computer readable medium storing program code for causing a computer to write at least one code data coded by a coding method in a semiconductor device having a plurality of multilevel memory cells, each cell storing one of at least three levels of data each, comprising the program code for dispersing bits constituting the code data over the plurality of multilevel memory cells. 
         [0033]    Further, the present invention provides a semiconductor device comprising: inputting means for inputting a logical address; converting means for converting the logical address into a physical address; a plurality of multilevel memory cells arranged so as to correspond to physical addresses, each cell storing at least three levels of data each, the data being expressed by data components of two-dimension or more controlling means for selecting one of the cells corresponding to the physical address and designating one of the data components in accordance with the logical address; and outputting means for outputting the designated data component, wherein the semiconductor device has a judging value for specifying, by one-time specifying operation, at least one of the data components, and when the logical address is included in an address space A 1  that corresponds to an address space including the physical address, the controlling means specifies the designated data component by means of the judging value, thus the specified data being output by the outputting means. 
         [0034]    Further, the present invention provides a method of reading data stored in a semiconductor device having at least one multilevel memory cell provided so as to correspond to a physical addresses converted from an input logical address, the cell having a control gate, a source and a drain, the cell storing at least three levels of data each, the data being expressed by data components of two-dimension or more; comprising the steps of: preparing a judging value for specifying at least one of the data components; and applying a voltage corresponding to the judging value to the control gate to determine whether a current flows between the source and the drain when the logical address is included in an address space A 1  that corresponds to an address space including the physical address. 
         [0035]    Further, the present invention provides a computer readable medium storing program code for causing a computer to read data stored in a semiconductor device having at least one multilevel memory cell provided so as to correspond to a physical addresses converted from an input logical address, the cell having a control gate, a source and a drain, the cell storing at least three levels of data each, the data being expressed by data components of two-dimension or more; comprising: first program code means for preparing a judging value for specifying at least one of the data components; and second program code means for applying a voltage corresponding to the judging value to the control gate to determine whether a current flows between the source and the drain when the logical address is included in an address space A 1  that corresponds to an address space including the physical address. 
         [0036]    Further, the present invention provides a semiconductor device comprising: a plurality of multilevel memory cells, each cell storing one of at least three different levels of data each; first coding means for converting, by a coding method, a first data into a first code composed of at least two-digit code components; second coding means for converting, by a coding method, a second data into a second code composed of at least two-digit code components; and arranging means for arranging the code components in order to store at least two pairs of code components in corresponding cells, each pair having a code component of the first code and a code component of the second code of a same digit. 
         [0037]    Further, the present invention provides a semiconductor device comprising: a plurality of multilevel memory cells, each cell storing one of at least three different levels of data each; coding means for converting input data into a code of at least two digits by a coding method; and separating means for separating the code by a specific number of digits into at least a first and a second block of code components to store at least a code component group in at least one of the cells, the group having a code component of the first block and a code component of the second block of a same digit. 
         [0038]    According to the present invention, when an error occurs in multilevel data stored in a single multilevel memory cell, data of the minimum number of error-correctable bits is lost in one code, it is possible to execute the error correction effectively. 
         [0039]    Further, according to the present invention, logical addresses are divided hieratically into an address space of relatively high access speed and another address space of relatively low access speed. And, a partial space one-to-one corresponding to the address space formed by physical addresses is determined as the address space of relatively high access speed. Further, data in the address space of relatively high access speed is stored in the specific component, for example the high-order bit, in each memory cell. This data is judged by use of one judging value. 
         [0040]    When the input logical address is included in the partial space, this logical address designates the high-order bit data It is thus possible to immediately detects the high-order bit data by a single decision process by use of judging value. It is thus possible to read data from the semiconductor device with multilevel memory cells in an extremely high efficiency by storing data of the highest access frequency and data of a relatively low access frequency in the high- and the low-order bit, respectively in each cell. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0041]      FIG. 1  is a block diagram showing a main configuration of an EEPROM in the preferred embodiments according to the present invention; 
           [0042]      FIG. 2  is a schematic cross-sectional view showing a floating-gate type memory cell of the EEPROM in the preferred embodiments according to the present invention; 
           [0043]      FIG. 3  is an illustration for assistance in explaining the first embodiment of the method of data writing according to the present invention; 
           [0044]      FIG. 4  is an illustration for assistance in explaining the second embodiment of the method of data writing according to the present invention; 
           [0045]      FIGS. 5A and 5B  are illustrations for assistance in explaining the modifications of the second embodiment of the method of data writing according to the present invention; 
           [0046]      FIG. 6  is an illustration for assistance in explaining the third embodiment of the method of data writing according to the present invention; 
           [0047]      FIGS. 7A and 7B  are illustrations for assistance in explaining the modifications of the third embodiment of the method of data writing according to the present invention; 
           [0048]      FIG. 8  is a flowchart showing the first embodiment of the method of data reading according to the present invention; 
           [0049]      FIG. 9  is a block diagram for explaining a method of judging a threshold voltage in the flowchart shown in  FIG. 8 ; 
           [0050]      FIG. 10  is a flowchart showing the second embodiment of the method of data reading according to the present invention; and 
           [0051]      FIG. 11  is a block diagram for explaining another method of judging a threshold voltage. 
       
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
       [0052]    Embodiments of the multilevel semiconductor memory device, the methods of writing/reading data from/to the memory device, and the storage medium storing the data writing/reading programs according to the present invention will be described hereinbelow with reference to the attached drawings. 
         [0053]      FIG. 1  shows the essential construction of a multilevel EEPROM (electrically erasable and programmable read only memory), to which embodiments according to the present invention are applied. In  FIG. 1 , a memory cell array  1  is formed by arranging a plurality of memory cells in a matrix pattern. Each memory cell is of floating gate type, as shown in  FIG. 2 . In  FIG. 2 , a drain  12  and a source  13  each formed by an n-type impurity diffusion layer are formed on a surface of a p-type silicon substrate  11 . Further, a channel region  14  is formed between the drain  12  and the source  13 . 
         [0054]    A bit line  15  is connected to the drain  12 , and a source line  16  is connected to the source  13 . Further, formed on the channel region  14  is a tunnel insulating film  20  formed of SiO 2  film and having a thickness of about 10 nm. On this tunnel insulating film  20 , there are formed in sequence a floating gate  17  formed of a low-resistance polysilicon, an interlayer insulating film  18 , and a control gate (word line)  19  formed of a low-resistance polysilicon. 
         [0055]    The word line  19  is connected to a decoder  2  provided as extending in the column direction of the memory cell array  1 . The bit line  15  is connected to a multiplexer  4  provided as extending in the row direction of the memory cell array  1 . And, the source line  16  is grounded. 
         [0056]    When data are written in the multilevel EEPROM as described above, the operation mode is set to a program mode. Further, data are input through an input/output interface (I/F)  8 ; on the other hand, addresses are input through an input interface I/F  7 . Each input address is a logical address and hence converted into a physical address by a converter  9 . 
         [0057]    The data input through the input I/F  8  are given to a signal controller  6 . The bit data of the given data are rearranged by a bit data separator  6   a  provided in the signal controller  6 , as described in further detail later. 
         [0058]    The input data whose bits are rearranged are given to a voltage generator and controller  3 , to generate voltages according to the bit data. The voltages generated as described above are applied to the memory cell array  1  through a decoder  2 , so that predetermined threshold voltages are set to the memory cells. 
         [0059]    The first embodiment of the method of data writing according to the present invention will be described hereinbelow with reference to  FIG. 3 . 
         [0060]    The multilevel EEPROM described in this embodiment is a four-level memory device, in which the threshold voltage of each memory cell is set to any of the four values (0V, 2V, 4V, 6V) corresponding to each of two-bit data (00, 01, 10, 11) to be stored. Employed in this EEPROM is the method of interleaving, by m-times, a code C having a code length n and a burst error correction capability L, as the burst error correction code. 
         [0061]    In data rewriting, whenever 8-bit data are input, the input data is divided into 4×2 data bits as (m 11 , m 21 , m 31 , m 41 ) and (m 12 , m 22 , m 32 , m 42 ). On the basis of the divided data bits, 3×2 check bits (p 11 , p 21 , p 31 ) and (p 12 , p 22 , p 32 ) are formed. 
         [0062]    Further, on the basis of these data bits (m 11 , m 21 , m 31 , m 41 ) and (m 12 , m 22 , m 32 , m 42 ) and the check bits (p 11 , p 21 , p 31 ) (p 12 , p 22 , p 32 ), two code words (m 11 , m 21 , m 31 , m 41 , p 11 , p 21 , p 31 ) and (m 12 , m 22 , m 32 , m 42 , p 12 , p 22 , p 32 ) are formed. 
         [0063]    The two code words formed as described above are given to the bit data separator  6   a,  and then the bits of the code words are put in the positions of 2×7 arrangement as shown in  FIG. 3 . Further, combinations of (m 11 , m 12 ), (m 21 , m 22 ), (m 31 , m 32 ), (m 41 , m 42 ), (p 11 , p 12 ), (p 21 , p 22 ) and (p 31 , p 32 ) are sequentially stored in the seven memory cells. 
         [0064]    Accordingly, in  FIG. 3 , m 11  and m 12  are stored in the memory cell  1  as the high- and the low-order bit, respectively. In the same way, m 21  and m 22 ; m 31  and m 32 ; m 41  and m 42 ; p 11  and p 12 ; p 21  and p 22 ; and p 31  and p 32  are stored in the memory cells  2  to  7 , respectively. 
         [0065]    As described later in further detail, each code word can be corrected even if a single error occurs. For instance, as shown in  FIG. 3 , even if the threshold voltage of the third memory cell  3  changes and thereby a burst error of two-bit length occurs, since this error is a single error in a single code word, the correction is enabled. In other words, even if the threshold voltage of one of the seven memory cells changes; that is, even when a burst error such that the stored contents “01” change to “10” occurs, for instance, the correction is enabled. 
         [0066]    The second embodiment of the method of data writing according to the present invention will be described hereinbelow. 
         [0067]    The semiconductor device applied with the second embodiment is an eight-level memory device, in which the threshold voltage of each memory cell is set to any of eight levels (0V, 1V, 2V, 3V, 4V, 5V, 6V, 7V) corresponding to three-bit data (000, 001, 010, 011, 100, 101, 110, 111) to be stored. 
         [0068]    In data rewriting, whenever 12-bit data is input, the input data is divided into 4×3 data bits (m 11 , m 21 , m 31 , m 41 ), (m 12 , m 22 , m 32 , m 42 ) and (m 13 , m 23 , m 33 , m 43 ). On the basis of the divided data bits, 3×3 redundant check bits (p 11 , p 21 , p 31 ), (p 12 , p 22 , p 32 ) and (p 13 , p 23 , p 33 ) are obtained. 
         [0069]    On the basis of these data bits and check bits, three code words (m 11 , m 21 , m 31 , m 41 , p 11 , p 21 , p 31 ), (m 12 , m 22 , m 32 , m 42 , p 12 , p 22 , p 32 ) and (m 13 , m 23 , m 33 , m 43 , p 13 , p 23 , p 33 ) are formed in 3×7 arrangement. Further, as shown in  FIG. 4 , (m 11 , m 12 , m 13 ), (m 21 , m 22 , m 23 ), (m 31 , m 32 , m 33 ), (m 41 , m 42 , m 43 ), (p 11 , p 12 , p 13 ), (p 21 , p 22 , p 23 ) and (p 31 , p 32 , p 33 ) are stored in the seven memory cells. 
         [0070]    Accordingly, in  FIG. 4 , m 11 , m 12  and m 13  are stored in the memory cell  1  as the high-, the medium- and the low-order bit, respectively. In the same way, m 21 , m 22  and m 23 ; m 31 , m 32  and m 33 ; m 41 , m 42  and m 43 ; p 11 , p 12  and p 13 ; p 21 , p 22  and p 23 ; and p 31 , p 32  and p 33  are stored in the memory cells  2  to  7 , respectively. 
         [0071]    Each code word can be corrected even if a single error occurs. For instance, as shown in  FIG. 4 , even if the threshold voltage of the third memory cell  3  changes and thereby a burst error of three-bit length occurs, since this error is a single error in a single code word, the correction is enabled. In other words, even if the threshold voltage of one of the seven memory cells changes; that is, even when a burst error such that the stored contents “100” change to “011” occurs, for instance, the correction is enabled. 
         [0072]    Two modifications of the second embodiment of the method of data writing according to the present invention will be described hereinbelow. 
         [0073]    The semiconductor device applied with the first modification is an eight-level memory device, in which the threshold voltage of each memory cell is set to any of eight levels (0V, 1V, 2V, 3V, 4V, 5V, 6V, 7V) corresponding to three-bit data (000, 001, 010, 011, 100, 101, 110, 111) to be stored. The first modification follows a specific linear coding standard in which two errors per bit of a code word can be corrected. 
         [0074]    In data rewriting, whenever data composed of a specific number of bits, for example, K bits are input, the input data are divided into three (K/3) data bits. Redundant bits are obtained on the basis of the divided data bits to form a 14-bit code word (m 11 , m 21 , m 31 , m 41 , m 51 , m 61 , m 71 , m 12 , m 22 , m 32 , m 42 , m 52 , m 62 , m 72 ) and a 7-bit code word (m 13 , m 23 , m 33 , m 43 , m 53 , m 63 , m 73 ). In each code word, a specific number of bits are data bits and the remaining bits are redundant bits for error correction. 
         [0075]    Then, the 14-bit code word (m 11 , m 21 , m 31 , m 41 , m 51 , m 61 , m 71 , m 12 , m 22 , m 32 , m 42 , m 52 , m 62 , m 72 ) is divided into 7-bit code trains (m 11 , m 21 , m 31 , m 41 , m 51 , m 61 , m 71 ) and (m 12 , m 22 , m 32 , m 42 , m 52 , m 62 , m 72 ). 
         [0076]    Then, the code train a (m 11 , m 21 , m 31 , m 41 , m 51 , m 61 , m 71 ), the code train b (m 12 , m 22 , m 32 , m 42 , m 52 , m 62 , m 72 ) and one code word c (m 13 , m 23 , m 33 , m 43 , m 53 , m 63 , m 73 ) are put in the positions of 3×7 arrangement. Further, as shown in  FIG. 5A , (m 11 , m 12 , m 13 ), (m 21 , m 22 , m 23 ), (m 31 , m 32 , m 33 ), (m 41 , m 42 , m 43 ), (m 51 , m 52 , m 53 ), (m 61 , m 62 , m 63 ) and (m 71 , m 72 , m 73 ) are stored in the seven memory cells. 
         [0077]    Accordingly, in  FIG. 5A , m 11 , m 12  and m 13  are stored in the memory cell  1  as the high-, the medium- and the low-order bit, respectively. In the same way, m 21 , m 22  and m 23 ; m 31 , m 32  and m 33 ; m 41 , m 42  and m 43 ; m 51 , m 52  and m 53 ; m 61 , m 62  and m 63 ; and m 71 , m 72  and m 73  are stored in the memory cells  2  to  7 , respectively. 
         [0078]    The code trains a and b, and the code word c can be corrected even if a single error occurs. For instance, as shown in  FIG. 5A , even if a burst error of three-bit length occurs in the third memory cell  3 , since this error is a single error in the code trains a and b, and the code word c, and this error corresponds to two errors in the code word composed of the code trains a and b, the correction is enabled. In other words, even if the threshold voltage of one of the seven memory cells changes; that is, even when a burst error such that the stored contents “100” change to “011” occurs, for instance, the correction is enabled. 
         [0079]    Next, the second modification of the second embodiment of the method of data writing according to the present invention will be described hereinbelow. 
         [0080]    The semiconductor device applied with the second modification is an eight-level memory device, in which the threshold voltage of each memory cell is set to any of eight levels (0V, 1V, 2V, 3V, 4V, 5V, 6V, 7V) corresponding to three-bit data (000, 001, 010, 011, 100, 101, 110, 111) to be stored. The second modification follows a specific coding standard in which a single error per bit of a code word can be corrected and two errors per bit of a code word can be detected. 
         [0081]    In data rewriting, whenever 12-bit data is input, the input data is divided into 4×3 data bits (m 11 , m 21 , m 31 , m 41 ), (m 12 , m 22 , m 32 , m 42 ) and (m 13 , m 23 , m 33 , m 43 ). By means of Hamming codes, 3×3 redundant bits (p 11 , p 21 , p 31 ), (p 12 , p 22 , p 32 ) and (p 13 , p 23 , p 33 ) are obtained on the basis of the divided data bits. 
         [0082]    Then, a 11  the seven bits are EX-ORed in each of the three code trains (m 11 , m 21 , m 31 , m 41 , p 11 , p 21 , p 31 ), (m 12 , m 22 , m 32 , m 42 , p 12 , p 22 , p 32 ) and (m 13 , m 23 , m 33 , m 43 , p 13 , p 23 , p 33 ). The resultant redundant bits q 1 , q 2 , and q 3  are added to the three code trains, respectively, to form three code words (m 11 , m 21 , m 31 , m 41 , p 11 , p 21 , p 31 , q 1 ), (m 12 , m 22 , m 32 , m 42 , p 12 , p 22 , p 32 , q 2 ) and (m 13 , m 23 , m 33 , m 43 , p 13 , p 23 , p 33 , q 3 ). 
         [0083]    Then, the three code words are put in the positions of 3×8 arrangement. Further, as shown in  FIG. 5B , (m 11 , m 12 , m 13 ), (m 21 , m 22 , m 23 ), (m 31 , m 32 , m 33 ), (m 41 , m 42 , m 43 ), (p 11 , p 12 , p 13 ), (p 21 , p 22 , p 23 ), (p 31 , p 32 , p 33 ) and (q 1 , q 2 , q 3 ) are stored in the eight memory cells. 
         [0084]    Accordingly, in  FIG. 5B , m 11 , m 12  and m 13  are stored in the memory cell  1  as the high-, the medium- and the low-order bit, respectively. In the same way, m 21 , m 22  and m 23 ; m 31 , m 32  and m 33 ; m 41 , m 42  and m 43 ; p 11 , p 12  and p 13 ; p 21 , p 22  and p 23 ; p 31 , p 32  and p 33 ; and q 1 , q 2  and q 3  are stored in the memory cells  2  to  8 , respectively. 
         [0085]    Each code word can be corrected even if a single error occurs. For instance, as shown in  FIG. 5B , even if a burst error of three-bit length occurs in the third memory cell  3 , since this error is a single error in each code word, the correction is enabled. In other words, even if the threshold voltage of one of the eight memory cells changes; that is, even when a burst error such that the stored contents “100” change to “011” occurs, for instance, the correction is enabled. Further, if a burst error of one to three-bit length occurs in another memory cell, there are two errors in at least one code word. These two errors can be detected and one of them can be corrected. 
         [0086]    The third embodiment of the method of data writing according to the present invention will be described hereinbelow. 
         [0087]    The semiconductor device applied with the third embodiment is a sixteen-level memory device, in which the threshold voltage of each memory cell is set to any of sixteen levels (0V, 1V, 1.25V, 1.5V, 1.75V, 2V, 2.25V, 2.5V, 2.75V, 3V, 3.25V, 3.5V, 3.75V, 4V, 4.25V, 4.5V) corresponding to four-bit data (0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111) to be stored. 
         [0088]    In data rewriting, whenever 16-bit data is input, the input data is divided into 4×4 data bits (m 11 , m 21 , m 31 , m 41 ), (m 12 , m 22 , m 32 , m 42 ), (m 13 , m 23 , m 33 , m 43 ) and (m 14 , m 24 , m 34 , m 44 ). On the basis of the divided data bits, 3×4 redundant bits (p 11 , p 21 , p 31 ), (p 12 , p 22 , p 32 ), (p 13 , p 23 , p 33 ) and (p 14 , p 24 , p 34 ) are obtained. 
         [0089]    On the basis of these data bits and redundant bits, four code words (m 11 , m 21 , m 31 , m 41 , p 11 , p 21 , p 31 ), (m 12 , m 22 , m 32 , m 42 , p 12 , p 22 , p 32 ), (m 13 , m 23 , m 33 , m 43 , p 13 , p 23 , p 33 ) and (m 14 , m 24 , m 34 , m 44 , p 14 , p 24 , p 34 ) are formed and put in the positions of 4×7 arrangement. 
         [0090]    Further, as shown in  FIG. 6 , (m 11 , m 12 , m 13 , m 14 ), (m 21 , m 22 , m 23 , m 24 ), (m 31 , m 32 , m 33 , m 34 ), (m 41 , m 42 , m 43 , m 44 ), (p 11 , p 12 , p 13 , p 14 ), (p 21 , p 22 , p 23 , p 24 ) and (p 31 , p 32 , p 33 , p 34 ) are stored in the seven memory cells. 
         [0091]    Accordingly, in  FIG. 6 , m 11 , m 12 , m 13  and m 14  are stored in the memory cell  1  as the first, the second, the third and the fourth bit, respectively. In the same way, m 21 , m 22 , m 23  and m 24 ; m 31 , m 32 , m 33  and m 34 ; m 41 , m 42 , m 43  and m 44 ; p 11 , p 12 , p 13  and p 14 ; p 21 , p 22 , p 23  and p 24 ; and p 31 , p 32 , p 33  and p 34  are stored in the memory cells  2  to  7 , respectively. 
         [0092]    Each code word can be corrected even if a single error occurs. For instance, as shown in  FIG. 6 , even if a burst error of four-bit length occurs in the third memory cell  3 , since this error is a single error in a single code word, the correction is enabled. In other words, even if the threshold voltage of one of the seven memory cells changes; that is, even when a burst error such that the stored contents “1000” change to “0111” occurs, for instance, the correction is enabled. 
         [0093]    Two modifications of the third embodiment of the method of data writing according to the present invention will be described hereinbelow. 
         [0094]    The semiconductor device applied with the first modification is a sixteen-level memory device, in which the threshold voltage of each memory cell is set to any of sixteen levels (0V, 1V, 1.25V, 1.5V, 1.75V, 2V, 2.25V, 2.5V, 2,75V, 3V, 3.25V, 3.5V, 3.75V, 4V, 4.25V, 4.5V) corresponding to four-bit data (0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111) to be stored. The first modification follows a specific linear coding standard in which two errors per bit of a code word can be corrected. 
         [0095]    In data rewriting, whenever data composed of a specific number of bits, for example, p bits is input, the input data is divided into four (p/3) data bits. Redundant bits are obtained on the basis of the divided data bits to form two 14-bit code words (m 11 , m 21 , m 31 , m 41 , m 51 , m 61 , m 71 , m 12 , m 22 , m 32 , m 42 , m 52 , m 62 , m 72 ) and (m 13 , m 23 , m 33 , m 43 , m 53 , m 63 , m 73 , m 14 , m 24 , m 34 , m 44 , m 54 , m 64 , m 74 ). In each code word, a specific number of bits are data bits and the remaining bits are redundant bits for error correction. 
         [0096]    Then, these 14-bit code words are divided into 7-bit code trains (m 11 , m 21 , m 31 , m 41 , m 51 , m 61 , m 71 ) and (m 12 , m 22 , m 32 , m 42 , m 52 , m 62 , m 72 ), and (m 13 , m 23 , m 33 , m 43 , m 53 , m 63 , m 73 ) and (m 14 , m 24 , m 34 , m 44 , m 54 , m 64 , m 74 ), respectively. 
         [0097]    Then, the code trains are put in the positions of 4×7 arrangement. Further, as shown in  FIG. 7A , (m 11 , m 12 , m 13 , m 14 ), (m 21 , m 22 , m 23 , m 24 ), (m 31 , m 32 , m 33 , m 34 ), (m 41 , m 42 , m 43 , m 44 ), (m 51 , m 52 , m 53 , m 54 ), (m 61 , m 62 , m 63 , m 64 ) and (m 71 , m 72 , m 73 , m 74 ) are stored in the seven memory cells. 
         [0098]    Accordingly, in  FIG. 7A , m 11 , m 12 , m 13  and m 14  are stored in the memory cell  1  as the first, the second, the third and the fourth bit, respectively. In the same way, m 21 , m 22 , m 23  and m 24 ; m 31 , m 32 , m 33  and m 34 ; m 41 , m 42 , m 43  and m 44 ; m 51 , m 52 , m 53  and m 54 ; m 61 , m 62 , m 63  and m 64 ; and m 71 , m 72 , m 73  and m 74  are stored in the memory cells  2  to  7 , respectively. 
         [0099]    Each code train can be corrected even if a single error occurs. For instance, as shown in  FIG. 7A , even if a burst error of four-bit length occurs in the third memory cell  3 , since this error is a single error in each code train, and this error corresponds to two errors in the code word composed of two of the code trains, the correction is enabled. In other words, even if the threshold voltage of one of the seven memory cells changes; that is, even when a burst error such that the stored contents “1000” change to “0111” occurs, for instance, the correction is enabled. 
         [0100]    Next, the second modification of the third embodiment of the method of data writing according to the present invention will be described hereinbelow. The semiconductor device applied with the second modification is a sixteen-level memory device, in which the threshold voltage of each memory cell is set to any of sixteen levels (0V, 1V, 1.25V, 1,5V, 1.75V, 2V, 2.25V, 2.5V, 2.75V, 3V, 3.25V, 3.5V, 3.75V, 4V, 4.25V, 4.5V) corresponding to four-bit data (0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111) to be stored. The second modification follows a specific coding standard in which a single error per bit of a code word can be corrected and two errors per bit of a code word can be detected. 
         [0101]    In data rewriting, whenever 16-bit data is input, the input data is divided into 4×4 data bits (m 11 , m 21 , m 31 , m 41 ), (m 12 , m 22 , m 32 , m 42 ), (m 13 , m 23 , m 33 , m 43 ) and (m 14 , m 24 , m 34 , m 44 ). By means of Hamming codes, 3×4 redundant bits (p 11 , p 21 , p 31 ), (p 12 , p 22 , p 32 ), (p 13 , p 23 , p 33 ) and (p 14 , p 24 , p 34 ) are obtained on the basis of the divided data bits. 
         [0102]    Then, a 11  the seven bits are EX-ORed in each of the four code trains (m 11 , m 21 , m 31 , m 41 , p 11 , p 21 , p 31 ), (m 12 , m 22 , m 32 , m 42 , p 12 , p 22 , p 32 ), (m 13 , m 23 , m 33 , m 43 , p 13 , p 23 , p 33 ) and (m 14 , m 24 , m 34 , m 44 , p 14 , p 24 , p 34 ). The resultant redundant bits q 1 , q 2 , q 3  and q 4  are added to the four code trains, respectively, to form four code words (m 11 , m 21 , m 31 , m 41 , p 11 , p 21 , p 31 , q 1 ), (m 12 , m 22 , m 32 , m 42 , p 12 , p 22 , p 32 , q 2 ), (m 13 , m 23 , m 33 , m 43 , p 13 , p 23 , p 33 , q 3 ) and (m 14 , m 24 , m 34 , m 44 , p 14 , p 24 , p 34 , q 4 ). 
         [0103]    Then, the four code words are put in the positions of 4×8 arrangement. Further, as shown in  FIG. 7B , (m 11 , m 12 , m 13 , m 14 ), (m 21 , m 22 , m 23 , m 24 ), (m 31 , m 32 , m 33 , m 34 ), (m 41 , m 42 , m 43 , m 44 ), (p 11 , p 12 , p 13 , p 14 ), (p 21 , p 22 , p 23 , p 24 ), (p 31 , p 32 , p 33 , p 34 ) and (q 1 , q 2 , q 3 , q 4 ) are stored in the eight memory cells. 
         [0104]    Accordingly, in  FIG. 7B , m 11 , m 12 , m 13  and m 14  are stored in the memory cell  1  as the first, the second, the third and the fourth bit, respectively. In the same way, m 21 , m 22 , m 23  and m 24 ; m 31 , m 32 , m 33  and m 34 ; m 41 , m 42 , m 43  and m 44 ; p 11 , p 12 , p 13  and p 14 ; p 21 , p 22 , p 23  and p 24 ; p 31 , p 32 , p 33  and p 34 ; and q 1 , q 2 , q 3  and q 4  are stored in the memory cells  2  to  8 , respectively. 
         [0105]    Each code word can be corrected even if a single error occurs. For instance, as shown in  FIG. 7B , even if a burst error of four-bit length occurs in the third memory cell  3 , since this error is a single error in each code word, the correction is enabled. In other words, even if the threshold voltage of one of the eight memory cells changes; that is, even when a burst error such that the stored contents “1000” change to “0111” occurs, for instance, the correction is enabled. Further, if a burst error of one- to four-bit length occurs in another memory cell, there are two errors in at least one code word. These two errors can be detected and one of them can be corrected. 
         [0106]    Another modification besides the modifications of the second and the third embodiments of the method of data writing according to the present invention will be described hereinbelow. 
         [0107]    For example, 56 bits of “0” are added to 64 pieces of original data to obtain 120-bit data. A 127-bit length hamming code is obtained on the basis of the 120-bit data. All the 127 bits are EX-ORed to obtain a 128-bit code. The additional 56-bit “0” are removed from the 128-bit code to obtain a 72-bit code word. 
         [0108]    This coding method is capable of correcting one error and detecting two errors per bit of a code word and often used as the SEC/DED code (Single-Error-Correction/Double-Error-Detecting Code) for main memories. 
         [0109]    A practical example that the error correction is enabled even if one error occurs in a single code word will be described hereinbelow. A table below lists Hamming codes in which three redundant bits are added to four data bits. 
         [0000]    
       
         
               
               
               
             
               
               
               
               
             
           
               
                   
                 TABLE 1 
               
               
                   
                   
               
             
             
               
                   
                 DIGITS: 
                 1234567 
               
               
                   
                 BIT WEIGHT: 
                 CC8C421 
               
               
                   
                   
                 0 = 0000000 
               
               
                   
                   
                 1 = 1101001 
               
               
                   
                   
                 2 = 0101010 
               
               
                   
                   
                 3 = 1000011 
               
               
                   
                   
                 4 = 1001100 
               
               
                   
                   
                 5 = 0100101 
               
               
                   
                   
                 6 = 1100110 
               
               
                   
                   
                 7 = 0001111 
               
               
                   
                   
                 8 = 1110000 
               
               
                   
                   
                 9 = 0011001 
               
               
                   
                   
                 10 = 1011010  
               
               
                   
                   
                 11 = 0110011  
               
               
                   
                   
                 12 = 0111100  
               
               
                   
                   
                 13 = 1010101  
               
               
                   
                   
                 14 = 0010110  
               
               
                   
                   
                 15 = 1111111  
               
               
                   
                   
               
             
          
           
               
                   
                 Digits: 
                 1234567 
                   
               
               
                   
                 Read code: 
                 0101100 
               
               
                   
                 (4, 5, 6, 7) digit parity: 
                   ---- → 
                 0 
               
               
                   
                 (2, 3, 6, 7) digit parity: 
                  -- -- → 
                  1 
               
               
                   
                 (1, 3, 5, 7) digit parity: 
                 - - - - → 
                  1 
               
               
                   
                 Error digit: 
                   
                  011 = 3 
               
               
                   
                   
               
             
          
         
       
     
         [0110]    In these Hamming codes, 1, 2 and 4 digits are redundant bits, and these bits are decided in such a way that an even parity can be obtained in each digit set of (1, 3, 5, 7), (2, 3, 6, 7) and (4, 5, 6, 7). For instance, when a code “0111100” corresponding to a decimal number of [12] is written, in case an error occurs so that a code “0101100” is read, it is possible to obtain an error digit by a binary number (011 in this case) as shown in TABLE 1. Therefore, even if an error occurs, it is possible to correct the error securely. 
         [0111]    Further, when the number of data bits is increased, since this code can be extended to that number, the number of redundant bits m necessary for the n number of data bits can be expressed as 
         [0000]      2 n   =n+m+ 1  (1)
 
         [0112]    In the above description, the case where the present invention is applied to a non-volatile memory device having floating gate type memory cells has been described. However, without being limited only to the floating gate type memory cell, the present invention can be of course applied to MNOS (Metal-Nitride-Oxide-Silicon) type semiconductor memory devices. 
         [0113]    Further, the present invention can be applied to EPROMs, PROMs, mask ROMs, etc. in addition to the EEPROMs. In the mask ROMs, a storage status can be obtained by changing the threshold level thereof on the basis of the control of impurity quantity put in the channel region of a field effect transistor by ion implantation. 
         [0114]    Further, the four- and eight-level memory cells have been described by way of example hereinabove. However, the data writing according to the present invention is not of course limited to only these levels. 
         [0115]    Further, as a method of obtaining error correction codes, although interleaving has been explained, as far as an error of a burst length corresponding to the data quantity stored in the memory cell can be corrected by means of the error correction code, another method can be of course adopted, such as cyclic codes or compact cyclic codes. 
         [0116]    Next, embodiments of the method of data reading according to the present invention will be described hereinbelow with reference to the attached drawings. 
         [0117]    Described in the first embodiment are the multilevel EEPROM shown in  FIG. 1  and a method of data reading from the EEPROM. 
         [0118]    In the read operation, first an external logical address signal is input to the converter  9  via input I/F  7 . The converter  9  generates a physical address signal corresponding to an actual memory cell on the basis of the input logical address signal. In response to the physical address signal, the signal controller  6  decides a word line (control gate of  FIG. 2 )  19  and a bit line  15  ( FIG. 2 ) both to be selected, and instructs the decided results to the decoder  2  and the multiplexer  4 . According to the instructions, the decoder  2  selects the word line  19 , and the multiplexer  4  selects the bit line  15 . 
         [0119]    The signal controller  6  decides the magnitude of the voltage to be applied to the control gate  19  of the selected memory cell, and instructs the decided voltage to the voltage controller  3 . The voltage controller  3  applies the decided voltage to the selected word line  19  via decoder  2 . On the other hand, the multiplexer  4  applies a predetermined voltage to the selected bit line  15 . Therefore, it is possible to determine whether a current flows through the selected bit line  15  according to the threshold voltage of the selected memory cell. 
         [0120]    A status of the current with respect to the selected bit line  15  is transmitted from the multiplexer  4  to the sense amplifier  5 . The sense amplifier  5  detects the presence or absence of the current flowing through the selected bit line  15 , and transmits the detected result to the signal controller  6 . On the basis of the detected result of the sense amplifier  5 , the signal controller  6  decides a voltage to be next applied to the control gate  19  of the selected memory cell, and instructs the decided result to the voltage controller  3 . Further, the signal controller  6  outputs the stored data of the selected memory cell obtained by repeating the above-mentioned procedure, via output I/F  8 . 
         [0121]      FIG. 8  shows the flowchart showing a procedure of the first embodiment of the reading method according to the present invention. A four-level EEPROM having a storage capacity of 8 Mbits will be explained by way of example. The four-level EEPROM has a logical address space of [00 0000] to [7F FFFF] and a physical address space of [00 0000] to [3F FFFF] in hexadecimal notation. Further, each memory cell stores 2-bit (=four levels) data (00, 01, 10, 11), so that the threshold voltages of (0V, 2V, 4V, 6V) are set to memory cells according to these data. 
         [0122]    when the physical address of a memory cell is Ap, the data of the logical address Ap is stored in the high-order bit of the two bits of the memory cell, and the logical address (Ap+[40 0000]) is stored in the low-order bit thereof. 
         [0123]    In other words, in the data rewriting operation, when the logical address A1 of [00 0000] to [3F FFFF] and the data (0 or 1) to be stored are designated, the high-order bit of the memory cell existing at the physical address A1 is rewritten to the designated data 
         [0124]    On the other hand, in the data rewriting operation, when the logical address A1 of [40 0000] to [7F FFFF] and the data (0 or 1) to be stored are designated, the low-order bit of the memory cell existing at the physical address (A1=[40 0000]) is rewritten to the designated data. 
         [0125]    In  FIG. 8 , when an external read instruction is input in step S 1  and further a logical address signal is input to the input I/F  7  in step S 2 , the signal controller  6  determines whether the input logical address signal indicates an address in the range of [00 0000] to [3F FFFF] or not in step S 3 . 
         [0126]    In step S 3 , when the logical address signal indicates an address in the range of [00 0000] to [3F FFFF], since the logical address matches the physical address, it is decided that the data to be read is the high-order bit of the two bits in step S 4 . In this case, a reference voltage of 3V is applied to the control gate  19  of the selected memory cell, and further it is determined whether a current flows between the drain  12  and the source  13  through the selected bit line  15  and the sense amplifier  5  in Step S 5 . 
         [0127]    In step S 5 , when the current flows between the drain  12  and the source  13  of the selected memory cell; that is, when the selected memory cell is conductive, it is decided that the high-order bit of the 2-bit data stored in this memory cell is “0” since the threshold voltage of this selected memory cell is 0V or 2V. The decided data is output immediately via output I/F  8  in step S 6 . 
         [0128]    On the other hand, in step S 5 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, it is decided that the high-order bit of the 2-bit data stored in this memory cell is “1”. Because the threshold voltage of this selected memory cell is 4V or 6V. The decided data is output immediately via output I/F  8  in step S 7 . 
         [0129]    Further, in step S 3 , when the logical address signal input to the input I/F  7  indicates an address in the range of [40 0000] to [7F FFFF], the logical address does not match the physical address; that is, the physical address is (logical address—[40 0000]). It is decided that the data to be read is the low-order bit of the two bits in step S 8 . In this case, a reference voltage of 3V is applied to the control gate  19  of the selected memory cell, and further it is determined whether a current flows between the drain  12  and the source  13  through the selected bit line  15  and the sense amplifier  5  in step S 9 . 
         [0130]    In step S 9 , when the current flows between the drain  12  and the source  13  of the selected memory cell, the signal control circuit  6  instructs the voltage control circuit  3  to apply a reference voltage of 1V to the control gate  19  of the selected memory cell in step S 10 . Because, the threshold voltage of this selected memory cell is 0V or 2V. 
         [0131]    Further, in step S 10 , when a current flows between the drain  12  and the source  13  of the selected memory cell, it is decided that the low-order bit of the 2-bit data of this memory cell is “0”. Because the threshold voltage of this memory cell is 0V. The decided data is output immediately via output I/F  8  in step S 11 . 
         [0132]    On the other hand, in step S 10 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, it is decided that the low-order bit of the 2-bit data of this memory cell is “1”. Because the threshold voltage of this selected memory cell is 2V. The decided data is output immediately via output I/F  8  in step S 12 . 
         [0133]    Further, in step S 9 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 5V to the control gate  19  of the selected memory cell in step S 13 . Because the threshold voltage of this selected memory cell is 4V or 6V. 
         [0134]    Further, in step S 13 , when a current flows between the drain  12  and the source  13  of the selected memory cell, it is decided that the low-order bit of the 2-bit data of this memory cell is “0”. Because the threshold voltage of this memory cell is 4V. The decided data is output immediately via output I/F  8  in step S 12 . 
         [0135]    On the other hand, in step S 13 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, it is decided that the low-order bit of the 2-bit data of this memory cell is “1”. Because the threshold voltage of this memory cell is 6V. The decided data is output immediately via output I/F  8  in step S 13 . 
         [0136]    With respect to the reading method described above, a method of determining whether a current flows between the drain  12  and the source  13  of a selected memory cell by applying a reference voltage of 1V, 3V or 5V to the control gate  19  of the selected memory cell will be explained with reference to  FIGS. 1 and 9 . 
         [0137]    For instance, in step S 4  in  FIG. 8 , when the signal controller  6  receives a physical address from the converter  9  and decides that the data to be read is the high-order bit of the 2-bit data, the signal controller  6  further decides that the voltage to be applied to the control gate  19  of a selected memory cell is 3V and instructs the decided voltage to the voltage controller  3 . 
         [0138]    In  FIG. 9 , the voltage controller  3  includes a 1V-reference voltage generator  3   a,  a 3V-reference voltage generator  3   b  and a 5V-reference voltage generator  3   c.    
         [0139]    In this example, the reference voltage generator  3   b  generates and applies 3V as a reference voltage to a switching circuit  55 . The signal controller  6  decides a word line to be selected in response to an input physical address and instructs the decided result to the decoder  2 . According to the instruction, the decoder  2  outputs a decoding signal to the switching circuit  55 . 
         [0140]    On receiving the 3V-reference voltage and the decoding signal, the switching circuit  55  applies the 3V-reference voltage to the selected word line. 
         [0141]    The sense amplifier  5  determines whether a current flows between the drain  12  and the source  13  of a selected memory cell la of the cell array  1 . More in detail, the sense amplifier  5  compares an output voltage of the memory cell  1   a  and a predetermined reference voltage from a reference voltage generator  56 . The comparison result is instructed to the signal controller  6 . 
         [0142]    According to the instruction, the signal controller  6  decides a voltage of 1V or 5V that is applied next to the memory cell  1   a . The signal controller  6  then outputs data stored in the memory cell  1   a  via output I/F  8 . 
         [0143]    As described above, in this first embodiment, the logical addresses [00 0000] to [7F FFFF] are divided hieratically into an address space A 1  (logical addresses: [00 0000] to [3F FFFF] of relatively high access speed and an address space A 2  (logical addresses: [40 0000] to [7F FFFF] of relatively low access speed. And, a partial space (logical addresses: [00 0000] to [3F FFFF]) one-to-one corresponding to the address space formed by the physical addresses ([00 0000] to [3F FFFF]) within the logical addresses [00 0000] to [7F FFFF] is determined as the address space A 1  of relatively high access speed. Further, data in the address space A 1  is stored in the specific component (here, the high-order bit) of the storage status of each memory cell. 
         [0144]    When the input logical address is included in the above-mentioned partial space (the logical addresses [00 0000] to [3F FFFF]), this logical address designates the high-order bit data. It is thus possible to immediately detects this high-order bit data by a single decision process by use of the reference voltage of 3V. The detected high-order bit data is then output. In this case, it is possible to increase the access speed twice, as compared with the case where the respective threshold voltages are checked by use of a 11  the reference voltages. 
         [0145]    Therefore, the data having the highest access frequency can be stored in the high-order bits and the data having a relatively low access frequency can be stored in the low-order bits. A programmer can operate the EEPROM as if a single high speed memory device were provided according to the invention. It is thus possible to read data from the multilevel EEPROM in an extremely high efficiency. 
         [0146]    Further, as the data and programs suitably stored in the multilevel EEPROM, there are BIOS (Basic Input/output System) of an arithmetic unit (as an example of the high access frequency) and a document file (as an example of a relatively low access frequency). In this case, the former is stored in the high-order bits of the high access speed, and the later is stored in the low-order bits of the low access speed. 
         [0147]    The second embodiment of the method of data reading according to the present invention will be described hereinbelow. 
         [0148]    In the second embodiment, a multilevel EEPROM is used in the same way as with the case of the first embodiment of the method of data reading according to the present invention. The essential configuration of the multilevel EEPROM is the same as with the case of the first embodiment, except that an eight-level EEPROM having a storage capacity of 12 Mbits is used in the second embodiment. The configuration of the eight-level EEPROM is basically the same as with the case of the first embodiment, so that any detailed description thereof is omitted herein. 
         [0149]      FIG. 10  shows the flowchart showing a procedure of the second embodiment of the reading method according to the present invention. In the second embodiment, an eight-level EEPROM having a storage capacity of 12 Mbits will be explained by way of example. The eight-level EEPROM has a logical address space of [00 0000] to [BF FFFF] and a physical address space of [00 0000] to [3F FFFF] in hexadecimal notation. Further, each memory cell stores 3 bit (=eight levels) data (000, 001, 010, 011, 100, 101, 110, 111), so that the threshold voltages of (0V, 1V, 2V, 3V, 4V, 5V, 6V, 7V) are set to memory cells according to these data. 
         [0150]    Further, when the physical address of a memory cell is Ap, the data of the logical address Ap is stored in the highest-order bit of the respective components of the thee bits; the logical address (Ap+[40 000]) is stored in the medium bit; and the logical address (Ap+[80 0000] is stored in the lowest-order bit thereof. 
         [0151]    In other words, in the data rewriting operation, when the logical address A1 in the range of [00 0000] to [3F FFFF] and the data (0 or 1) to be stored are designated, the highest-order bit of the memory cell existing at the physical address A1 is rewritten to the designated data. 
         [0152]    On the other hand, in the data rewriting operation, when the logical address A1 in the range of [40 0000] to [7F FFFF] and the data (0 or 1) to be stored are designated, the medium-order bit of the memory cell existing at the physical address (A1—[40 0000]) is rewritten to the designated data. 
         [0153]    Further, in the data rewriting operation, when the logical address A1 in the range of [80 0000] to [BF FFFF] and the data (0 or 1) to be stored are designated, the lowest-order bit of the memory cell existing at the physical address (A1—[80 0000]) is rewritten to the designated data. 
         [0154]    In  FIG. 10 , when an external read instruction is input in step S 21  and further a logical address signal is input to the input I/F  7  in step S 22 , the signal controller  6  determines whether the input logical address signal indicates an address in the range of [00 0000] to [3F FFFF] or not in step S 23 . 
         [0155]    In step S 23 , when the logical address signal indicates an address in the range of [00 0000] to [3F FFFF], since the logical address matches the physical address, it is decided that the data to be read is the highest-order bit of the three bits in step S 24 . In this case, a reference voltage of 3.5V is applied to the control gate  19  of the selected memory cell. And, further it is determined whether a current flows between the drain  12  and the source  13  through the selected bit line  15  and the sense amplifier  5  in step S 25 . 
         [0156]    In step S 25 , when the current flows between the drain  12  and the source  13  of the selected memory cell; that is, when the selected memory cell is conductive, the threshold voltage of this selected memory cell is any one of 0V, 1V, 2V and 3V and further the three bit data designated by these threshold voltages are “000”, “001”, “010” and “011”. It is thus decided that the highest-order bit of the three bits of the storage status of this memory cell is “0”. The decided data is output immediately via output I/F  8  in step S 26 . 
         [0157]    On the other hand, in step S 25 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of this selected memory cell is any one of 4V, 5V, 6V and 7V and further the three bit data designated by these threshold voltages are “100”, “101”, “110” and “111”. It is thus decided that the highest-order bit of the three bits of the storage status of this memory cell is “1”. The decided data is output immediately via output I/F  8  in step S 27 . 
         [0158]    Further, in step S 23 , when the logical address signal input to the input I/F  7  does not indicate an address in the range of [00 0000] to [3F FFFF], it is determined whether the further input logical address signal indicates an address in the range of [40 0000] to [7F FFFF] or not in step S 28 . 
         [0159]    Here, in step S 28 , when the logical address signal input to the input I/F  7  indicates an address in the range of [40 0000] to [7F FFFF], the logical address does not match the physical address; that is, the physical address is (logical address—[40 0000].) It is thus decided that the data to be read is the medium-order bit of the three bits in step S 29 . In this case, a reference voltage of 3.5V is applied to the control gate  19  of the selected memory cell. And, further it is determined whether a current flows between the drain  12  and the source  13  through the selected bit line  15  and the sense amplifier  5  in step S 30 . 
         [0160]    In step S 30 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is any one of 0V, 1V, 2V and 3V. Here, the three bit data designated by the threshold voltages of 0V and 1V are “000” and “001”; that is, the medium-order bit is “0” in both. Further, the three bit data designated by the threshold voltages of 2V and 3V are “010” and “011”; that is, the medium-order bit is “1” in both. Therefore, in order to decide the medium-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 1.5V to the control gate  19  of the selected memory cell in step S 31 . 
         [0161]    Further, in step S 31 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 0V or 1V. It is thus decided that the medium-order bit of the three bits of the storage status of this memory cell is “0”. The decided data is output immediately through the output I/F  8  in step S 32 . 
         [0162]    On the other hand, in step S 31 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 2V or 3V. It is thus decided that the medium-order bit of the three bits of the storage status of this memory cell is “1”. The decided data is output immediately via output I/F  8  in step S 33 . 
         [0163]    Further, in step S 30 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is any one of 4V, 5V, 6V and 7V. Here, the three-bit data designated by the threshold voltages of 4V and 5V are “100” and “101”; that is, the medium-order bit is “0” in both. Further, the three-bit data designated by the threshold voltages of 6V and 7V are “010” and “011”; that is, the medium-order bit is “1” in both. Therefore, in order to decide the medium-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 5.5V to the control gate  19  of the selected memory cell in step S 34 . 
         [0164]    Further, in step S 34 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 4V or 5V. It is thus decided that the medium-order bit of the three bits of the storage status of this memory cell is “0”. The decided data is output immediately via output I/F  8  in step S 32 . 
         [0165]    On the other hand, in step S 34 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 6V or 7V. It is thus decided that the medium-order bit of the three bits of the storage status of this memory cell is “1”. The decided data is output immediately via output I/F  8  in step S 33 . 
         [0166]    Further, in step S 28 , when the logical address signal input to the input I/F  7  does not indicate an address in the range of [40 0000] to [7F FFFF], the logical address signal indicates an address in the range of [80 0000] to [BF FFFF]; that is, the physical address=(logical address—[80 0000].) It is thus decided that the data to be read is the lowest-order bit of the three bits in step S 35 . In this case, a reference voltage of 3.5V is applied to the control gate  19  of the selected memory cell. And, it is detected whether a current flows between the drain  12  and the source  13  through the selected bit line  15  and the sense amplifier  5  in step S 36 . 
         [0167]    In step S 36 , when a current flows between the drain  12  and the source  13 , the threshold voltage of the memory cell is any one of 0V, 1V, 2V and 3V. The three bit data designated by the threshold voltages of these threshold voltages are thus “000”, “001”, “010” and “011”. Therefore, it is impossible to specify the lowest-order bit at this stage. In order to specify the lowest-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 1.5V to the control gate  19  of the selected memory cell in step S 37 . 
         [0168]    In step S 37 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 0V or 1V. It is thus decided that the three-bit data specified by these threshold voltages are “000” or “001”. Therefore, in order to specify the lowest-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 0.5V to the control gate  19  of the selected memory cell in step S 38 . 
         [0169]    Further, in step S 38 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 0V. It is thus decided that the lowest-order bit of the three bits of the storage status of this memory cell is “0”. The decided data is output immediately via output I/F  8  in step S 39 . 
         [0170]    On the other hand, in step S 38 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 1V. It is thus decided that the lowest-order bit of the three bits of the storage status of this memory cell is “1”. The decided data is output immediately via output I/F  8  in step S 40 .  .Further, in step S 37 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 2V or 3V. The three-bit data designated by the threshold voltages of these threshold voltages are thus “010” or “011”. Therefore, in order to specify the lowest-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 2.5V to the control gate  19  of the selected memory cell in step S 41 . 
         [0171]    In step S 41 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 2V. It is thus decided that the lowest-order bit of the three bits of the storage status of this memory cell is “0”. The decided data is output immediately via output I/F  8  in step S 39 . 
         [0172]    On the other hand, in step S 41 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 3V. It is thus decided that the lowest-order bit of the components of the storage status of this memory cell is “1”. The decided data is output immediately via output I/F  8  in step S 40 . 
         [0173]    Further, in step S 36 , when the current does not flow between the drain  12  and the source  13 , the threshold voltage of the memory cell is any one of 4V, 5V, 6V and 7V. The three-bit data designated by the threshold voltages of these threshold voltages are thus “100”, “101”, “110” and “111”. Therefore, it is impossible to specify the lowest-order bit at this stage. Therefore, in order to specify the lowest-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 5.5V to the control gate  19  of the selected memory cell in step S 42 . 
         [0174]    In step S 42 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 4V or 5V. The three-bit data designated by these threshold voltages are thus “100” or “101”. Therefore, in order to specify the lowest-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 4.5V to the control gate  19  of the selected memory cell in step S 43 . 
         [0175]    Further, in step S 43 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 4V. It is thus decided that the lowest-order bit of the three bits of the storage status of this memory cell is “0”. The decided data is output immediately via output I/F  8  in step S 39 . 
         [0176]    Further, in step S 43 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 5V. It is thus decided that the lowest-order bit of the three bits of the storage status of this memory cell is “1”. The decided data is output immediately via output I/F  8  in step S 40 . 
         [0177]    Further, in step S 42 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 6V or 7V. The three-bit data designated by the threshold voltages of these threshold voltages are thus “110” or “111”. Therefore, in order to specify the lowest-order bit, the signal controller  6  instructs the voltage controller  3  to apply a reference voltage of 6.5V to the control gate  19  of the selected memory cell instep S 44 . 
         [0178]    In step S 44 , when a current flows between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 6V. It is thus decided that the lowest-order bit of the three bits of the storage status of this memory cell is “0”. The decided data is output immediately through the output I/F  8  in step S 39 . 
         [0179]    On the other hand, in step S 44 , when the current does not flow between the drain  12  and the source  13  of the selected memory cell, the threshold voltage of the memory cell is 7V. It is thus decided that the lowest-order bit of the three bits of the storage status of this memory cell is “1”. The decided data is output immediately via output I/F  8  in step S 40 . 
         [0180]    As described above, in the second embodiment, the logical addresses in the range of [00 0000] to [BF FFFF] are divided hieratically into an address space of relatively high access speed and an address space of relatively low access speed. Here, the address space of relatively high access speed is determined as an address space A 1  (logical addresses: [00 0000] to [3F FFFF]. Further, the address space of relatively low access speed is further divided hieratically into two address spaces. That is, the address space of the medium access speed next to the address space A 1  is determined as an address space A 2  (logical addresses: [40 0000] to [BF FFFF], and the address space of the lowest access speed next to the address space A 2  is determined as an address space A 3  (logical addresses: [40 0000] to [BF FFFF], both hierarchically. 
         [0181]    Further, a partial space (logical addresses: [00 0000] to [3F FFFF]) one-to-one corresponding to the address space formed by the physical addresses ([00 0000] to [3F FFFF]) within the logical addresses in the range of [00 0000] to [7F FFFF] is determined as the address space A 1  of relatively high access speed. Further, data in the address space A 1  is stored in the specific bit of the storage status of the memory cell, that is, the highest-order bit. Further, data in the address space A 2  of the access speed next to that of the address space A 1  is stored in the medium-order bit. Further, data in the address space A 3  of the access speed next to that of the address space A 2  is stored in the lowest-order bit. 
         [0182]    When the input logical address is included in the above-mentioned partial space (i.e., logical addresses [00 0000] to [3F FFFF]), this logical address designates data of the highest-order bit. It is thus possible to immediately decide this highest-order bit data by a single decision by use of the reference voltage of 3.5V. The decided highest-order bit data is then output. Further, when the input logical address is not included in the above-mentioned partial space (i.e., logical addresses [00 0000] to [3F FFFF]) but included in the address space (i.e., logical addresses [40 0000] to [7F FFFF]) adjacent to the partial space, this logical address designates data of the medium-order bit. It is thus possible to immediately decide this medium-order bit data by two decisions by use of the reference voltages of 3.5V and 1.5 or 5.5V. The decided medium order-bit data is then output. 
         [0183]    Therefore, when the data of the highest-order bit is read, it is possible to increase the access speed three times hither than that of when the respective threshold voltages are checked by use of a 11  the reference voltages. Further, when the data of the medium-order bit is read, it is possible to increase the access speed about 1.5 times higher than that of when the respective threshold voltages are checked by use of a 11  the decision voltages. Therefore, the data having the highest access frequency can be stored in the highest-order bits, the data having the medium access frequency in the medium-order bits, and the data having a relatively low access frequency in the lowest-order bits. A programmer thus can operate the EEPROM as if a single- or double-stage high speed memory devices were provided. It is thus possible to read data from the multilevel EEPROM in an extremely high efficiency. 
         [0184]    The multilevel semiconductor memory device has been explained by taking the case of the EEPROM of floating gate type memory cells. However, without being limited only thereto, it is possible to apply the multilevel semiconductor memory device. according to the present invention to MNOS type memory cells. 
         [0185]    Further, without being limited to only EEPROM, the data reading method according to the present invention can be applied to the case when the multilevel data stored in EPROM or PROM are read. Further, the data reading method according to the present invention can be applied to a mask ROM whose storage status can be obtained by changing the threshold values thereof on the basis of control of the concentration of impurities put in the channel regions of field effect transistors by ion implantation. 
         [0186]    The data reading according to the present invention can further be applied to DRAMs (Dynamic Random Access memory). It can be understood that refreshing must be done after data reading in case of DRAMs. 
         [0187]    Further, in the first and second embodiments, two or three bits are stored in a single memory cell. However, the present invention can be applied to the case where four or more levels (i.e., two or more bits) are stored in a single memory cell. In particular, the effect of the present invention can be increased with increasing capacity of the memory cell. 
         [0188]    As described above, the data reading methods in the first and second embodiments are, after an address of a memory cell is decided, to determine whether a current flows between a drain and a source of the memory cell by applying a judging voltage to a control gate of the memory cell having a specific threshold voltage to judge data stored in the memory cell. 
         [0189]    Not only this, data stored in a memory cell can be judged by comparing an output voltage of the memory cell with a predetermined judging voltage. This method will be explained with reference to  FIG. 11 . 
         [0190]    A judging circuit shown in  FIG. 11  is provided between the cell array  1  and the multiplexer  4  shown in  FIG. 1 . In  FIG. 11 , a threshold voltage Vth 1  is applied to the inverting input terminal of a sense amplifier  43  via first output buffer. The first output buffer includes an inverter  40  and transistors  41  and  42 . The threshold voltage Vth 1  corresponds to a low-order bit D 0  set in a memory cell  1   a  of the memory cell array  1 . Applied to the non-inverting input terminal of the sense amplifier  43  via second output buffer is a judging voltage V 47  set in a transistor  47 . The second output buffer includes an inverter  46  and transistors  44  and  45 . 
         [0191]    When the threshold voltage Vth 1  is smaller than the judging voltage V 47 , the output of the sense amplifier  43  becomes HIGH. Thus, the low-order bit D 0  is judged to be “1”. 
         [0192]    Since the output of the sense amplifier  43  is HIGH, a transistor  52  turns on, while a transistor  54  turns off due to the existence of an inverter  53  provided between both transistors. 
         [0193]    A judging voltage V 52  set in the transistor  52  is thus applied to the non-inverting input terminal of a sense amplifier  48  via third output buffer. The third output buffer includes an inverter  51  and transistors  49  and  50 . 
         [0194]    Further, a threshold voltage Vth 2  corresponding to a high-order bit D 1  set in the memory cell  1   a  is applied to the inverting input terminal of the sense amplifier  48  via first output buffer. 
         [0195]    When the threshold voltage Vth 2  is smaller than the judging voltage V 52 , the high-order bit D 1  is judged to be “1” because the output of the sense amplifier  48  becomes HIGH. On the other hand, when Vth 2  is greater than V 52 , the high-order bit D 1  is judged to be “0” because the output of the sense amplifier  48  becomes LOW. 
         [0196]    Next, when the threshold voltage Vth 1  is greater than the judging voltage V 47 , the low-order bit D 0  is judged to be “0” because the output of the sense amplifier  43  becomes LOW. 
         [0197]    Since the-output of the sense amplifier  43  is LOW, the transistor  52  turns off, while the transistor  54  turns on due to the existence of the inverter  53 . A judging voltage V 54  set in the transistor  54  is applied to the non-inverting input terminal of the sense amplifier  48  via third output buffer. Applied to the inverting input terminal of the sense amplifier  48  is the threshold voltage Vth 2  via first output buffer. 
         [0198]    When the threshold voltage Vth 2  is smaller than the judging voltage V 54 , the high-order bit D 1  is judged to be “1” because the output of the sense amplifier  48  becomes HIGH. On the other hand, when Vth 2  is greater than V 54 , the high-order bit D 1  is judged to be “0” because the output of the sense amplifier becomes LOW. 
         [0199]    As described above, 2-bit (4-level) data (00, 01, 10, 11) is judged. The judging circuit shown in  FIG. 11  can be applied to a four-level (or more) memory cell by increasing the number of sense amplifiers and judging voltage applying circuits according to the number of data bits. 
         [0200]    Further, the scope of the present invention includes the following case: the program codes of software for achieving the functions as disclosed by the preferred embodiments according to the present invention are supplied to a system or a computer connected to various devices activated so as to achieve those functions. Further, the above-mentioned devices are activated in accordance with a program stored in the system or the computer (CPU or MPU). 
         [0201]    Further, in this case, the program codes themselves of the software can achieve the functions of the preferred embodiments according to the present invention. The program codes themselves and means for supplying the program codes to the computer, such as a storage medium  31  shown in  FIG. 1  for storing the program codes are included in the scope of the present invention. 
         [0202]    That is, the program codes stored in the storage medium  31  are read by a recording and reproducing apparatus  30  shown in  FIG. 1  connected to the signal controller  6  via input I/F  8 , so that the computer constituting the signal controller  6  can be activated. Further, as the storage medium  31  for recording these programs and codes, there are a floppy disk, a hard disk, an optical disk, a magneto-optic disk, CD-ROM, a magnetic tape, a non-volatile memory card, a ROM, etc. 
         [0203]    As described above, according to the present invention, even if multilevel data stored in a single memory cell is lost, it is possible to execute the error correction effectively. 
         [0204]    Further, according to the present invention, since data of higher access frequency can be read at high speed according to the input logical addresses, it is possible to shorten the access time markedly in data read operation.
A semiconductor device has multilevel memory cells, each cell storing at least three levels of data each. At least a first data composed of first data bits and a second data composed of second data bits are arranged in order that at least a bit of an N-order of the first bits and a bit of the N-order of the second bits are stored in one of the cells, the N being an integral number. A voltage corresponding to the N-order bits is generated and applied to the one of the cells in response to an address information corresponding thereto. Another semiconductor device has multilevel memory cells arranged so as to correspond to a physical address space, each cell storing 2 n  levels of data each expressed by n (n≧2) number of bits (X 1,  X 2 , . . . , Xn). A logical address is converted into a physical address of the physical address space. Judging is made whether a logical address space including the logical address matches the physical address space. When matched, the most significant bit X 1  is specified once using a reference value. The specified bit is output from one of the cells corresponding to the physical address. If not matched, the bits (X 2 , . . . , Xn) are specified by n−time specifying operation maximum using maximum n number of different reference values. The data writing/reading operations to/from the semiconductor devices can be stored in a computer readable medium as program codes for causing a computer to execute these operations.