Patent ID: 8429494

Claim:
A nonvolatile random access memory, comprising: a nonvolatile storage area that is randomly accessible and includes two areas: a data area to store data including at least one data area which is assigned a data area unit size, and an error-correcting-code area to store an error correcting code including at least one error-correcting-code area which is assigned an error-correcting-code-area unit size; and a nonvolatile storage area controller which: sets the data area unit size as a data size used when the at least one data area is accessed from an outside, and sets the error-correcting-code-area unit size, wherein the nonvolatile storage area controller manages the data area and the error-correcting-code area based on the set data area unit size, and assigns the at least one error-correcting-code area with the error-correcting-code-area unit size to the at least one data area with the data area unit size based on the data area unit size of the at least one data area.