CPC G06F 3/0604 (2013.01) [G06F 3/0616 (2013.01); G06F 3/0619 (2013.01); G06F 3/064 (2013.01); G06F 3/0647 (2013.01); G06F 3/0652 (2013.01); G06F 3/0659 (2013.01); G06F 3/0679 (2013.01); G06F 3/0685 (2013.01); G06F 12/0246 (2013.01); G06F 2212/1036 (2013.01); G06F 2212/7202 (2013.01); G06F 2212/7205 (2013.01); G06F 2212/7211 (2013.01)] | 21 Claims |
1. A portable electronic device comprising:
a housing;
a display mounted on the housing;
a printed circuit board accommodated in the housing, the printed circuit board including a bus;
a memory device mounted on the printed circuit board and connected to the bus;
a main memory mounted on the printed circuit board and connected to the bus; and
processor circuitry mounted on the printed circuit board and connected to the bus, the processor circuitry being configured to:
manage a logical address of data to be written to the memory device;
issue a write request to the memory device; and
transfer first data from the main memory via the bus to the memory device, wherein
the memory device includes:
an interface;
a nonvolatile memory including a plurality of blocks, each of the plurality of blocks being a unit for a data erase operation, the plurality of blocks including at least a first block, a second block, and a third block; and
a controller electrically connected to the nonvolatile memory and configured to:
when the number of data erase operations performed on the first block is smaller than the number of data erase operations performed on the second block, copy second data from the first block to the second block; and
when the copying is not performed, write the first data to the third block, the first data being data that is received from the processor circuitry through the interface and has not been stored in the nonvolatile memory, and
the processor circuitry is further configured to:
issue a read request to the memory device;
read the first data from the memory device; and
store the read first data into the main memory via the bus.
|