Memory system

The memory system employs rank metric codes to correct errors in magnetic memory systems, enhancing resistance to data errors while maintaining a compact design by efficiently correcting rank-based and burst errors without excessive material use.

JP2024135364AInactive Publication Date: 2024-10-04KIOXIA CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023046001
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-10-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing memory systems are not highly resistant to data errors, particularly in magnetic memory systems where unintended domain wall shifts can cause random and burst errors, which are difficult to correct without increasing manufacturing costs and area.

Method used

A memory system with a magnetic memory and a memory controller that uses rank metric codes for error correction, generating first and second type codewords to correct errors based on ranks, allowing for efficient correction of errors without requiring extensive additional magnetic material.

Benefits of technology

The system provides high resistance to data errors by effectively correcting rank-based and burst errors, reducing the need for additional magnetic material and maintaining a compact memory design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024135364000001_ABST
    Figure 2024135364000001_ABST
Patent Text Reader

Abstract

To provide a memory system with high tolerance to data errors.SOLUTION: A memory system according to an embodiment includes a magnetic memory and a memory controller. The magnetic memory includes a plurality of magnetic bodies extending in a first direction. Each of the plurality of magnetic bodies includes a plurality of portions arranged in the first direction. The memory controller includes an encoder. The encoder generates a first code word from a plurality of first data sections. The first code word includes a first error correction code parity that corrects errors of the number based on the plurality of first data sections and a rank in the first code word, and includes a plurality of first bit rows each associated with a plurality of rows. Each of the plurality first bit rows includes a plurality of bits each associated with the plurality of rows. The memory controller writes the plurality of first bit rows to the plurality of magnetic bodies such that each of the first bit rows is written to one that does not overlap the plurality of magnetic bodies.SELECTED DRAWING: Figure 11
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD OF THE DISCLOSURE Embodiments relate generally to memory systems. [Background technology]

[0002] 2. Description of the Related Art A memory system including a memory and a memory controller is known. An example of the memory is a magnetic memory using a thin magnetic wire. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] U.S. Pat. No. 11,347,584 [Non-patent literature]

[0004] [Non-Patent Document 1] Ernest M. Gabidulin, “Rank Codes”, TUM. University Press, May 2021, URL<https: / / mediatum.ub.tum.de / doc / 1601193 / 1601193.pdf> [Non-Patent Document 2] Manabu Hagiwara, "Network Error-Correcting Codes Called Modern Algebraic Codes", Kyoto University Research Institute for Mathematical Sciences Kokyuroku Vol. 1956, 2015, pp. 75-93, URL<https: / / www.kurims.kyoto-u.ac.jp / ~kyodo / kokyuroku / contents / pdf / 1956-09.pdf> Summary of the Invention [Problem to be solved by the invention]

[0005] The present invention aims to provide a memory system that is highly resistant to data errors. [Means for solving the problem]

[0006] According to one embodiment, a memory system includes a memory and a memory controller. The memory includes a plurality of magnetic bodies extending in a first direction. Each of the plurality of magnetic bodies includes a plurality of portions aligned in the first direction. The memory controller includes an encoder. The encoder generates a first code word from a plurality of first data sections. The first code word includes a first error correcting code parity for correcting a number of errors based on a rank in the plurality of first data sections and the first code word, and includes a plurality of first bit strings respectively associated with a plurality of columns. Each of the plurality of first bit strings includes a plurality of bits respectively associated with a plurality of rows. The memory controller writes the plurality of first bit strings to the plurality of magnetic bodies, respectively, such that each of the plurality of first bit strings is written to a non-overlapping one of the plurality of magnetic bodies. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 shows functional blocks of an information processing system including a memory system according to the first embodiment. [Diagram 2] FIG. 2 shows functional blocks of the memory system of the first embodiment and connections between the functional blocks. [Diagram 3] FIG. 3 shows functional blocks of the magnetic memory of the memory system of the first embodiment and connections between the functional blocks. [Figure 4] FIG. 4 shows components of a memory cell array of the memory system of the first embodiment. [Diagram 5] FIG. 5 shows an example of the structure of a part of the memory cell array of the memory system of the first embodiment. [Figure 6] FIG. 6 shows an example of the structure of a magnetic body in the memory system of the first embodiment. [Figure 7] FIG. 7 shows functional blocks of the error correction circuit of the memory system of the first embodiment. [Figure 8] FIG. 8 illustrates the changes during certain operations of a portion of the memory system of the first embodiment. [Figure 9]FIG. 9 conceptually illustrates units used in generating code words of an error correcting code used in the memory system of the first embodiment. [Figure 10] FIG. 10 shows some parameters of the code words used in the memory system of the first embodiment. [Figure 11] FIG. 11 shows an example of an area in which data is stored in the memory system of the first embodiment. [Figure 12] FIG. 12 conceptually illustrates division of information data for generating a first type codeword in the memory system of the first embodiment. [Figure 13] FIG. 13 conceptually illustrates operations on data for storing user data in the memory system of the first embodiment. [Figure 14] FIG. 14 shows a first example of data generated by encoding in the memory system of the first embodiment. [Figure 15] FIG. 15 shows a second example of data generated by encoding in the memory system of the first embodiment. [Figure 16] FIG. 16 shows an example of data generated by encoding in the memory system of the first embodiment. [Figure 17] FIG. 17 shows an example of data generated by decoding in the memory system of the first embodiment. [Figure 18] FIG. 18 shows an example of data generated by decoding in the memory system of the first embodiment. [Figure 19] FIG. 19 shows the flow of a certain operation in the memory system of the first embodiment. [Figure 20] FIG. 20 shows the flow of a certain operation in the memory system of the first embodiment. [Figure 21] FIG. 21 shows a first pattern of unintended domain wall shift in a domain wall memory. [Figure 22] FIG. 22 shows a second pattern of unintended domain wall shift in the domain wall memory. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, embodiments will be described with reference to the drawings. In a certain embodiment or different embodiments, a plurality of components having substantially the same functions and configurations may be distinguished from each other by adding additional numbers or letters to the end of the reference numerals.

[0009] Each functional block can be realized as either hardware or computer software, or a combination of both. Also, it is not essential that each functional block is differentiated as in the following example. Some functions may be performed by a functional block other than the illustrated functional block, or may be divided into fine functional subblocks.

[0010] Any steps in the method flows of the embodiments are not limited to the order illustrated and may occur in an order different from the order illustrated and / or in parallel with other steps, unless otherwise indicated.

[0011] In this specification and claims, when a first element is "connected" to another second element, it includes the first element being connected to the second element directly or via an element that is constantly or selectively conductive.

[0012] 1. First embodiment 1.1.Configuration (Structure) 1.1.1. Information Processing System 1 shows functional blocks of an information processing system including a memory system according to the first embodiment. The information processing system 100 includes a memory system 1 and a host device 5.

[0013] The memory system 1 is a system for storing data. The memory system 1 receives a request to write data from the host device 5 and stores the requested data. The memory system 1 receives a request to read data from the host device 5 and transmits the requested data to the host device 5.

[0014] The host device 5 requests the memory system 1 to read and write data in units of U bytes, where U is a positive integer. Hereinafter, U bytes may be referred to as a sector.

[0015] Memory System 2 shows functional blocks and connections of the functional blocks in the memory system 1 of the first embodiment. As shown in FIG. 2, the memory system 1 includes a magnetic memory 2 and a memory controller 3.

[0016] The magnetic memory 2 is a device that uses magnetization to store data in a nonvolatile manner. The magnetic memory 2 includes a magnetic body having a plurality of magnetic domains, and stores data using the magnetization directions of the magnetic domains. A magnetic domain is an area surrounded by a magnetic wall. The magnetic memory 2 shifts the magnetic wall to store data in a memory cell MC at a specified address, and to read data from a memory cell MC at a specified address. A magnetic memory that uses magnetic domains to store data and shifts magnetic walls, such as the magnetic memory 2, may be referred to as a magnetic wall shift memory or a racetrack memory.

[0017] The memory controller 3 is a controller that controls the magnetic memory 2. The memory controller 3 controls the magnetic memory 2 to read and write data based on a request from a host device 5.

[0018] The memory controller 3 includes functional blocks such as a host interface 31, a read only memory (ROM) 32, a random access memory (RAM) 33, a central processing unit (CPU) 34, a memory interface 35, and an error correction circuit 36.

[0019] The memory controller 3 functions as sub-parts such as an encoding control unit, a decoding control unit, an error correction control unit, a write control unit, a read control unit, a signal transmission control unit, and a signal reception control unit based on the operation being performed. The error correction control unit controls the whole process performed for error correction, and performs data division, data combination, temporary storage of data, data supply, control of the encoding control unit, and control of the decoding control unit. The encoding control unit controls encoding. The decoding control unit controls decoding. The write control unit controls the process for writing data to the magnetic memory 2, prepares data to be written to the magnetic memory 2, and generates a command CMD and address information ADD for writing. The read control unit controls the process for reading data from the magnetic memory 2, and generates a command CMD for reading and address information ADD for identifying data based on data read from the magnetic memory 2. The signal transmission control unit controls the transmission of signals including data DAT, command CMD, address information ADD, and control signal CNT to the magnetic memory 2, and controls the memory interface 35. The signal reception control unit controls the reception of signals including the data DAT and the control signal CNT from the magnetic memory 2, and controls the memory interface .

[0020] The host interface 31 is an interface through which the memory controller 3 communicates with the host device 5. The host interface 31 can be made up of hardware or a combination of hardware and software. The host interface 31 is connected to the host device 5 by wiring that enables communication in a format (or standard) that the host interface 31 and the host device 5 comply with.

[0021] The ROM 32 is a non-volatile memory that stores programs including firmware.

[0022] The RAM 33 is a volatile memory. The RAM 33 temporarily stores data and stores the programs stored in the ROM 32 while the memory system 1 is powered. An example of the RAM 33 includes a dynamic random access memory (DRAM). The RAM 33 also functions as a working memory while the memory controller 3 is operating.

[0023] The CPU 34 is a circuit that controls the overall operation of the memory controller 3. The memory controller 3 executes various operations and functions as various sub-portions by executing a program stored in the ROM 32 and loaded onto the RAM 33 by the CPU 34. The firmware is configured to cause the CPU 34 to perform the operations described in the embodiments.

[0024] The memory interface 35 is an interface through which the memory controller 3 communicates with the magnetic memory 2. The memory interface 35 can be made of hardware or a combination of hardware and software. The memory interface 35 is connected to the magnetic memory 2 by wiring to enable communication in a format conforming to the magnetic memory 2 and the memory controller 3. The memory interface 35 transmits a command CMD and address information ADD to the magnetic memory 2. The memory interface 35 transmits a control signal CNT and data DAT to the magnetic memory 2 and receives the control signal CNT and data DAT from the magnetic memory 2.

[0025] The command CMD indicates an operation to be performed by the magnetic memory 2. The address information ADD specifies one or more memory cells MC in the magnetic memory 2, and includes a row address and a column address of the memory cells MC. The control signal CNT is a signal for controlling the operation timing between the magnetic memory 2 and the memory controller 3 and the operation timing inside the magnetic memory 2.

[0026] The error correction circuit 36 ​​uses an error correction code (ECC) to detect and correct errors in data written to the magnetic memory 2 and data read from the magnetic memory 2. The error correction circuit 36 ​​generates a parity of an error correction code (error correction code parity) from the data written to the magnetic memory 2. The data for which the error correction code parity is generated may be referred to as information data hereinafter. The error correction circuit 36 ​​adds the error correction code parity generated from the information data to be written. The error correction circuit 36 ​​generates the error correction code parity for each section of a certain size of the information data received by the error correction circuit 36. A set of a certain piece of information data and the error correction code parity generated from the information data is referred to as a code word. The code word is written to the magnetic memory 2. The error correction circuit 36 ​​uses the error correction code parity to correct the error when there is an error in the data read from the magnetic memory 2, and generates information data in which the error has been corrected. The error correction circuit 36 ​​may be realized as an independent dedicated semiconductor chip, or may be a circuit formed on a semiconductor substrate, or may be realized by the CPU 34 executing firmware.

[0027] Magnetic Memory 3 shows functional blocks and connections of the functional blocks of the magnetic memory of the memory system of the first embodiment. As shown in FIG. 3, the magnetic memory 2 includes functional blocks such as a memory cell array 21 and a control circuit 22.

[0028] The memory cell array 21 includes a plurality of strings STR. Each string STR includes a plurality of memory cells MC. Each memory cell MC can store one bit of data in a non-volatile manner and includes a magnetic material. In the memory cell array 21, wiring such as a plurality of source lines SL, a plurality of bit lines BL, and a plurality of field lines FL are also located. The wiring is not shown in FIG. 3.

[0029] The control circuit 22 is a circuit that controls the operation of the magnetic memory 2. The control circuit 22 receives a control signal CNT, a command CMD, address information ADD, and data DAT from the memory controller 3. The control circuit 22 transmits the control signal CNT and the data DAT to the memory controller 3. The data DAT is write data in the case of writing data to the magnetic memory 2. The data DAT is read data in the case of reading data from the magnetic memory 2. The control circuit 22 controls writing data to the memory cell array 21 and reading data from the memory cell array 21 based on the control indicated by the control signal CNT and the command CMD. The control circuit 22 includes sub-portions such as an input / output circuit, a sequencer, a state machine, a controller, a command decoder, an address decoder, a latch circuit, a driver, a voltage generating circuit, a multiplexer, and a switch circuit.

[0030] Memory Cell Array 4 shows an example of components of a memory cell array of the memory system of the first embodiment. As shown in FIG. 4, the memory cell array 21 includes strings STR_0 to STR_N, where N is a positive integer. Each string STR includes Q memory cells MC_0 to MC_Q-1, where Q is a positive integer. In each string STR, the memory cell MC of this string STR is formed of a part of one thin magnetic wire.

[0031] 5 shows an example of the structure of a part of the memory cell array of the memory system of the first embodiment. FIG. 5 uses an xyz Cartesian coordinate system. The direction toward the larger coordinate of the x axis may be referred to as the x direction. The direction toward the larger coordinate of the y axis may be referred to as the y direction. The direction toward the larger coordinate of the z axis may be referred to as the z direction. The description "below" and its derivatives and related terms refer to a position of the smaller coordinate of the z axis, and the description "above" and its derivatives and related terms refer to a position of the larger coordinate of the z axis.

[0032] 5, the memory cell array 21 includes a plurality of magnetic bodies UT and a plurality of stacked bodies LS. In addition, in the memory cell array 21, a plurality of conductors 41, a plurality of conductors 42, and a plurality of conductors 43 are located.

[0033] The magnetic bodies UT are aligned in the x and y directions. The magnetic bodies UT have a linear shape and extend in the z direction. Each magnetic body UT functions as one string STR. The magnetic body UT includes a plurality of unit parts ML. Each unit part ML is aligned one by one in the extension direction of the magnetic body UT and is in contact with the adjacent unit part ML.

[0034] Each laminate LS includes a plurality of magnetic bodies and a plurality of insulators. The plurality of magnetic bodies and the plurality of insulators each have a layer shape and are aligned in the z direction. Each laminate LS includes a structure that functions as a switching element and a structure that functions as an MTJ (Magnetic Tunneling Junction) element. The structure that functions as an MTJ element is located on the upper surface of the structure that functions as a switching element. The upper surface of each laminate LS contacts the lower surface of one magnetic body UT. The structure that functions as an MTJ element includes an MTJ, two ferromagnetic bodies, and an insulator between the two ferromagnetic bodies. The structure that functions as a switching element controls electrical conduction and non-conduction between both ends of the switching element.

[0035] The conductors 41 are located in the direction opposite to the z direction from the pairs of stacked bodies LS. The conductors 41 extend in the x direction and are aligned in the y direction. Each conductor 41 functions as one source line SL. Each conductor 41 is connected to the lower surfaces of the multiple stacked bodies LS aligned in the y direction.

[0036] The conductor 42 is located in the z direction from the set of magnetic bodies UT. The conductor 42 extends along a plane consisting of the x-axis and the y-axis (i.e., the xy plane) and in a direction intersecting the x-axis and the y-axis. The conductors 42 extend along the xy plane and are arranged in a direction intersecting the xy plane, for example, in a direction perpendicular to the xy plane. Each conductor 42 functions as one bit line BL. Each conductor 42 is connected to the upper surface of each of the multiple magnetic bodies UT that are different from the multiple magnetic bodies UT connected to one conductor 41.

[0037] The conductors 43 extend in the x direction. Each conductor 43 extends along a unit part ML located at the upper end of each of the multiple magnetic bodies UT aligned in the x direction. Each conductor 43 has a gap between it and the unit part ML located at the upper end of each of the multiple magnetic bodies UT aligned in the x direction. Each conductor 43 functions as one field line FL. When a current flows through the conductor 43 during data writing, a magnetic field is generated around the conductor 43. This magnetic field causes the unit parts ML aligned at a gap from the conductor 43 to have magnetization oriented based on the direction of the magnetic field.

[0038] FIG. 6 shows an example of the structure of the magnetic body UT of the memory system of the first embodiment. The magnetic body UT includes a plurality of unit parts ML as described above with reference to FIG. 5, and includes Q+1 unit parts ML_0 to ML_Q as an example. The boundary between each two adjacent unit parts ML has an xy area smaller than the xy area at other positions. The xy area is the area in a plane along the xy plane. Since the xy area at each boundary of the unit parts ML is small, the domain wall is more likely to remain at the boundary of the unit parts ML than at other positions. A magnetic domain is formed in each unit part ML based on the fact that the domain wall is more likely to remain at the boundary of the unit parts ML. Each magnetic domain has magnetization. The magnetization has one of two different directions. The direction of the magnetization is variable by control by the magnetic memory 2. FIG. 6 shows a form in which each unit part ML has one magnetic domain for ease of understanding. However, when two or more adjacent unit parts ML have magnetization in the same direction, the area consisting of these unit parts ML has a single magnetic domain and does not include a magnetic wall.

[0039] The magnetic memory 2 stores one bit of data by combining the magnetization directions of two adjacent unit parts ML. That is, two adjacent unit parts ML function as one memory cell MC. One bit of data is stored based on whether the magnetization directions of the two adjacent parts are parallel (or the same) or anti-parallel (or different).

[0040] 1.1.5.Error Correction Circuits 7 shows functional blocks of the error correction circuit of the memory system of the first embodiment. As shown in FIG. 7, the error correction circuit 36 ​​includes an encoder 361 and a decoder 362.

[0041] The encoder 361 includes a first type encoder 3611 , a second type encoder 3612 , and a data buffer 3613 .

[0042] The first type encoder 3611 performs a first type encoding on the data received by the first type encoder 3611. The first type encoder 3611 receives information data from a component other than the encoder 361 in the memory controller 3, for example, the RAM 33. The information data is data to be written to the magnetic memory 2, and includes data and metadata that are the subject of a write request transmitted from the host device 5. The write request subject data is data (user data) that the user of the information processing system 100 wants to store in the memory system 1, and is data or a part thereof that is requested to be written to the memory system 1 by the host device 5. The metadata includes information about certain user data and is associated with the certain user data. The first type encoder 3611 performs a first type encoding on the received information data to generate a code word for the received data, and outputs the generated code word. The code word generated by the first type encoding includes a parity of a first type error correction code (hereinafter, may be referred to as a first type error correction code parity), and may be referred to as a first type code word hereinafter. The first type codeword is provided to a data buffer 3613. In one example, the first type encoder 3611 performs encoding using a RAM (not shown) in the first type encoder 3611 and / or the RAM 33.

[0043] The first type encoding is encoding according to a method for generating a first type error correcting code parity, which generates a first type error correcting code parity. The first type error correcting code parity is a parity of an error correcting code that constitutes a part of a codeword of a rank metric code. A rank metric code is a linear code and is based on a rank distance, not on the number of erroneous bits, i.e., Hamming distance. That is, error correction using a rank metric code can correct errors of a rank equal to or less than a certain rank distance. A rank metric code is also referred to as a rank error correcting code. An example of a rank metric code includes a Gabidulin code. Rank metric codes are described below.

[0044] The second type encoder 3612 performs a second type encoding on the data received by the second type encoder 3612. The second type encoder 3612 receives data from the data buffer 3613. The received data is a first type codeword. The second type encoder 3612 performs a second type encoding on the received first type codeword to generate a codeword of the received data, and outputs the generated codeword. The codeword generated by the second type encoding includes the parity of a second type error correction code (hereinafter, sometimes referred to as a second type error correction code parity), and hereinafter, sometimes referred to as a second type codeword. The second type codeword is sent to the memory interface 35 directly or after being temporarily stored in the RAM 33. The second type codeword received by the memory interface 35 constitutes a part or the whole of the write data, and is written to the magnetic memory 2. In one example, the second type encoder 3612 performs encoding using a RAM (not shown) in the second type encoder 3612 and / or the RAM 33.

[0045] The second type encoding is encoding according to a method for generating codewords of the second type error correcting code, and generates a second type error correcting code parity. The second type error correcting code corrects errors based on the Hamming distance. An example of the second type error correcting code includes the BCH (Bose-Chaudhuri-Hocquenghem) code.

[0046] The decoder 362 includes a first type decoder 3621 , a second type decoder 3622 , and a data buffer 3623 .

[0047] The second type decoder 3622 performs a second type of decoding on the data received by the second type decoder 3622. The second type decoder 3622 receives data from a component other than the decoder 362 in the memory controller 3, for example, the RAM 33 or the memory interface 35. The received data is read data transmitted from the magnetic memory 2, and is a second type codeword. The second type decoder 3622 performs a second type of decoding on the received second type codeword to generate information data of the second type codeword, and outputs the generated information data. The second type decoding is a decoding using a second type error correction code, and generates information data of the second type codeword. The generated information data is supplied to the data buffer 3623. In one example, the second type decoder 3622 performs the decoding using a RAM and / or a RAM 33 (not shown) in the second type decoder 3622.

[0048] The first type decoder 3621 performs a first type of decoding on the data received by the first type decoder 3621. The first type decoder 3621 receives data from the data buffer 3623. The received data is a first type codeword. The first type decoder 3621 performs a first type decoding on the received first type codeword to generate information data of the first type codeword, and outputs the generated information data. The generated information data includes at least a part of the read request target data. The read request data is data (user data) that the user of the information processing system 100 wants to read from the memory system 1, and is data or a part thereof that the host device 5 requests to read from the memory system 1. The first type decoding is a decoding using a first type error correction code, and generates information data of the first type codeword. In one example, the first type decoder 3621 performs the decoding using a RAM and / or a RAM 33 (not shown) in the first type decoder 3621.

[0049] 1.2.Operation Fig. 8 shows the changes during certain operations of a part of the memory system of the first embodiment. In particular, Fig. 8 shows the shifting of domain walls for reading and writing data in the magnetic memory 2, showing one magnetic body UT and components associated with this magnetic body UT.

[0050] One bit of data is written to a magnetic body UT by magnetizing the upper end of the magnetic body UT, i.e., the unit part ML connected to the conductor 42, based on the value of the data. When another bit of data is written to the magnetic body UT, all the magnetic domain walls of the magnetic body UT are shifted toward the stack LS. The entire magnetic domain walls shift while maintaining the pattern of the succession of magnetic domains, i.e., the succession of the bit data stored in the memory cell MC.

[0051] One bit of data in a certain memory cell MC is read while the upper unit part ML having magnetization providing part of the data storage function of this memory cell MC is in contact with the lower end of the magnetic body UT, i.e., the stack LS. For this purpose, the upper unit part ML providing part of the data storage function of the memory cell MC storing the data to be read is shifted to the lower end of the magnetic body UT when reading the data. The entire magnetic wall shifts while maintaining the pattern of the succession of magnetic domains, i.e., the succession of the data bits stored in the memory cell MC.

[0052] In this manner, in the magnetic memory 2, data is written and read in a first-in first-out (FIFO) format, similar to a shift register.

[0053] Fig. 9 conceptually illustrates units used in generating code words of an error correcting code used in the memory system of the first embodiment. Specifically, Fig. 9 illustrates ranks used in a rank metric code.

[0054] As shown in FIG. 9, the rank metric code is a Galois extension field GF(q M) symbols are arranged side by side, where N is equal to or smaller than M and q is a power of a prime number. A rank metric code is regarded as an arrangement of elements of GF(q) in a matrix of N rows and M columns. That is, FIG. 9 shows an example of a rank metric code with M=J and N=J. For a matrix, the rank in GF(q) is defined. The rank of the difference between two codewords is defined as the rank distance between the two codewords. The minimum distance d in the rank metric is determined as the minimum value of the rank distances between all the different codewords. More specifically, it is as follows. The following description is based on an example where q=2.

[0055] Rank metric codes use a set of 1-bit data arranged in a two-dimensional matrix, and use a unit called rank. Rank metric codes are formed as data arranged in a matrix of J rows by J columns, where J is an integer equal to or greater than 2. That is, each bit of a rank metric code is associated with a value (or coordinate or index) indicating a position on the first dimension and a value (or coordinate) indicating a position on the second dimension, and is assigned an attribute indicating a value indicating a position on the first dimension and a value indicating a position on the second dimension. Hereinafter, one of the two dimensions is associated with a row of a two-dimensional matrix, and the other is associated with a column of the two-dimensional matrix. That is, a value indicating a position in one dimension is associated with an index that identifies a row, and a value indicating a position in the other dimension is associated with an index that identifies a column.

[0056] Bits in hatched squares contain erroneous values. In rank metric codes, the degree of error is represented by the number of patterns of erroneous bits in a row that contains erroneous bits.

[0057] The matrix A in the example of FIG. 9 includes a pattern P1 consisting of a sequence of common bit values ​​in the first, second, fourth, and sixth rows. The third row can be decomposed into two different patterns P1 and P2. Thus, the distribution of erroneous bits in the matrix A can be represented by two patterns P1 and P2. Based on this, the matrix A is evaluated as including two patterns of erroneous bits, that is, including two rank errors. This two rank error is different from the 12 bit error based on the number of error bits.

[0058] Matrix B has a distribution of error bits that is significantly different from matrix A. However, the distribution of erroneous bits in matrix B can also be represented by patterns P1 and P2. Based on this, matrix B is also estimated to contain rank 2 errors.

[0059] FIG. 10 shows some parameters of the codewords used in the memory system of the first embodiment. In order to enable an error of rank t to be corrected using a rank metric code, where t is an integer equal to or greater than 1, the rank distance between two different codewords needs to be at least d=2t+1. That is, the minimum rank distance required is d. To ensure this distance, a codeword of a rank metric code with J rows and J columns needs to include an error correction code parity of (d-1)×M bits. An example of a rank metric code including such an error correction code is as follows. That is, as shown in FIG. 10, a codeword of a rank metric code with J rows and J columns, i.e., a first type codeword, includes an error correction code parity of 2t rows and J columns to enable an error of rank t to be corrected. Thus, the codeword of the rank metric code includes information data of (J-2t) rows and J columns, that is, the code length of the information data is (J-2t)×J. Rank metric codes are described, for example, in Gabidulin, Ernst M. (1985) "Theory of codes with maximum rank distance". Problems of Information Transmission. 21 (1): 1-12.

[0060] FIG. 11 shows an example of an area where data is stored in the memory system of the first embodiment. As shown in FIG. 11, the codewords of the rank metric code are stored in one area in the memory cell array 21 for each bit string. A string of codewords of the rank metric code, i.e., a string of first type codewords, may be referred to as a first type codeword section CWC hereinafter. Each first type codeword section CWC is stored in a part of one string STR. A part of each string STR that stores one first type codeword section CWC may be referred to as a string section STRS hereinafter. The string section STRS functions as a set of consecutive memory cells MC of J bits. A plurality of different first type codeword sections CWC of one first type codeword are stored one by one in a plurality of different strings STR.

[0061] Fig. 12 conceptually illustrates division of information data for generating a first type codeword in the memory system of the first embodiment. Fig. 12 illustrates one sector of user data.

[0062] In the following description, the value Z refers to the number of bits in one string STR used to store a first type codeword, i.e., the number of memory cells MC, and is an integer equal to or greater than 1. That is, as described above with reference to FIG. 7, the first type codeword is subjected to second type encoding to generate a second type correcting codeword. One second type codeword is written into one string STR. Thus, Q bits in one string STR store the first type codeword in Z bits and store the second type error correcting code parity in (QZ) bits.

[0063] In the following description, the value F indicates the number of strings STR into which one sector of user data is written, and is an integer equal to or greater than 1.

[0064] Figure 12 and the description of Figure 12 are based on an example of a method that allows correction of one rank of errors in each first type codeword, i.e., an example where t = 1. Thus, each first type codeword includes two rows of first type error correcting code parity. Cases where t is greater than 1 can be understood by those skilled in the art by changing the values ​​based on 1 and t = 1 where 1 is used as an example of t in the following description.

[0065] The user data is divided into a number of sections to generate a first type codeword with J rows and J columns, and the first type codeword is generated using the sections. Then, each first type codeword string section CWC is written into one string section STRS as described above with reference to FIG. 11. However, based on the respective sizes of one sector, t, and J, the entire user data may not be divisible by J bits. In this case, the object for which the first type codeword is generated may be resized so that the size of the set of each first type codeword string section CWC of the set of generated first type codewords is a multiple of J bits. An example of the resizing includes generating information data SD consisting of U bytes of user data and M bytes of metadata, as described below. Hereinafter, the multiple portions of the information data SD having the same size may be referred to as information data sections SDS. M is determined so that the first type codeword string section CWC of the information data section SDS of the information data SD consisting of U bytes of user data and M bytes of metadata is J bits. That is, M is determined so that (U+M)×8×(J / (J−2t)) is J or a multiple of J. An example of metadata includes a Cyclic Redundancy Check (CRC) code.

[0066] In order for the information data section SDS of (U+M) bytes of information data SD to be written into the string section STRS of J bits, K string sections STRS are required, where K is (U+M)×8×(J / (J−2t)) / J and is an integer equal to or greater than 1.

[0067] For storage in K string sections STRS, F strings STR are required based on Z (i.e., the number of bits to store the first type codeword in one string STR), i.e., Z×F=K. Thus, M (i.e., the size of the metadata) and F (i.e., the number of strings STR) used to store the first type codeword of one sector of user data are determined.

[0068] Each set of Z / J information data sections SDS is stored in one string STR of the F strings.

[0069] Next, writing of user data to the magnetic memory will be described with reference to Fig. 13. Fig. 13 conceptually illustrates operations on data for storing user data in the memory system of the first embodiment.

[0070] As described above with reference to FIG. 12, the memory controller 3 generates M bytes of metadata and (U+M) bytes of information data SD for writing one sector, ie, U bytes of user data.

[0071] 13, the memory controller 3 divides the information data SD into information data sections SDS each having a size of J bits. By the division, K information data sections SDS are generated.

[0072] As described above with reference to Fig. 12, one sector of user data is written into F strings STR. Based on this, a process for the generation of K information data sections SDS is performed for each of the total J / F pieces of user data for the generation of a first type codeword having a size of J bits in the column direction.

[0073] The memory controller 3 uses the first type encoder 3611 to perform the first type encoding on each set of J information data sections SDS among the J / F pieces of user data. Hereinafter, a set of J information data sections SDS on which the first type encoding is performed may be referred to as an information data section set SDSS. The information data section set SDSS has an information length of (J-2t)×J bits. As a result of the first type encoding, one first type codeword is generated. The first type codeword has a size of J×J bits.

[0074] In a similar manner, the memory controller 3 generates first type code words from all remaining information data section sets SDSS using the first type encoder 3611. This results in Z / J first type code words.

[0075] The memory controller 3 generates a plurality of second type error correction code parities from the set of Z / J first type code words using the second type encoder 3612. That is, the second type encoder 3612 performs second type encoding on a portion to be written to one string STR of the set of first type code words, i.e., a set of a plurality of first type code word string sections CWC to be written to one string STR of the set of first type code words. A second type code word including the set of first type code word string sections CWC and the second type error correction code parity is generated by the second type encoding using the set of first type code word string sections CWC.

[0076] In the same manner, the memory controller 3 uses the second type encoder 3612 to generate a plurality of second type codewords including all remaining sets of the first type codeword sequence sections CWC of the set of first type codewords. This results in J second type codewords. The J second type codewords include J sets of second type error correcting code parities. The memory controller 3 uses the J second type codewords thus obtained as write data to write them into the magnetic memory 2. Each second type codeword is written into one string STR.

[0077] Figures 14, 15, and 16 show examples of data generated by encoding in the memory system of the first embodiment. Figures 14, 15, and 16 show various cases of U, J, and Z. Figures 14, 15, and 16 show the first, second, and third cases, respectively.

[0078] FIG. 14 shows an example where U is 512, J is 32, and Z is 1120. Z is a multiple of J. As shown in FIG. 14, based on U being 512, in one example, M is 13, that is, 13 bytes of metadata are used. Thus, the information data SD including one sector of user data has a size of 525 bytes. M is not limited to this example, and may be any number that satisfies the conditions described above with reference to FIG. 12, and based on an example where U=512, J=32, and t=1, may be any number that allows the product of (512+M)×8 to be divisible by 30 (=J-2t), that is, any value that makes (512+M)×8 / 30 an integer. Such a minimum M is 13, and M may be 13+15n, where n is a positive integer.

[0079] The number of string sections STRS required for a first type codeword having a size generated from 525 bytes of information data SD to be written into the 32-bit string sections STRS is K=525×8×(32 / (32−2t))=4480.

[0080] Since Z is 1120, F=4480 / 1120=4, i.e., storage of the first type codewords for one sector of user data requires four strings STR. F may be predetermined, and Z may be determined based on F.

[0081] Based on the fact that four strings STR are required to store one user data, eight user data are required to generate the first type codeword, where 8 is based on J / F=32 / 4.

[0082] A specific generation of a set of second type code words from user data is as follows: eight pieces of user data are collected. Eight pieces of 525-byte information data are generated by adding 13 bytes of metadata to each of the eight pieces of 512-byte user data. The set of eight pieces of information data SD is divided into 4480 pieces of information data sections SDS. An information data section set SDSS is formed from a total of 32 information data sections SDS of the set of eight pieces of information data SD. Since Z is 1120, 35 information data section sets SDSS are formed. 35 is based on 1120 / 32. Each information data section set SDSS has a size of 960 bits. 960 is based on 32×30.

[0083] Each information data section set SDSS is subjected to a first type encoding, which generates 35 first type code words. Each first type code word includes a first type error correction code parity having a size of 2 bits by 32 bits (=64 bits) and has a size of 32 bits by 32 bits (=1024 bits).

[0084] The 35 first type codewords are divided into a set of 35 first type codeword sequence sections CWC, one from each of the 35 first type codewords. This results in 32 sets of first type codeword sequence sections CWC. Each of the 32 sets of first type codeword sequence sections CWC is subjected to second type encoding. This results in 32 second type codewords. The P(=32) second type codewords thus obtained may be referred to as a second type codeword set TCWS hereinafter. The 32 second type codewords are written into the 32 strings STR, respectively.

[0085] FIG. 15 shows an example where U is 4096 (i.e., the size of one sector is 4K bytes), J is 64, and Z is 1088. As shown in FIG. 15, based on U being 4096, in one example, M is 120 bytes. Therefore, information data including one sector of user data has a size of 4216 bytes. Based on an example where U=4096, J=64, and t=1, M may be a number that allows the product of (4096+M)×8 to be divisible by 62 (=J-2t), that is, a value that makes (4096+M)×8 / 62 an integer.

[0086] The number of string sections STRS required for a first type codeword of a size generated from 4216 bytes of information data SD to be written into the 64-bit string sections STRS is K=4216×8×(64 / (64−2t))=34816.

[0087] Since Z is 1088, F=34816 / 1088=32, i.e. storage of the first type codewords for one sector of user data requires 32 strings.

[0088] Based on the fact that 32 strings STR are required to store one user data, 2 pieces of user data are required to generate the first type codeword, where 2 is based on J / F=64 / 32.

[0089] A specific generation of a set of second type code words from user data is as follows: Two pieces of user data are collected. Two pieces of information data of 4216 bytes are generated by adding 120 bytes of metadata to each of the two pieces of user data of 4096 bytes. The set of two pieces of information data SD is divided into 34816 pieces of information data sections SDS. An information data section set SDSS is formed from a total of 64 information data sections SDS of the set of two pieces of information data SD. Since Z is 1088, 17 information data section sets SDSS are formed. 17 is based on 1088 / 64. Each information data section set SDSS has a size of 3968 bits. 3968 is based on 64×62.

[0090] Each information data section set SDSS is subjected to a first type encoding, which generates 17 first type code words. Each first type code word includes a first type error correction code parity having a size of 2 bits x 64 bits (=128 bits) and has a size of 64 bits x 64 bits (=4096 bits).

[0091] The set of 17 first type codewords is divided into a set of 17 first type codeword sequence sections CWC, one from each of the 17 first type codewords, resulting in 64 sets of first type codeword sequence sections CWC. Each of the 64 sets of first type codeword sequence sections CWC is subjected to a second type encoding, resulting in 64 second type codewords. The 64 second type codewords are written into 64 strings STR, respectively.

[0092] Fig. 16 shows an example where U is 4096, J is 128, and Z is 1152. As shown in Fig. 16, based on U being 4096, in one example, M is 440. Therefore, information data including one sector of user data has a size of 4536 bytes. Based on an example where U=4096, J=128, and t=1, M may be a number that allows the product of (4096+M)×8 to be divisible by 126 (=J-2t), that is, a value that makes (4096+M)×8 / 126 an integer.

[0093] The number of string sections STRS required for a first type codeword of a size generated from 4536 bytes of information data SD to be written into the 128-bit string sections STRS is K=4536×8×(128 / (128−2t))=36864.

[0094] Since Z is 1152, F=36864 / 1152=32, i.e. storage of the first type codewords for one sector of user data requires 32 strings.

[0095] Based on the fact that 32 strings STR are required to store one user data, 4 pieces of user data are required to generate the first type codeword, where 4 is based on J / F=128 / 32.

[0096] A specific generation of a set of second type code words from user data is as follows: Four pieces of user data are collected. Four pieces of information data of 4536 bytes are generated by adding 440 bytes of metadata to each of the four pieces of user data of 4096 bytes. The set of four pieces of information data SD is divided into 36864 pieces of information data sections SDS. An information data section set SDSS is formed from a total of 128 pieces of information data sections SDS of the four pieces of information data SD. Since Z is 1152, nine pieces of information data section sets SDSS are formed. The 9 is based on 1152 / 128. Each information data section set SDSS has a size of 16128 bits. The 16128 is based on 128×126.

[0097] Each information data section set SDSS is subjected to a first type encoding, which generates nine first type code words. Each first type code word includes a first type error correction code parity having a size of 2 bits x 128 bits (=256 bits) and has a size of 128 bits x 128 bits (=16384).

[0098] The set of nine first type codewords is divided into a total of 35 sets of first type codeword sequence sections CWC, one from each of the nine first type codewords, resulting in 128 sets of first type codeword sequence sections CWC. Each of the 128 sets of first type codeword sequence sections CWC is subjected to second type encoding, resulting in 128 second type codewords. The 128 second type codewords are written into 128 strings STR, respectively.

[0099] 17 and 18 show examples of data generated by decoding in the memory system of the first embodiment. The outline of decoding is equivalent to the reverse order of the series of processes performed in encoding. FIG. 17 shows a case where error correction using the second type codeword is successful. FIG. 18 shows a case where error correction using the second type codeword is unsuccessful.

[0100] As shown in Fig. 17, when the host device 5 requests the memory controller 3 to read a certain sector of user data, the memory controller 3 reads all F second type codewords including the user data from the magnetic memory 2. Each second type codeword includes a plurality of first type codeword string sections CWC and a second type error correction code parity, as described above with reference to Fig. 13. Each first type codeword string section CWC includes an information data section SDS of information data SD including user data, and a part of the first type codeword in the first type codeword including the first type codeword string section CWC, as described above with reference to Figs. 11 and 12.

[0101] The memory controller 3 decodes each second type codeword. That is, the memory controller 3 uses the second type error correction code parity of each second type codeword to correct errors when multiple first type codeword string sections CWC included in the second type codeword contain errors. If the error correction is successful, a set of first type codeword string sections CWC that do not contain errors is obtained. The obtained set of first type codeword string sections CWC is user data that does not contain errors and is the subject of the read request.

[0102] 18, when error correction fails for any one of the second type codewords, the memory controller 3 reads the remaining JF second type codewords in the second type codeword set TCWS including the second type codeword for which error correction failed from the magnetic memory 2. This results in the second type codeword set TCWS, and thus in the multiple first type codewords including the user data that is the subject of the read request.

[0103] The memory controller 3 decodes the multiple first type codewords. That is, the memory controller 3 uses the first type error correction code parity of each first type codeword to correct an error when the first type codeword contains an error. As a result of the decoding, multiple information data section sets SDSS that do not contain errors are obtained. The set of multiple information data section sets SDSS includes read request target user data and information data that does not contain errors, and further includes read request target user data that does not contain errors, in the part included in the F second type codewords that are read out first. As a result, read request target user data that does not contain errors is obtained.

[0104] Fig. 19 shows a flow of an operation in the memory system of the first embodiment. Specifically, Fig. 19 shows a flow of encoding user data that is the subject of a write request from the host device 5. The flow of Fig. 19 starts when the memory system 1 receives a write request and the user data that is the subject of the write request from the host device 5.

[0105] The memory controller 3 generates an information data section from the user data (ST1). That is, the memory controller 3 generates information data SD from the user data and metadata, and divides the generated information data SD into a plurality of information data sections SDS.

[0106] The memory controller 3 determines whether or not an information data section has been generated from each of the J / F pieces of user data in the same manner as in step ST1 (ST2).

[0107] If information data sections SDS for each of the J / F pieces of user data have not been generated (ST2_No), the memory controller 3 selects the next user data that has not yet been targeted for division into information data sections SDS (ST3). Step ST3 continues to step ST1. That is, the memory controller 3 generates information data SD including the selected user data, and divides the generated information data SD into information data sections SDS.

[0108] When the information data section SDS for each of the J / F pieces of user data is generated (ST2_Yes), the memory controller 3 performs the first type encoding on one information data section set SDSS using the first type encoder 3611 (ST4). This results in one first type codeword.

[0109] If the first type encoding has not been performed on each of the Z / J pieces of information data section sets SDSS (ST6_No), the memory controller 3 selects the next information data section set SDSS that has not yet been subjected to the first type encoding (ST7). Step ST7 continues to step ST4. That is, the memory controller 3 performs the first type encoding on the selected information data section set SDSS.

[0110] The memory controller 3 judges whether the first type encoding has been performed on each of the Z / J information data section sets SDSS (ST6).

[0111] If the first type encoding has been performed on each of the Z / J information data section sets SDSS (ST6_Yes), the memory controller 3 uses the second type encoder 3612 to perform second type encoding on a set of first type codeword sequence sections CWC to be written to one string STR (ST8).

[0112] The memory controller 3 determines whether the second type encoding has been performed on each set of the first-type codeword string sections CWC for all of the J sets of the first-type codeword string sections CWC (ST9).

[0113] If the second type encoding has not been performed on each of the sets of J first-type codeword string sections CWC (ST9_No), the memory controller 3 selects the next set of first-type codeword string sections CWC that has not yet been subjected to the second type encoding (ST10). Step ST10 continues to step ST8. That is, the memory controller 3 performs the second type encoding on the selected set of first-type codeword string sections CWC.

[0114] When the second type encoding has been performed on each of the set of J first type codeword sequence sections CWC (ST8_No), the flow ends. By the end of the flow, one second type codeword set TCWS is obtained.

[0115] Fig. 20 shows a flow of an operation in the memory system of the first embodiment. Specifically, Fig. 20 shows a flow of decoding user data that is the subject of a read request from the host device 5. The flow of Fig. 20 starts when the memory system 1 receives a read request from the host device 5.

[0116] The memory controller 3 reads F second type code words including user data from the magnetic memory 2 (ST11).

[0117] The memory controller 3 performs second type decoding on one of the F second type codewords using the second type decoder 3622 (ST12).

[0118] If the second type decoding is successful (ST13_Yes), the memory controller 3 determines whether the second type decoding for each of the F second type codewords is successful (ST14).

[0119] If the second type decoding for each of the F second type codewords is not successful (ST14_No), the memory controller 3 selects the next second type codeword that has not yet been subjected to the second type decoding (ST15). Step ST15 continues to step ST12. That is, the memory controller 3 performs the second type decoding for the selected second type codeword.

[0120] If the second type decoding for each of the F second type codewords is successful (ST14_Yes), the flow ends. In this case, a set of error-free first type codeword sequence sections CWC, and thus error-free user data for the read request, is obtained.

[0121] If the second type decoding fails (ST13_No), the memory controller 3 reads the remaining second type codewords from the magnetic memory 2 to obtain a second type codeword set TCWS including F second type codewords (ST21). As a result of step ST21, the second type codeword set TCWS including the user data that is the subject of the read request is obtained.

[0122] The memory controller 3 decodes the second type codewords that have not been decoded in the second type codeword set TCWS using the second type decoder 3622 (ST22). That is, the memory controller 3 performs second type decoding on the second type codewords that have not been decoded in the second type codewords read in step ST11 and the second type codewords read in step ST21.

[0123] The memory controller 3 performs first-type decoding on one first-type codeword in the second-type codeword set TCWS (ST23).

[0124] If the first type decoding fails (ST24_No), the flow ends. In this case, the reading of the user data that is the subject of the read request fails, and the user data is not obtained.

[0125] If the first type decoding is successful (ST24_Yes), the memory controller 3 determines whether the first type decoding is successful for all, i.e., Z / J, first type codewords in the second type codeword set TCWS (ST25).

[0126] If the first type decoding for the Z / J first type codewords in the second type codeword set TCWS is successful (ST25_Yes), Z / J information data section sets SDSS are obtained. The Z / J information data section sets SDSS include sections of the read request target user data that do not contain errors. Therefore, the memory controller 3 generates the read request target user data that does not contain errors from the obtained Z / J information data section sets SDSS, and the flow ends.

[0127] If the first type decoding for all, i.e., Z / J, first type codewords in the second type codeword set TCWS has not been successful (ST25_No), the memory controller 3 selects a first type codeword that has not yet been the target of the first type decoding (ST26). Step ST26 continues to step ST23. That is, the memory controller 3 performs the first type decoding on the selected first type codeword.

[0128] 1.3. Advantages (Effects) According to the first embodiment, as described below, it is possible to provide a memory system that is highly resistant to data errors.

[0129] A FIFO type magnetic memory such as the magnetic memory 2 may cause the following two patterns of unintended magnetic shift. FIGS. 21 and 22 respectively show a first pattern and a second pattern of domain wall shift that are different from the intention in the magnetic memory. The shifts shown in FIGS. 21 and 22 are intended to shift each of all domain walls by one bit, that is, from the boundary of the unit part ML where each domain wall is located before the shift to the adjacent boundary. Therefore, after the shift, the magnetic memory 2 recognizes that the memory cell MC_β based on the unit part ML_α and the unit part ML_α+1 is based on the unit part ML_α+1 and the unit part ML_α+2 after the shift, where α and β are positive integers.

[0130] As shown in FIG. 21, in the first pattern, a certain magnetic domain wall shifts to an unintended position. That is, the magnetic domain wall located between the unit parts ML_3 and ML_4 before the shift has shifted beyond the intended boundary between the unit parts ML_4 and ML_5 to the boundary between the unit parts ML_5 and ML_6. Before the shift, the memory cell MC_5 stores "1" data by the unit parts ML_3 and ML_4, and the memory cell MC_6 stores "0" data by the unit parts ML_4 and ML_5. However, as a result of the unintended shift of the magnetic domain wall, the memory cell MC_5 stores "0" data by the unit parts ML_4 and ML_5, and the memory cell MC_4 stores "1" data by the unit parts ML_5 and ML_6. This means that the bit sequence shown in FIG. 21 has come to include two-bit errors due to the shift. In this way, random errors occur due to the occurrence of the operation of the first pattern.

[0131] As shown in FIG. 22, in the second pattern, all the domain walls are shifted to unintended positions. That is, all the domain walls are shifted from the boundary of the unit part ML where the domain walls are located before the shift to the boundary two ahead. As a result, based on the example of the bit pattern in the string STR in FIG. 22, this means that the memory cells MC_7, MC_4, MC_3, MC_2, and MC1 contain a total of five bit errors. Furthermore, even though the magnetization of the unit part ML_1 is not set to the direction based on the value to be stored, the bit of the memory cell MC_8 cannot be kept empty, so an appropriate value is inserted into the memory cell MC_8. This value can function as an error. Furthermore, most of the bits are only displaced before and after the domain wall shift, and the information itself is not lost. However, before data reading based on the magnetization of the end unit part ML (i.e., in the example of the figure, the unit part ML_8) is performed before the shift, the magnetization information that the unit part ML_8 had before the shift is lost due to the domain wall shift. As a result, one bit of information (that is, in the example shown in the figure, the "1" data from the memory cell MC_1 before the shift) is lost. In this manner, a burst error occurs due to the occurrence of the magnetic shift of the second pattern.

[0132] The magnetic shift of the second pattern is caused by the inherent structure and operation of the FIFO type magnetic memory. Therefore, it is difficult to sufficiently suppress the occurrence of the magnetic shift of the second pattern. Errors caused by the second pattern can be corrected using encoding for data written in multiple strings. However, this requires a large number of strings, i.e., thin magnetic wires. This significantly increases the manufacturing cost and area of ​​the magnetic memory.

[0133] The memory system 1 of the first embodiment generates a first type codeword from data to be written to a plurality of strings STR, and writes data including the first type codeword to the magnetic memory 2. The first type codeword can correct a number of errors based on a rank. As long as the rank of the error is equal to or less than t, which is the number of ranks that can be corrected per first type codeword, even if the first type codeword includes a burst error, the burst error can be corrected.

[0134] The memory system 1 uses a first type codeword based on rank. As is clear from the description made with reference to FIG. 10, the first type codeword can be generated by providing an error correction code in the extension direction of the string STR. Although the error correction code is added in the extension direction of the string STR, many errors such as burst errors arranged along the extension direction of the string STR can be corrected. That is, it is not necessary to provide many magnetic bodies UT for correcting many errors arranged along the extension direction of the string STR. Therefore, a magnetic memory 2 with a small area can be manufactured.

[0135] The memory system 1 generates a second type codeword from a string of bits to be written to one string STR, and writes the second type codeword to one string STR. If the second type codeword is decoded to obtain error-free user data that is the subject of the read request, the first type decoding is not performed. Therefore, if no burst error occurs, data can be read in a short time.

[0136] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents described in the claims, as well as in the scope and spirit of the invention. [Explanation of symbols]

[0137] 100...information processing system, 1...memory system, 5...host device, 2...magnetic memory, 3...memory controller, 31...host interface, 32...ROM, 33...RAM, 34...CPU, 35...memory interface, 36...error correction circuit, 21...memory cell array, 22...control circuit, STR...string, MC...memory cell, ML...unit part, SL...source line, BL...bit line, FL...field line, UT...magnetic material, LS...laminated body, 41...conductor, 42...conductor, 43 ...conductor, 361...encoder, 362...decoder, 3611...first type encoder, 3612...second type encoder, 3613...data buffer, 3621...first type decoder, 3622...second type decoder, 3623...data buffer, STR...string, CWC...first type codeword sequence section, STRS...string section, SD...information data, SDS...information data section, SDSS...information data section set, TCWS...second type codeword set

Claims

1. a memory including a plurality of magnetic bodies extending in a first direction, each of the plurality of magnetic bodies including a plurality of portions aligned in the first direction; an encoder for generating a first code word from a plurality of first data sections, the first code word including a first error correcting code parity for correcting a number of errors based on a rank in the plurality of first data sections and the first code word, the first code word including a plurality of first bit strings respectively associated with a plurality of columns, each of the plurality of first bit strings including a plurality of bits respectively associated with a plurality of rows; writing the plurality of first bit strings to the plurality of magnetic bodies such that each of the plurality of first bit strings is written to a unique one of the plurality of magnetic bodies; A memory controller; A memory system comprising:

2. The memory controller receives a plurality of first type data; the plurality of first data sections being a set of respective sections of the plurality of first type data; 2. The memory system of claim 1.

3. The memory controller receives a write request with a first size of data as a minimum unit; each of the plurality of first type data has the first size; 3. The memory system of claim 2.

4. the memory controller receives the plurality of first type data from outside the memory system; 4. The memory system of claim 3.

5. the plurality of first bit strings are made up of n (n is an integer equal to or greater than 2) first bit strings, all sections of one of the plurality of first type data are included in m (where m is an integer less than n) bit strings among the plurality of first bit strings; 5. The memory system of claim 4.

6. The memory controller receives a first type of data from outside the memory system; a subset of the plurality of first data sections is a section of a set of first type data and second type data; 2. The memory system of claim 1.

7. the second type data includes a cyclic redundancy check code of the first type data; 7. The memory system of claim 6.

8. The memory controller generates a second code word; the second codeword includes a second error correcting code parity that corrects a number of errors in the second codeword based on a rank, the second codeword including a plurality of second bit strings respectively associated with a plurality of strings; generating a third code word from one of the first bit sequences and one of the second bit sequences; writing a third code word onto one of the plurality of magnetic bodies; 2. The memory system of claim 1.

9. The second codeword is a BCH code.

9. The memory system of claim 8.

10. the first error-correcting code parity includes a plurality of third bit strings, each of which corresponds to a respective one of the plurality of strings; each of the first bit sequences includes each of the third bit sequences; 2. The memory system of claim 1.

11. the memory sets magnetization in a portion of the first magnetic body that is located at a first end of the first magnetic body among the plurality of portions of the first magnetic body, and reads data based on a magnetization direction of a portion of the first magnetic body that is located at a second end of the first magnetic body among the plurality of portions of the first magnetic body; 11. A memory system according to any preceding claim.

12. the first codeword is a codeword of a rank metric code; 11. A memory system according to any preceding claim.

13. the memory sets magnetization in a portion of the plurality of portions of a first magnetic body that is one of the plurality of magnetic bodies and that is located at a first end of the first magnetic body, and reads data based on a magnetization direction of a portion of the plurality of portions of the first magnetic body that is located at a second end of the first magnetic body, the first codeword is a codeword of a rank metric code; 11. A memory system according to any preceding claim.