Storage device, method of operating the same, and memory controller
According to an embodiment of the present disclosure, a storage device may include a memory device including a plurality of zones, a memory device including a plurality of zones; a buffer memory device including a plurality of slots; and a memory controller including a plurality of zone buffers respectively corresponding to the plurality of zones. The memory controller may store write data in one or more of the plurality of slots, store map data corresponding to the write data in a zone buffer that corresponds to a zone in which the write data is to be stored, and then store the write data, which is stored in the one or more slots, in the zone corresponding to the zone buffer based on the map data stored in the zone buffer.
1 . A storage device comprising:
a memory device including a plurality of zones;
a buffer memory device including a plurality of slots; and
a memory controller including a plurality of zone buffers that are implemented in an internal memory of the memory controller and respectively correspond to the plurality of zones,
wherein the memory controller is configured to store write data in one or more of the plurality of slots, store map data, including information indicating a position in the buffer memory device in which the write data is stored, in a zone buffer corresponding to a target zone of the write data, and store the write data in the target zone from the buffer memory device based on the map data when a size of the map data stored in the zone buffer is greater than or equal to a predetermined size.
2 . The storage device of claim 1 , wherein the map data includes position information indicating the one or more slots in which the write data is stored.
3 . The storage device of claim 1 , wherein the target zone in which the write data is to be stored is determined based on a property of the write data.
4 . The storage device of claim 1 , wherein the buffer memory device further includes a read area in which read data received from the memory device is temporarily stored.
5 . The storage device of claim 4 , wherein the memory controller further includes a read buffer implemented in the internal memory of the memory controller, the read buffer corresponding to the read area and distinct from the plurality of zone buffers, storing map data corresponding to the read data.
6 . The storage device of claim 1 , wherein the write data is at least a portion of data received from an external device.
7 . The storage device of claim 1 , wherein the memory device includes a plurality of memory dies each including one or more memory blocks.
8 . The storage device of claim 7 , wherein each of the plurality of zones includes one or more memory blocks in one or more of the plurality of memory dies.
9 . The storage device of claim 7 , wherein each of the plurality of zones includes a portion of each of memory blocks included in different memory dies.
10 . A method of operating a storage device, the method comprising:
storing write data received from an external device in one or more of a plurality of slots in a buffer memory device;
generating map data corresponding to the write data;
storing the map data in a zone buffer, which is implemented in an internal memory of a memory controller and correspond to a target zone in a memory device in which the write data is to be stored; and
storing the write data in the target zone from the buffer memory device based on the map data,
wherein the map data includes information indicating a position in the buffer memory device in which the write data is stored, and
wherein storing the write data in the target zone is performed based on whether a size of the map data stored in the zone buffer corresponding to the target zone is greater than or equal to a predetermined size.
11 . The method of claim 10 , wherein the map data includes position information indicating the one or more slots in which the write data is stored.
12 . The method of claim 10 , further comprising erasing the map data stored in the zone buffer when the write data is stored in the target zone.
13 . A memory controller comprising:
a map data generator configured to generate map data corresponding to write data based on a position in a buffer memory device in which the write data is stored; and
a plurality of zone buffers implemented in an internal memory of the memory controller and respectively corresponding to a plurality of zones in a memory device,
wherein the map data is stored in a zone buffer corresponding to a target zone of the write data, among the plurality of zone buffers,
wherein the write data is stored in the target zone from the buffer memory device based on the map data, and
wherein when a size of the map data stored in the zone buffer is greater than or equal to a predetermined size, the write data stored in the buffer memory device is stored in the target zone corresponding to the zone buffer.
14 . The memory controller of claim 13 , wherein when the write data is stored in the target zone, the map data stored in the zone buffer is erased.
15 . The memory controller of claim 13 , wherein the map data generator includes a plurality of sectors, the map data being stored in one or more of the plurality of sectors.
16 . The memory controller of claim 15 , wherein when the map data is stored in the zone buffer, the map data stored in the one or more sectors is erased.