KR20190030463A - Memory system and operating method thereof - Google Patents

Memory system and operating method thereof Download PDF

Info

Publication number
KR20190030463A
KR20190030463A KR1020170117939A KR20170117939A KR20190030463A KR 20190030463 A KR20190030463 A KR 20190030463A KR 1020170117939 A KR1020170117939 A KR 1020170117939A KR 20170117939 A KR20170117939 A KR 20170117939A KR 20190030463 A KR20190030463 A KR 20190030463A
Authority
KR
South Korea
Prior art keywords
memory block
memory
block group
life cycle
data
Prior art date
Application number
KR1020170117939A
Other languages
Korean (ko)
Inventor
이경수
Original Assignee
에스케이하이닉스 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 에스케이하이닉스 주식회사 filed Critical 에스케이하이닉스 주식회사
Priority to KR1020170117939A priority Critical patent/KR20190030463A/en
Publication of KR20190030463A publication Critical patent/KR20190030463A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/10Programming or data input circuits
    • G11C16/14Circuits for erasing electrically, e.g. erase voltage switching circuits
    • G11C16/16Circuits for erasing electrically, e.g. erase voltage switching circuits for erasing blocks, e.g. arrays, words, groups

Abstract

According to the present invention, disclosed are a memory system and an operation method thereof capable of increasing performance of the memory system. The memory system comprises: a plurality of memory block groups; memory blocks individually included in the memory block groups; a memory block group management unit allocating life cycles different from each other to each of the memory block groups and organizing the memory block groups in a chain in order of the life cycles; a life cycle prediction unit predicting a life cycle of data and selecting any one of the memory block groups based on the prediction; and a recording control unit recording the data in the selected memory block group.

Description

메모리 시스템 및 그것의 동작 방법{Memory system and operating method thereof}[0001] The present invention relates to a memory system and an operating method thereof,

본 발명은 메모리 시스템 및 그것의 동작 방법에 관한 것으로, 보다 구체적으로는 데이터의 생명 주기에 따라 메모리 블록을 가변적으로 제어하는 방법에 관한 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a memory system and an operation method thereof, and more particularly, to a method for variably controlling a memory block according to a life cycle of data.

메모리 장치는 휘발성(volatile) 메모리 장치와 비휘발성(non-volatile) 메모리 장치로 분류된다. 휘발성 메모리 장치에서는 전원(power)이 제거될 때 데이터는 유지되지 않는다. 그러나, 비휘발성 메모리 장치에서는 전원이 제거되더라도 데이터는 유지된다. 비휘발성 메모리 장치의 예들로서 ROM(read only memory), 또는 EEPROM (Electrically Erasable Programmable Read-Only Memory) 등이 있다.Memory devices are classified as volatile memory devices and non-volatile memory devices. In a volatile memory device, data is not retained when power is removed. However, in the nonvolatile memory device, data is retained even if power is removed. Examples of non-volatile memory devices include read only memory (ROM), or electrically erasable programmable read-only memory (EEPROM).

플래시(flash) EEPROM으로 소개된 플래시 메모리 장치의 구조와 동작은 종래의 EEPROM의 구조와 동작과 서로 다르다. 상기 플래시 메모리 장치는 블락(block) 단위로 전기적 소거(electric erase) 동작을 수행하고 비트 단위로 프로그램 동작을 수행할 수 있다.The structure and operation of a flash memory device introduced as a flash EEPROM are different from those of a conventional EEPROM. The flash memory device may perform an electric erase operation on a block basis and perform a program operation on a bit basis.

플래시 메모리 장치는 프리(free) 메모리 블록을 확보하기 위한 가비지 컬렉션 동작(garbage collection operation)을 수행할 수 있다. 이러한 가비지 컬렉션 동작에 의해 플래시 메모리 장치의 성능이 저하될 수 있다. 따라서 가비지 컬렉션 동작을 효율적으로 수행할 수 있는 기술에 대한 요구가 증가하고 있다.The flash memory device may perform a garbage collection operation to obtain a free memory block. Such a garbage collection operation may degrade the performance of the flash memory device. Therefore, there is a growing demand for a technique that can efficiently perform the garbage collection operation.

본 발명의 실시예는 메모리 시스템의 성능을 개선할 수 있는 메모리 시스템의 동작 방법을 제공한다. Embodiments of the present invention provide a method of operating a memory system that can improve the performance of a memory system.

본 발명의 실시예에 따른 메모리 시스템은, 다수의 메모리 블록 그룹들; 상기 다수의 메모리 블록 그룹들 각각에 포함된 메모리 블록들; 상기 다수의 메모리 블록 그룹들 각각에 서로 상이한 생명 주기를 할당하고, 상기 생명 주기의 순서로 상기 다수의 메모리 블록 그룹들을 체인(chain)으로 구성하는 메모리 블록 그룹 관리부; 데이터의 생명 주기를 예측하고, 상기 예측에 기초하여 상기 다수의 메모리 블록 그룹들 중 어느 하나를 선택하도록 구성된 생명 주기 예측부; 및 상기 선택된 메모리 블록 그룹에 상기 데이터를 기입하도록 구성된 기입 제어부를 포함한다.A memory system according to an embodiment of the present invention includes: a plurality of memory block groups; Memory blocks included in each of the plurality of memory block groups; A memory block group management unit allocating different life cycles to each of the plurality of memory block groups and configuring the plurality of memory block groups in a chain in the order of the life cycle; A life cycle prediction unit configured to predict a life cycle of data and select one of the plurality of memory block groups based on the prediction; And a write control unit configured to write the data into the selected memory block group.

본 발명의 실시예에 따른 메모리 시스템의 동작 방법은, 데이터를 수신하는 수신 단계; 상기 데이터에 대한 패턴 분석을 통해 생명 주기를 예측하는 예측 단계; 다수의 메모리 블록 그룹들 중 상기 데이터의 상기 예측된 생명 주기에 대응하는 제1 메모리 블록 그룹을 선택하는 단계; 상기 제1 메모리 블록 그룹과 상이한 생명 주기가 할당된 제2 메모리 블록 그룹에 포함된 메모리 블록을 추출하여 상기 제1 메모리 블록 그룹에 할당하는 할당 단계; 및 상기 메모리 블록에 상기 데이터를 저장하는 저장 단계를 포함한다.A method of operating a memory system according to an embodiment of the present invention includes: receiving data; A prediction step of predicting a life cycle through pattern analysis of the data; Selecting a first memory block group corresponding to the predicted life cycle of the data among a plurality of memory block groups; An allocation step of extracting a memory block included in a second memory block group to which a life cycle different from the first memory block group is allocated and assigning the memory block to the first memory block group; And a storing step of storing the data in the memory block.

본 발명의 실시예에 따른 메모리 시스템은, 순차적으로 증가하는 제1 내지 제N(N은 3 이상의 자연수) 생명 주기가 각각 할당된 제1 내지 제N 메모리 블록 그룹들; 상기 제1 내지 제N 메모리 블록 그룹들을 순서대로 데이지 체인(daisy chain)으로 연결하도록 구성된 메모리 블록 그룹 관리부; 데이터의 생명 주기를 예측하고, 상기 예측에 기초하여 상기 제1 내지 제N 메모리 블록 그룹들 중 어느 하나를 선택하도록 구성된 생명 주기 예측부; 및 상기 선택된 메모리 블록 그룹에 상기 데이터를 기입하도록 구성된 기입 제어부를 포함하고, 상기 선택된 메모리 블록 그룹에 포함된 소거 메모리 블록이 소진된 때, 상기 메모리 블록 그룹 관리부는 상기 선택된 메모리 블록 그룹에 제N 생명 주기를 할당하도록 구성된다.A memory system according to an embodiment of the present invention includes first to Nth memory block groups to which first to Nth (N is a natural number equal to or more than 3) life cycles are sequentially allocated, respectively; A memory block group management unit configured to sequentially connect the first to Nth memory block groups in a daisy chain; A life cycle prediction unit configured to predict a life cycle of data and to select any one of the first to Nth memory block groups based on the prediction; And a write control unit configured to write the data into the selected memory block group when the erase memory block included in the selected memory block group is exhausted, Period.

본 기술은 데이터의 생명 주기에 따라 메모리 블록을 가변적으로 제어하여 메모리 시스템의 성능을 개선할 수 있다.This technique can improve the performance of the memory system by variably controlling the memory block according to the life cycle of the data.

도 1은 본 발명의 실시예에 따른 메모리 시스템을 설명하기 위한 도면이다.
도 2는 도 1의 메모리 컨트롤러를 설명하기 위한 도면이다.
도 3은 도 1의 메모리 장치를 설명하기 위한 도면이다.
도 4는 도 3의 메모리 블록을 설명하기 위한 도면이다.
도 5는 본 발명의 실시예에 따른 메모리 블록 그룹을 설명하기 위한 도면이다.
도 6은 본 발명의 실시예에 따른 메모리 컨트롤러를 설명하기 위한 도면이다.
도 7은 본 발명의 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.
도 8은 본 발명의 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.
도 9는 본 발명의 또 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.
도 10은 본 발명의 또 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.
도 11은 본 발명의 또 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.
도 12는 본 발명의 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 흐름도이다.
도 13은 본 발명의 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 흐름도이다.
도 14는 본 발명의 실시예에 따른 그룹 메타 데이터의 구성을 설명하기 위한 흐름도이다.
도 15는 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설명하기 위한 도면이다.
도 16은 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설명하기 위한 도면이다.
도 17은 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설명하기 위한 도면이다.
도 18은 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설기 위한 도면이다.
1 is a diagram for explaining a memory system according to an embodiment of the present invention.
2 is a diagram for explaining the memory controller of FIG.
3 is a diagram for explaining the memory device of FIG.
FIG. 4 is a diagram for explaining the memory block of FIG. 3. FIG.
5 is a view for explaining a memory block group according to an embodiment of the present invention.
6 is a diagram for explaining a memory controller according to an embodiment of the present invention.
7 is a diagram for explaining a memory block group management method according to an embodiment of the present invention.
8 is a view for explaining a memory block group management method according to another embodiment of the present invention.
9 is a diagram for explaining a memory block group management method according to another embodiment of the present invention.
FIG. 10 is a diagram for explaining a memory block group management method according to another embodiment of the present invention.
11 is a diagram for explaining a method of managing a memory block group according to another embodiment of the present invention.
12 is a flowchart illustrating a method of managing a memory block group according to an embodiment of the present invention.
13 is a flowchart illustrating a method of managing a memory block group according to another embodiment of the present invention.
FIG. 14 is a flowchart illustrating a configuration of group metadata according to an embodiment of the present invention.
15 is a diagram for explaining another embodiment of the memory system including the memory controller shown in Fig.
16 is a diagram for explaining another embodiment of the memory system including the memory controller shown in FIG.
17 is a diagram for explaining another embodiment of the memory system including the memory controller shown in Fig.
18 is a diagram for explaining another embodiment of the memory system including the memory controller shown in Fig.

본 발명의 이점 및 특징, 그리고 그것을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시 예들을 통해 설명될 것이다. 그러나 본 발명은 여기에서 설명되는 실시 예들에 한정되지 않고 다른 형태로 구체화될 수도 있다. 단지, 본 실시 예들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 본 발명의 기술적 사상을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여 제공되는 것이다.BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the present invention, and how to accomplish it, will be described with reference to the embodiments described in detail below with reference to the accompanying drawings. However, the present invention is not limited to the embodiments described herein but may be embodied in other forms. The embodiments are provided so that those skilled in the art can easily carry out the technical idea of the present invention to those skilled in the art.

명세서 전체에서, 어떤 부분이 다른 부분과 "연결"되어 있다고 할 때, 이는 "직접적으로 연결"되어 있는 경우뿐 아니라, 그 중간에 다른 소자를 사이에 두고 "간접적으로 연결"되어 있는 경우도 포함한다. 명세서 전체에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미한다.Throughout the specification, when a part is referred to as being "connected" to another part, it includes not only "directly connected" but also "indirectly connected" . Throughout the specification, when an element is referred to as "comprising ", it means that it can include other elements as well, without excluding other elements unless specifically stated otherwise.

도 1은 본 발명의 실시예에 따른 메모리 시스템을 설명하기 위한 도면이다.1 is a diagram for explaining a memory system according to an embodiment of the present invention.

도 1을 참조하면, 메모리 시스템(Memory System; 1000)은 데이터가 저장되는 메모리 장치(Memory Device; 1100)와, 호스트(Host; 2000)의 제어에 따라 메모리 장치(1100)를 제어하는 메모리 컨트롤러(Memory Controller; 1200)를 포함할 수 있다. 1, a memory system 1000 includes a memory device 1100 for storing data, a memory controller 1100 for controlling the memory device 1100 under the control of a host 2000, A memory controller 1200, and the like.

호스트(2000)는 PCI-E(Peripheral Component Interconnect - Express), ATA(Advanced Technology Attachment), SATA(Serial ATA), PATA(Parallel ATA), 또는 SAS(serial attached SCSI)와 같은 인터페이스 프로토콜을 사용하여 메모리 시스템(1000)과 통신할 수 있다. 또한 호스트(2000)와 메모리 시스템(1000) 간의 인터페이스 프로토콜들은 상술한 예에 한정되지 않으며, USB(Universal Serial Bus), MMC(Multi-Media Card), ESDI(Enhanced Small Disk Interface), 또는 IDE(Integrated Drive Electronics) 등과 같은 다른 인터페이스 프로토콜들 중 하나일 수 있다.The host 2000 may be connected to the memory 2000 using an interface protocol such as Peripheral Component Interconnect-Express (PCI-E), Advanced Technology Attachment (ATA), Serial ATA (SATA), Parallel ATA (PATA) And can communicate with the system 1000. In addition, the interface protocols between the host 2000 and the memory system 1000 are not limited to the above-described examples. For example, USB (Universal Serial Bus), Multi-Media Card (MMC), Enhanced Small Disk Interface (ESDI) Drive Electronics) and the like.

메모리 컨트롤러(1200)는 메모리 시스템(1000)의 동작을 전반적으로 제어하며, 호스트(2000)와 메모리 장치(1100) 사이의 데이터 교환을 제어할 수 있다. 예를 들면, 메모리 컨트롤러(1200)는 호스트(2000)의 요청에 따라 메모리 장치(1100)를 제어하여 데이터를 프로그램(program)하거나 리드(read)할 수 있다. 또한, 메모리 컨트롤러(1200)는 메모리 장치(1100)에 포함된 메인 메모리 블록들 및 서브 메모리 블록들의 정보를 저장하고, 프로그램 동작을 위해 로딩된 데이터 량에 따라 메인 메모리 블록 또는 서브 메모리 블록에 프로그램 동작이 수행되도록 메모리 장치(1100)를 선택할 수 있다. 실시예에 따라, 메모리 장치(1100)는 DDR SDRAM(Double Data Rate Synchronous Dynamic Random Access Memory), LPDDR4(Low Power Double Data Rate4) SDRAM, GDDR(Graphics Double Data Rate) SDRAM, LPDDR(Low Power DDR), RDRAM(Rambus Dynamic Random Access Memory) 또는 플래시 메모리(FLASH Memory)를 포함할 수 있다. The memory controller 1200 controls the overall operation of the memory system 1000 and can control the exchange of data between the host 2000 and the memory device 1100. For example, the memory controller 1200 may control the memory device 1100 in response to a request from the host 2000 to program or read data. In addition, the memory controller 1200 stores information on main memory blocks and sub memory blocks included in the memory device 1100, and performs program operation on a main memory block or a sub memory block according to the amount of data loaded for the program operation The memory device 1100 may be selected to perform. According to an embodiment, the memory device 1100 may be a DDR SDRAM, a Low Power Double Data Rate (SDRAM) SDRAM, a GDDR (Graphics Double Data Rate) SDRAM, a LPDDR (Low Power DDR) A Rambus Dynamic Random Access Memory (RDRAM) or a FLASH memory.

메모리 장치(1100)는 메모리 컨트롤러(1200)의 제어에 따라 프로그램(program), 리드(read) 또는 소거(erase) 동작을 수행할 수 있다. The memory device 1100 may perform a program, read, or erase operation under the control of the memory controller 1200. [

도 2는 도 1의 메모리 컨트롤러를 설명하기 위한 도면이다. 2 is a diagram for explaining the memory controller of FIG.

도 2를 참고하면, 메모리 컨트롤러(1200)는 프로세서부(Processor; 710), 메모리 버퍼부(Memory Buffer; 720), 에러 정정부(ECC; 730), 호스트 인터페이스(Host Interface; 740), 버퍼 제어부(Buffer Control Circuit; 750), 메모리 인터페이스(Memory Interface; 760), 데이터 랜더마이저(Data Randomizer; 770) 그리고 버스(Bus; 780)를 포함할 수 있다.2, the memory controller 1200 includes a processor 710, a memory buffer 720, an error correcting unit (ECC) 730, a host interface 740, A buffer control circuit 750, a memory interface 760, a data randomizer 770, and a bus 780.

버스(780)는 메모리 컨트롤러(1200)의 구성 요소들 사이에 채널(channel)을 제공하도록 구성될 수 있다.The bus 780 may be configured to provide a channel between components of the memory controller 1200.

프로세서부(710)는 메모리 컨트롤러(1200)의 제반 동작을 제어하고, 논리 연산을 수행할 수 있다. 프로세서부(710)는 호스트 인터페이스(740)를 통해 외부의 호스트(2000)와 통신하고, 메모리 인터페이스(760)를 통해 메모리 장치(1100)와 통신할 수 있다. 또한 프로세서부(710)는 버퍼 제어부(750)를 통해 메모리 버퍼부(720)와 통신할 수 있다. 프로세서부(710)는 메모리 버퍼부(720)를 동작 메모리, 캐시 메모리(cache memory) 또는 버퍼 메모리(buffer memory)로 사용하여 메모리 시스템(1000)의 동작을 제어할 수 있다.The processor unit 710 controls all operations of the memory controller 1200 and can perform logical operations. The processor unit 710 may communicate with the external host 2000 via the host interface 740 and with the memory device 1100 via the memory interface 760. [ The processor unit 710 can communicate with the memory buffer unit 720 through the buffer control unit 750. [ The processor unit 710 may control the operation of the memory system 1000 by using the memory buffer unit 720 as an operation memory, a cache memory, or a buffer memory.

프로세서부(710)는 호스트(2000)로부터 입력된 다수의 커맨드들을 큐잉(queuing)할 수 있다. 이러한 동작을 멀티-큐(multi-queue)라고 부른다. 이때 큐잉된 커맨드를 태그(Tag)라고 부를 수 있다. 프로세서부(710)는 큐잉된 다수의 태그들을 순차적으로 메모리 장치(1100)에 전달할 수 있다. 또한 프로세서부(710)는 큐잉된 다수의 태그들의 순서를 변경하여 메모리 장치(1100)에 전달할 수 있다. 다시 말해 프로세서부(710)는 큐잉된 다수의 태그들을 효율적으로 처리하기 위하여 우선 순위 부여 또는 상호 참조 등의 다양한 방법을 활용할 수 있다.The processor unit 710 may queue a plurality of commands input from the host 2000. This operation is called a multi-queue. At this time, the queued command may be called a tag. The processor unit 710 may sequentially transmit a plurality of queued tags to the memory device 1100. The processor unit 710 may also change the order of the plurality of queued tags and transmit them to the memory device 1100. In other words, the processor unit 710 may utilize various methods such as prioritization or cross-referencing in order to efficiently process a plurality of queued tags.

메모리 버퍼부(720)는 프로세서부(710)의 동작 메모리, 캐시 메모리 또는 버퍼 메모리로 사용될 수 있다. 메모리 버퍼부(720)는 프로세서부(710)가 실행하는 코드들 및 커맨드들을 저장할 수 있다. 메모리 버퍼부(720)는 프로세서부(710)에 의해 처리되는 데이터를 저장할 수 있다. 메모리 버퍼부(720)는 SRAM(Static RAM), 또는 DRAM(Dynamic RAM)을 포함할 수 있다.The memory buffer unit 720 may be used as an operation memory, a cache memory, or a buffer memory of the processor unit 710. The memory buffer unit 720 may store codes and commands executed by the processor unit 710. The memory buffer unit 720 may store data processed by the processor unit 710. The memory buffer unit 720 may include SRAM (Static RAM) or DRAM (Dynamic RAM).

에러 정정부(730)는 에러 정정을 수행할 수 있다. 에러 정정부(730)는 메모리 인터페이스(760)를 통해 메모리 장치(1100)에 기입될 데이터에 기반하여 에러 정정 인코딩(ECC encoding)을 수행할 수 있다. 에러 정정 인코딩 된 데이터는 메모리 인터페이스(760)를 통해 메모리 장치(1100)로 전달될 수 있다. 에러 정정부(730)는 메모리 장치(1100)로부터 메모리 인터페이스(760)를 통해 수신되는 데이터에 대해 에러 정정 디코딩(ECC decoding)을 수행할 수 있다. 예시적으로, 에러 정정부(730)는 메모리 인터페이스(760)의 구성 요소로서 메모리 인터페이스(760)에 포함될 수 있다.The error correction unit 730 can perform error correction. Error correction unit 730 may perform error correction encoding (ECC encoding) based on data to be written to memory device 1100 via memory interface 760. [ The error correction encoded data may be passed to the memory device 1100 via the memory interface 760. Error correction unit 730 may perform error correction decoding (ECC decoding) on data received from memory device 1100 via memory interface 760. [ Illustratively, error correction 730 may be included in memory interface 760 as a component of memory interface 760.

호스트 인터페이스(740)는 프로세서부(710)의 제어에 따라, 외부의 호스트(2000)와 통신하도록 구성된다. 호스트 인터페이스(740)는 USB (Universal Serial Bus), SATA (Serial AT Attachment), SAS (Serial Attached SCSI), HSIC (High Speed Interchip), SCSI (Small Computer System Interface), PCI (Peripheral Component Interconnection), PCIe (PCI express), NVMe (NonVolatile Memory express), UFS (Universal Flash Storage), SD (Secure Digital), MMC (MultiMedia Card), eMMC (embedded MMC), DIMM (Dual In-line Memory Module), RDIMM (Registered DIMM), LRDIMM (Load Reduced DIMM) 등과 같은 다양한 통신 방식들 중 적어도 하나를 이용하여 통신하도록 구성될 수 있다.The host interface 740 is configured to communicate with an external host 2000 under the control of the processor unit 710. The host interface 740 may be any one of a Universal Serial Bus (USB), a Serial AT Attachment (SAS), a Serial Attached SCSI (SAS), a High Speed Interchip (HSIC), a Small Computer System Interface (SCSI), a Peripheral Component Interconnection (PCI Express), Nonvolatile Memory Express (NVMe), Universal Flash Storage (UFS), Secure Digital (SD), MultiMedia Card (MMC), Embedded MMC, Dual In-line Memory Module (DIMM) (DIMM), a Load Reduced DIMM (LRDIMM), and the like.

버퍼 제어부(750)는 프로세서부(710)의 제어에 따라, 메모리 버퍼부(720)를 제어하도록 구성된다.The buffer control unit 750 is configured to control the memory buffer unit 720 under the control of the processor unit 710.

메모리 인터페이스(760)는 프로세서부(710)의 제어에 따라, 메모리 장치(1100)와 통신하도록 구성된다. 메모리 인터페이스(760)는 채널을 통해 커맨드, 어드레스 및 데이터를 메모리 장치(1100)와 통신할 수 있다. The memory interface 760 is configured to communicate with the memory device 1100 under the control of the processor unit 710. Memory interface 760 may communicate commands, addresses, and data with memory device 1100 over the channel.

예시적으로, 메모리 컨트롤러(1200)는 메모리 버퍼부(720) 및 버퍼 제어부(750)를 포함하지 않을 수 있다. Illustratively, the memory controller 1200 may not include the memory buffer unit 720 and the buffer control unit 750.

예시적으로, 프로세서부(710)는 코드들을 이용하여 메모리 컨트롤러(1200)의 동작을 제어할 수 있다. 프로세서부(710)는 메모리 컨트롤러(1200)의 내부에 제공되는 불휘발성 메모리 장치(예를 들어, Read Only Memory)로부터 코드들을 로드할 수 있다. 다른 예로서, 프로세서부(710)는 메모리 장치(1100)로부터 메모리 인터페이스(760)를 통해 코드들을 로드(load)할 수 있다.Illustratively, the processor unit 710 can control the operation of the memory controller 1200 using codes. The processor unit 710 may load the codes from a non-volatile memory device (e.g., Read Only Memory) provided in the memory controller 1200. As another example, the processor portion 710 may load the codes from the memory device 1100 via the memory interface 760. [

데이터 랜더마이저(Data Randomizer; 770)는 데이터를 랜덤화(randomizing) 하거나 랜덤화 된 데이터를 디랜덤화(de-randomizing) 할 수 있다. 데이터 랜더마이저(770)는 메모리 인터페이스(760)를 통해 메모리 장치(1100)에 기입될 데이터에 대해 데이터 랜덤화 동작을 수행할 수 있다. 랜덤화 된 데이터는 메모리 인터페이스(760)를 통해 메모리 장치(1100)로 전달될 수 있다. 데이터 랜더마이저(770)는 메모리 장치(1100)로부터 메모리 인터페이스(760)를 통해 수신되는 데이터에 대해 데이터 디랜덤화 동작을 수행할 수 있다. 예시적으로, 데이터 랜더마이저(770)는 메모리 인터페이스(760)의 구성 요소로서 메모리 인터페이스(760)에 포함될 수 있다.A data randomizer 770 may randomize data or de-randomize the randomized data. Data randomizer 770 may perform a data randomization operation on data to be written to memory device 1100 via memory interface 760. [ The randomized data may be transferred to the memory device 1100 via the memory interface 760. Data randomizer 770 may perform a data de-randomization operation on data received from memory device 1100 via memory interface 760. [ Illustratively, the data renderer 770 may be included in the memory interface 760 as a component of the memory interface 760.

예시적으로, 메모리 컨트롤러(1200)의 버스(780)는 제어 버스(control bus) 및 데이터 버스(data bus)로 구분될 수 있다. 데이터 버스는 메모리 컨트롤러(1200) 내에서 데이터를 전송하고, 제어 버스는 메모리 컨트롤러(1200) 내에서 커맨드, 어드레스와 같은 제어 정보를 전송하도록 구성될 수 있다. 데이터 버스와 제어 버스는 서로 분리되며, 상호간에 간섭하거나 영향을 주지 않을 수 있다. 데이터 버스는 호스트 인터페이스(740), 버퍼 제어부(750), 에러 정정부(730) 및 메모리 인터페이스(760)에 연결될 수 있다. 제어 버스는 호스트 인터페이스(740), 프로세서부(710), 버퍼 제어부(750), 메모리 버퍼부(720) 및 메모리 인터페이스(760)에 연결될 수 있다.Illustratively, the bus 780 of the memory controller 1200 can be divided into a control bus and a data bus. The data bus may transmit data within the memory controller 1200 and the control bus may be configured to transmit control information, such as commands, addresses, within the memory controller 1200. The data bus and the control bus are separated from each other and may not interfere with each other or affect each other. The data bus may be connected to the host interface 740, the buffer control unit 750, the error correction unit 730 and the memory interface 760. The control bus may be connected to the host interface 740, the processor unit 710, the buffer control unit 750, the memory buffer unit 720 and the memory interface 760.

도 3은 도 1의 메모리 장치를 설명하기 위한 도면이다.3 is a diagram for explaining the memory device of FIG.

도 3을 참조하면, 메모리 장치(1100)는 데이터가 저장되는 메모리 셀 어레이(100)를 포함할 수 있다. 메모리 장치(1100)는 메모리 셀 어레이(100)에 데이터를 저장하기 위한 프로그램 동작(program operation), 저장된 데이터를 출력하기 위한 리드 동작(read operation) 및 저장된 데이터를 소거하기 위한 소거 동작(erase operation)을 수행하도록 구성된 주변 회로들(200)을 포함할 수 있다. 메모리 장치(1100)는 메모리 컨트롤러(도 1의 1200)의 제어에 따라 주변 회로들(200)을 제어하는 제어 로직(300)을 포함할 수 있다. Referring to FIG. 3, a memory device 1100 may include a memory cell array 100 in which data is stored. The memory device 1100 includes a program operation for storing data in the memory cell array 100, a read operation for outputting the stored data, and an erase operation for erasing the stored data, (Not shown). Memory device 1100 may include control logic 300 that controls peripheral circuits 200 under the control of a memory controller (1200 of FIG. 1).

메모리 셀 어레이(100)는 다수의 메모리 블록들(MB1~MBk; 110 (k는 양의 정수))을 포함할 수 있다. 각각의 메모리 블록들(MB1~MBk; 110)에는 로컬 라인들(local lines; LL)과 비트 라인들(BL1~BLn; n은 양의 정수)이 연결될 수 있다. 예를 들면, 로컬 라인들(LL)은 제1 셀렉트 라인(first select line), 제2 셀렉트 라인(second select line), 상기 제1 및 제2 셀렉트 라인들 사이에 배열된 다수의 워드 라인들(word lines)을 포함할 수 있다. 또한, 로컬 라인들(LL)은 제1 셀렉트 라인과 워드 라인들 사이, 제2 셀렉트 라인과 워드 라인들 사이에 배열된 더미 라인들을 포함할 수 있다. 여기서, 제1 셀렉트 라인은 소스 셀렉트 라인일 수 있고, 제2 셀렉트 라인은 드레인 셀렉트 라인일 수 있다. 예를 들면, 로컬 라인들(LL)은 워드 라인들, 드레인 및 소스 셀렉트 라인들 및 소스 라인들(source lines, SL)을 포함할 수 있다. 예를 들면, 로컬 라인들(LL)은 더미 라인들(dummy lines)을 더 포함할 수 있다. 예를 들면, 로컬 라인들(LL)은 파이프 라인들(pipe lines)을 더 포함할 수 있다. 로컬 라인들(LL)은 메모리 블록들(MB1~MBk; 110)에 각각 연결될 수 있으며, 비트 라인들(BL1~BLn)은 메모리 블록들(MB1~MBk; 110)에 공통으로 연결될 수 있다. 메모리 블록들(MB1~MBk; 110)은 2차원 또는 3차원 구조로 구현될 수 있다. 예를 들면, 2차원 구조의 메모리 블록들(110)에서 메모리 셀들은 기판에 평행한 방향으로 배열될 수 있다. 예를 들면, 3차원 구조의 메모리 블록들(110)에서 메모리 셀들은 기판에 수직 방향으로 적층될 수 있다. The memory cell array 100 may include a plurality of memory blocks MB1 to MBk 110 (where k is a positive integer). Local lines LL and bit lines BL1 to BLn (where n is a positive integer) may be connected to each of the memory blocks MB1 to MBk 110. [ For example, the local lines LL may include a first select line, a second select line, a plurality of word lines arranged between the first and second select lines word lines. In addition, the local lines LL may include dummy lines arranged between the first select line and the word lines, and between the second select line and the word lines. Here, the first select line may be a source select line, and the second select line may be a drain select line. For example, local lines LL may include word lines, drain and source select lines, and source lines (SL). For example, the local lines LL may further include dummy lines. For example, the local lines LL may further include pipe lines. The local lines LL may be connected to the memory blocks MB1 to MBk 110 respectively and the bit lines BL1 to BLn may be connected to the memory blocks MB1 to MBk 110 in common. The memory blocks MB1 to MBk 110 may be implemented in a two-dimensional or three-dimensional structure. For example, the memory cells in the two-dimensional structure memory blocks 110 may be arranged in a direction parallel to the substrate. For example, in memory blocks 110 of a three-dimensional structure, memory cells may be stacked in a direction perpendicular to the substrate.

주변 회로들(200)은 제어 로직(300)의 제어에 따라 선택된 메모리 블록(110)의 프로그램, 리드 및 소거 동작을 수행하도록 구성될 수 있다. 예를 들면, 주변 회로들(200)은 제어 로직(300)의 제어에 따라 제1 셀렉트 라인, 제2 셀렉트 라인 및 워드 라인들에 검증 전압 및 패스 전압들을 공급하고, 제1 셀렉트 라인, 제2 셀렉트 라인 및 워드 라인들을 선택적으로 디스차지할 수 있고, 워드 라인들 중 선택된 워드 라인에 연결된 메모리 셀들을 검증할 수 있다. 예를 들면, 주변 회로들(200)은 전압 생성 회로(voltage generating circuit; 210), 로우 디코더(row decoder; 220), 페이지 버퍼 그룹(page buffer group; 230), 컬럼 디코더(column decoder; 240), 입출력 회로(input/output circuit; 250) 및 센싱 회로(sensing circuit; 260)를 포함할 수 있다. The peripheral circuits 200 may be configured to perform the program, read, and erase operations of the selected memory block 110 under the control of the control logic 300. For example, the peripheral circuits 200 supply the verify voltage and the pass voltages to the first select line, the second select line and the word lines under the control of the control logic 300, Select lines and word lines, and verify memory cells connected to a selected one of the word lines. For example, the peripheral circuits 200 may include a voltage generating circuit 210, a row decoder 220, a page buffer group 230, a column decoder 240, An input / output circuit 250, and a sensing circuit 260. The input /

전압 생성 회로(210)는 동작 신호(OP_CMD)에 응답하여 프로그램, 리드 및 소거 동작들에 사용되는 다양한 동작 전압들(Vop)을 생성할 수 있다. 또한, 전압 생성 회로(210)는 동작 신호(OP_CMD)에 응답하여 로컬 라인들(LL)을 선택적으로 디스차지할 수 있다. 예를 들면, 전압 생성 회로(210)는 제어 로직(300)의 제어에 따라 프로그램 전압, 검증 전압, 패스 전압들, 턴온 전압, 리드 전압, 소거 전압 및 소스 라인 전압 등을 생성할 수 있다. The voltage generation circuit 210 may generate various operating voltages Vop used in program, read, and erase operations in response to the operation signal OP_CMD. In addition, the voltage generation circuit 210 may selectively discharge the local lines LL in response to the operation signal OP_CMD. For example, the voltage generating circuit 210 may generate a program voltage, a verify voltage, pass voltages, a turn-on voltage, a read voltage, an erase voltage, and a source line voltage according to the control of the control logic 300.

로우 디코더(row decoder; 220)는 로우 어드레스(RADD)에 응답하여 동작 전압들(Vop)을 선택된 메모리 블록(110)에 연결된 로컬 라인들(LL)에 전달할 수 있다. The row decoder 220 may transmit the operating voltages Vop to the local lines LL connected to the selected memory block 110 in response to the row address RADD.

페이지 버퍼 그룹(230)은 비트 라인들(BL1~BLn)에 연결된 다수의 페이지 버퍼들(PB1~PBn; 231)을 포함할 수 있다. 페이지 버퍼들(PB1~PBn; 231)은 페이지 버퍼 제어 신호들(PBSIGNALS)에 응답하여 동작할 수 있다. 예를 들면, 페이지 버퍼들(PB1~PBn; 231)은 비트 라인들(BL1~BLn)을 통해 수신된 데이터를 임시로 저장하거나, 리드 또는 검증 동작 시, 비트 라인들(BL1~BLn)의 전압 또는 전류를 센싱(sensing)할 수 있다. The page buffer group 230 may include a plurality of page buffers PB1 to PBn 231 connected to the bit lines BL1 to BLn. The page buffers PB1 to PBn 231 may operate in response to the page buffer control signals PBSIGNALS. For example, the page buffers PB1 to PBn 231 may temporarily store data received via the bit lines BL1 to BLn, or may not store the voltages of the bit lines BL1 to BLn Or the current can be sensed.

컬럼 디코더(240)는 컬럼 어드레스(CADD)에 응답하여 입출력 회로(250)와 페이지 버퍼 그룹(230) 사이에서 데이터를 전달할 수 있다. 예를 들면, 컬럼 디코더(240)는 데이터 라인들(DL)을 통해 페이지 버퍼들(231)과 데이터를 주고받거나, 컬럼 라인들(CL)을 통해 입출력 회로(250)와 데이터를 주고받을 수 있다. The column decoder 240 may transfer data between the input / output circuit 250 and the page buffer group 230 in response to the column address CADD. For example, the column decoder 240 may exchange data with the page buffers 231 via the data lines DL, or may exchange data with the input / output circuit 250 through the column lines CL .

입출력 회로(250)는 메모리 컨트롤러(도 1의 1200)로부터 전달받은 커맨드(CMD) 및 어드레스(ADD)를 제어 로직(300)에 전달하거나, 데이터(DATA)를 컬럼 디코더(240)와 주고받을 수 있다. The input / output circuit 250 transfers the command CMD and the address ADD received from the memory controller 1200 (FIG. 1) to the control logic 300 or the data DATA to / from the column decoder 240 have.

센싱 회로(260)는 리드 동작(read operation) 또는 검증 동작(verify operation)시, 허용 비트(VRY_BIT<#>)에 응답하여 기준 전류를 생성하고, 페이지 버퍼 그룹(230)으로부터 수신된 센싱 전압(VPB)과 기준 전류에 의해 생성된 기준 전압을 비교하여 패스 신호(PASS) 또는 페일 신호(FAIL)를 출력할 수 있다. The sensing circuit 260 generates a reference current in response to a permission bit VRY_BIT <#> at the time of a read operation or a verify operation and outputs a sensing voltage VPB) and the reference voltage generated by the reference current to output the pass signal PASS or the fail signal FAIL.

제어 로직(300)은 커맨드(CMD) 및 어드레스(ADD)에 응답하여 동작 신호(OP_CMD), 로우 어드레스(RADD), 페이지 버퍼 제어 신호들(PBSIGNALS) 및 허용 비트(VRY_BIT<#>)를 출력하여 주변 회로들(200)을 제어할 수 있다. 또한, 제어 로직(300)은 패스 또는 페일 신호(PASS 또는 FAIL)에 응답하여 검증 동작이 패스 또는 페일 되었는지를 판단할 수 있다. The control logic 300 outputs the operation signal OP_CMD, the row address RADD, the page buffer control signals PBSIGNALS and the permission bit VRY_BIT <# > in response to the command CMD and the address ADD The peripheral circuits 200 can be controlled. In addition, the control logic 300 may determine whether the verify operation has passed or failed in response to the pass or fail signal (PASS or FAIL).

도 4는 도 3의 메모리 블록을 설명하기 위한 도면이다. FIG. 4 is a diagram for explaining the memory block of FIG. 3. FIG.

도 4를 참조하면, 메모리 블록(110)은 제1 셀렉트 라인과 제2 셀렉트 라인 사이에 서로 평행하게 배열된 다수의 워드 라인들이 연결될 수 있다. 여기서, 제1 셀렉트 라인은 소스 셀렉트 라인(SSL)일 수 있고, 제2 셀렉트 라인은 드레인 셀렉트 라인(DSL)일 수 있다. 보다 구체적으로 설명하면, 메모리 블록(110)은 비트 라인들(BL1~BLn)과 소스 라인(SL) 사이에 연결된 다수의 스트링들(strings; ST)을 포함할 수 있다. 비트 라인들(BL1~BLn)은 스트링들(ST)에 각각 연결될 수 있고, 소스 라인(SL)은 스트링들(ST)에 공통으로 연결될 수 있다. 스트링들(ST)은 서로 동일하게 구성될 수 있으므로, 제1 비트 라인(BL1)에 연결된 스트링(ST)을 예를 들어 구체적으로 설명하도록 한다.Referring to FIG. 4, the memory block 110 may be connected to a plurality of word lines arranged in parallel to each other between a first select line and a second select line. Here, the first select line may be a source select line (SSL), and the second select line may be a drain select line (DSL). More specifically, the memory block 110 may include a plurality of strings ST connected between the bit lines BL1 to BLn and the source line SL. The bit lines BL1 to BLn may be respectively connected to the strings ST and the source line SL may be connected to the strings ST in common. Since the strings ST can be configured to be identical to each other, a string ST connected to the first bit line BL1 will be described in detail, for example.

스트링(ST)은 소스 라인(SL)과 제1 비트 라인(BL1) 사이에서 서로 직렬로 연결된 소스 셀렉트 트랜지스터(SST), 다수의 메모리 셀들(F1~F16) 및 드레인 셀렉트 트랜지스터(DST)를 포함할 수 있다. 하나의 스트링(ST)에는 소스 셀렉트 트랜지스터(SST)와 드레인 셀렉트 트랜지스터(DST)가 적어도 하나 이상씩 포함될 수 있으며, 메모리 셀들(F1~F16) 또한 도면에 도시된 개수보다 더 많이 포함될 수 있다.The string ST includes a source select transistor SST, a plurality of memory cells F1 to F16 and a drain select transistor DST connected in series between the source line SL and the first bit line BL1 . One string ST may include at least one of the source select transistor SST and the drain select transistor DST and the memory cells F1 to F16 may also include more than the number shown in the figure.

소스 셀렉트 트랜지스터(SST)의 소스(source)는 소스 라인(SL)에 연결될 수 있고, 드레인 셀렉트 트랜지스터(DST)의 드레인(drain)은 제1 비트 라인(BL1)에 연결될 수 있다. 메모리 셀들(F1~F16)은 소스 셀렉트 트랜지스터(SST)와 드레인 셀렉트 트랜지스터(DST) 사이에서 직렬로 연결될 수 있다. 서로 다른 스트링들(ST)에 포함된 소스 셀렉트 트랜지스터들(SST)의 게이트들은 소스 셀렉트 라인(SSL)에 연결될 수 있고, 드레인 셀렉트 트랜지스터들(DST)의 게이트들은 드레인 셀렉트 라인(DSL)에 연결될 수 있고, 메모리 셀들(F1~F16)의 게이트들은 다수의 워드 라인들(WL1~WL16)에 연결될 수 있다. 서로 다른 스트링들(ST)에 포함된 메모리 셀들 중에서 동일한 워드 라인에 연결된 메모리 셀들의 그룹을 물리 페이지(physical page; PPG)라 할 수 있다. 따라서, 메모리 블록(110)에는 워드 라인들(WL1~WL16)의 개수만큼의 물리 페이지들(PPG)이 포함될 수 있다. The source of the source select transistor SST may be connected to the source line SL and the drain of the drain select transistor DST may be connected to the first bit line BL1. The memory cells F1 to F16 may be connected in series between the source select transistor SST and the drain select transistor DST. The gates of the source select transistors SST included in the different strings ST may be connected to the source select line SSL and the gates of the drain select transistors DST may be connected to the drain select line DSL. And the gates of the memory cells F1 to F16 may be connected to a plurality of word lines WL1 to WL16. A group of memory cells connected to the same word line among the memory cells included in different strings ST may be referred to as a physical page (PPG). Accordingly, the memory block 110 may include physical pages PPG as many as the number of the word lines WL1 to WL16.

하나의 메모리 셀(MC)은 1비트의 데이터를 저장할 수 있다. 이를 통상적으로 싱글 레벨 셀(single level cell; SLC)이라고 부른다. 이 경우 하나의 물리 페이지(PPG)는 하나의 논리 페이지(logical page; LPG) 데이터를 저장할 수 있다. 하나의 논리 페이지(LPG) 데이터는 하나의 물리 페이지(PPG)에 포함된 셀 개수만큼의 데이터 비트들을 포함할 수 있다. 또한 하나의 메모리 셀(MC)은 2 이상의 비트의 데이터를 저장할 수 있다. 이를 통상적으로 멀티 레벨 셀(multi-level cell; MLC)이라고 부른다. 이 경우 하나의 물리 페이지(PPG)는 2 이상의 논리 페이지(logical page; LPG) 데이터를 저장할 수 있다. One memory cell MC can store one bit of data. This is commonly referred to as a single level cell (SLC). In this case, one physical page (PPG) can store one logical page (LPG) data. One logical page (LPG) data may contain as many data bits as the number of cells included in one physical page (PPG). Also, one memory cell MC can store two or more bits of data. This is commonly referred to as a multi-level cell (MLC). In this case, one physical page (PPG) may store two or more logical page (LPG) data.

도 5는 본 발명의 실시예에 따른 메모리 블록 그룹을 설명하기 위한 도면이다.5 is a view for explaining a memory block group according to an embodiment of the present invention.

도 5를 참조하면, 메모리 시스템(1000)은 제1 내지 제4 메모리 블록 그룹들(120, 130, 140, 150)을 포함할 수 있다. 각각의 메모리 블록 그룹(120, 130, 140, 150)은 다수의 메모리 블록들(110)을 포함할 수 있다. 메모리 시스템(1000) 내 메모리 블록 그룹들(120, 130, 140, 150)은 도 5와 같이 4개에 국한되지 않고 더 적을 수도 또는 더 많을 수도 있다. 제1 내지 제4 메모리 블록 그룹들(120, 130, 140, 150)은 각각 그 구성이 동일할 수 있다. 다만 설명의 편의를 위하여 구분하여 명명하기로 한다. 또한 이하 메모리 블록 그룹이라 함은 제1 내지 제4 메모리 블록 그룹들(120, 130, 140, 150) 중 어느 하나일 수 있다.Referring to FIG. 5, the memory system 1000 may include first through fourth memory block groups 120, 130, 140, and 150. Each of the memory block groups 120, 130, 140, and 150 may include a plurality of memory blocks 110. The memory block groups 120, 130, 140, and 150 in the memory system 1000 may be less or more than four as shown in FIG. The first to fourth memory block groups 120, 130, 140, and 150 may have the same configuration. However, it shall be named separately for convenience of explanation. Hereinafter, the memory block group may be any one of the first to fourth memory block groups 120, 130, 140, and 150.

제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각은 다수의 메모리 블록들(110)을 포함할 수 있다. 도 5는 각각의 메모리 블록 그룹(120, 130, 140, 150)이 제1 내지 제4 메모리 블록들(110), 즉 4개의 메모리 블록들(110)을 포함하는 예시이다. 메모리 블록 그룹 내 메모리 블록들(110)은 도 5와 같이 4개에 국한되지 않고 더 적을 수도 또는 더 많을 수도 있다. Each of the first to fourth memory block groups 120 to 150 may include a plurality of memory blocks 110. 5 is an example in which each of the memory block groups 120, 130, 140, and 150 includes first to fourth memory blocks 110, that is, four memory blocks 110. FIG. The memory blocks 110 in the memory block group are not limited to four as shown in FIG. 5, and may be smaller or more.

메모리 컨트롤러(1200)는 제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각에 서로 상이한 생명 주기(life time)를 할당할 수 있다. 다시 말해 메모리 시스템(1000)은 제1 메모리 블록 그룹(120)에 제1 생명 주기를 할당하고, 제2 메모리 블록 그룹(130)에 제2 생명 주기를 할당하고, 제3 메모리 블록 그룹(130)에 제1 생명 주기를 할당하고, 제4 메모리 블록 그룹(140)에 제4 생명 주기를 할당할 수 있다. 제1 내지 제4 생명 주기는 서로 상이한 값일 수 있고, 순차적으로 증가하는 값일 수 있다. 다시 말해 ”제4 생명 주기 > 제3 생명 주기 > 제2 생명 주기 > 제1 생명 주기”와 같은 관계가 성립할 수 있다. 메모리 블록(110)의 생명 주기란 메모리 블록(110)에 저장되는 데이터의 생명 주기를 의미할 수 있다. The memory controller 1200 may allocate different life times to the first to fourth memory block groups 120 to 150, respectively. In other words, the memory system 1000 allocates the first life cycle to the first memory block group 120, allocates the second life cycle to the second memory block group 130, allocates the second life cycle to the third memory block group 130, And allocate a fourth life cycle to the fourth memory block group 140. In this case, The first to fourth life periods may be different from each other, and may be sequentially increasing values. In other words, a relationship such as "the fourth life cycle> the third life cycle> the second life cycle> the first life cycle" can be established. The life cycle of the memory block 110 may be the life cycle of data stored in the memory block 110. [

메모리 블록(110)의 생명 주기는 메모리 블록(110)에 저장된 데이터가 유지되는 시간의 길이를 의미할 수 있다. 다시 말해 자주 업데이트 되는 데이터는 생명 주기가 짧을 수 있고, 업데이트가 거의 발생하지 않는 데이터는 생명 주기가 길 수 있다. 또한 오랜 시간 유지되는 데이터는 생명 주기가 길 수 있고, 짧은 시간 동안 저장된 후 소거되는 데이터는 생명 주기가 짧을 수 있다. 생명 주기가 유사한 데이터에 대해 거의 같은 시기에 가비지 컬렉션 동작이 수행될 수 있다. 따라서 생명 주기가 유사한 데이터를 동일한 메모리 블록(110)에 저장할 경우 가비지 컬렉션 동작이 효율적으로 수행될 수 있다. The life cycle of the memory block 110 may be the length of time the data stored in the memory block 110 is held. In other words, data that is frequently updated can have a short life cycle, and data that has little update can have a long life cycle. Also, long-lived data may have a long life cycle, and data that is erased after a short period of time may have a short life-cycle. The garbage collection operation can be performed at about the same time for data having a similar life cycle. Therefore, when data having a similar life cycle is stored in the same memory block 110, the garbage collection operation can be efficiently performed.

메모리 시스템(1000)은 각각의 메모리 블록 그룹(120, 130, 140, 150)에 특정한 생명 주기를 미리 할당할 수 있다. 다시 말해 제1 내지 제4 메모리 블록 그룹들(120 ~ 150)은 미리 정해진 생명 주기를 가질 수 있고, 제1 내지 제4 메모리 블록 그룹들(120 ~ 150)은 각각의 생명 주기에 대응하는 데이터를 저장할 수 있다. 또한 제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각에 미리 할당된 생명 주기는 메모리 시스템(1000)의 동작 동안 가변될 수 있다. 이에 대해서는 하기에 상세히 설명할 것이다.The memory system 1000 may previously allocate a specific life cycle to each of the memory block groups 120, 130, 140, In other words, the first to fourth memory block groups 120 to 150 may have a predetermined life cycle, and the first to fourth memory block groups 120 to 150 may store data corresponding to each life cycle Can be stored. In addition, the life cycle pre-assigned to each of the first to fourth memory block groups 120 to 150 may be varied during operation of the memory system 1000. This will be described in detail below.

제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각은 제1 내지 제4 메모리 블록들(110)을 포함할 수 있다. 메모리 시스템(1000)은 각각의 메모리 블록 그룹(120, 130, 140, 150)에 다수의 메모리 블록들(110)을 미리 할당할 수 있다. 또한 제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각에 미리 할당된 메모리 블록들(110)은 메모리 시스템(1000)의 동작 동안 가변될 수 있다. 이에 대해서는 하기에 상세히 설명할 것이다. Each of the first to fourth memory block groups 120 to 150 may include first to fourth memory blocks 110. The memory system 1000 may previously allocate a plurality of memory blocks 110 to each of the memory block groups 120, 130, 140, Also, the memory blocks 110 previously allocated to each of the first to fourth memory block groups 120 to 150 may be varied during operation of the memory system 1000. This will be described in detail below.

제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각에 포함된 제1 내지 제4 메모리 블록들(110)은 연속된 블록 번호(block number)를 가질 수 있다. 다시 말해 제1 메모리 블록 그룹(120)에 포함된 제1 내지 제4 메모리 블록(110)은 순차적으로 증가 또는 감소하는 블록 번호를 가질 수 있다. 또한 제2 메모리 블록 그룹(120)에 포함된 제1 내지 제4 메모리 블록(110)은 순차적으로 증가 또는 감소하는 블록 번호를 가질 수 있다. 이때 제1 메모리 블록 그룹(120)에 포함된 제4 메모리 블록(110)과 제2 메모리 블록 그룹(130)내에 포함된 제1 메모리 블록(110)은 연속된 블록 번호를 가질 수 있다. 다시 말해 제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각에 포함된 제1 내지 제4 메모리 블록들(110)은 연속된 블록 번호를 가질 수 있고, 제1 내지 제4 메모리 블록 그룹들(120 ~ 150)에 포함된 16개의 메모리 블록들(110)은 전체적으로 연속된 블록 번호를 가질 수 있다.The first to fourth memory blocks 110 included in each of the first to fourth memory block groups 120 to 150 may have a continuous block number. In other words, the first to fourth memory blocks 110 included in the first memory block group 120 may have block numbers sequentially increasing or decreasing. In addition, the first to fourth memory blocks 110 included in the second memory block group 120 may have block numbers sequentially increasing or decreasing. In this case, the fourth memory block 110 included in the first memory block group 120 and the first memory block 110 included in the second memory block group 130 may have consecutive block numbers. In other words, the first to fourth memory blocks 110 included in the first to fourth memory block groups 120 to 150 may have consecutive block numbers, and the first to fourth memory block groups The sixteen memory blocks 110 included in the memory blocks 120 to 150 may have a continuous block number as a whole.

도 6은 본 발명의 실시예에 따른 메모리 컨트롤러를 설명하기 위한 도면이다.6 is a diagram for explaining a memory controller according to an embodiment of the present invention.

도 6을 참조하면, 메모리 컨트롤러(1200)의 프로세서부(710)는 메모리 블록 그룹 관리부(721), 생명 주기 예측부(722), 기입 제어부(723) 및 가비지 컬렉션 제어부(724)를 포함할 수 있다. 또한 메모리 블록 그룹 관리부(721)는 그룹 메타 관리부(7211)를 포함할 수 있다.6, the processor unit 710 of the memory controller 1200 may include a memory block group management unit 721, a life cycle predicting unit 722, a write control unit 723, and a garbage collection control unit 724. [ have. The memory block group management unit 721 may include a group meta management unit 7211. [

메모리 블록 그룹 관리부(721)는 도 5를 통해 설명한 다수의 메모리 블록 그룹들(120, 130, 140, 150)을 관리하도록 구성될 수 있다. 메모리 블록 그룹 관리부(721)는 다수의 메모리 블록 그룹들(120, 130, 140, 150)을 구성하고, 각각의 메모리 블록 그룹(120, 130, 140, 150)에 미리 정해진 서로 상이한 생명 주기를 할당할 수 있다. 또한 메모리 블록 그룹 관리부(721)는 각각의 메모리 블록 그룹(120, 130, 140, 150)에 할당된 생명 주기를 가변할 수 있다. 다시 말해 메모리 블록 그룹 관리부(721)는 제1 메모리 블록 그룹(120)에 제1 생명 주기를 할당하고, 제2 메모리 블록 그룹(130)에 제2 생명 주기를 할당하고, 제3 메모리 블록 그룹(140)에 제3 생명 주기를 할당하고, 제4 메모리 블록 그룹(150)에 제4 생명 주기를 할당할 수 있다. 각각의 생명 주기는 최소 생명 주기 값 또는 최대 생명 주기 값으로 정의되는 범위일 수 있다. 예시적으로 제2 생명 주기는 제1 최소 생명 주기 값과 제1 최대 생명 주기 값으로 정의되는 생명 주기 범위 일 수 있다. 메모리 블록 그룹 관리부(721)는 제1 내지 제4 메모리 블록 그룹들(120 ~ 150)을 체인(chain)의 형태로 연결하여 관리할 수 있다. 예시적으로 메모리 블록 그룹 관리부(721)는 제1 내지 제4 메모리 블록 그룹들(120 ~ 150)을 데이지 체인(daisy chain)의 형태로 연결하여 관리할 수 있다. 다시 말해 메모리 블록 그룹 관리부(721)는 제1 메모리 블록 그룹(120), 제2 메모리 블록 그룹(130), 제3 메모리 블록 그룹(140) 및 제4 메모리 블록 그룹(150)의 순서로 긴 생명 주기를 할당할 수 있다. 메모리 블록 그룹 관리부(721)는 제1 메모리 블록 그룹(120)에 가장 짧은 생명 주기를 할당하고, 제4 메모리 블록 그룹(150)에 가장 긴 생명 주기를 할당할 수 있다. 제1 메모리 블록 그룹(120), 제2 메모리 블록 그룹(130), 제3 메모리 블록 그룹(140) 및 제4 메모리 블록 그룹(150)에 할당된 생명 주기는 연속된 값일 수 있다. 예시적으로 제1 생명 주기는 제1 생명 주기 값 미만의 범위를 가지고, 제2 생명 주기는 제1 생명 주기 값 이상 제2 생명 주기 값 미만의 범위일 수 있다. 또한 제3 생명 주기는 제2 생명 주기 값 이상 제3 생명 주기 값 미만의 범위이고, 제4 생명 주기는 제3 생명 주기 값 이상의 범위를 가질 수 있다.The memory block group management unit 721 may be configured to manage the plurality of memory block groups 120, 130, 140, and 150 described with reference to FIG. The memory block group management unit 721 constitutes a plurality of memory block groups 120, 130, 140 and 150 and allocates predetermined different life cycles to the respective memory block groups 120, 130, 140 and 150 can do. In addition, the memory block group management unit 721 can vary the life cycle assigned to each of the memory block groups 120, 130, 140, and 150. In other words, the memory block group management unit 721 allocates the first life cycle to the first memory block group 120, allocates the second life cycle to the second memory block group 130, 140 and assign a fourth life cycle to the fourth memory block group 150. [ Each life cycle may be a range defined by a minimum life cycle value or a maximum life cycle value. Illustratively, the second life cycle may be a life cycle range defined by a first minimum life cycle value and a first maximum life cycle value. The memory block group management unit 721 can manage the first to fourth memory block groups 120 to 150 by connecting them in a chain form. Illustratively, the memory block group management unit 721 can manage the first to fourth memory block groups 120 to 150 by connecting them in a daisy chain form. In other words, the memory block group management unit 721 stores the first memory block group 120, the second memory block group 130, the third memory block group 140, and the fourth memory block group 150, You can assign a period. The memory block group management unit 721 may assign the shortest life cycle to the first memory block group 120 and the longest life cycle to the fourth memory block group 150. [ The life cycles allocated to the first memory block group 120, the second memory block group 130, the third memory block group 140 and the fourth memory block group 150 may be consecutive values. Illustratively, the first life cycle has a range less than the first life cycle value, and the second life cycle can range from the first life cycle value to less than the second life cycle value. Also, the third life cycle may range from the second life cycle value to less than the third life cycle value, and the fourth life cycle may have a range beyond the third life cycle value.

메모리 블록 그룹 관리부(721)는 각각의 메모리 블록 그룹(120, 130, 140, 150)에 할당된 생명 주기를 가변할 수 있다. 다시 말해 메모리 블록 그룹 관리부(721)는 각각의 메모리 블록 그룹(120, 130, 140, 150)에 미리 할당된 생명 주기와 다른 생명 주기를 할당할 수 있다. 에시적으로 먼저 메모리 블록 그룹 관리부(721)는 제1 메모리 블록 그룹(120)에 제1 생명 주기를 할당하고, 제2 메모리 블록 그룹(130)에 제2 생명 주기를 할당하고, 제3 메모리 블록 그룹(140)에 제3 생명 주기를 할당하고, 제4 메모리 블록 그룹(150)에 제4 생명 주기를 할당할 수 있다. 그리고 나서 메모리 블록 그룹 관리부(721)는 동작 중에 제1 메모리 블록 그룹(120)에 제4 생명 주기를 할당하고, 제2 메모리 블록 그룹(130)에 제1 생명 주기를 할당하고, 제3 메모리 블록 그룹(140)에 제2 생명 주기를 할당하고, 제4 메모리 블록 그룹(150)에 제3 생명 주기를 할당할 수 있다. 메모리 블록 그룹 관리부(721)의 이러한 동적 생명 주기 할당 동작은 메모리 시스템(1000)의 가비지 컬렉션 동작 및 웨어 레벨링 동작(wear leveling operation)이 효율적으로 수행되도록 한다. 이에 대해서는 하기에 상세히 설명할 것이다. The memory block group management unit 721 may vary the life cycle assigned to each of the memory block groups 120, 130, 140, and 150. In other words, the memory block group management unit 721 can assign a life cycle different from the life cycle previously allocated to each of the memory block groups 120, 130, 140, and 150. The memory block group management unit 721 assigns a first life cycle to the first memory block group 120 and a second life cycle to the second memory block group 130, A third life cycle may be assigned to the group 140, and a fourth life cycle may be assigned to the fourth memory block group 150. [ Then, the memory block group management unit 721 allocates a fourth life cycle to the first memory block group 120, allocates a first life cycle to the second memory block group 130, Assign a second life cycle to the group 140, and assign a third life cycle to the fourth memory block group 150. [ This dynamic lifetime allocation operation of the memory block group management unit 721 allows the garbage collection operation and the wear leveling operation of the memory system 1000 to be performed efficiently. This will be described in detail below.

메모리 블록 그룹 관리부(721)는 각각의 메모리 블록 그룹(120, 130, 140, 150)에 다수의 메모리 블록들(110)을 할당할 수 있다. 또한 메모리 블록 그룹 관리부(721)는 각각의 메모리 블록 그룹(120, 130, 140, 150)에 할당된 메모리 블록들(110)을 동적으로 가변할 수 있다. 이에 대해서는 하기에 상세히 설명할 것이다.The memory block group management unit 721 may allocate a plurality of memory blocks 110 to each of the memory block groups 120, 130, 140, The memory block group management unit 721 may dynamically change the memory blocks 110 allocated to the respective memory block groups 120, 130, 140, and 150. This will be described in detail below.

메모리 블록 그룹 관리부(721)는 그룹 메타 관리부(7211)를 포함할 수 있다. 그룹 메타 관리부(7211)는 각각의 메모리 블록 그룹(120, 130, 140, 150)에 대한 그룹 메타 데이터(group meta data)를 관리할 수 있다. 예시적으로 그룹 메타 데이터(group meta data)는 다수의 메모리 블록 그룹들(120, 130, 140, 150) 각각의 그룹 번호(group number), 소거 메모리 블록(110)의 개수(erased block count), 시작 메모리 블록(110)의 블록 번호(start block number), 전체 메모리 블록(110)의 수(block count)에 대한 정보를 포함할 수 있다. 이에 대해서는 하기에 상세히 설명할 것이다.The memory block group management unit 721 may include a group meta management unit 7211. [ The group meta-management unit 7211 may manage group meta data for each of the memory block groups 120, 130, 140, and 150. Illustratively, the group meta data includes a group number of each of the plurality of memory block groups 120, 130, 140 and 150, an erased block count of the erased memory blocks 110, A start block number of the start memory block 110, and a block count of the entire memory blocks 110. This will be described in detail below.

생명 주기 예측부(722)는 데이터의 패턴 분석을 통해 데이터의 생명 주기를 예측하도록 구성될 수 있다. 데이터의 생명 주기는 데이터의 업데이트 주기일 수 있다. 다시 말해 업데이트 주기가 짧은 데이터는 짧은 생명 주기를 가질 수 있고, 업데이트 주기가 긴 데이터는 긴 생명 주기를 가질 수 있다. 다른 예시로서 데이터의 생명 주기는 데이터의 보존 기간 일 수 있다. 다시 말해 보존 기간이 긴 데이터는 긴 생명 주기를 가질 수 있고, 보존 기간이 짧은 데이터는 짧은 생명 주기를 가질 수 있다. 예시적으로 빈번하게 액세스(access)되는 핫 데이터(hot data)는 짧은 생명 주기를 가질 수 있고, 액세스가 거의 발생하지 않는 콜드 데이터(cold data)는 긴 생명 주기를 가질 수 있다. 생명 주기가 유사한 데이터를 저장한 메모리 블록들(110)에 대해 서로 유사한 시기에 가비지 컬렉션 동작이 수행될 수 있다. 따라서 생명 주기가 유사한 데이터를 동일한 메모리 블록(110)에 저장할 경우 가비지 컬렉션 동작이 효율적으로 수행될 수 있다.The life cycle prediction unit 722 can be configured to predict the life cycle of the data through pattern analysis of the data. The life cycle of the data may be the update period of the data. In other words, data having a short update period can have a short life period, and data having a long update period can have a long life period. As another example, the life cycle of the data may be the retention period of the data. In other words, data with a long retention period can have a long life cycle, and data with a short retention period can have a short life cycle. Hot data, which is typically accessed frequently, can have a short life cycle, and cold data that has little access can have a long life cycle. A garbage collection operation may be performed at a time similar to that of the memory blocks 110 storing data having a similar life cycle. Therefore, when data having a similar life cycle is stored in the same memory block 110, the garbage collection operation can be efficiently performed.

생명 주기 예측부(722)는 호스트(2000)로부터 데이터가 수신된 때, 수신된 데이터에 대해 생명 주기를 예측하는 동작을 수행할 수 있다. 또한 생명 주기 예측부(722)는 데이터에 대한 생명 주기 예측 결과를 메모리 블록 그룹 관리부(721)에 전송하고, 메모리 블록 그룹 관리부(721)는 생명 주기 예측부(722)로부터 전송된 생명 주기 예측 결과에 기초하여 다수의 메모리 블록 그룹들(120, 130, 140, 150) 중 어느 하나를 선택할 수 있다. 다시 말해 생명 주기 예측부(722)가 호스트(2000)로부터 수신된 데이터에 대해 제1 생명 주기를 가진 것으로 예측한 경우, 생명 주기 예측부(722)로부터 전송된 데이터의 생명 주기 예측 결과에 기초하여 메모리 블록 그룹 관리부(721)는 제1 생명 주기가 할당된 제1 메모리 블록 그룹(120)을 선택할 수 있다.When the data is received from the host 2000, the life-period predicting unit 722 can perform an operation of predicting a life cycle of the received data. The life cycle prediction unit 722 transfers the life cycle prediction result of the data to the memory block group management unit 721. The memory block group management unit 721 receives the life cycle prediction result from the life cycle prediction unit 722, 130, 140, and 150 based on a plurality of memory block groups. In other words, when the life-period predicting unit 722 predicts that the data received from the host 2000 has a first life-period, the life-period predicting unit 722 determines, based on the life- The memory block group management unit 721 can select the first memory block group 120 to which the first life cycle is allocated.

기입 제어부(723)는 데이터의 기입 동작을 제어할 수 있다. 기입 제어부(723)는 메모리 블록 그룹 관리부(721)가 선택한 메모리 블록 그룹(120, 130, 140, 150)에 호스트(2000)로부터 수신된 데이터를 기입하도록 구성될 수 있다. 기입 제어부(723)는 메모리 블록 그룹 관리부(721)로부터 선택된 메모리 블록 그룹(120, 130, 140, 150) 및 선택된 메모리 블록 그룹(120, 130, 140, 150) 내 선택된 메모리 블록(110)에 대한 정보를 수신할 수 있다. 기입 제어부(723)는 메모리 블록 그룹 관리부(721)로부터 수신한 정보에 기초하여 선택된 메모리 블록 그룹(120, 130, 140, 150) 내 선택된 메모리 블록(110)에 데이터를 기입할 수 있다.The write control section 723 can control the data write operation. The write control unit 723 may be configured to write the data received from the host 2000 to the memory block groups 120, 130, 140, and 150 selected by the memory block group management unit 721. [ The write controller 723 controls the write operation of the memory block groups 120, 130, 140 and 150 selected from the memory block group management unit 721 and the selected memory blocks 110 in the selected memory block groups 120, 130, 140, Information can be received. The write control unit 723 can write data to the selected memory block 110 in the selected memory block group 120, 130, 140, 150 based on the information received from the memory block group management unit 721. [

가비지 컬렉션 제어부(724)는 메모리 시스템(1000)의 가비지 컬렉션 동작(garbage collection operation)을 제어할 수 있다. 가비지 컬렉션 동작이란, 다수의 메모리 블록들(110)에 저장된 데이터를 리드 하여 다른 메모리 블록(110)에 저장하고, 상기 다수의 메모리 블록들(110)을 소거하여 새로운 데이터를 저장 가능한 상태로 만드는 동작일 수 있다. 다시 말해 가비지 컬렉션 동작이란, N개의 메모리 블록들(110)에 흩어진 데이터를 수집하여 M개의 메모리 블록(110)에 카피하고, 상기 N개의 메모리 블록들(110)을 소거하여 새로운 데이터를 저장 가능한 상태, 즉 프리 메모리 블록(110)으로 만드는 동작일 수 있다. 이때 N과 M은 자연수이고, N은 M 보다 큰 자연수일 수 있다. 가비지 컬렉션 제어부(724)는 메모리 블록 그룹(120, 130, 140, 150) 단위로 가비지 컬렉션 동작을 수행할 수 있다. 다시 말해 제1 메모리 블록 그룹(120) 내에 포함된 메모리 블록들(110)에 대해 동시에 가비지 컬렉션 동작을 수행하고, 제1 메모리 블록 그룹(120)에 포함된 메모리 블록들(110)과 제2 메모리 블록 그룹(130)에 포함된 메모리 블록들(110)은 함께 가비지 컬렉션 동작을 수행하지 않을 수 있다. 이는 각각의 메모리 블록 그룹(120, 130, 140, 150)이 상이한 생명 주기를 가지는 것에 기인할 수 있다. 업데이트 주기가 유사한 데이터에 함께 가비지 컬렉션 동작이 수행될 때 더 효율적일 수 있다. 다시 말해 메모리 시스템(1000)이 유사한 생명 주기를 가지는 데이터를 동일한 메모리 블록 그룹(120, 130, 140, 150)에 저장하는 동작은 가비지 컬렉션 동작의 효율을 개선할 수 있다.The garbage collection control unit 724 may control a garbage collection operation of the memory system 1000. The garbage collection operation is a process of reading data stored in a plurality of memory blocks 110 and storing the read data in another memory block 110 and erasing the plurality of memory blocks 110 to make new data available for storage Lt; / RTI &gt; In other words, the garbage collection operation is a process of collecting data scattered in N memory blocks 110, copying the data to M memory blocks 110, erasing the N memory blocks 110, , That is, the free memory block 110. Where N and M are natural numbers, and N is a natural number greater than M. The garbage collection control unit 724 may perform a garbage collection operation in units of the memory block groups 120, 130, 140, and 150. In other words, the memory blocks 110 included in the first memory block group 120 are simultaneously subjected to the garbage collection operation, and the memory blocks 110 included in the first memory block group 120 and the second memory The memory blocks 110 included in the block group 130 may not perform the garbage collection operation together. This may be due to the fact that each memory block group 120, 130, 140, 150 has a different life cycle. The update cycle may be more efficient when the garbage collection operation is performed together with similar data. In other words, the operation in which the memory system 1000 stores data having a similar life cycle in the same memory block group 120, 130, 140, 150 can improve the efficiency of the garbage collection operation.

도 7은 본 발명의 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.7 is a diagram for explaining a memory block group management method according to an embodiment of the present invention.

도 7을 참조하면, 프로세서부(710)는 데이터의 생명 주기에 따라 가변적으로 기입 동작을 수행할 수 있다. Referring to FIG. 7, the processor unit 710 may variably perform a write operation according to a life cycle of data.

메모리 블록 그룹 관리부(721)에 의해 제1 내지 제4 메모리 블록 그룹들(120 ~ 150) 각각에 제1 내지 제4 생명 주기가 할당될 수 있다. 다시 말해 제1 내지 제4 메모리 블록 그룹들(120 ~ 150)은 순서대로 제1 생명 주기를 가지는 데이터(W1), 제2 생명 주기를 가지는 데이터(W2), 제3 생명 주기를 가지는 데이터(W3) 및 제4 생명 주기를 가지는 데이터(W4)를 저장할 수 있다. 이때 제1 내지 제4 생명 주기는 순차적으로 증가하는 생명 주기일 수 있고, 제1 생명 주기가 가장 짧은 생명 주기이고, 제4 생명 주기가 가장 긴 생명 주기 일 수 있다. 또한 각각의 메모리 블록 그룹(120, 130, 140, 150)은 4개의 메모리 블록들(110)을 포함할 수 있다. 각각의 메모리 블록 그룹에 포함된 4개의 메모리 블록들(110)은 연속된 블록 번호를 가질 수 있다. 다시 말해 제1 메모리 블록 그룹(120)의 4개의 메모리 블록들(110), 즉 제1 메모리 블록(110), 제2 메모리 블록(110), 제3 메모리 블록(110) 및 제4 메모리 블록(110)은 제1 내지 제4 블록 번호를 가지고, 제2 메모리 블록 그룹(130), 제3 메모리 블록 그룹(140), 제4 메모리 블록 그룹(150) 또한 마찬가지일 수 있다. 이때 제1 내지 제4 메모리 블록 그룹(120 ~ 150)에 포함된 메모리 블록들(110)은 모두 소거(E) 상태일 수 있다. 다시 말해 새로운 데이터를 저장 할 수 있는 상태일 수 있다. The first to fourth life cycles may be assigned to the first to fourth memory block groups 120 to 150 by the memory block group management unit 721. [ In other words, the first to fourth memory block groups 120 to 150 sequentially store data W1 having a first life cycle, data W2 having a second life cycle, data W3 having a third life cycle And data W4 having the fourth life cycle. In this case, the first to fourth life cycles may be sequentially increasing life cycles, the first life cycle may be the shortest life cycle, and the fourth life cycle may be the longest life cycle. Each of the memory block groups 120, 130, 140, and 150 may include four memory blocks 110. The four memory blocks 110 included in each memory block group may have consecutive block numbers. In other words, the four memory blocks 110 of the first memory block group 120, that is, the first memory block 110, the second memory block 110, the third memory block 110, 110 may have the first to fourth block numbers, and the second memory block group 130, the third memory block group 140, and the fourth memory block group 150 may also be the same. At this time, the memory blocks 110 included in the first to fourth memory block groups 120 to 150 may all be in the erased state. In other words, it may be possible to store new data.

단계-1에서 호스트(2000)로부터 하나의 메모리 블록(110)에 대응하는 데이터가 입력될 수 있다. 생명 주기 예측부(722)는 데이터에 대해 생명 주기를 예측하는 동작을 수행하고, 예시적으로 제1 생명 주기를 가진 데이터(W1)로 예측할 수 있다. 생명 주기 예측부(722)는 생명 주기 예측 결과를 메모리 블록 그룹 관리부(721)에 전달하고, 메모리 블록 그룹 관리부(721)는 상기의 예측 결과에 근거하여 제1 메모리 블록 그룹(120) 및 제1 메모리 블록 그룹(120) 내 제1 메모리 블록(110)을 선택하고, 선택 결과를 기입 제어부(723)에 전달할 수 있다. 기입 제어부(723)는 전달 받은 선택 결과에 기초하여 데이터를 제1 메모리 블록 그룹(120) 내 제1 메모리 블록(110)에 기입(W1)할 수 있다.Data corresponding to one memory block 110 may be input from the host 2000 in step-1. The life cycle predicting unit 722 performs an operation of predicting the life cycle of the data, and can predict, for example, the data W1 having the first life cycle. The life cycle prediction unit 722 transfers the life cycle prediction result to the memory block group management unit 721. The memory block group management unit 721 receives the prediction result of the first memory block group 120 and the first The first memory block 110 in the memory block group 120 can be selected and the selection result can be transmitted to the write control unit 723. [ The write controller 723 can write the data to the first memory block 110 in the first memory block group 120 (W1) based on the received selection result.

단계-2에서 호스트(2000)로부터 3개의 메모리 블록들(110)에 대응하는 데이터가 입력될 수 있다. 생명 주기 예측부(722)는 상기 데이터에 대해 생명 주기를 예측하는 동작을 수행하고, 예시적으로 제2 생명 주기를 가진 데이터(W2)로 예측할 수 있다. 생명 주기 예측부(722)는 생명 주기 예측 결과를 메모리 블록 그룹 관리부(721)에 전달하고, 메모리 블록 그룹 관리부(721)는 상기의 예측 결과에 근거하여 제2 메모리 블록 그룹(130) 및 제2 메모리 블록 그룹(130) 내 제1 내지 제3 메모리 블록들(110)을 선택하고, 선택 결과를 기입 제어부(723)에 전달할 수 있다. 기입 제어부(723)는 전달 받은 선택 결과에 기초하여 데이터를 제2 메모리 블록 그룹(130) 내 제1 내지 제3 메모리 블록들(110)에 기입(W2)할 수 있다.Data corresponding to three memory blocks 110 may be input from the host 2000 in step-2. The life-period predicting unit 722 performs an operation of predicting a life cycle of the data, and can predict, for example, data W2 having a second life cycle. The life cycle prediction unit 722 transfers the life cycle prediction result to the memory block group management unit 721. The memory block group management unit 721 transfers the life cycle prediction result to the second memory block group 130 and the second memory block group management unit 721 based on the prediction result. The first to third memory blocks 110 in the memory block group 130 may be selected and the selection result may be transmitted to the write control unit 723. [ The write controller 723 may write (W2) the data to the first to third memory blocks 110 in the second memory block group 130 based on the received selection result.

도 8은 본 발명의 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.8 is a view for explaining a memory block group management method according to another embodiment of the present invention.

도 8을 참조하면, 메모리 블록 그룹 관리부(721)는 제1 내지 제4 메모리 블록 그룹들(120 ~ 150)에 할당된 생명 주기를 가변할 수 있다.Referring to FIG. 8, the memory block group management unit 721 may vary the life cycles allocated to the first to fourth memory block groups 120 to 150. [0064] FIG.

단계-3에서 호스트(2000)로부터 3개의 메모리 블록들(110)에 대응하는 데이터가 입력될 수 있다. 생명 주기 예측부(722)는 상기 데이터에 대해 생명 주기를 예측하는 동작을 수행하고, 예시적으로 제1 생명 주기를 가진 데이터(W1)로 예측할 수 있다. 생명 주기 예측부(722)는 생명 주기 예측 결과를 메모리 블록 그룹 관리부(721)에 전달하고, 메모리 블록 그룹 관리부(721)는 상기의 예측 결과에 근거하여 제1 메모리 블록 그룹(120) 및 제1 메모리 블록 그룹(120) 내 제2 내지 제4 메모리 블록들(110)을 선택하고, 선택 결과를 기입 제어부(723)에 전달할 수 있다. 기입 제어부(723)는 전달 받은 선택 결과에 기초하여 데이터를 제1 메모리 블록 그룹(120) 내 제2 내지 제4 메모리 블록들(110)에 기입(W1)할 수 있다.Data corresponding to the three memory blocks 110 may be input from the host 2000 in step-3. The life cycle prediction unit 722 performs an operation of predicting the life cycle of the data and predicts the data with the data W1 having the first life cycle as an example. The life cycle prediction unit 722 transfers the life cycle prediction result to the memory block group management unit 721. The memory block group management unit 721 receives the prediction result of the first memory block group 120 and the first The second to fourth memory blocks 110 in the memory block group 120 may be selected and the selection result may be transmitted to the write control unit 723. [ The write controller 723 may write (W1) data to the second to fourth memory blocks 110 in the first memory block group 120 based on the received selection result.

상기의 동작에 의해 제1 메모리 블록 그룹(120) 내 모든 메모리 블록들(110)에 기입(W1) 동작이 수행되고, 제1 메모리 블록 그룹(120)은 더 이상 소거(E) 메모리 블록(110)을 포함하지 않을 수 있다. 단계-4에서 메모리 블록 그룹 관리부(721)는 제1 메모리 블록 그룹(120) 내 소거(E) 메모리 블록(110)이 소진된 것으로 판단하면, 메모리 블록 그룹들(120, 130, 140, 150)의 체인의 순서를 가변할 수 있다. 다시 말해 메모리 블록 그룹 관리부(721)는 제1 메모리 블록 그룹(120)을 이동시켜 제4 생명 주기를 할당하고, 제2 내지 제4 메모리 블록 그룹들(130, 140, 150) 각각에 대해 생명 주기를 하나씩 쉬프트(shift) 시킬 수 있다 그 결과 제2 메모리 블록 그룹(130)에 제1 생명 주기가 할당되고, 제3 메모리 블록 그룹(140)에 제2 생명 주기가 할당되고, 제4 메모리 블록 그룹(150)에 제1 생명 주기가 할당되고, 제1 메모리 블록 그룹(120)에 제4 생명 주기가 할당될 수 있다. (W1) operation is performed to all the memory blocks 110 in the first memory block group 120 and the first memory block group 120 is no longer written to the erase (E) memory block 110 ). &Lt; / RTI &gt; When the memory block group management unit 721 determines that the erase (E) memory block 110 in the first memory block group 120 has been exhausted, the memory block groups 120, 130, 140, The order of the chain of the &lt; / RTI &gt; In other words, the memory block group management unit 721 allocates the fourth life cycle by moving the first memory block group 120 and allocates the fourth life cycle to each of the second to fourth memory block groups 130, 140, As a result, a first life cycle is allocated to the second memory block group 130, a second life cycle is allocated to the third memory block group 140, A first life cycle may be assigned to the first memory block 150 and a fourth life cycle may be assigned to the first memory block group 120. [

메모리 블록 그룹 관리부(721)는 다수의 메모리 블록 그룹들(120, 130, 140, 150) 중 어느 하나에 포함된 메모리 블록들(110) 전부에 데이터 기입(W)이 수행된 때 체인의 순서를 가변할 수 있다. 또한 메모리 블록 그룹 관리부(721)는 다수의 메모리 블록 그룹들(120, 130, 140, 150) 중 제1 메모리 블록 그룹(120)의 메모리 블록들(110) 전부에 데이터 기입(W)이 수행된 때, 상기 제1 메모리 블록 그룹(120)에 가장 긴 생명 주기를 할당하고, 나머지 메모리 블록 그룹들(130, 140, 150)에 할당된 생명 주기를 한칸씩 쉬프트 시킬 수 있다.The memory block group management unit 721 stores the sequence of chains when data write (W) is performed on all the memory blocks 110 included in any one of the plurality of memory block groups 120, 130, 140, and 150 Can be varied. The memory block group management unit 721 also performs a write operation on all the memory blocks 110 of the first memory block group 120 among the plurality of memory block groups 120, The longest life cycle may be allocated to the first memory block group 120 and the life cycles allocated to the remaining memory block groups 130, 140, and 150 may be shifted by one.

도 9는 본 발명의 또 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.9 is a diagram for explaining a memory block group management method according to another embodiment of the present invention.

도 9를 참조하면, 가비지 컬렉션 제어부(724)는 메모리 블록 그룹(120, 130, 140, 150) 단위로 가비지 컬렉션 동작을 수행할 수 있다.Referring to FIG. 9, the garbage collection control unit 724 may perform a garbage collection operation on the memory block groups 120, 130, 140, and 150.

단계-5에서 제1 메모리 블록 그룹(120)에 대해 가비지 컬렉션 동작 또는 소거 동작이 수행될 수 있다. 가비지 컬렉션 제어부(724)는 생명 주기가 긴 메모리 블록 그룹(120, 130, 140, 150)에 대해 우선적으로 가비지 컬렉션 동작을 수행하도록 제어할 수 있다. 도 9에서 가장 긴 생명 주기를 가지는 메모리 블록 그룹은 제1 메모리 블록 그룹(120)이다. 따라서 가비지 컬렉션 제어부(724)는 제1 메모리 블록 그룹(120)에 대해 먼저 가비지 컬렉션 동작을 수행하도록 제어할 수 있다. 가비지 컬렉션 동작 결과 제1 메모리 블록 그룹(120)은 제2 내지 제4 메모리 블록들(110)에 저장된 데이터를 다른 메모리 블록(110)으로 카피하고, 제2 내지 제4 메모리 블록들(110)에 대해 소거(E) 동작을 수행할 수 있다. 그 결과 메모리 블록 그룹 관리부(721)는 새로운 데이터가 입력된 때 제1 메모리 블록 그룹(120)을 선택할 수 있다.A garbage collection operation or an erase operation may be performed on the first memory block group 120 in step-5. The garbage collection control unit 724 can control the garbage collection operation to preferentially perform the garbage collection operation on the memory block groups 120, 130, 140, and 150 having a long lifetime. In FIG. 9, the memory block group having the longest life cycle is the first memory block group 120. Accordingly, the garbage collection control unit 724 may control the first memory block group 120 to perform the garbage collection operation first. As a result of the garbage collection operation, the first memory block group 120 copies the data stored in the second to fourth memory blocks 110 to another memory block 110, and writes the data stored in the second to fourth memory blocks 110 It is possible to perform an erase (E) operation. As a result, the memory block group management unit 721 can select the first memory block group 120 when new data is input.

다시 말해 가비지 컬렉션 제어부(724)는 생명 주기의 길이에 기초하여 메모리 블록 그룹들(120, 130, 140, 150)의 가비지 컬렉션 동작(garbage collection operation)의 순서를 결정할 수 있다. 다시 말해 생명 주기가 긴 메모리 블록 그룹(120, 130, 140, 150)에 대해 먼저 가비지 컬렉션 동작이 수행되도록 제어하고, 생명 주기가 짧은 메모리 블록 그룹(120, 130, 140, 150)에 대해 나중에 가비지 컬렉션 동작이 수행되도록 제어할 수 있다. 또한 가비지 컬렉션 제어부(724)는 하나의 메모리 블록 그룹(120, 130, 140, 150)에 포함된 메모리 블록들(110)은 가비지 컬렉션 동작이 함께 수행되도록 제어할 수 있다. 이는 하나의 메모리 블록 그룹(120, 130, 140, 150)에 포함된 메모리 블록들은 서로 유사한 생명 주기를 가지는 데이터를 저장하고 있기 때문에 가비지 컬렉션 동작이 수행되는 시기도 유사할 수 있기 때문이다.In other words, the garbage collection control unit 724 may determine the order of garbage collection operations of the memory block groups 120, 130, 140, and 150 based on the length of the life cycle. In other words, the memory block groups 120, 130, 140 and 150 having a long life cycle are controlled so that the garbage collection operations are performed first, and the memory block groups 120, 130, 140, You can control the collection behavior to be performed. In addition, the garbage collection controller 724 may control the memory blocks 110 included in one memory block group 120, 130, 140, and 150 to perform garbage collection operations together. This is because the memory blocks included in one memory block group 120, 130, 140, and 150 store data having a similar life cycle to each other, so that the time at which the garbage collection operation is performed may be similar.

도 10은 본 발명의 또 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.FIG. 10 is a diagram for explaining a memory block group management method according to another embodiment of the present invention.

도 10을 참조하면, 각각의 메모리 블록 그룹들(120, 130, 140, 150)에 포함된 메모리 블록들(110)의 수는 가변적으로 제어될 수 있다.Referring to FIG. 10, the number of memory blocks 110 included in each of the memory block groups 120, 130, 140, and 150 may be variably controlled.

단계-6에서 호스트(2000)로부터 4개의 메모리 블록들(110)에 대응하는 데이터가 입력될 수 있다. 생명 주기 예측부(722)는 상기 데이터에 대해 생명 주기를 예측하는 동작을 수행하고, 예시적으로 제3 생명 주기를 가진 데이터(W3)로 예측할 수 있다. 생명 주기 예측부(722)는 생명 주기 예측 결과를 메모리 블록 그룹 관리부(721)에 전달하고, 메모리 블록 그룹 관리부(721)는 상기의 예측 결과에 근거하여 제4 메모리 블록 그룹(150) 및 제4 메모리 블록 그룹(150) 내 제1 내지 제4 메모리 블록들(110)을 선택하고, 선택 결과를 기입 제어부(723)에 전달할 수 있다. 기입 제어부(723)는 전달 받은 선택 결과에 기초하여 데이터를 제4 메모리 블록 그룹(150) 내 제1 내지 제4 메모리 블록들(110)에 기입(W3)할 수 있다.Data corresponding to four memory blocks 110 may be input from the host 2000 in step -6. The life cycle prediction unit 722 performs an operation of predicting a life cycle of the data, and can predict the data W3 having the third life cycle as an example. The life cycle prediction unit 722 transfers the life cycle prediction result to the memory block group management unit 721. The memory block group management unit 721 transfers the life cycle prediction result to the memory block group management unit 721, The first to fourth memory blocks 110 in the memory block group 150 may be selected and the selection result may be transmitted to the write control unit 723. [ The write controller 723 may write (W3) the data to the first to fourth memory blocks 110 in the fourth memory block group 150 based on the received selection result.

상기의 동작에 의해 제4 메모리 블록 그룹(150) 내 모든 메모리 블록들(110)에 기입(W3) 동작이 수행되고, 제4 메모리 블록 그룹(150)은 더 이상 소거(E) 메모리 블록을 포함하지 않을 수 있다. 단계-7에서 메모리 블록 그룹 관리부(721)는 제4 메모리 블록 그룹(150) 내 소거(E) 메모리 블록이 소진된 것으로 판단하면, 메모리 블록 그룹들(120, 130, 140, 150)의 체인의 순서를 가변할 수 있다. 다시 말해 메모리 블록 그룹 관리부(721)는 제4 메모리 블록 그룹(150)을 이동시켜 제4 생명 주기를 할당하고, 제1 메모리 블록 그룹(120)에 대해 생명 주기를 한칸 쉬프트 시킬 수 있다 그 결과 제1 메모리 블록 그룹(120)에 제3 생명 주기가 할당되고, 제2 메모리 블록 그룹(130)에 제1 생명 주기가 할당되고, 제3 메모리 블록 그룹(140)에 제2 생명 주기가 할당되고, 제4 메모리 블록 그룹(150)에 제4 생명 주기가 할당될 수 있다. (W3) operation is performed on all the memory blocks 110 in the fourth memory block group 150 and the fourth memory block group 150 no longer includes the erase (E) memory block I can not. If the memory block group management unit 721 determines in step 7 that the erase E block in the fourth memory block group 150 has been exhausted, The order can be varied. In other words, the memory block group management unit 721 may move the fourth memory block group 150 to allocate a fourth life cycle, and may shift the life cycle of the first memory block group 120 by one time. A third life cycle is assigned to one memory block group 120, a first life cycle is assigned to the second memory block group 130, a second life cycle is assigned to the third memory block group 140, The fourth memory block group 150 may be allocated a fourth life cycle.

단계-8에서 호스트(2000)로부터 2개의 메모리 블록들(110)에 대응하는 데이터가 입력될 수 있다. 생명 주기 예측부(722)는 상기 데이터에 대해 생명 주기를 예측하는 동작을 수행하고, 예시적으로 제4 생명 주기를 가진 데이터(W4)로 예측할 수 있다. 생명 주기 예측부(722)는 생명 주기 예측 결과를 메모리 블록 그룹 관리부(721)에 전달하고, 메모리 블록 그룹 관리부(721)는 상기의 예측 결과에 근거하여 제4 메모리 블록 그룹(150)을 선택할 수 있다. 이때 제4 메모리 블록 그룹(150)은 소거(E) 메모리 블록(110)이 소진된 상태일 수 있다. 메모리 블록 그룹 관리부(721)는 메모리 블록 그룹(120, 130, 140, 150)에 소거(E) 메모리 블록(110)이 소진된 경우 인접한 메모리 블록 그룹(120, 130, 140, 150)에서 소거(E) 메모리 블록(110)을 추출하여 소거(E) 메모리 블록(110)이 소진된 메모리 블록 그룹(120, 130, 140, 150)에 할당할 수 있다. 예시적으로 메모리 블록 그룹 관리부(721)는 제4 메모리 블록 그룹(150)에 소거(E) 메모리 블록(110)이 소진된 것을 확인하고, 인접 메모리 블록 그룹, 즉 제1 메모리 블록 그룹(120)에서 제3 내지 제4 메모리 블록들(110)을 추출하여 제4 메모리 블록 그룹(150)에 할당할 수 있다. 그리고 나서 메모리 블록 그룹 관리부(721)는 제4 메모리 블록 그룹(150) 및 제4 메모리 블록 그룹(150) 내 포함된 제1 메모리 블록 그룹(120)에서 추출하여 할당한 제3 내지 제4 메모리 블록들(110)을 선택하고, 선택 결과를 기입 제어부(723)에 전달할 수 있다. 기입 제어부(723)는 전달 받은 선택 결과에 기초하여 데이터를 제4 메모리 블록 그룹(150) 내 제1 메모리 블록 그룹(120)에서 추출하여 할당한 제3 내지 제4 메모리 블록들(110)에 기입(W4)할 수 있다.Data corresponding to the two memory blocks 110 may be input from the host 2000 in step -8. The life cycle prediction unit 722 performs an operation of predicting the life cycle of the data, and can predict, for example, the data W4 having the fourth life cycle. The life cycle prediction unit 722 transfers the life cycle prediction result to the memory block group management unit 721 and the memory block group management unit 721 can select the fourth memory block group 150 based on the prediction result have. At this time, the fourth memory block group 150 may be in a state where the erase (E) memory block 110 is exhausted. The memory block group management unit 721 deletes the erase (E) memory block 110 in the adjacent memory block groups 120, 130, 140 and 150 when the erase (E) memory block 110 is exhausted to the memory block groups 120, E) memory block 110 may be extracted and allocated to the exhausted memory block groups 120, 130, 140, and 150 by the erase (E) memory block 110. The memory block group management unit 721 verifies that the erase E block 110 has been exhausted to the fourth memory block group 150 and the adjacent memory block group, that is, the first memory block group 120, The third to fourth memory blocks 110 may be extracted and allocated to the fourth memory block group 150. [ The memory block group management unit 721 then reads out and allocates the third to fourth memory blocks 150 extracted from the first memory block group 120 included in the fourth memory block group 150 and the fourth memory block group 150, And may transmit the selection result to the write control unit 723. [ The write controller 723 extracts the data from the first memory block group 120 in the fourth memory block group 150 and writes the data in the third to fourth memory blocks 110 (W4).

다시 말해 메모리 블록 그룹 관리부(721)는 선택된 메모리 블록 그룹(120, 130, 140, 150)에 소거(E) 메모리 블록(110)이 없을 때 다른 메모리 블록 그룹(120, 130, 140, 150)에 포함된 소거(E) 메모리 블록(110)을 추출하여 상기 선택된 메모리 블록 그룹(120, 130, 140, 150)에 할당할 수 있다. 구체적으로는 다시 말해 메모리 블록 그룹 관리부(721)는 선택된 메모리 블록 그룹(120, 130, 140, 150)에 소거(E) 메모리 블록(110)이 없을 때 인접한 생명 주기를 가지는 메모리 블록 그룹(120, 130, 140, 150)에 포함된 소거 메모리 블록(110)을 추출하여 상기 선택된 메모리 블록 그룹(120, 130, 140, 150)에 할당할 수 있다.In other words, the memory block group management unit 721 determines whether the erase (E) memory block 110 is present in the other memory block groups 120, 130, 140, and 150 when the selected memory block group 120, The E memory block 110 may be extracted and allocated to the selected memory block group 120, 130, 140, 150. Specifically, in other words, the memory block group management unit 721 stores the memory block groups 120, 130, 140 and 150 having the adjacent life periods when there is no erase (E) memory block 110 in the selected memory block groups 120, 130, 140, and 150, and may allocate the erase memory block 110 to the selected memory block group 120, 130, 140,

도 11은 본 발명의 또 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 도면이다.11 is a diagram for explaining a method of managing a memory block group according to another embodiment of the present invention.

도 11을 참조하면, 가비지 컬렉션 제어부(724)는 하나의 메모리 블록 그룹(120, 130, 140, 150)에 포함된 다수의 메모리 블록들(110)에 대해 순차적으로 가비지 컬렉션 동작을 수행할 수 있다.11, the garbage collection controller 724 may sequentially perform a garbage collection operation on a plurality of memory blocks 110 included in one memory block group 120, 130, 140, and 150 .

단계-9에서 제4 메모리 블록 그룹(150)에 대해 가비지 컬렉션 동작 또는 소거 동작이 수행될 수 있다. 가비지 컬렉션 제어부(724)는 생명 주기가 긴 메모리 블록 그룹(120, 130, 140, 150)에 대해 우선적으로 가비지 컬렉션 동작을 수행하도록 제어할 수 있다. 도 11에서 가장 긴 생명 주기를 가지는 메모리 블록 그룹(120, 130, 140, 150)은 제4 메모리 블록 그룹(150)이다. 따라서 가비지 컬렉션 제어부(724)는 제4 메모리 블록 그룹(150)에 대해 먼저 가비지 컬렉션 동작을 수행하도록 제어할 수 있다. 이때 가비지 컬렉션 제어부(724)는 제4 메모리 블록 그룹(150)에 원래 포함되어 있던 제1 내지 제4 메모리 블록들(110)에 대해 먼저 가비지 컬렉션 동작(제1 가비지 컬렉션 동작)을 수행하도록 제어할 수 있다.A garbage collection operation or an erase operation may be performed on the fourth memory block group 150 in step -9. The garbage collection control unit 724 can control the garbage collection operation to preferentially perform the garbage collection operation on the memory block groups 120, 130, 140, and 150 having a long lifetime. In FIG. 11, the memory block groups 120, 130, 140, and 150 having the longest life cycle are the fourth memory block group 150. Accordingly, the garbage collection control unit 724 may control the fourth memory block group 150 to perform the garbage collection operation first. At this time, the garbage collection controller 724 controls the first to fourth memory blocks 110 included in the fourth memory block group 150 to perform a garbage collection operation (first garbage collection operation) first .

단계-10에서 제4 메모리 블록 그룹(150)에 대해 추가적으로 가비지 컬렉션 동작 또는 소거 동작이 수행될 수 있다. 가비지 컬렉션 제어부(724)는 제4 메모리 블록 그룹(150)에서 제1 메모리 블록 그룹(120)에서 추출하여 할당된 제3 내지 제4 메모리 블록들(110)(점선 안의 메모리 블록들)에 대해 가비지 컬렉션 동작(제2 가비지 컬렉션 동작)을 수행하도록 제어할 수 있다.An additional garbage collection operation or erase operation may be performed for the fourth memory block group 150 in step -10. The garbage collection controller 724 controls the third to fourth memory blocks 110 (memory blocks in the dotted line) extracted from the first memory block group 120 in the fourth memory block group 150 and allocated to the garbage collection controller 724, To perform a collection operation (a second garbage collection operation).

이상의 동작에 의해 메모리 시스템(1000)에 포함된 다수의 메모리 블록들(110)에 대해 전체적으로 균등하게 기입(W) 동작 및 소거(E) 동작이 수행될 수 있다. 결과적으로 메모리 시스템(1000)에 포함된 다수의 메모리 블록들(110)에 대한 웨어 레벨링 동작(wear leveling operation)이 용이하게 수행될 수 있다.By the above operation, write (W) operation and erase (E) operations can be performed evenly on the entire plurality of memory blocks 110 included in the memory system 1000. As a result, a wear leveling operation for a plurality of memory blocks 110 included in the memory system 1000 can be easily performed.

도 12는 본 발명의 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 흐름도이다.12 is a flowchart illustrating a method of managing a memory block group according to an embodiment of the present invention.

도 12를 참조하면, 메모리 시스템(1000)은 호스트(2000)로부터 데이터를 수신할 수 있다(단계 S1201). 그리고 나서 상기 데이터에 대한 패턴 분석을 통해 생명 주기를 예측하는 예측 단계가 수행될 수 있다(단계 S1202). 단계 S1202는 생명 주기 예측부(722)에 의해 수행될 수 있다. 단계 S1202가 수행된 후 다수의 메모리 블록 그룹들(120, 130, 140, 150) 중 상기 데이터의 상기 예측된 생명 주기에 대응하는 제N(N은 자연수) 메모리 블록 그룹(120, 130, 140, 150)을 선택하는 단계가 수행될 수 있다(단계 S1203). 단계 S1203은 메모리 블록 그룹 관리부(721)에 의해 수행될 수 있다. 12, the memory system 1000 can receive data from the host 2000 (step S1201). Then, a prediction step of predicting the life cycle may be performed through pattern analysis on the data (step S1202). Step S1202 may be performed by the life cycle predicting unit 722. [ (N is a natural number) memory block group 120, 130, 140, 150 corresponding to the predicted life cycle of the data among a plurality of memory block groups 120, 130, 140, 150 after step S1202 is performed, 150) may be performed (step S1203). Step S1203 may be performed by the memory block group management unit 721. [

단계 S1203이 수행된 후 메모리 블록 그룹 관리부(721)는 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 상기 데이터를 기입할 수 있는지를 판단하는 단계를 수행할 수 있다(단계 S1204). 메모리 블록 그룹 관리부(721)는 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 상기 데이터를 기입할 수 있는지를 판단하는 단계를 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 소거 메모리 블록(110)이 남아 있는지를 판단하는 동작을 통해 수행할 수 있다. 만일 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 상기 데이터가 기입될 수 있다고 판단(도 12의 ‘예’에 해당)된다면, 상기 데이터를 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 포함된 메모리 블록(110)에 기입하는 단계가 수행될 수 있다(단계 S1205). 단계 S1205는 메모리 블록 그룹 관리부(721)가 선택된 메모리 블록 그룹(120, 130, 140, 150) 및 선택된 메모리 블록 그룹(120, 130, 140, 150) 내 선택된 메모리 블록(110)에 대한 정보를 기입 제어부(723)에 전달하고, 기입 제어부(723)는 상기의 정보에 기초하여 상기 데이터를 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 포함된 선택된 메모리 블록(110)에 기입하여 수행될 수 있다.After step S1203 is performed, the memory block group management unit 721 may determine whether the data can be written to the Nth memory block group 120, 130, 140, and 150 (step S1204) . The memory block group management unit 721 determines whether or not the data can be written to the Nth memory block group 120, 130, 140 and 150 by referring to the Nth memory block group 120, 130, 140, 150 ) To determine whether the erase memory block 110 remains. If it is determined that the data can be written to the Nth memory block group 120, 130, 140, or 150 (corresponding to Yes in FIG. 12), the data is transferred to the Nth memory block group 120 , 140, 150) to the memory block 110 (step S1205). In step S1205, the memory block group management unit 721 writes information on the selected memory block groups 120, 130, 140, and 150 and the selected memory blocks 110 in the selected memory block groups 120, 130, 140, And the write control unit 723 writes the data to the selected memory block 110 included in the Nth memory block group 120, 130, 140, 150 based on the above information .

만일 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 상기 데이터가 기입될 수 없다고 판단(도 12의 ‘아니오’에 해당)된다면, 제N 메모리 블록 그룹(120, 130, 140, 150)에 인접한 제(N-1) 메모리 블록 그룹(120, 130, 140, 150)에서 소거 메모리 블록(110)을 추출하여 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 할당하는 단계가 수행될 수 있다(단계 S1206). 단계 S1206은 메모리 블록 그룹 관리부(721)에 의해 수행될 수 있다. 이때 제N 메모리 블록 그룹(120, 130, 140, 150)에 할당된 생명 주기와 제(N-1) 메모리 블록 그룹(120, 130, 140, 150)에 할당된 생명 주기는 서로 인접한 값일 수 있다. 단계 S1206이 수행된 후 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 새롭게 할당된 소거 메모리 블록(110)에 상기 데이터를 기입하는 단계가 수행될 수 있다(단계 S1207). 단계 S1207은 메모리 블록 그룹 관리부(721)가 선택된 메모리 블록 그룹(120, 130, 140, 150) 및 선택된 메모리 블록 그룹(120, 130, 140, 150) 내 선택된 메모리 블록(110)에 대한 정보를 기입 제어부(723)에 전달하고, 기입 제어부(723)는 상기의 정보에 기초하여 상기 데이터를 상기 제N 메모리 블록 그룹(120, 130, 140, 150)에 포함된 새롭게 할당된 메모리 블록(110)에 기입하여 수행될 수 있다.If it is determined that the data can not be written to the Nth memory block groups 120, 130, 140 and 150 (corresponding to 'NO' in FIG. 12), the Nth memory block groups 120, 130, 140 and 150 Extracting the erase memory block 110 from the (N-1) th memory block group 120, 130, 140, 150 adjacent to the N th memory block group 120, 130, 140, (Step S1206). Step S1206 may be performed by the memory block group management unit 721. [ At this time, the life cycles allocated to the Nth memory block groups 120, 130, 140 and 150 and the life cycles allocated to the (N-1) th memory block groups 120, 130, 140 and 150 may be adjacent to each other . After step S1206 is performed, a step of writing the data to the erase memory block 110 newly allocated to the Nth memory block group 120, 130, 140, and 150 may be performed (step S1207). In step S1207, the memory block group management unit 721 writes information on the selected memory block groups 120, 130, 140, and 150 and the selected memory blocks 110 in the selected memory block groups 120, 130, 140, And the write control unit 723 transfers the data to the newly allocated memory block 110 included in the Nth memory block group 120, 130, 140, 150 based on the above information Can be performed.

도 13은 본 발명의 다른 실시예에 따른 메모리 블록 그룹 관리 방법을 설명하기 위한 흐름도이다.13 is a flowchart illustrating a method of managing a memory block group according to another embodiment of the present invention.

도 13을 참조하면, 메모리 시스템(1000)은 호스트(2000)로부터 데이터를 수신할 수 있다(단계 S1301). 그리고 나서 상기 데이터에 대한 업데이트 주기 예측을 통해 생명 주기를 예측하는 예측 단계가 수행될 수 있다(단계 S1302). 단계 S1302는 생명 주기 예측부(722)에 의해 수행될 수 있다. 단계 S1302가 수행된 후 다수의 메모리 블록 그룹들(120, 130, 140, 150) 중 상기 데이터의 상기 예측된 생명 주기에 대응하는 제1 메모리 블록 그룹(120)을 선택하는 단계가 수행될 수 있다(단계 S1303). 단계 S1303은 메모리 블록 그룹 관리부(721)에 의해 수행될 수 있다. 단계 S1303이 수행된 후 상기 제1 메모리 블록 그룹(120)에 데이터를 기입하는 단계가 수행될 수 있다(단계 S1304). 단계 S1304는 메모리 블록 그룹 관리부(721)가 선택된 제1 메모리 블록 그룹(120) 및 선택된 제1 메모리 블록 그룹(120) 내 선택된 메모리 블록(110)에 대한 정보를 기입 제어부(723)에 전달하고, 기입 제어부(723)는 상기의 정보에 기초하여 상기 데이터를 상기 제1 메모리 블록 그룹(120)에 포함된 선택된 메모리 블록(110)에 기입하여 수행될 수 있다.Referring to FIG. 13, the memory system 1000 can receive data from the host 2000 (step S1301). Then, a prediction step for predicting a life cycle may be performed through an update period prediction on the data (step S1302). Step S1302 may be performed by the life cycle predicting unit 722. [ The step of selecting the first memory block group 120 corresponding to the predicted life cycle of the data among the plurality of memory block groups 120, 130, 140, 150 after the step S1302 is performed may be performed (Step S1303). Step S1303 may be performed by the memory block group management unit 721. [ After step S1303 is performed, a step of writing data into the first memory block group 120 may be performed (step S1304). The step S1304 transfers the information on the selected first memory block group 120 and the selected memory block 110 in the selected first memory block group 120 to the write control unit 723 by the memory block group management unit 721, The write controller 723 may write the data to the selected memory block 110 included in the first memory block group 120 based on the information.

메모리 블록 그룹 관리부(721)에 의해 상기 제1 메모리 블록 그룹(120)에 소거 메모리 블록(110)이 있는지 여부가 확인될 수 있다(단계 S1305). 만일 상기 제1 메모리 블록 그룹(120)에 소거 메모리 블록(110)이 없다고 판단된 경우(즉 도 13의 ‘아니오’에 해당), 제1 메모리 블록 그룹(120)을 체인의 마지막으로 이동시키는 단계가 수행될 수 있다(단계 S1306). 단계 S1306은 메모리 블록 그룹 관리부(721)에 의해 수행될 수 있다. 단계 S1306은 제1 메모리 블록 그룹(120)에 가장 긴 생명 주기를 할당하는 동작일 수 있다. 단계 S1306이 수행된 후 제1 메모리 블록 그룹(120)을 제외한 다른 메모리 블록 그룹들(130, 140, 150)의 생명 주기를 하나씩 쉬프트(shift) 하는 단계가 수행될 수 있다(단계 S1307). 단계 S1307은 메모리 블록 그룹 관리부(721)에 의해 수행될 수 있다.The memory block group management unit 721 can determine whether the erased memory block 110 exists in the first memory block group 120 (step S1305). If it is determined that there is no erase memory block 110 in the first memory block group 120 (i.e., NO in FIG. 13), the step of moving the first memory block group 120 to the end of the chain (Step S1306). Step S1306 may be performed by the memory block group management unit 721. [ Step S1306 may be the operation of assigning the longest life cycle to the first memory block group 120. [ After step S1306 is performed, a step of shifting the lifetime of the other memory block groups 130, 140, and 150 except for the first memory block group 120 may be performed (step S1307). Step S1307 may be performed by the memory block group management unit 721. [

만일 상기 제1 메모리 블록 그룹(120)에 소거 메모리 블록(110)이 있다고 판단된 경우(즉 도 13의 ‘예’에 해당)에는 단계 S1306 및 S1307이 수행되지 않을 수 있다.If it is determined that the erased memory block 110 is present in the first memory block group 120 (i.e., YES in FIG. 13), steps S1306 and S1307 may not be performed.

도 14는 본 발명의 실시예에 따른 그룹 메타 데이터의 구성을 설명하기 위한 흐름도이다.FIG. 14 is a flowchart illustrating a configuration of group metadata according to an embodiment of the present invention.

도 14를 참조하면, 그룹 메타 관리부(721)는 다수의 메모리 블록 그룹들(120, 130, 140, 150)에 대한 그룹 메타 데이터(group meta data)를 관리하도록 구성될 수 있고, 그룹 메타 데이터는 다수의 메모리 블록 그룹들(120, 130, 140, 150) 각각의 그룹 번호(group number), 소거 메모리 블록(110)의 개수(erased block count), 시작 메모리 블록(110)의 블록 번호(start block number), 전체 메모리 블록(110)의 수(block count)에 대한 정보를 포함할 수 있다.Referring to FIG. 14, the group meta-manager 721 may be configured to manage group meta data for a plurality of memory block groups 120, 130, 140, and 150, A group number of each of the plurality of memory block groups 120, 130, 140 and 150, an erased block count of the erase memory blocks 110, a start block of the start memory block 110, number, and the number of all memory blocks 110 (block count).

도 15는 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설명하기 위한 도면이다. 15 is a diagram for explaining another embodiment of the memory system including the memory controller shown in Fig.

도 15를 참조하면, 메모리 시스템(Memory System; 30000)은 이동 전화기(cellular phone), 스마트폰(smart phone), 태블릿(tablet) PC, PDA(personal digital assistant) 또는 무선 통신 장치로 구현될 수 있다. 메모리 시스템(30000)은 메모리 장치(1100)와 상기 메모리 장치(1100)의 동작을 제어할 수 있는 메모리 컨트롤러(1200)를 포함할 수 있다. 메모리 컨트롤러(1200)는 프로세서(Processor; 3100)의 제어에 따라 메모리 장치(1100)의 데이터 액세스 동작, 예컨대 프로그램(program) 동작, 소거(erase) 동작 또는 리드(read) 동작을 제어할 수 있다. 15, the memory system 30000 may be implemented as a cellular phone, a smart phone, a tablet PC, a personal digital assistant (PDA), or a wireless communication device . The memory system 30000 can include a memory device 1100 and a memory controller 1200 that can control the operation of the memory device 1100. The memory controller 1200 may control the data access operation of the memory device 1100 such as a program operation, an erase operation or a read operation under the control of the processor 3100. [

메모리 장치(1100)에 프로그램된 데이터는 메모리 컨트롤러(1200)의 제어에 따라 디스플레이(Display; 3200)를 통하여 출력될 수 있다.The data programmed into the memory device 1100 may be output through a display (Display) 3200 under the control of the memory controller 1200.

무선 송수신기(RADIO TRANSCEIVER; 3300)는 안테나(ANT)를 통하여 무선 신호를 주고받을 수 있다. 예컨대, 무선 송수신기(3300)는 안테나(ANT)를 통하여 수신된 무선 신호를 프로세서(3100)에서 처리(process)될 수 있는 신호로 변경할 수 있다. 따라서, 프로세서(3100)는 무선 송수신기(3300)로부터 출력된 신호를 처리(process)하고 처리(process)된 신호를 메모리 컨트롤러(1200) 또는 디스플레이(3200)로 전송할 수 있다. 메모리 컨트롤러(1200)는 프로세서(3100)에 의하여 처리(process)된 신호를 반도체 메모리 장치(1100)에 프로그램할 수 있다. 또한, 무선 송수신기(3300)는 프로세서(3100)로부터 출력된 신호를 무선 신호로 변경하고 변경된 무선 신호를 안테나(ANT)를 통하여 외부 장치로 출력할 수 있다. 입력 장치(Input Device; 3400)는 프로세서(3100)의 동작을 제어하기 위한 제어 신호 또는 프로세서(3100)에 의하여 처리(process)될 데이터를 입력할 수 있는 장치로서, 터치 패드(touch pad)와 컴퓨터 마우스(computer mouse)와 같은 포인팅 장치(pointing device), 키패드(keypad) 또는 키보드로 구현될 수 있다. 프로세서(3100)는 메모리 컨트롤러(1200)로부터 출력된 데이터, 무선 송수신기(3300)로부터 출력된 데이터, 또는 입력 장치(3400)로부터 출력된 데이터가 디스플레이(3200)를 통하여 출력될 수 있도록 디스플레이(3200)의 동작을 제어할 수 있다.The radio transceiver 3300 can transmit and receive radio signals through the antenna ANT. For example, the wireless transceiver 3300 may change the wireless signal received via the antenna ANT to a signal that can be processed by the processor 3100. Thus, the processor 3100 can process the signal output from the wireless transceiver 3300 and transmit the processed signal to the memory controller 1200 or display 3200. The memory controller 1200 may program the signal processed by the processor 3100 to the semiconductor memory device 1100. [ In addition, the wireless transceiver 3300 may convert the signal output from the processor 3100 into a wireless signal, and output the modified wireless signal to an external device through the antenna ANT. An input device 3400 is a device capable of inputting a control signal for controlling the operation of the processor 3100 or data to be processed by the processor 3100 and includes a touch pad, A pointing device such as a computer mouse, a keypad, or a keyboard. The processor 3100 is connected to the display 3200 so that data output from the memory controller 1200, data output from the wireless transceiver 3300, or data output from the input device 3400 can be output via the display 3200. [ Can be controlled.

실시 예에 따라, 메모리 장치(1100)의 동작을 제어할 수 있는 메모리 컨트롤러(1200)는 프로세서(3100)의 일부로서 구현될 수 있고 또한 프로세서(3100)와 별도의 칩으로 구현될 수 있다.According to an embodiment, a memory controller 1200 capable of controlling the operation of the memory device 1100 may be implemented as part of the processor 3100 and may also be implemented as a separate chip from the processor 3100.

도 16은 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설명하기 위한 도면이다. 16 is a diagram for explaining another embodiment of the memory system including the memory controller shown in FIG.

도 16을 참조하면, 메모리 시스템(Memory System; 40000)은 PC(personal computer), 태블릿(tablet) PC, 넷-북(net-book), e-리더(e-reader), PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 또는 MP4 플레이어로 구현될 수 있다.16, the memory system 40000 includes a personal computer (PC), a tablet PC, a net-book, an e-reader, a personal digital assistant ), A portable multimedia player (PMP), an MP3 player, or an MP4 player.

메모리 시스템(40000)은 메모리 장치(Memory Device; 1100)와 상기 메모리 장치(1100)의 데이터 처리 동작을 제어할 수 있는 메모리 컨트롤러(memory Controller; 1200)를 포함할 수 있다. The memory system 40000 may include a memory device 1100 and a memory controller 1200 capable of controlling data processing operations of the memory device 1100.

프로세서(Processor; 4100)는 입력 장치(Input Device; 4200)를 통하여 입력된 데이터에 따라 메모리 장치(1100)에 저장된 데이터를 디스플레이(Display; 4300)를 통하여 출력할 수 있다. 예컨대, 입력 장치(4200)는 터치 패드 또는 컴퓨터 마우스와 같은 포인팅 장치, 키패드, 또는 키보드로 구현될 수 있다.A processor 4100 may output data stored in the memory device 1100 through a display 4300 according to data input through an input device 4200. For example, the input device 4200 may be implemented as a pointing device such as a touch pad or a computer mouse, a keypad, or a keyboard.

프로세서(4100)는 메모리 시스템(40000)의 전반적인 동작을 제어할 수 있고 메모리 컨트롤러(1200)의 동작을 제어할 수 있다. 실시 예에 따라 메모리 장치(1100)의 동작을 제어할 수 있는 메모리 컨트롤러(1200)는 프로세서(4100)의 일부로서 구현되거나, 프로세서(4100)와 별도의 칩으로 구현될 수 있다.The processor 4100 may control the overall operation of the memory system 40000 and may control the operation of the memory controller 1200. [ The memory controller 1200 capable of controlling the operation of the memory device 1100 according to an embodiment may be implemented as part of the processor 4100 or in a separate chip from the processor 4100. [

도 17은 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설명하기 위한 도면이다. 17 is a diagram for explaining another embodiment of the memory system including the memory controller shown in Fig.

도 17을 참조하면, 메모리 시스템(50000)은 이미지 처리 장치, 예컨대 디지털 카메라, 디지털 카메라가 부착된 이동 전화기, 디지털 카메라가 부착된 스마트 폰, 또는 디지털 카메라가 부착된 태블릿 PC로 구현될 수 있다.17, the memory system 50000 can be implemented as an image processing apparatus, such as a digital camera, a mobile phone with a digital camera, a smart phone with a digital camera, or a tablet PC with a digital camera.

메모리 시스템(50000)은 메모리 장치(Memory Device; 1100)와 상기 메모리 장치(1100)의 데이터 처리 동작, 예컨대 프로그램 동작, 소거 동작 또는 리드 동작을 제어할 수 있는 메모리 컨트롤러(1200)를 포함한다.The memory system 50000 includes a memory controller 1200 capable of controlling a data processing operation of the memory device 1100 and the memory device 1100, for example, a program operation, an erase operation, or a read operation.

메모리 시스템(50000)의 이미지 센서(Image Sensor; 5200)는 광학 이미지를 디지털 신호들로 변환할 수 있고, 변환된 디지털 신호들은 프로세서(Processor; 5100) 또는 메모리 컨트롤러(1200)로 전송될 수 있다. 프로세서(5100)의 제어에 따라, 상기 변환된 디지털 신호들은 디스플레이(Display; 5300)를 통하여 출력되거나 메모리 컨트롤러(1200)를 통하여 반도체 메모리 장치(1100)에 저장될 수 있다. 또한, 메모리 장치(1100)에 저장된 데이터는 프로세서(5100) 또는 메모리 컨트롤러(1200)의 제어에 따라 디스플레이(5300)를 통하여 출력될 수 있다. The image sensor 5200 of the memory system 50000 can convert the optical image into digital signals and the converted digital signals can be transmitted to the processor 5100 or the memory controller 1200. Under the control of the processor 5100, the converted digital signals may be output via a display 5300 or stored in the semiconductor memory device 1100 through the memory controller 1200. The data stored in the memory device 1100 may also be output via the display 5300 under the control of the processor 5100 or the memory controller 1200. [

실시 예에 따라 메모리 장치(1100)의 동작을 제어할 수 있는 메모리 컨트롤러(1200)는 프로세서(5100)의 일부로서 구현되거나 프로세서(5100)와 별개의 칩으로 구현될 수 있다. The memory controller 1200 capable of controlling the operation of the memory device 1100 according to an embodiment may be implemented as a part of the processor 5100 or in a chip separate from the processor 5100. [

도 18은 도 2에 도시된 메모리 컨트롤러를 포함하는 메모리 시스템의 다른 실시 예를 설기 위한 도면이다. 18 is a diagram for explaining another embodiment of the memory system including the memory controller shown in Fig.

도 18을 참조하면, 메모리 시스템(Memory System; 70000)은 메모리 카드(memory card) 또는 스마트 카드(smart card)로 구현될 수 있다. 메모리 시스템(70000)은 메모리 장치(Memory Device; 1100), 메모리 컨트롤러(Memory Controller; 1200) 및 카드 인터페이스(Card Interface; 7100)를 포함할 수 있다. Referring to FIG. 18, the memory system 70000 may be implemented as a memory card or a smart card. The memory system 70000 may include a memory device 1100, a memory controller 1200, and a card interface 7100.

메모리 컨트롤러(1200)는 반도체 메모리 장치(1100)와 카드 인터페이스(7100) 사이에서 데이터의 교환을 제어할 수 있다. 실시 예에 따라, 카드 인터페이스(7100)는 SD(secure digital) 카드 인터페이스 또는 MMC(multi-media card) 인터페이스일 수 있으나 이에 한정되는 것은 아니다. The memory controller 1200 can control the exchange of data between the semiconductor memory device 1100 and the card interface 7100. [ According to an embodiment, the card interface 7100 may be an SD (secure digital) card interface or a multi-media card (MMC) interface, but is not limited thereto.

카드 인터페이스(7100)는 호스트(2000)의 프로토콜에 따라 호스트(2000)와 메모리 컨트롤러(1200) 사이에서 데이터 교환을 인터페이스할 수 있다. 실시 예에 따라 카드 인터페이스(7100)는 USB(Universal Serial Bus) 프로토콜, IC(InterChip)-USB 프로토콜을 지원할 수 있다. 여기서, 카드 인터페이스는 호스트(60000)가 사용하는 프로토콜을 지원할 수 있는 하드웨어, 상기 하드웨어에 탑재된 소프트웨어 또는 신호 전송 방식을 의미할 수 있다. The card interface 7100 can interface data exchange between the host 2000 and the memory controller 1200 according to the protocol of the host 2000. [ According to the embodiment, the card interface 7100 can support USB (Universal Serial Bus) protocol and IC (InterChip) -USB protocol. Here, the card interface may mean hardware that can support the protocol used by the host 60000, software installed on the hardware, or a signal transmission method.

본 발명의 상세한 설명에서는 구체적인 실시 예에 관하여 설명하였으나, 본 발명의 범위와 기술적 사상에서 벗어나지 않는 한도 내에서 다양한 변경이 가능하다. 그러므로 본 발명의 범위는 상술한 실시 예에 국한되어 정해져서는 안되며 후술하는 특허청구범위뿐만 아니라 이 발명의 특허청구범위와 균등한 것들에 의해 정해져야 한다.While the invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention. Therefore, the scope of the present invention should not be limited to the above-described embodiments, but should be determined by the equivalents of the claims of the present invention as well as the claims of the following.

1000: 메모리 시스템 1100: 메모리 장치
1200: 메모리 컨트롤러 100: 메모리 셀 어레이
200: 주변 회로들 300: 제어 로직
1000: memory system 1100: memory device
1200: memory controller 100: memory cell array
200: peripheral circuits 300: control logic

Claims (20)

다수의 메모리 블록 그룹들;
상기 다수의 메모리 블록 그룹들 각각에 포함된 메모리 블록들;
상기 다수의 메모리 블록 그룹들 각각에 서로 상이한 생명 주기를 할당하고, 상기 생명 주기의 길이 순서로 상기 다수의 메모리 블록 그룹들을 체인(chain)으로 구성하는 메모리 블록 그룹 관리부;
데이터의 생명 주기를 예측하고, 상기 예측에 기초하여 상기 다수의 메모리 블록 그룹들 중 어느 하나를 선택하도록 구성된 생명 주기 예측부; 및
상기 선택된 메모리 블록 그룹에 상기 데이터를 기입하도록 구성된 기입 제어부를 포함하는 것을 특징으로 하는 메모리 시스템.
A plurality of memory block groups;
Memory blocks included in each of the plurality of memory block groups;
A memory block group management unit allocating different life cycles to each of the plurality of memory block groups and configuring the plurality of memory block groups in a chain in the order of the length of the life cycle;
A life cycle prediction unit configured to predict a life cycle of data and select one of the plurality of memory block groups based on the prediction; And
And a write control unit configured to write the data into the selected memory block group.
제1항에 있어서,
상기 다수의 메모리 블록 그룹들 중 어느 하나에 포함된 상기 메모리 블록들 전부에 데이터 기입이 수행된 때, 상기 메모리 블록 그룹 관리부는 상기 체인의 순서를 가변하도록 구성된 것을 특징으로 하는 메모리 시스템.
The method according to claim 1,
Wherein the memory block group management unit is configured to vary the order of the chains when data writing is performed on all of the memory blocks included in any one of the plurality of memory block groups.
제1항에 있어서,
상기 다수의 메모리 블록 그룹들 중 제1 메모리 블록 그룹의 상기 메모리 블록들 전부에 데이터 기입이 수행된 때, 상기 메모리 블록 그룹 관리부는 상기 제1 메모리 블록 그룹에 가장 긴 생명 주기를 할당하도록 구성된 것을 특징으로 하는 메모리 시스템.
The method according to claim 1,
The memory block group management unit is configured to allocate the longest life cycle to the first memory block group when data is written to all the memory blocks of the first memory block group among the plurality of memory block groups &Lt; / RTI &gt;
제1항에 있어서,
상기 선택된 메모리 블록 그룹에 소거 메모리 블록이 없을 때, 상기 메모리 블록 그룹 관리부는 다른 메모리 블록 그룹에 포함된 소거 메모리 블록을 추출하여 상기 선택된 메모리 블록 그룹에 할당하는 것을 특징으로 하는 메모리 시스템.
The method according to claim 1,
Wherein when there is no erase memory block in the selected memory block group, the memory block group manager extracts an erase memory block included in another memory block group and allocates the erase memory block to the selected memory block group.
제4항에 있어서,
상기 다른 메모리 블록 그룹에 할당된 상기 생명 주기는 상기 선택된 메모리 블록 그룹에 할당된 상기 생명 주기에 인접한 값인 것을 특징으로 하는 메모리 시스템.
5. The method of claim 4,
Wherein the life cycle assigned to the other memory block group is a value adjacent to the life cycle assigned to the selected memory block group.
제1항에 있어서,
상기 생명 주기 예측부는 상기 데이터의 패턴 분석을 통해 상기 생명 주기를 예측하도록 구성된 것을 특징으로 하는 메모리 시스템.
The method according to claim 1,
Wherein the life cycle prediction unit is configured to predict the life cycle through a pattern analysis of the data.
제1항에 있어서,
상기 생명 주기 예측부는 상기 데이터의 업데이트 주기에 기초하여 상기 생명 주기를 예측하도록 구성된 것을 특징으로 하는 메모리 시스템.
The method according to claim 1,
Wherein the life cycle prediction unit is configured to predict the life cycle based on an update period of the data.
제1항에 있어서,
상기 체인은 데이지 체인(daisy chain)의 형태를 가지는 것을 특징으로 하는 메모리 시스템.
The method according to claim 1,
Wherein the chain has the form of a daisy chain.
제1항에 있어서,
상기 생명 주기에 기초하여 상기 메모리 블록 그룹들의 가비지 컬렉션 동작(garbage collection operation)의 순서를 결정하도록 구성된 가비지 컬렉션 제어부를 더 포함하는 것을 특징으로 하는 메모리 시스템.
The method according to claim 1,
Further comprising a garbage collection controller configured to determine an order of a garbage collection operation of the memory block groups based on the life cycle.
제9항에 있어서,
상기 다수의 메모리 블록 그룹들에 대한 그룹 메타 데이터를 관리하도록 구성된 그룹 메타 관리부를 더 포함하고,
상기 그룹 메타 데이터는 상기 다수의 메모리 블록 그룹들 각각의 그룹 번호, 소거 메모리 블록의 수, 시작 메모리 블록의 블록 번호 및 전체 메모리 블록의 수에 대한 정보 중 하나 이상을 포함하는 것을 특징으로 하는 메모리 시스템.
10. The method of claim 9,
Further comprising a group meta-manager configured to manage group metadata for the plurality of memory block groups,
Wherein the group metadata includes at least one of a group number of each of the plurality of memory block groups, a number of erased memory blocks, a block number of the starting memory block, and information on the total number of memory blocks. .
데이터를 수신하는 수신 단계;
상기 데이터에 대한 패턴 분석을 통해 상기 데이터의 생명 주기를 예측하는 예측 단계;
다수의 메모리 블록 그룹들 중 상기 데이터의 상기 예측된 생명 주기가 할당된 제1 메모리 블록 그룹을 선택하는 단계;
상기 제1 메모리 블록 그룹과 상이한 생명 주기가 할당된 제2 메모리 블록 그룹에 포함된 메모리 블록을 추출하여 상기 제1 메모리 블록 그룹에 할당하는 할당 단계; 및
상기 메모리 블록에 상기 데이터를 저장하는 저장 단계를 포함하는 것을 특징으로 하는 메모리 시스템의 동작 방법.
A receiving step of receiving data;
A prediction step of predicting a life cycle of the data through a pattern analysis of the data;
Selecting a first memory block group to which the predicted life cycle of the data is allocated among the plurality of memory block groups;
An allocation step of extracting a memory block included in a second memory block group to which a life cycle different from the first memory block group is allocated and assigning the memory block to the first memory block group; And
And storing the data in the memory block.
제11항에 있어서,
상기 예측 단계는 상기 데이터의 업데이트 주기를 분석하는 동작을 포함하는 것을 특징으로 하는 메모리 시스템의 동작 방법.
12. The method of claim 11,
Wherein the predicting step comprises analyzing an update period of the data.
제11항에 있어서,
상기 할당 단계는 상기 제1 메모리 블록에 소거 메모리 블록이 없을 때 수행되는 것을 특징으로 하는 메모리 시스템의 동작 방법.
12. The method of claim 11,
Wherein the allocating step is performed when there is no erase memory block in the first memory block.
제13항에 있어서,
상기 다수의 메모리 블록 그룹들 중 상기 제1 메모리 블록 그룹과 상기 제2 메모리 블록 그룹에 할당된 생명 주기가 서로 가장 유사한 것을 특징으로 하는 메모리 시스템의 동작 방법.
14. The method of claim 13,
Wherein among the plurality of memory block groups, the life cycles allocated to the first memory block group and the second memory block group are most similar to each other.
제11항에 있어서,
상기 제1 메모리 블록 그룹은 나머지 메모리 블록 그룹들 대비 더 긴 생명 주기가 할당된 것을 특징으로 하는 메모리 시스템의 동작 방법.
12. The method of claim 11,
Wherein the first memory block group is allocated a longer life cycle than the remaining memory block groups.
제11항에 있어서,
상기 제1 메모리 블록 그룹에 포함된 메모리 블록들에 대해 가비지 컬렉션 동작을 수행하는 단계를 포함하고,
상기 제1 메모리 블록 그룹에 포함된 상기 메모리 블록들 중 둘 이상의 메모리 블록들에 대해 가비지 컬렉션 동작이 함께 수행되는 것을 특징으로 하는 메모리 시스템의 동작 방법.
12. The method of claim 11,
Performing a garbage collection operation on the memory blocks included in the first memory block group,
Wherein a garbage collection operation is performed on two or more memory blocks among the memory blocks included in the first memory block group.
순차적으로 증가하는 제1 내지 제N(N은 3 이상의 자연수) 생명 주기가 각각 할당된 제1 내지 제N 메모리 블록 그룹들;
상기 제1 내지 제N 메모리 블록 그룹들을 순서대로 데이지 체인(daisy chain)으로 연결하도록 구성된 메모리 블록 그룹 관리부;
데이터의 생명 주기를 예측하고, 상기 예측에 기초하여 상기 제1 내지 제N 메모리 블록 그룹들 중 어느 하나를 선택하도록 구성된 생명 주기 예측부; 및
상기 선택된 메모리 블록 그룹에 상기 데이터를 기입하도록 구성된 기입 제어부를 포함하고,
상기 선택된 메모리 블록 그룹에 포함된 소거 메모리 블록이 소진된 때, 상기 메모리 블록 그룹 관리부는 상기 선택된 메모리 블록 그룹에 제N 생명 주기를 할당하도록 구성된 것을 특징으로 하는 메모리 시스템.
First to Nth memory block groups to which first to Nth (N is a natural number equal to or more than 3) life cycles are sequentially allocated;
A memory block group management unit configured to sequentially connect the first to Nth memory block groups in a daisy chain;
A life cycle prediction unit configured to predict a life cycle of data and to select any one of the first to Nth memory block groups based on the prediction; And
And a write control unit configured to write the data into the selected memory block group,
And when the erase memory block included in the selected memory block group is exhausted, the memory block group management unit is configured to allocate an Nth life cycle to the selected memory block group.
제17항에 있어서,
상기 선택된 메모리 블록 그룹이 상기 제1 메모리 블록 그룹인 때, 상기 메모리 블록 그룹 관리부는 상기 제2 내지 제N 메모리 블록 그룹들에 할당된 상기 생명 주기를 하나씩 쉬프트(shift) 하도록 구성된 것을 특징으로 하는 메모리 시스템.
18. The method of claim 17,
Wherein when the selected memory block group is the first memory block group, the memory block group management unit is configured to shift the life cycles allocated to the second to Nth memory block groups one by one. system.
제17항에 있어서,
상기 생명 주기 예측부는 상기 데이터의 업데이트 주기에 기초하여 상기 생명 주기를 예측하도록 구성된 것을 특징으로 하는 메모리 시스템.
18. The method of claim 17,
Wherein the life cycle prediction unit is configured to predict the life cycle based on an update period of the data.
제17항에 있어서,
상기 생명 주기의 길이에 기초하여 상기 제1 내지 제N 메모리 블록 그룹들에 대한 가비지 컬렉션 동작의 순서를 결정하도록 구성된 가비지 컬렉션 제어부를 포함하는 것을 특징으로 하는 메모리 시스템.
18. The method of claim 17,
And a garbage collection controller configured to determine an order of a garbage collection operation for the first to Nth memory block groups based on the length of the life cycle.
KR1020170117939A 2017-09-14 2017-09-14 Memory system and operating method thereof KR20190030463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170117939A KR20190030463A (en) 2017-09-14 2017-09-14 Memory system and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170117939A KR20190030463A (en) 2017-09-14 2017-09-14 Memory system and operating method thereof

Publications (1)

Publication Number Publication Date
KR20190030463A true KR20190030463A (en) 2019-03-22

Family

ID=65949343

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170117939A KR20190030463A (en) 2017-09-14 2017-09-14 Memory system and operating method thereof

Country Status (1)

Country Link
KR (1) KR20190030463A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021142339A1 (en) * 2020-01-10 2021-07-15 Micron Technology, Inc. Performing a media management operation based on a sequence identifier for a block

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021142339A1 (en) * 2020-01-10 2021-07-15 Micron Technology, Inc. Performing a media management operation based on a sequence identifier for a block
US11467980B2 (en) 2020-01-10 2022-10-11 Micron Technology, Inc. Performing a media management operation based on a sequence identifier for a block
US11782847B2 (en) 2020-01-10 2023-10-10 Micron Technology, Inc. Performing a media management operation based on a sequence identifier for a block

Similar Documents

Publication Publication Date Title
CN109683805B (en) Memory system and operating method thereof
US11334448B2 (en) Memory system and operating method thereof
JP5728672B2 (en) Hybrid memory management
CN109783397B (en) Memory system and method of operating the same
KR20190054974A (en) Memory system and operating method thereof
TWI774830B (en) Memory system and operating method thereof
CN109697024B (en) Memory system and operating method thereof
KR102578188B1 (en) Memory controller and operating method thereof
CN111009275A (en) Memory device and operation method of memory device
CN111091859B (en) Memory device and method of operating the same
US20190121727A1 (en) Memory system and method for operating the same
KR20190032809A (en) Memory system and operating method thereof
KR20160050394A (en) Memory System, and Methods of Operating the Memory System
KR20190051564A (en) Memory system and operating method thereof
US20220350539A1 (en) Dynamic memory address write policy translation based on performance needs
KR20190043860A (en) Memory system and operation method thereof
CN111258934B (en) Memory controller, memory system including the same, and method of operating the same
CN109933467B (en) Memory system and operating method thereof
KR20190030463A (en) Memory system and operating method thereof
KR101027687B1 (en) Solid State Storage System for Controlling Write Operation and Method of Controlling the Same
US10942675B2 (en) Memory system and operating method thereof
KR20210032222A (en) Memory controller and operating method thereof
KR20190107504A (en) Memory controller and operating method thereof
US10769060B2 (en) Storage system and method of operating the same
KR20240002571A (en) Memory device, memory system including the memory device and operating method of the memory system