KR20220169642A - Controller and operation method thereof - Google Patents

Controller and operation method thereof Download PDF

Info

Publication number
KR20220169642A
KR20220169642A KR1020210079965A KR20210079965A KR20220169642A KR 20220169642 A KR20220169642 A KR 20220169642A KR 1020210079965 A KR1020210079965 A KR 1020210079965A KR 20210079965 A KR20210079965 A KR 20210079965A KR 20220169642 A KR20220169642 A KR 20220169642A
Authority
KR
South Korea
Prior art keywords
data chunk
backup
program
memory
data
Prior art date
Application number
KR1020210079965A
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 KR1020210079965A priority Critical patent/KR20220169642A/en
Priority to US17/536,712 priority patent/US11789637B2/en
Priority to CN202210247077.3A priority patent/CN115576482A/en
Priority to DE102022203891.6A priority patent/DE102022203891A1/en
Priority to JP2022085888A priority patent/JP2023001880A/en
Publication of KR20220169642A publication Critical patent/KR20220169642A/en
Priority to US18/460,705 priority patent/US20230409228A1/en

Links

Images

Classifications

    • 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/065Replication mechanisms
    • 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/56Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using storage elements with more than two stable states represented by steps, e.g. of voltage, current, phase, frequency
    • G11C11/5671Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using storage elements with more than two stable states represented by steps, e.g. of voltage, current, phase, frequency using charge trapping in an insulator
    • 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
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/04Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS
    • G11C16/0483Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS comprising cells having several storage transistors connected in series
    • 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/08Address circuits; Decoders; Word-line control circuits
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C2211/00Indexing scheme relating to digital stores characterized by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C2211/56Indexing scheme relating to G11C11/56 and sub-groups for features not covered by these groups
    • G11C2211/564Miscellaneous aspects
    • G11C2211/5642Multilevel memory with buffers, latches, registers at input or output
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C2211/00Indexing scheme relating to digital stores characterized by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C2211/56Indexing scheme relating to G11C11/56 and sub-groups for features not covered by these groups
    • G11C2211/564Miscellaneous aspects
    • G11C2211/5648Multilevel memory programming, reading or erasing operations wherein the order or sequence of the operations is relevant
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

A method of operating a controller which controls a memory device including multi-level cells programmed through first and second program steps comprises: a step of buffering data chunks to be programmed in a write buffer; a step of selectively backing up the data chunks to a backup memory; a step of determining a program order for each of the data chunks buffered in the write buffer, wherein a non-backup data chunk among the data chunks is programmed in a second program step; and a step of controlling the memory device to program the data chunks by having the memory device perform a first program step on a first physical page and perform a first program step on a second physical page following the first physical page and then performing a second program step on the first physical page. Accordingly, the present invention can provide a controller and a method of operating the controller which can reduce the manufacturing cost of the memory system while maintaining the performance and reliability of the memory system.

Description

컨트롤러 및 컨트롤러의 동작 방법 {CONTROLLER AND OPERATION METHOD THEREOF}Controller and operation method of controller {CONTROLLER AND OPERATION METHOD THEREOF}

본 발명은 컨트롤러 및 컨트롤러의 동작 방법에 관한 것이다.The present invention relates to a controller and a method of operating the controller.

최근 컴퓨터 환경에 대한 패러다임(paradigm)이 언제, 어디서나 컴퓨터 시스템을 사용할 수 있도록 하는 유비쿼터스 컴퓨팅(ubiquitous computing)으로 전환되고 있다. 이로 인해 휴대폰, 디지털 카메라, 노트북 컴퓨터 등과 같은 휴대용 전자 장치의 사용이 급증하고 있다. 이와 같은 휴대용 전자 장치는 일반적으로 메모리 장치를 이용하는 메모리 시스템, 다시 말해 데이터 저장 장치를 사용한다. 데이터 저장 장치는 휴대용 전자 장치의 주 기억 장치 또는 보조 기억 장치로 사용된다.Recently, a paradigm for a computer environment is shifting to ubiquitous computing that allows a computer system to be used anytime and anywhere. As a result, the use of portable electronic devices such as mobile phones, digital cameras, and notebook computers is rapidly increasing. Such a portable electronic device generally uses a memory system using a memory device, that is, a data storage device. Data storage devices are used as main storage devices or auxiliary storage devices in portable electronic devices.

비휘발성 메모리 장치를 이용한 데이터 저장 장치는 하드 디스크와 달리 기계적인 구동부가 없어서 안정성 및 내구성이 뛰어나며, 또한 정보의 액세스 속도가 매우 빠르고 전력 소모가 적다는 장점이 있다. 이러한 장점을 갖는 메모리 시스템의 일 예로 데이터 저장 장치는, USB(Universal Serial Bus) 메모리 장치, 다양한 인터페이스를 갖는 메모리 카드, 솔리드 스테이트 드라이브(SSD: Solid State Drive) 등을 포함한다.A data storage device using a non-volatile memory device, unlike a hard disk, has excellent stability and durability because it does not have a mechanical driving unit, and also has advantages such as very fast information access speed and low power consumption. As an example of a memory system having such an advantage, the data storage device includes a universal serial bus (USB) memory device, a memory card having various interfaces, a solid state drive (SSD), and the like.

본 발명은 메모리 시스템의 성능 및 신뢰성을 유지하면서 메모리 시스템의 제조비용을 절감할 수 있는 컨트롤러 및 컨트롤러의 동작 방법을 제공하고자 한다.SUMMARY OF THE INVENTION An object of the present invention is to provide a controller and an operating method of the controller capable of reducing manufacturing costs of a memory system while maintaining performance and reliability of the memory system.

본 발명의 실시 예에 따르면, 제1 및 제2 프로그램스텝을 거쳐 프로그램되는 멀티 레벨 셀들을 포함하는 메모리 장치를 제어하는 컨트롤러의 동작 방법은, 프로그램될 데이터청크들을 라이트 버퍼에 버퍼링하는 단계; 상기 데이터청크들을 선택적으로 백업 메모리에 백업하는 단계; 상기 라이트 버퍼에 버퍼링된 데이터청크들 각각의 프로그램 순서를 결정하되, 상기 데이터청크들 중 논백업 데이터청크는 제2 프로그램스텝에서 프로그램되도록 상기 프로그램 순서를 결정하는 단계; 및 상기 메모리 장치가 제1 물리 페이지에 제1 프로그램스텝을 수행하고, 상기 제1 물리 페이지에 후속하는 제2 물리 페이지에 제1 프로그램스텝을 수행한 후 상기 제1 물리 페이지에 제2 프로그램스텝을 수행함으로써 상기 데이터청크들을 프로그램하도록 상기 메모리 장치를 제어하는 단계를 포함한다.According to an embodiment of the present invention, a method of operating a controller for controlling a memory device including multi-level cells programmed through first and second program steps includes buffering data chunks to be programmed in a write buffer; selectively backing up the data chunks to a backup memory; determining a program order of each of the data chunks buffered in the write buffer so that a non-backup data chunk among the data chunks is programmed in a second program step; and the memory device executes a first program step on a first physical page, performs a first program step on a second physical page subsequent to the first physical page, and then executes a second program step on the first physical page. and controlling the memory device to program the data chunks by performing.

또한, 상기 데이터청크들 각각의 프로그램 순서를 결정하는 단계는 상기 데이터청크들 중 노멀 데이터청크는 제1 또는 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정하는 단계를 포함하고, 상기 노멀 데이터청크는 라이트 버퍼에 버퍼링된 데이터청크들 중, 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크일 수 있다.The determining of the program order of each of the data chunks may include determining a program order such that a normal data chunk among the data chunks is programmed in a first or second program step, and the normal data chunk is written Among the data chunks buffered in the buffer, a corresponding backup data chunk may be a data chunk backed up in the backup memory.

또한, 상기 라이트 버퍼에 버퍼링된 데이터청크들 각각의 프로그램 순서를 결정하는 단계는 상기 메모리 장치가 제1 프로그램스텝을 수행할 차례에 상기 데이터청크들 중 노멀 데이터청크가 프로그램되도록 상기 프로그램 순서를 결정하는 단계; 상기 메모리 장치가 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 논백업 데이터청크가 버퍼링된 경우 상기 논백업 데이터청크가 프로그램되도록 상기 프로그램 순서를 결정하는 단계; 및 상기 메모리 장치가 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 노멀 데이터청크만이 버퍼링된 경우 상기 노멀 데이터청크가 프로그램되도록 상기 프로그램 순서를 결정하는 단계를 포함할 수 있다.The determining of the program order of each of the data chunks buffered in the write buffer may include determining the program order so that a normal data chunk among the data chunks is programmed when the memory device performs the first program step. step; determining the program order so that the non-backup data chunk is programmed when the non-backup data chunk is buffered in the write buffer when it is the turn of the memory device to perform the second program step; and determining the program order so that the normal data chunk is programmed when only the normal data chunk is buffered in the write buffer when the memory device is to perform the second program step.

또한, 상기 동작 방법은 논백업 데이터청크를 상기 메모리 장치로 제공하는 단계; 및 상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 논백업 데이터청크를 상기 라이트 버퍼에서 제거하는 단계를 더 포함할 수 있다.In addition, the operating method may include providing a non-backup data chunk to the memory device; and removing the non-backup data chunk from the write buffer when a program operation of a physical page associated with the non-backup data chunk is successfully completed.

또한, 상기 동작 방법은 상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 라이트 버퍼에 버퍼링된 상기 논백업 데이터청크를 상기 메모리 장치로 다시 제공하는 단계를 더 포함할 수 있다.The operating method may further include providing the non-backup data chunk buffered in the write buffer to the memory device again, if the program operation of the physical page associated with the non-backup data chunk fails.

또한, 상기 동작 방법은 노멀 데이터청크를 상기 메모리 장치로 제공하는 단계; 및 상기 노멀 데이터청크를 상기 메모리 장치로 제공한 후 상기 노멀 데이터청크를 상기 라이트 버퍼에서 제거하는 단계를 더 포함하고, 상기 노멀 데이터청크는 상기 라이트 버퍼에 버퍼링된 데이터청크들 중, 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크일 수 있다.The operating method may further include providing a normal data chunk to the memory device; and removing the normal data chunk from the write buffer after providing the normal data chunk to the memory device, wherein the normal data chunk is the corresponding backup data among data chunks buffered in the write buffer. A chunk may be a data chunk backed up in the backup memory.

또한, 상기 동작 방법은 상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 노멀 데이터청크에 대응하는 백업 데이터청크를 상기 백업 메모리에서 제거하는 단계를 더 포함할 수 있다.The operation method may further include removing a backup data chunk corresponding to the normal data chunk from the backup memory when a program operation of a physical page associated with the normal data chunk is successfully completed.

또한, 상기 동작 방법은 상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 백업 메모리에 백업된 상기 백업 데이터청크를 상기 메모리 장치로 제공하는 단계를 더 포함할 수 있다.The operating method may further include providing the backup data chunk backed up in the backup memory to the memory device when a program operation of the physical page associated with the normal data chunk fails.

또한, 상기 데이터청크들을 선택적으로 상기 백업 메모리에 백업하는 단계는 호스트로부터 수신된 데이터청크가 상기 백업 메모리로 백업되는 데이터패스에서 병목이 발생하지 않도록 상기 데이터청크를 폐기하거나 상기 백업 메모리에 백업하는 단계를 포함하고, 상기 라이트 버퍼는 상기 백업 메모리보다 고속으로 동작하는 메모리일 수 있다.The step of selectively backing up the data chunks to the backup memory may include discarding the data chunks or backing them up to the backup memory so that a bottleneck does not occur in a data path where the data chunks received from the host are backed up to the backup memory. Including, the write buffer may be a memory that operates at a higher speed than the backup memory.

또한, 상기 데이터청크들을 선택적으로 상기 백업 메모리에 백업하는 단계는 상기 호스트로부터 수신된 데이터청크가 경유하는 임시 버퍼에 여유공간이 있는 경우 상기 데이터청크를 상기 임시 버퍼에 버퍼링하고, 상기 임시 버퍼에 버퍼링된 데이터청크를 백업 메모리에 백업하는 단계; 및 상기 임시 버퍼에 여유공간이 없는 경우 상기 데이터청크를 임시 버퍼에 버퍼링하지 않고 폐기하는 단계를 포함할 수 있다.In addition, the step of selectively backing up the data chunks in the backup memory may include buffering the data chunks in the temporary buffer if there is free space in the temporary buffer through which the data chunks received from the host pass through, and buffering the data chunks in the temporary buffer. backing up the data chunk to a backup memory; and discarding the data chunk without buffering it in the temporary buffer when there is no free space in the temporary buffer.

본 발명의 실시 예에 따르면, 제1 및 제2 프로그램스텝을 거쳐 프로그램되는 멀티 레벨 셀들을 포함하는 메모리 장치를 제어하는 컨트롤러는, 프로그램될 데이터청크들을 버퍼링하는 라이트 버퍼; 상기 데이터청크들을 선택적으로 백업하는 백업 메모리; 상기 라이트 버퍼에 버퍼링된 데이터청크들 각각의 프로그램 순서를 결정하되, 상기 데이터청크들 중 논백업 데이터청크는 제2 프로그램스텝에서 프로그램되도록 상기 프로그램 순서를 결정하는 프로세서를 포함하고, 상기 프로세서는 상기 메모리 장치가 제1 물리 페이지에 제1 프로그램스텝을 수행하고, 상기 제1 물리 페이지에 후속하는 제2 물리 페이지에 제1 프로그램스텝을 수행한 후 상기 제1 물리 페이지에 제2 프로그램스텝을 수행함으로써 상기 데이터청크들을 프로그램하도록 상기 메모리 장치를 제어한다.According to an embodiment of the present invention, a controller controlling a memory device including multi-level cells programmed through first and second program steps includes a write buffer buffering data chunks to be programmed; a backup memory that selectively backs up the data chunks; and a processor configured to determine a program order of each of the data chunks buffered in the write buffer, such that a non-backup data chunk among the data chunks is programmed in a second program step, wherein the processor determines the program order. The device executes a first program step on a first physical page, performs a first program step on a second physical page subsequent to the first physical page, and then performs a second program step on the first physical page. Controls the memory device to program data chunks.

또한, 상기 프로세서는 상기 데이터청크들 중 노멀 데이터청크는 제1 또는 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정하고, 상기 노멀 데이터청크는 라이트 버퍼에 버퍼링된 데이터청크들 중, 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크인 컨트롤러가 제공될 수 있다.Also, the processor determines a program sequence such that a normal data chunk among the data chunks is programmed in a first or second program step, and the normal data chunk is a corresponding backup data chunk among data chunks buffered in the write buffer. A controller is a data chunk backed up to the backup memory.

또한, 상기 프로세서는 상기 메모리 장치가 제1 프로그램스텝을 수행할 차례에 상기 데이터청크들 중 노멀 데이터청크를 프로그램하고, 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 논백업 데이터청크가 버퍼링된 경우 상기 논백업 데이터청크를 프로그램하고, 상기 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 노멀 데이터청크만이 버퍼링된 경우 상기 노멀 데이터청크를 프로그램하도록 상기 프로그램 순서를 결정할 수 있다.In addition, the processor programs a normal data chunk among the data chunks when the memory device performs the first program step, and the non-backup data chunk is buffered in the write buffer when the second program step is performed. In this case, the non-backup data chunk is programmed, and when only the normal data chunk is buffered in the write buffer at the turn of performing the second program step, the program sequence may be determined to program the normal data chunk.

또한, 상기 프로세서는 논백업 데이터청크를 상기 메모리 장치로 제공하고, 상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 논백업 데이터청크를 상기 라이트 버퍼에서 제거할 수 있다.Also, the processor may provide a non-backup data chunk to the memory device, and may remove the non-backup data chunk from the write buffer when a program operation of a physical page associated with the non-backup data chunk is successfully completed.

또한, 상기 프로세서는 상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 라이트 버퍼에 버퍼링된 상기 논백업 데이터청크를 상기 메모리 장치로 다시 제공할 수 있다.Also, if a program operation of a physical page associated with the non-backup data chunk fails, the processor may provide the non-backup data chunk buffered in the write buffer to the memory device again.

또한, 상기 프로세서는 노멀 데이터청크를 메모리 장치로 제공하고, 상기 노멀 데이터청크를 상기 라이트 버퍼에서 제거하고, 상기 노멀 데이터청크는 상기 라이트 버퍼에 버퍼링된 데이터청크들 중 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크일 수 있다.In addition, the processor provides a normal data chunk to a memory device, removes the normal data chunk from the write buffer, and the normal data chunk is a corresponding backup data chunk among data chunks buffered in the write buffer. It can be a chunk of data backed up in memory.

또한, 상기 프로세서는 상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 노멀 데이터청크에 대응하는 백업 데이터청크를 상기 백업 메모리에서 제거할 수 있다.Also, the processor may remove a backup data chunk corresponding to the normal data chunk from the backup memory when a program operation of a physical page associated with the normal data chunk is successfully completed.

또한, 상기 프로세서는 상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 백업 메모리에 백업된 상기 백업 데이터청크를 상기 메모리 장치로 제공할 수 있다.Also, when a program operation of a physical page associated with the normal data chunk fails, the processor may provide the backup data chunk backed up in the backup memory to the memory device.

또한, 상기 백업 메모리는 호스트로부터 수신된 데이터청크가 상기 백업 메모리로 백업되는 데이터패스에서 병목이 발생하지 않도록 상기 데이터청크를 선택적으로 상기 백업 메모리에 백업하고, 상기 라이트 버퍼는 상기 백업 메모리보다 고속으로 동작하는 메모리일 수 있다.In addition, the backup memory selectively backs up data chunks received from the host to the backup memory so that a bottleneck does not occur in a data path backed up to the backup memory, and the write buffer operates at a higher speed than the backup memory. It can be a working memory.

또한, 상기 컨트롤러는 상기 호스트로부터 수신된 데이터청크가 경유하는 임시 버퍼를 더 포함하고, 상기 임시 버퍼는 내부에 여유공간이 있는 경우 상기 데이터청크를 버퍼링한 후 상기 버퍼링된 데이터청크를 상기 백업 메모리로 제공하고, 내부에 여유공간이 없는 경우 상기 데이터청크를 버퍼링하지 않고 폐기할 수 있다.In addition, the controller further includes a temporary buffer through which the data chunk received from the host passes, and the temporary buffer buffers the data chunk when there is free space therein and transfers the buffered data chunk to the backup memory. provided, and if there is no free space inside, the data chunk may be discarded without buffering.

본 발명은 메모리 시스템의 성능 및 신뢰성을 유지하면서 메모리 시스템의 제조비용을 절감할 수 있는 컨트롤러 및 컨트롤러의 동작 방법을 제공할 수 있다.The present invention may provide a controller and an operating method of the controller capable of reducing manufacturing costs of a memory system while maintaining performance and reliability of the memory system.

도 1은 본 발명의 실시 예에 따른 메모리 시스템(110)을 포함하는 데이터 처리 시스템(100)의 일 예를 개략적으로 도시한 도면이다.
도 2는 본 발명의 실시 예에 따른 메모리 시스템(110)을 상세히 설명하는 도면이다.
도 3은 호스트(102)로부터 수신된 데이터의 데이터패스를 설명하기 위한 도면이다.
도 4는 메모리 장치(150)의 3차원 메모리 셀 어레이를 나타내는 도면이다.
도 5는 메모리 장치(150)의 멀티스텝 프로그램 동작을 설명하기 위한 도면이다.
도 6은 멀티스텝 프로그램 동작을 수행하는 메모리 장치(150)의 프로그램 순서를 설명하는 도면이다.
도 7은 본 발명의 실시 예에 따라 라이트 동작을 수행하기 위한 컨트롤러(130) 및 메모리 장치(150)의 상호작용(transaction)을 나타낸다.
도 8은 단계 S706의 세부 동작을 예시하는 도면이다.
도 9a 및 도 9b는 본 발명의 실시 예에 따른 컨트롤러(130)의 동작을 구체적인 예를 들어 설명하는 도면이다.
1 is a diagram schematically illustrating an example of a data processing system 100 including a memory system 110 according to an embodiment of the present invention.
2 is a diagram illustrating a memory system 110 according to an exemplary embodiment in detail.
FIG. 3 is a diagram for explaining a data path of data received from the host 102. Referring to FIG.
4 is a diagram illustrating a 3D memory cell array of the memory device 150 .
5 is a diagram for explaining a multi-step program operation of the memory device 150. Referring to FIG.
6 is a diagram illustrating a program sequence of the memory device 150 performing a multi-step program operation.
7 illustrates a transaction between the controller 130 and the memory device 150 for performing a write operation according to an embodiment of the present invention.
8 is a diagram illustrating the detailed operation of step S706.
9A and 9B are diagrams illustrating the operation of the controller 130 according to an embodiment of the present invention with specific examples.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 설명하기로 한다.Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.

그러나, 본 발명은 이하에서 개시되는 실시예에 한정되는 것이 아니라 서로 다른 다양한 형태로 구성될 수 있으며, 단지 본 실시예는 본 발명의 개시가 완전하도록 하며 통상의 지식을 가진 자에게 본 발명의 범주를 완전하게 알려주기 위해 제공되는 것이다.However, the present invention is not limited to the embodiments disclosed below and may be configured in various different forms, but only the present embodiments are intended to complete the disclosure of the present invention and to those skilled in the art within the scope of the present invention. It is provided to fully inform you.

도 1은 본 발명의 실시 예에 따른 메모리 시스템을 포함하는 데이터 처리 시스템의 일 예를 개략적으로 도시한 도면이다.1 is a diagram schematically illustrating an example of a data processing system including a memory system according to an embodiment of the present invention.

도 1을 참조하면, 데이터 처리 시스템(100)은, 호스트(102) 및 메모리 시스템(110)을 포함한다.Referring to FIG. 1 , a data processing system 100 includes a host 102 and a memory system 110 .

호스트(102)는 전자 장치, 예를 들어 휴대폰, MP3 플레이어, 랩탑 컴퓨터 등과 같은 휴대용 전자 장치들, 또는 데스크탑 컴퓨터, 게임기, TV, 프로젝터 등과 같은 전자 장치들을 포함할 수 있다.The host 102 may include electronic devices, for example, portable electronic devices such as mobile phones, MP3 players, and laptop computers, or electronic devices such as desktop computers, game consoles, TVs, and projectors.

호스트(102)는 적어도 하나의 운영 시스템(OS: operating system)을 포함할 수 있다. 운영 시스템은 호스트(102)의 기능 및 동작을 전반적으로 관리 및 제어하고, 데이터 처리 시스템(100) 또는 메모리 시스템(110)을 사용하는 사용자와 호스트(102) 간에 상호 동작을 제공한다. 운영 시스템은 사용자의 사용 목적 및 용도에 상응한 기능 및 동작을 지원하며, 호스트(102)의 이동성(mobility)에 따라 일반 운영 시스템과 모바일 운용 시스템으로 구분할 수 있다. 운영 시스템에서의 일반 운영 시스템 시스템은, 사용자의 사용 환경에 따라 개인용 운영 시스템과 기업용 운영 시스템으로 구분할 수 있다.The host 102 may include at least one operating system (OS). The operating system generally manages and controls the functions and operations of the host 102 and provides interaction between a user using the data processing system 100 or memory system 110 and the host 102 . The operating system supports functions and operations corresponding to the purpose and purpose of use of the user, and can be divided into a general operating system and a mobile operating system according to the mobility of the host 102 . The general operating system system in the operating system can be divided into a personal operating system and a corporate operating system according to a user's use environment.

메모리 시스템(110)은 호스트(102)의 요청에 응하여 호스트(102)의 데이터를 저장하기 위해 동작할 수 있다. 예를 들어, 메모리 시스템(110)은 솔리드 스테이트 드라이브(SSD: Solid State Drive), MMC, eMMC(embedded MMC), RS-MMC(Reduced Size MMC), micro-MMC 형태의 멀티 미디어 카드(MMC: Multi Media Card), SD, mini-SD, micro-SD 형태의 시큐어 디지털(SD: Secure Digital) 카드, USB(Universal Serial Bus) 저장 장치, UFS(Universal Flash Storage) 장치, CF(Compact Flash) 카드, 스마트 미디어(Smart Media) 카드, 메모리 스틱(Memory Stick) 등과 같은 다양한 종류의 저장 장치들 중 어느 하나로 구현될 수 있다.The memory system 110 may operate to store data of the host 102 in response to a request of the host 102 . For example, the memory system 110 may include a solid state drive (SSD), MMC, embedded MMC (eMMC), reduced size MMC (RS-MMC), and a multi-media card (MMC) in the form of micro-MMC. Media Card), Secure Digital (SD) card in the form of SD, mini-SD, and micro-SD, USB (Universal Serial Bus) storage device, UFS (Universal Flash Storage) device, CF (Compact Flash) card, smart It may be implemented as one of various types of storage devices such as a smart media card, a memory stick, and the like.

메모리 시스템(110)은 다양한 종류의 저장 장치에 의해 구현될 수 있다. 예를 들어, 상기 저장 장치는 DRAM(Dynamic Random Access Memory), SRAM(Static RAM) 등과 같은 휘발성 메모리 장치와, ROM(Read Only Memory), MROM(Mask ROM), PROM(Programmable ROM), EPROM(Erasable ROM), EEPROM(Electrically Erasable ROM), FRAM(Ferromagnetic ROM), PRAM(Phase change RAM), MRAM(Magnetic RAM), RRAM(Resistive RAM), 플래시 메모리 등과 같은 비휘발성 메모리 장치를 포함할 수 있다.The memory system 110 may be implemented by various types of storage devices. For example, the storage device includes a volatile memory device such as dynamic random access memory (DRAM) and static RAM (SRAM), read only memory (ROM), mask ROM (MROM), programmable ROM (PROM), and erasable memory (EPROM). ROM), electrically erasable ROM (EEPROM), ferromagnetic ROM (FRAM), phase change RAM (PRAM), magnetic RAM (MRAM), resistive RAM (RRAM), flash memory, and the like.

메모리 시스템(110)은 메모리 장치(150) 및 컨트롤러(130)를 포함할 수 있다. 메모리 장치(150)는 호스트(102)를 위한 데이터를 저장할 수 있으며, 컨트롤러(130)는 메모리 장치(150)로의 데이터 저장을 제어할 수 있다.The memory system 110 may include a memory device 150 and a controller 130 . The memory device 150 may store data for the host 102 , and the controller 130 may control data storage into the memory device 150 .

컨트롤러(130) 및 메모리 장치(150)는 하나의 반도체 장치로 집적될 수 있다. 일 예로, 컨트롤러(130) 및 메모리 장치(150)는 하나의 반도체 장치로 집적되어 SSD를 구성할 수 있다. 메모리 시스템(110)이 SSD로 사용되면, 메모리 시스템(110)에 연결된 호스트(102)의 동작 속도는 향상될 수 있다. 게다가, 컨트롤러(130) 및 메모리 장치(150)는, 하나의 반도체 장치로 집적되어 메모리 카드를 구성할 수도 있다. 예를 들어, 컨트롤러(130) 및 메모리 장치(150)는 PC 카드(PCMCIA: Personal Computer Memory Card International Association), 컴팩트 플래시 카드(CF), 스마트 미디어 카드(SM, SMC), 메모리 스틱, 멀티미디어 카드(MMC, RS-MMC, MMCmicro), SD 카드(SD, miniSD, microSD, SDHC), 유니버설 플래시 기억 장치(UFS) 등과 같은 메모리 카드를 구성할 수 있다.The controller 130 and the memory device 150 may be integrated into a single semiconductor device. For example, the controller 130 and the memory device 150 may be integrated into a single semiconductor device to form an SSD. When the memory system 110 is used as an SSD, the operating speed of the host 102 connected to the memory system 110 may be improved. In addition, the controller 130 and the memory device 150 may be integrated into a single semiconductor device to form a memory card. For example, the controller 130 and the memory device 150 may include a PC card (Personal Computer Memory Card International Association (PCMCIA)), a compact flash card (CF), a smart media card (SM, SMC), a memory stick, a multimedia card ( Memory cards such as MMC, RS-MMC, MMCmicro), SD cards (SD, miniSD, microSD, SDHC), and Universal Flash Storage (UFS) can be configured.

다른 일 예로, 메모리 시스템(110)은, 컴퓨터, UMPC(Ultra Mobile PC), 워크스테이션, 넷북(net-book), PDA(Personal Digital Assistants), 포터블(portable) 컴퓨터, 웹 타블렛(web tablet), 태블릿 컴퓨터(tablet computer), 무선 전화기(wireless phone), 모바일 폰(mobile phone), 스마트폰(smart phone), e-북(e-book), PMP(portable multimedia player), 휴대용 게임기, 네비게이션(navigation) 장치, 블랙박스(black box), 디지털 카메라(digital camera), DMB(Digital Multimedia Broadcasting) 재생기, 3차원 텔레비전(3-dimensional television), 스마트 텔레비전(smart television), 디지털 음성 녹음기(digital audio recorder), 디지털 음성 재생기(digital audio player), 디지털 영상 녹화기(digital picture recorder), 디지털 영상 재생기(digital picture player), 디지털 동영상 녹화기(digital video recorder), 디지털 동영상 재생기(digital video player), 데이터 센터를 구성하는 스토리지, 정보를 무선 환경에서 송수신할 수 있는 장치, 홈 네트워크를 구성하는 다양한 전자 장치들 중 하나, 컴퓨터 네트워크를 구성하는 다양한 전자 장치들 중 하나, 텔레매틱스 네트워크를 구성하는 다양한 전자 장치들 중 하나, RFID(radio frequency identification) 장치, 또는 컴퓨팅 시스템을 구성하는 다양한 구성 요소들 중 하나 등을 구성할 수 있다.As another example, the memory system 110 may include a computer, an ultra mobile PC (UMPC), a workstation, a net-book, a personal digital assistant (PDA), a portable computer, a web tablet, Tablet computer, wireless phone, mobile phone, smart phone, e-book, portable multimedia player (PMP), portable game console, navigation ) device, black box, digital camera, DMB (Digital Multimedia Broadcasting) player, 3-dimensional television, smart television, digital audio recorder , digital audio player, digital picture recorder, digital picture player, digital video recorder, digital video player, constitutes a data center storage, a device capable of transmitting and receiving information in a wireless environment, one of various electronic devices constituting a home network, one of various electronic devices constituting a computer network, one of various electronic devices constituting a telematics network, It may constitute a radio frequency identification (RFID) device, or one of various components constituting a computing system.

메모리 장치(150)는 비휘발성 메모리 장치일 수 있으며, 전원이 공급되지 않아도 저장된 데이터를 유지할 수 있다. 메모리 장치(150)는 프로그램 동작을 통해 호스트(102)로부터 제공된 데이터를 저장할 수 있고, 리드 동작을 통해 호스트(102)로 메모리 장치(150)에 저장된 데이터를 제공할 수 있다. 메모리 장치(150)는 복수의 메모리 블록들을 포함하며, 메모리 블록들 각각은 복수의 페이지들을 포함하며, 상기 페이지들 각각은 워드라인에 연결된 복수의 메모리 셀들을 포함할 수 있다. 일 실시예에서, 메모리 장치(150)는 플래시 메모리가 될 수 있다. 상기 플래시 메모리는 3차원 스택 구조를 가질 수 있다.The memory device 150 may be a non-volatile memory device, and may maintain stored data even when power is not supplied. The memory device 150 may store data provided from the host 102 through a program operation, and may provide the data stored in the memory device 150 to the host 102 through a read operation. The memory device 150 includes a plurality of memory blocks, each of which includes a plurality of pages, and each of the pages may include a plurality of memory cells connected to word lines. In one embodiment, memory device 150 may be a flash memory. The flash memory may have a 3D stack structure.

컨트롤러(130)는 호스트(102)로부터의 요청에 응하여 메모리 장치(150)를 제어할 수 있다. 예를 들어, 컨트롤러(130)는 메모리 장치(150)로부터 리드된 데이터를 호스트(102)로 제공하고, 호스트(102)로부터 제공된 데이터를 메모리 장치(150)에 저장할 수 있다. 이러한 동작을 위해, 컨트롤러(130)는 메모리 장치(150)의 리드(read), 프로그램(program), 이레이즈(erase) 등의 동작을 제어할 수 있다.The controller 130 may control the memory device 150 in response to a request from the host 102 . For example, the controller 130 may provide data read from the memory device 150 to the host 102 and store the data provided from the host 102 in the memory device 150 . For this operation, the controller 130 may control read, program, and erase operations of the memory device 150 .

컨트롤러(130)는 라이트 버퍼(146)를 포함할 수 있다. 컨트롤러(130)는 메모리 장치(150)에 프로그램될 데이터, 예를 들어 호스트(102)로부터 라이트 요청과 함께 수신된 데이터를 라이트 버퍼(146)에 버퍼링할 수 있다. 컨트롤러(130)는 라이트 버퍼(146)에 버퍼링된 데이터를 메모리 장치(150)로 제공하면서 메모리 장치(150)가 상기 데이터를 프로그램하도록 제어할 수 있다.The controller 130 may include a write buffer 146 . The controller 130 may buffer data to be programmed into the memory device 150 , for example, data received along with a write request from the host 102 in the write buffer 146 . The controller 130 may control the memory device 150 to program the data while providing data buffered in the write buffer 146 to the memory device 150 .

컨트롤러(130)는 메모리 장치(150)의 프로그램 동작이 실패할 경우에 대비하여, 상기 데이터를 메모리 장치(150)로 제공한 후에도 상기 프로그램 동작이 성공적으로 완료될 때까지 상기 데이터를 컨트롤러(130) 내부에 유지할 수 있다.In case the program operation of the memory device 150 fails, the controller 130 stores the data until the program operation is successfully completed even after providing the data to the memory device 150. can be kept inside.

라이트 버퍼(146)는 라이트 요청을 신속하게 처리하기 위해 SRAM과 같은 고속 메모리로 구현될 수 있다. 고속 메모리는 DRAM과 같은 일반 메모리에 비해 액세스 속도가 빠르지만, 집적도가 낮고 제조비용이 높을 수 있다. 만약 컨트롤러(130)가 메모리 장치(150)에 프로그램될 모든 데이터를 프로그램 동작이 성공적으로 완료될 때까지 라이트 버퍼(146)에 유지해야 한다면 고용량의 라이트 버퍼(146)가 요구될 수 있다. 메모리 시스템(110)에 고용량의 라이트 버퍼(146)를 포함시키는 경우 메모리 시스템(110)의 회로 면적이 증가하고 제조비용이 상승할 수 있다.Write buffer 146 may be implemented with high-speed memory such as SRAM to quickly process write requests. High-speed memory has a faster access speed than general memory such as DRAM, but may have a low degree of integration and high manufacturing cost. If the controller 130 has to maintain all data to be programmed into the memory device 150 in the write buffer 146 until the program operation is successfully completed, the write buffer 146 with a large capacity may be required. When the high-capacity write buffer 146 is included in the memory system 110 , a circuit area of the memory system 110 may increase and manufacturing cost may increase.

컨트롤러(130)는 프로그램 동작이 성공적으로 완료될 때까지 프로그램될 데이터를 유지하기 위한 백업 메모리(148)를 포함할 수 있다. 컨트롤러(130)는 호스트(102)로부터의 데이터를 라이트 버퍼(146)에 버퍼링하고, 백업 메모리(148)에 동일한 데이터를 백업할 수 있다. 백업 메모리(148)에 상기 버퍼링된 데이터와 동일한 데이터가 백업된 경우, 컨트롤러(130)는 라이트 버퍼(146)에 버퍼링된 데이터를 메모리 장치(150)로 제공한 후에 상기 데이터를 라이트 버퍼(146)에서 제거할 수 있다. The controller 130 may include a backup memory 148 for maintaining data to be programmed until the program operation is successfully completed. The controller 130 may buffer data from the host 102 in the write buffer 146 and back up the same data in the backup memory 148 . When the same data as the buffered data is backed up in the backup memory 148, the controller 130 provides the data buffered in the write buffer 146 to the memory device 150 and then transfers the data to the write buffer 146. can be removed from

백업 메모리(148)는 DRAM과 같은 일반 메모리로 구현될 수 있으며, 상기 일반 메모리는 상기 고속 메모리에 비해 집적도가 높고 제조비용이 낮을 수 있다. 컨트롤러(130)가 백업 메모리(148)를 이용하면 메모리 장치(150)에 프로그램될 데이터가 컨트롤러(130)에 유지될 수 있으므로 메모리 장치(150)의 프로그램동작이 실패하더라도 메모리 시스템(110)의 신뢰성이 유지될 수 있을뿐만 아니라, 메모리 시스템(110)의 회로 면적 및 제조비용이 절감될 수 있다.The backup memory 148 may be implemented with a general memory such as DRAM, and the general memory may have a higher degree of integration and a lower manufacturing cost than the high-speed memory. When the controller 130 uses the backup memory 148, data to be programmed in the memory device 150 can be maintained in the controller 130, so even if the program operation of the memory device 150 fails, the reliability of the memory system 110 This can be maintained, and the circuit area and manufacturing cost of the memory system 110 can be reduced.

한편, 백업 메모리(148)에 백업된 데이터가 제거되는 속도보다 백업 메모리(148)에 새로운 데이터가 백업되는 속도가 빠른 경우 백업 메모리(148)에서 병목이 발생할 수 있다. 만약 컨트롤러(130)가 라이트 버퍼(146)에 버퍼링되는 데이터를 모두 백업 메모리(148)에 백업해야 한다면, 백업 메모리(148)에서 병목이 발생했을 때는 라이트 버퍼(146)에도 데이터를 버퍼링하지 못할 수 있다. 백업 메모리(148)에서 병목이 발생하면 라이트 버퍼(146)가 충분한 데이터 전송 속도를 제공할 수 있음에도 불구하고 메모리 시스템(110)의 라이트 성능이 저하될 수 있다. Meanwhile, when new data is backed up in the backup memory 148 faster than the speed at which data backed up in the backup memory 148 is deleted, a bottleneck may occur in the backup memory 148 . If the controller 130 has to back up all the data buffered in the write buffer 146 to the backup memory 148, when a bottleneck occurs in the backup memory 148, the data may not be buffered even in the write buffer 146. there is. If a bottleneck occurs in the backup memory 148 , write performance of the memory system 110 may deteriorate even though the write buffer 146 can provide a sufficient data transfer rate.

본 발명의 실시 예에 따르면, 컨트롤러(130)는 백업 메모리(148)에서 병목이 발생하지 않도록 라이트 버퍼(146)에 버퍼링되는 데이터 중 일부는 백업하지 않고 폐기(discard)할 수 있다. 도 1을 참조하면, 라이트 버퍼(146)는 복수의 데이터청크(data chunk)들을 버퍼링할 수 있다. 라이트 버퍼(146)에 버퍼링된 복수의 데이터청크들 중 어떤 데이터청크들은 백업 메모리(148)에 백업될 수 있고, 나머지 데이터청크들은 백업 메모리(148)에 백업되지 않을 수 있다. According to an embodiment of the present invention, the controller 130 may discard some of the data buffered in the write buffer 146 without backing it up so that a bottleneck does not occur in the backup memory 148 . Referring to FIG. 1 , the write buffer 146 may buffer a plurality of data chunks. Some of the plurality of data chunks buffered in the write buffer 146 may be backed up in the backup memory 148, and other data chunks may not be backed up in the backup memory 148.

백업 메모리(148)에 백업된 데이터청크는 백업 데이터청크로 지칭될 수 있으며, 백업 데이터청크는 도 1에서 음영이 표시된 사각형으로 도시된다. 라이트 버퍼(146)에 버퍼링된 데이터청크들 중 대응하는 백업 데이터청크를 갖는 데이터청크는 노멀 데이터청크로 지칭될 수 있으며, 도 1에서 도트 패턴이 표시된 사각형으로 도시된다. 라이트 버퍼(146)에 버퍼링된 데이터청크가 백업 데이터청크를 갖는다는 것은 상기 데이터청크와 동일한 값을 갖는 데이터청크가 백업 메모리(148)에 저장된다는 것을 가리킬 수 있다. 라이트 버퍼(146)에 버퍼링된 데이터청크들 중 백업 데이터청크를 갖지 않는 데이터청크는 논백업 데이터청크로 지칭될 수 있으며, 도 1에서 빗금 패턴이 표시된 사각형으로 도시된다. 도 1에서 파선으로 연결된 노멀 데이터청크와 백업 데이터청크는 서로 동일한 값을 갖는 데이터청크를 나타낼 수 있다.A data chunk backed up in the backup memory 148 may be referred to as a backup data chunk, and the backup data chunk is shown as a shaded rectangle in FIG. 1 . A data chunk having a corresponding backup data chunk among the data chunks buffered in the write buffer 146 may be referred to as a normal data chunk, and is shown as a square with a dot pattern in FIG. 1 . That a data chunk buffered in the write buffer 146 has a backup data chunk may indicate that a data chunk having the same value as the data chunk is stored in the backup memory 148 . Among the data chunks buffered in the write buffer 146, a data chunk that does not have a backup data chunk may be referred to as a non-backup data chunk, and is shown as a rectangle marked with a hatched pattern in FIG. 1 . In FIG. 1 , a normal data chunk and a backup data chunk connected by a broken line may represent data chunks having the same value.

컨트롤러(130)는 노멀 데이터청크를 메모리 장치(150)로 제공한 즉시 상기 노멀 데이터청크를 라이트 버퍼(146)로부터 제거하더라도 상기 노멀 데이터청크와 동일한 데이터를 백업 메모리(148)에 유지할 수 있다. 반면에, 컨트롤러(130)는 논백업 데이터청크를 컨트롤러(130)에 유지하기 위해서, 상기 논백업 데이터청크가 성공적으로 프로그램 완료될 때까지 상기 논백업 데이터청크를 라이트 버퍼(146)에 유지할 수 있다.Even if the controller 130 removes the normal data chunk from the write buffer 146 immediately after providing the normal data chunk to the memory device 150, the same data as the normal data chunk can be maintained in the backup memory 148. On the other hand, the controller 130 may maintain the non-backup data chunk in the write buffer 146 until the non-backup data chunk is successfully programmed to maintain the non-backup data chunk in the controller 130. .

본 발명의 실시 예에 따르면, 컨트롤러(130)는 라이트 버퍼(146)에 요구되는 용량을 최소화하기 위해 논백업 데이터청크들이 라이트 버퍼(146)에서 적체되는 시간을 줄이고자 한다. 이하에서, 컨트롤러(130)가 데이터청크들이 성공적으로 프로그램될 때까지 상기 데이터청크들을 컨트롤러(130)에 유지하면서도 논백업 데이터청크를 라이트 버퍼(146)에서 신속하게 제거함으로써 논백업 데이터청크들이 라이트 버퍼(146)에서 적체되지 않도록 하는 방법이 도 2 내지 도 9B를 참조하여 상세히 설명된다. According to an embodiment of the present invention, the controller 130 attempts to reduce the time during which non-backup data chunks accumulate in the write buffer 146 in order to minimize the capacity required for the write buffer 146 . In the following, the non-backup data chunks are written to the write buffer by quickly removing the non-backup data chunks from the write buffer 146 while the controller 130 retains the data chunks in the controller 130 until the data chunks are successfully programmed. The method of avoiding congestion at 146 is described in detail with reference to FIGS. 2 to 9B.

도 2는 본 발명의 실시 예에 따른 메모리 시스템(110)을 상세히 설명하는 도면이다.2 is a diagram illustrating a memory system 110 according to an exemplary embodiment in detail.

메모리 시스템(110)은 컨트롤러(130) 및 메모리 장치(150)를 포함할 수 있다. 도 2에 도시된 컨트롤러(130) 및 메모리 장치(150)는 도 1을 참조하여 설명된 것과 대응한다.The memory system 110 may include a controller 130 and a memory device 150 . The controller 130 and memory device 150 shown in FIG. 2 correspond to those described with reference to FIG. 1 .

컨트롤러(130)는 서로 내부 버스를 통해 동작 가능하도록 연결된 호스트 인터페이스(132), 프로세서(134), ECC(error correction code, 138), 파워 관리 유닛(140), 메모리 인터페이스(142) 및 메모리(144)를 포함할 수 있다.The controller 130 includes a host interface 132, a processor 134, an error correction code (ECC) 138, a power management unit 140, a memory interface 142, and a memory 144 operably connected to each other through an internal bus. ) may be included.

호스트 인터페이스(132)는 호스트(102)의 커맨드(command) 및 데이터를 처리하며, USB(Universal Serial Bus), MMC(Multi-Media Card), PCI-E(Peripheral Component Interconnect-Express), SAS(Serial-attached SCSI), SATA(Serial Advanced Technology Attachment), PATA(Parallel Advanced Technology Attachment), SCSI(Small Computer System Interface), ESDI(Enhanced Small Disk Interface), IDE(Integrated Drive Electronics), MIPI(Mobile Industry Processor Interface) 등과 같은 다양한 인터페이스 프로토콜들 중 적어도 하나를 통해 호스트(102)와 통신하도록 구성될 수 있다.The host interface 132 processes commands and data of the host 102, and includes USB (Universal Serial Bus), MMC (Multi-Media Card), PCI-E (Peripheral Component Interconnect-Express), SAS (Serial Bus) -attached SCSI), SATA (Serial Advanced Technology Attachment), PATA (Parallel Advanced Technology Attachment), SCSI (Small Computer System Interface), ESDI (Enhanced Small Disk Interface), IDE (Integrated Drive Electronics), MIPI (Mobile Industry Processor Interface) ) may be configured to communicate with the host 102 through at least one of a variety of interface protocols, such as the like.

호스트 인터페이스(132)는 호스트(102)와 데이터를 주고받기 위해 호스트 인터페이스 계층(HIL: Host Interface Layer)이라 불리는 펌웨어(firmware)를 구동할 수 있다.The host interface 132 may run firmware called a host interface layer (HIL) to exchange data with the host 102 .

ECC(138)는 메모리 장치(150)로부터 독출되는 데이터에 포함된 에러를 검출 및 정정할 수 있다. 즉, ECC(138)는 ECC 인코딩 프로세스에서 사용된 ECC 코드를 통해 메모리 장치(150)로부터 독출된 데이터에 에러 정정 디코딩 프로세스를 수행할 수 있다. 에러 정정 디코딩 프로세스의 결과에 따라, ECC(138)는 예를 들어 에러 정정 성공/실패 신호와 같은 신호를 출력할 수 있다. 에러 비트의 수가 정정 가능한 에러 비트의 임계치를 초과하면, ECC(138)는 에러 비트를 정정하지 못하고, 에러 정정 실패 신호를 출력할 수 있다.The ECC 138 may detect and correct errors included in data read from the memory device 150 . That is, the ECC 138 may perform an error correction decoding process on data read from the memory device 150 through the ECC code used in the ECC encoding process. Depending on the result of the error correction decoding process, ECC 138 may output a signal, such as an error correction success/failure signal, for example. If the number of error bits exceeds the threshold of correctable error bits, the ECC 138 cannot correct the error bits and may output an error correction failure signal.

ECC(138)는 LDPC(low density parity check) 코드(code), BCH(Bose, Chaudhuri, Hocquenghem) 코드, 터보 코드(turbo code), 리드-솔로몬 코드(Reed-Solomon code), 컨벌루션 코드(convolution code), RSC(recursive systematic code), TCM(trellis-coded modulation), BCM(Block coded modulation) 등의 코디드 모듈레이션(coded modulation)을 사용하여 에러 정정을 수행할 수 있다. 그러나, ECC(138)는 특정한 구조로 한정되는 것은 아니다. ECC(138)는 오류 정정을 위한 회로, 모듈, 시스템, 또는 장치를 모두 포함할 수 있다.ECC 138 is a low density parity check (LDPC) code, Bose, Chaudhuri, Hocquenghem (BCH) code, turbo code, Reed-Solomon code, convolution code ), RSC (recursive systematic code), TCM (trellis-coded modulation), BCM (block coded modulation) such as coded modulation (coded modulation) can be used to perform error correction. However, the ECC 138 is not limited to a specific structure. The ECC 138 may include any circuit, module, system, or device for error correction.

메모리 인터페이스(142)는 컨트롤러(130)가 호스트(102)로부터의 요청에 응답하여 메모리 장치(150)를 제어하도록, 컨트롤러(130)와 메모리 장치(150) 간의 인터페이싱을 위한 메모리/스토리지(storage) 인터페이스로서의 역할을 할 수 있다. 메모리 장치(150)가 플래시 메모리, 특히 NAND 플래시 메모리인 경우, 메모리 인터페이스(142)는 메모리 장치(150)를 위한 제어 신호를 생성하고, 프로세서(134)의 제어 하에 메모리 장치(150)로 제공되는 데이터를 처리할 수 있다. 메모리 인터페이스(142)는 컨트롤러(130)와 메모리 장치(150) 사이의 커맨드 및 데이터를 처리하기 위한 인터페이스, 예를 들어 NAND 플래시 인터페이스로서 동작할 수 있다.The memory interface 142 is a memory/storage for interfacing between the controller 130 and the memory device 150 so that the controller 130 controls the memory device 150 in response to a request from the host 102. It can serve as an interface. When the memory device 150 is a flash memory, particularly a NAND flash memory, the memory interface 142 generates control signals for the memory device 150 and provides them to the memory device 150 under the control of the processor 134. data can be processed. The memory interface 142 may operate as an interface for processing commands and data between the controller 130 and the memory device 150, for example, a NAND flash interface.

메모리 인터페이스(142)는 플래시 인터페이스 계층(FIL: Flash Interface Layer)이라 불리는 펌웨어(firmware)를 구동할 수 있다.The memory interface 142 may drive firmware called a Flash Interface Layer (FIL).

프로세서(134)는 메모리 시스템(110)의 전체적인 동작을 제어할 수 있다. 프로세서(134)는 메모리 시스템(110)의 전반적인 동작을 제어하기 위해 펌웨어를 구동할 수 있다. 상기 펌웨어는 플래시 변환 계층(FTL: Flash Translation Layer)으로 불릴 수 있다. 그리고, 프로세서(134)는 마이크로프로세서 또는 중앙 처리 장치(CPU) 등으로 구현될 수 있다.The processor 134 may control the overall operation of the memory system 110 . The processor 134 may drive firmware to control overall operations of the memory system 110 . The firmware may be referred to as a Flash Translation Layer (FTL). Also, the processor 134 may be implemented as a microprocessor or a central processing unit (CPU).

프로세서(134)는 플래시 변환 계층을 구동하여 호스트(102)로부터 수신된 요청에 대응하는 포그라운드 동작(foreground operation)을 수행할 수 있다. 예를 들어, 프로세서(134)는 호스트로부터의 라이트 요청에 응하여 메모리 장치(150)의 라이트 동작을 제어하고, 리드 요청에 응하여 메모리 장치(150)의 리드 동작을 제어할 수 있다.The processor 134 may drive a flash conversion layer to perform a foreground operation corresponding to a request received from the host 102 . For example, the processor 134 may control a write operation of the memory device 150 in response to a write request from a host, and may control a read operation of the memory device 150 in response to a read request.

또한, 컨트롤러(130)는 마이크로프로세서 또는 중앙 처리 장치(CPU) 등으로 구현된 프로세서(134)를 통해 메모리 장치(150)에 대한 백그라운드 동작(background operation)을 수행할 수도 있다. 예를 들어, 메모리 장치(150)에 대한 백그라운드 동작은 가비지 컬렉션(GC: Garbage Collection) 동작, 웨어 레벨링(WL: Wear Leveling) 동작, 맵 플러시(map flush) 동작, 배드 블록 관리(bad block management) 동작 등을 포함할 수 있다.Also, the controller 130 may perform a background operation of the memory device 150 through the processor 134 implemented as a microprocessor or a central processing unit (CPU). For example, the background operation for the memory device 150 includes a garbage collection (GC) operation, a wear leveling (WL) operation, a map flush operation, and a bad block management. actions, etc.

메모리(144)는 메모리 시스템(110) 및 컨트롤러(130)의 동작 메모리로서의 역할을 수행할 수 있으며, 메모리 시스템(110) 및 컨트롤러(130)의 구동을 위한 데이터를 저장할 수 있다. 컨트롤러(130)는 호스트(102)로부터의 요청에 응하여 메모리 장치(150)가 리드, 프로그램, 이레이즈 동작을 수행하도록 메모리 장치(150)를 제어할 수 있다. 컨트롤러(130)는 메모리 장치(150)로부터 독출되는 데이터를 호스트(102)로 제공할 수 있으며, 호스트(102)로부터 제공되는 데이터를 메모리 장치(150)에 저장할 수 있다. 메모리(144)는 컨트롤러(130)와 메모리 장치(150)가 이러한 동작을 수행하는 데 필요한 데이터를 저장할 수 있다.The memory 144 may serve as an operation memory for the memory system 110 and the controller 130 and may store data for driving the memory system 110 and the controller 130 . The controller 130 may control the memory device 150 to perform read, program, and erase operations in response to a request from the host 102 . The controller 130 may provide data read from the memory device 150 to the host 102 and may store the data provided from the host 102 in the memory device 150 . The memory 144 may store data necessary for the controller 130 and the memory device 150 to perform these operations.

메모리(144)는 휘발성 메모리로 구현될 수 있다. 예를 들어, 메모리(144)는 정적 랜덤 액세스 메모리(SRAM: Static Random Access Memory), 또는 동적 랜덤 액세스 메모리(DRAM: Dynamic Random Access Memory) 등으로 구현될 수 있다. 메모리(144)는 컨트롤러(130) 내부 또는 외부에 배치될 수 있다. 도 1은 컨트롤러(130) 내부에 배치된 메모리(144)를 예시한다. 일 실시예에서, 메모리(144)는 외부 휘발성 메모리 장치로 구현될 수 있으며, 상기 메모리(144)는 컨트롤러(130)와 데이터를 입출력하기 위한 메모리 인터페이스를 가질 수 있다.Memory 144 may be implemented as volatile memory. For example, the memory 144 may be implemented as static random access memory (SRAM) or dynamic random access memory (DRAM). Memory 144 may be located inside or outside controller 130 . 1 illustrates memory 144 disposed within controller 130 . In one embodiment, the memory 144 may be implemented as an external volatile memory device, and the memory 144 may have a controller 130 and a memory interface for inputting/outputting data.

메모리(144)는 도 1을 참조하여 설명된 라이트 버퍼(146) 및 백업 메모리(148)를 포함할 수 있다. 컨트롤러(130)가 호스트(102)로부터 수신된 데이터청크를 라이트 버퍼(146)에 버퍼링하고, 데이터청크를 선택적으로 백업 메모리(148)에 백업하는 데이터패스(data path)에 대해 도 3을 참조하여 상세히 설명된다.The memory 144 may include the write buffer 146 and the backup memory 148 described with reference to FIG. 1 . 3 for a data path in which the controller 130 buffers the data chunks received from the host 102 in the write buffer 146 and selectively backs up the data chunks in the backup memory 148. explained in detail.

도 3은 호스트(102)로부터 수신된 데이터의 데이터패스를 설명하기 위한 도면이다.FIG. 3 is a diagram for explaining a data path of data received from the host 102. Referring to FIG.

도 3은 도 1 및 도 2를 참조하여 설명된 컨트롤러(130)의 구성들 중 일부를 도시한다. 구체적으로, 도 3은 호스트 인터페이스(132), 라이트 버퍼(146) 및 백업 메모리(148)를 도시한다.FIG. 3 shows some of the configurations of the controller 130 described with reference to FIGS. 1 and 2 . Specifically, FIG. 3 shows host interface 132 , write buffer 146 and backup memory 148 .

도 3은 메인 데이터패스(302) 및 백업 데이터패스(304)를 도시한다. 메인 데이터패스(302)는 호스트(102)로부터 수신된 데이터청크가 라이트 버퍼(146)에 버퍼링되기까지의 경로를 지칭할 수 있다. 백업 데이터패스(304)는 호스트(102)로부터의 데이터청크가 백업 메모리(148)에 백업되기까지의 경로를 지칭할 수 있다.3 shows a main datapath 302 and a backup datapath 304 . The main data path 302 may refer to a path until a data chunk received from the host 102 is buffered in the write buffer 146 . The backup data path 304 may refer to a path until data chunks from the host 102 are backed up in the backup memory 148 .

컨트롤러(130)는 임시 버퍼(140)를 더 포함할 수 있다. 호스트(102)로부터의 데이터청크는 호스트 인터페이스(132)를 통해 수신되고, 임시 버퍼(140)를 경유하여 백업 메모리(148)에 백업될 수 있다. 임시 버퍼(140)는 메모리(144)에 포함될 수 있다.The controller 130 may further include a temporary buffer 140 . Data chunks from the host 102 may be received through the host interface 132 and backed up in the backup memory 148 via the temporary buffer 140 . Temporary buffer 140 may be included in memory 144 .

컨트롤러(130)는 메모리 시스템(110)의 라이트 동작 성능을 유지하기 위해, 호스트(102)로부터의 데이터청크를 선택적으로 백업하거나 폐기함으로써 백업 데이터패스(304)에서 병목이 발생하지 않도록 할 수 있다.The controller 130 may prevent a bottleneck from occurring in the backup data path 304 by selectively backing up or discarding data chunks from the host 102 in order to maintain write operation performance of the memory system 110 .

도 3의 예에서, 호스트 인터페이스(132)는 호스트(102)로부터 제1 내지 제4 데이터청크(D1 - D4)를 수신하고, 상기 데이터청크들을 메인 데이터패스(302) 및 백업 데이터패스(304)로 제공할 수 있다. 라이트 버퍼(146)는 메인 데이터패스(302)를 통해 수신된 제1 내지 제4 데이터청크(D1 - D4)를 모두 버퍼링할 수 있다. 임시 버퍼(140)는 내부에 데이터청크를 버퍼링할 수 있는 여유공간이 있는지 여부에 따라 백업 데이터패스(304)를 통해 수신된 데이터청크를 선택적으로 버퍼링할 수 있다. 예를 들어, 임시 버퍼(140)는 제1 내지 제3 데이터청크(D1 - D3)를 버퍼링하고, 더 이상의 여유공간이 없는 경우 제4 데이터청크(D4)를 버퍼링하지 않고 폐기할 수 있다. 임시 버퍼(140)는 버퍼링된 제1 내지 제3 데이터청크(D1 - D3)를 백업 메모리(148)에 백업할 수 있다. In the example of FIG. 3 , the host interface 132 receives first to fourth data chunks D1 to D4 from the host 102, and transfers the data chunks to the main data path 302 and the backup data path 304. can be provided with The write buffer 146 may buffer all of the first to fourth data chunks D1 to D4 received through the main data path 302 . The temporary buffer 140 may selectively buffer the data chunks received through the backup data path 304 according to whether there is free space for buffering the data chunks therein. For example, the temporary buffer 140 may buffer the first to third data chunks D1 to D3, and discard the fourth data chunk D4 without buffering it when there is no more free space. The temporary buffer 140 may back up the buffered first to third data chunks D1 to D3 in the backup memory 148 .

도 3의 예에서, 라이트 버퍼(146)에 버퍼링된 데이터청크들 중 제1 내지 제3 데이터청크(D1 - D3)는 노멀 데이터청크에 해당하고, 제4 데이터청크(D4)는 논백업 데이터청크에 해당할 수 있다. 백업 메모리(148)에 백업된 제1 내지 제3 데이터청크(D1 - D3)는 백업 데이터청크에 해당할 수 있다.In the example of FIG. 3 , among the data chunks buffered in the write buffer 146, the first to third data chunks D1 to D3 correspond to normal data chunks, and the fourth data chunk D4 corresponds to a non-backup data chunk. may correspond to The first to third data chunks D1 to D3 backed up in the backup memory 148 may correspond to backup data chunks.

프로세서(134)는 제1 내지 제4 데이터청크(D1 - D4)를 메모리 장치(150)로 제공하면서 메모리 장치(150)의 프로그램 동작을 제어할 수 있다. 프로세서(134)는 노멀 데이터청크들인 제1 내지 제3 데이터청크(D1 - D3)는 메모리 장치(150)로 제공된 후 라이트 버퍼(146)에서 제거할 수 있다. 만약 노멀 데이터청크에 대한 프로그램 동작이 실패한 경우, 프로세서(134)는 상기 노멀 데이터청크에 대응하는 백업 데이터청크를 백업 메모리(148)로부터 메모리 인터페이스(142)를 통해 메모리 장치(150)로 다시 제공할 수 있다. The processor 134 may control a program operation of the memory device 150 while providing the first to fourth data chunks D1 to D4 to the memory device 150 . The processor 134 may remove the first to third data chunks D1 to D3, which are normal data chunks, from the write buffer 146 after being provided to the memory device 150. If the program operation for the normal data chunk fails, the processor 134 provides the backup data chunk corresponding to the normal data chunk from the backup memory 148 to the memory device 150 through the memory interface 142 again. can

반면에, 프로세서(134)는 논백업 데이터청크인 제4 데이터청크(D4)는 메모리 장치(150)로 제공된 후에도 라이트 버퍼(146)에서 제거하지 않고 유지할 수 있다. 만약 논백업 데이터청크에 대한 프로그램 동작이 실패한 경우, 프로세서(134)는 상기 논백업 데이터청크를 라이트 버퍼(146)로부터 메모리 인터페이스(142)를 통해 메모리 장치(150)로 제공할 수 있다. 프로세서(134)는 메모리 장치(150)의 프로그램 동작이 성공적으로 완료되면 백업 데이터청크를 백업 메모리(148)로부터 제거하고, 논백업 데이터청크를 라이트 버퍼(146)에서 제거할 수 있다.On the other hand, the processor 134 may maintain the fourth data chunk D4 , which is a non-backup data chunk, without removing it from the write buffer 146 even after being provided to the memory device 150 . If the program operation for the non-backup data chunk fails, the processor 134 may provide the non-backup data chunk from the write buffer 146 to the memory device 150 through the memory interface 142 . When the program operation of the memory device 150 is successfully completed, the processor 134 may remove the backup data chunk from the backup memory 148 and the non-backup data chunk from the write buffer 146 .

본 발명의 실시 예에 따르면, 컨트롤러(130)는 데이터청크들이 메모리 장치(150)에 프로그램되는 순서를 조정함으로써 논백업 데이터청크에 대한 프로그램 동작이 신속하게 완료될 수 있도록 하고, 논백업 데이터청크를 라이트 버퍼(146)로부터 신속하게 제거하고자 한다. 본 발명의 실시 예에 따르면, 논백업 데이터청크가 메모리 장치(150)의 프로그램 동작이 성공적으로 완료될 때까지 라이트 버퍼(146)에 유지되면서도 논백업 데이터청크가 라이트 버퍼(146)에 적체되는 일이 방지될 수 있다.According to an embodiment of the present invention, the controller 130 adjusts the order in which data chunks are programmed into the memory device 150 so that the program operation for the non-backup data chunk can be completed quickly and the non-backup data chunk is We want to quickly remove it from the light buffer 146. According to an embodiment of the present invention, the non-backup data chunks are accumulated in the write buffer 146 while the non-backup data chunks are maintained in the write buffer 146 until the program operation of the memory device 150 is successfully completed. this can be prevented.

메모리 장치(150)에서 데이터가 프로그램되는 순서가 도 4 내지 도 6을 참조하여 상세히 설명된다.A sequence of programming data in the memory device 150 will be described in detail with reference to FIGS. 4 to 6 .

도 4는 메모리 장치(150)의 3차원 메모리 셀 어레이를 나타내는 도면이다.4 is a diagram illustrating a 3D memory cell array of the memory device 150 .

도 4를 참조하면, 메모리 장치(150)는 다수의 메모리 블록들(MB1~MBk)을 포함할 수 있다. 메모리 블록은 다수의 스트링들(ST11~ST1m, ST21~ST2m)을 포함할 수 있다. 실시 예로서, 다수의 스트링들(ST11~ST1m, ST21~ST2m) 각각은 'U'자형으로 형성될 수 있다. 제1 메모리 블록(MB1) 내에서, 행 방향(X 방향)으로 m개의 스트링들이 배열될 수 있다. 도 6에서, 열 방향(Y 방향)으로 2개의 스트링들이 배열되는 것으로 도시되었으나, 이는 설명의 편의를 위한 것으로서 열 방향(Y 방향)으로 3개 이상의 스트링들이 배열될 수 있다.Referring to FIG. 4 , the memory device 150 may include a plurality of memory blocks MB1 to MBk. A memory block may include a plurality of strings ST11 to ST1m and ST21 to ST2m. As an embodiment, each of the plurality of strings ST11 to ST1m and ST21 to ST2m may be formed in a 'U' shape. Within the first memory block MB1, m strings may be arranged in a row direction (X direction). In FIG. 6 , it is illustrated that two strings are arranged in a column direction (Y direction), but this is for convenience of description and three or more strings may be arranged in a column direction (Y direction).

다수의 스트링들(ST11~ST1m, ST21~ST2m) 각각은 적어도 하나의 소스 셀렉트 트랜지스터(SST), 제1 내지 제n 메모리 셀들(MC1~MCn), 파이프 트랜지스터(PT) 및 적어도 하나의 드레인 셀렉트 트랜지스터(DST)를 포함할 수 있다.Each of the plurality of strings ST11 to ST1m and ST21 to ST2m includes at least one source select transistor SST, first to nth memory cells MC1 to MCn, a pipe transistor PT, and at least one drain select transistor. (DST).

소스 및 드레인 셀렉트 트랜지스터들(SST 및 DST)과 메모리 셀들(MC1~MCn)은 서로 유사한 구조를 가질 수 있다. 예를 들면, 소스 및 드레인 셀렉트 트랜지스터들(SST 및 DST)과 메모리 셀들(MC1~MCn) 각각은 채널막, 터널 절연막, 전하 트랩막 및 블로킹 절연막을 포함할 수 있다. 예를 들면, 채널막을 제공하기 위한 필라(pillar)가 각 스트링에 제공될 수 있다. 예를 들면, 채널막, 터널 절연막, 전하 트랩막 및 블로킹 절연막 중 적어도 하나를 제공하기 위한 필라가 각 스트링에 제공될 수 있다.The source and drain select transistors SST and DST and the memory cells MC1 to MCn may have structures similar to each other. For example, each of the source and drain select transistors SST and DST and the memory cells MC1 to MCn may include a channel layer, a tunnel insulating layer, a charge trap layer, and a blocking insulating layer. For example, a pillar for providing a channel film may be provided in each string. For example, a pillar for providing at least one of a channel layer, a tunnel insulating layer, a charge trap layer, and a blocking insulating layer may be provided in each string.

각 스트링의 소스 셀렉트 트랜지스터(SST)는 소스 라인(SL)과 메모리 셀들(MC1~MCp) 사이에 연결될 수 있다.The source select transistor SST of each string may be connected between the source line SL and the memory cells MC1 to MCp.

실시 예로서, 동일한 행에 배열된 스트링들의 소스 셀렉트 트랜지스터들은 행 방향으로 연장되는 소스 셀렉트 라인에 연결될 수 있고, 상이한 행에 배열된 스트링들의 소스 셀렉트 트랜지스터들은 상이한 소스 셀렉트 라인들에 연결될 수 있다. 도 4에서, 제1 행의 스트링들(ST11~ST1m)의 소스 셀렉트 트랜지스터들은 제1 소스 셀렉트 라인(SSL1)에 연결될 수 있다. 제2 행의 스트링들(ST21~ST2m)의 소스 셀렉트 트랜지스터들은 제2 소스 셀렉트 라인(SSL2)에 연결될 수 있다.As an embodiment, source select transistors of strings arranged in the same row may be connected to source select lines extending in a row direction, and source select transistors of strings arranged in different rows may be connected to different source select lines. In FIG. 4 , the source select transistors of the strings ST11 to ST1m in the first row may be connected to the first source select line SSL1 . The source select transistors of the strings ST21 to ST2m in the second row may be connected to the second source select line SSL2.

다른 실시 예로서, 스트링들(ST11~ST1m, ST21~ST2m)의 소스 셀렉트 트랜지스터들은 하나의 소스 셀렉트 라인에 공통으로 연결될 수 있다.As another embodiment, the source select transistors of the strings ST11 to ST1m and ST21 to ST2m may be connected in common to one source select line.

각 스트링의 제1 내지 제n 메모리 셀들(MC1~MCn)은 소스 셀렉트 트랜지스터(SST)와 드레인 셀렉트 트랜지스터(DST) 사이에 연결될 수 있다.The first to nth memory cells MC1 to MCn of each string may be connected between the source select transistor SST and the drain select transistor DST.

제1 내지 제n 메모리 셀들(MC1~MCn)은 제1 내지 제p 메모리 셀들(MC1~MCp)과 제p+1 내지 제n 메모리 셀들(MCp+1~MCn)로 구분될 수 있다. 제1 내지 제p 메모리 셀들(MC1~MCp)은 수직 방향(Z 방향)으로 순차적으로 배열될 수 있으며, 소스 셀렉트 트랜지스터(SST)와 파이프 트랜지스터(PT) 사이에서 서로 직렬로 연결될 수 있다. 제p+1 내지 제n 메모리 셀들(MCp+1~MCn)은 수직 방향(Z 방향)으로 순차적으로 배열될 수 있으며, 파이프 트랜지스터(PT)와 드레인 셀렉트 트랜지스터(DST) 사이에서 서로 직렬로 연결될 수 있다. 제1 내지 제p 메모리 셀들(MC1~MCp)과 제p+1 내지 제n 메모리 셀들(MCp+1~MCn)은 파이프 트랜지스터(PT)를 통해 서로 연결될 수 있다. 각 스트링의 제1 내지 제n 메모리 셀들(MC1~MCn)의 게이트들은 각각 제1 내지 제n 워드 라인들(WL1~WLn)에 연결될 수 있다.The first to nth memory cells MC1 to MCn may be divided into first to pth memory cells MC1 to MCp and p+1 to nth memory cells MCp+1 to MCn. The first to pth memory cells MC1 to MCp may be sequentially arranged in a vertical direction (Z direction) and may be serially connected to each other between the source select transistor SST and the pipe transistor PT. The p+1th to nth memory cells MCp+1 to MCn may be sequentially arranged in a vertical direction (Z direction) and may be serially connected to each other between the pipe transistor PT and the drain select transistor DST. there is. The first to pth memory cells MC1 to MCp and the p+1 to nth memory cells MCp+1 to MCn may be connected to each other through the pipe transistor PT. Gates of the first to nth memory cells MC1 to MCn of each string may be connected to the first to nth word lines WL1 to WLn, respectively.

실시 예로서, 제1 내지 제n 메모리 셀들(MC1~MCn) 중 적어도 하나는 더미 메모리 셀로써 이용될 수 있다. 더미 메모리 셀이 제공되는 경우, 해당 스트링의 전압 또는 전류는 안정적으로 제어될 수 있다. 각 스트링의 파이프 트랜지스터(PT)의 게이트는 파이프 라인(PL)에 연결될 수 있다.As an example embodiment, at least one of the first to n th memory cells MC1 to MCn may be used as a dummy memory cell. When a dummy memory cell is provided, a voltage or current of a corresponding string can be stably controlled. Gates of the pipe transistors PT of each string may be connected to the pipeline PL.

각 스트링의 드레인 셀렉트 트랜지스터(DST)는 비트 라인과 메모리 셀들(MCp+1~MCn) 사이에 연결될 수 있다. 행 방향으로 배열되는 스트링들은 행 방향으로 연장되는 드레인 셀렉트 라인에 연결될 수 있다. 제1 행의 스트링들(ST11~ST1m)의 드레인 셀렉트 트랜지스터들은 제1 드레인 셀렉트 라인(DSL1)에 연결될 수 있다. 제2 행의 스트링들(ST21~ST2m)의 드레인 셀렉트 트랜지스터들은 제2 드레인 셀렉트 라인(DSL2)에 연결될 수 있다.The drain select transistor DST of each string may be connected between the bit line and the memory cells MCp+1 to MCn. The strings arranged in the row direction may be connected to the drain select line extending in the row direction. Drain select transistors of the strings ST11 to ST1m in the first row may be connected to the first drain select line DSL1. The drain select transistors of the strings ST21 to ST2m in the second row may be connected to the second drain select line DSL2.

열 방향으로 배열되는 스트링들은 열 방향으로 연장되는 비트 라인들에 연결될 수 있다. 도 4에서 제1 열의 스트링들(ST11, ST21)은 제1 비트 라인(BL1)에 연결될 수 있다. 제m 열의 스트링들(ST1m, ST2m)은 제m 비트 라인(BLm)에 연결될 수 있다.Strings arranged in the column direction may be connected to bit lines extending in the column direction. In FIG. 4 , the strings ST11 and ST21 of the first column may be connected to the first bit line BL1. The strings ST1m and ST2m of the mth column may be connected to the mth bit line BLm.

행 방향으로 배열되는 스트링들 중에서 동일한 워드 라인에 연결되는 메모리 셀들은 하나의 물리 페이지를 구성할 수 있다. 예를 들면, 제1 행의 스트링들(ST11~ST1m) 중 제1 워드 라인(WL1)에 연결된 메모리 셀들은 하나의 물리 페이지를 구성할 수 있다. 제2 행의 스트링들(ST21~ST2m) 중 제1 워드 라인(WL1)에 연결된 메모리 셀들은 다른 하나의 물리 페이지를 구성할 수 있다. 드레인 셀렉트 라인들(DSL1, DSL2) 중 어느 하나가 선택됨으로써 하나의 행 방향으로 배열되는 스트링들이 선택될 것이다. 워드 라인들(WL1~WLn) 중 어느 하나가 선택됨으로써 선택된 스트링들 중 하나의 물리 페이지가 선택될 것이다. Among strings arranged in a row direction, memory cells connected to the same word line may constitute one physical page. For example, among the strings ST11 to ST1m in the first row, memory cells connected to the first word line WL1 may constitute one physical page. Among the strings ST21 to ST2m in the second row, memory cells connected to the first word line WL1 may constitute another physical page. When one of the drain select lines DSL1 and DSL2 is selected, strings arranged in one row direction are selected. When one of the word lines WL1 to WLn is selected, one physical page among the selected strings is selected.

메모리 장치(150)는 하나의 메모리 셀에 1비트 데이터를 저장하는 SLC(Single Level Cell) 메모리 블록, 하나의 메모리 셀에 복수 비트 데이터를 저장하는 MLC(Multi Level Cell) 메모리 블록 등을 포함하는 복수의 메모리 블록들을 포함할 수 있다. SLC 메모리 블록들은 하나의 메모리 셀에 한 비트 데이터를 저장하는 메모리 셀들로 구현되는 복수의 페이지들을 포함할 수 있다. SLC 메모리 블록들은 높은 내구성과 빠른 데이터 동작 성능을 가질 수 있다. 반면에, MLC 메모리 블록들은 하나의 메모리 셀에 둘 이상의 비트와 같은 복수 비트의 데이터를 저장하는 메모리 셀들로 구현되는 복수의 페이지들을 포함할 수 있다. 예를 들어, 상기 MLC 메모리 블록들은 하나의 메모리 셀에 2비트의 데이터를 저장할 수 있는 DLC(Dual Level Cell) 메모리 블록, 하나의 메모리 셀에 3비트의 데이터를 저장할 수 있는 TLC(Triple Level Cell) 메모리 블록 또는 하나의 메모리 셀에 4비트의 데이터를 저장할 수 있는 QLC(Quadruple Level Cell) 메모리 블록일 수 있다. 상기 MLC 메모리 블록들은 상기 SLC 메모리 블록들보다 큰 데이터 저장 공간을 가질 수 있다. 즉, 상기 MLC 메모리 블록들은 고집적화될 수 있다.The memory device 150 includes a single level cell (SLC) memory block storing 1-bit data in one memory cell, a multi-level cell (MLC) memory block storing plural-bit data in one memory cell, and the like. of memory blocks. SLC memory blocks may include a plurality of pages implemented with memory cells that store one bit of data in one memory cell. SLC memory blocks may have high durability and fast data operation performance. On the other hand, MLC memory blocks may include a plurality of pages implemented with memory cells that store multiple bits of data, such as two or more bits, in one memory cell. For example, the MLC memory blocks include a Dual Level Cell (DLC) memory block capable of storing 2 bits of data in one memory cell, and a Triple Level Cell (TLC) memory block capable of storing 3 bits of data in one memory cell. It may be a quadruple level cell (QLC) memory block capable of storing 4-bit data in a memory block or one memory cell. The MLC memory blocks may have a larger data storage space than the SLC memory blocks. That is, the MLC memory blocks can be highly integrated.

메모리 장치(150)는 메모리 셀에 복수 비트 데이터를 프로그램하기 위해서 여러 단계의 프로그램 동작을 수행할 수 있다. 예를 들어, 메모리 장치(150)는 DLC를 프로그램하기 위해서 DLC의 2비트 중 LSB(Least Significant Bit)에 해당하는 데이터를 먼저 프로그램하는 제1 프로그램스텝을 수행할 수 있다. 메모리 장치(150)는 제1 프로그램스텝을 수행한 후 MSB(Most Significant Bit)에 해당하는 데이터를 프로그램하는 제2 프로그램스텝을 수행함으로써 DLC의 2비트 데이터를 모두 프로그램할 수 있다. 각 프로그램 스텝은 복수의 프로그램루프를 포함할 수 있다. 이하에서, 복수의 프로그램 스텝들을 포함하는 프로그램 동작은 멀티스텝 프로그램 동작으로 지칭된다.The memory device 150 may perform multi-step program operations to program plural-bit data into memory cells. For example, in order to program the DLC, the memory device 150 may perform a first program step of first programming data corresponding to a least significant bit (LSB) among 2 bits of the DLC. The memory device 150 may program all 2-bit data of the DLC by performing a second program step for programming data corresponding to a most significant bit (MSB) after performing the first program step. Each program step may include a plurality of program loops. Hereinafter, a program operation comprising a plurality of program steps is referred to as a multi-step program operation.

도 5는 메모리 장치(150)의 멀티스텝 프로그램 동작을 설명하기 위한 도면이다.5 is a diagram for explaining a multi-step program operation of the memory device 150. Referring to FIG.

도 5는 메모리 셀들의 일 예로, TLC들의 문턱전압 상태를 나타내는 분포도들을 도시한다. 각 분포도에서 가로축은 메모리 셀의 문턱전압, 세로축은 해당 문턱전압을 갖는 메모리 셀들의 수를 나타낸다.5 illustrates distribution charts showing threshold voltage states of TLCs, as an example of memory cells. In each distribution chart, the horizontal axis represents the threshold voltage of a memory cell, and the vertical axis represents the number of memory cells having the corresponding threshold voltage.

제1 분포도(502)는 이레이즈된 메모리 셀들의 문턱전압 상태를 나타낸다. 제1 분포도(502)에서, 메모리 셀들은 모두 이레이즈상태를 가질 수 있다. 도 5의 예에서, 이레이즈 상태의 메모리 셀들은 논리 '1'의 값을 가질 수 있다.A first distribution chart 502 shows threshold voltage states of erased memory cells. In the first distribution diagram 502, all memory cells may have an erase state. In the example of FIG. 5 , memory cells in an erase state may have a logical value of '1'.

제2 분포도(504)는 메모리 장치(150)가 제1 프로그램스텝을 수행한 후 메모리 셀들의 문턱전압 상태를 나타낸다. 메모리 장치(150)는 메모리 셀들의 비트들 중 제1 비트 데이터, 예를 들어 LSB(Least Significant Bit) 데이터를 메모리 셀들에 먼저 프로그램할 수 있다. 제1 비트 데이터를 프로그램하는 동작이 제1 프로그램스텝으로 지칭된다. 제1 프로그램 스텝을 수행하기 위해, 메모리 장치(150)는 컨트롤러(130)로부터 제1 비트 데이터를 획득할 수 있다. 메모리 장치(150)가 상기 제1 비트 데이터를 사용하여 메모리 셀들에 제1 프로그램스텝을 수행하면, 이레이즈상태를 갖는 메모리 셀들의 일부가 프로그램상태로 이동할 수 있다. 도 5의 예에서 메모리 셀들은 논리 '1' 또는 논리 '0'의 값을 가질 수 있다.The second distribution chart 504 represents threshold voltage states of memory cells after the memory device 150 performs the first program step. The memory device 150 may first program first bit data among bits of memory cells, eg, least significant bit (LSB) data into the memory cells. An operation of programming the first bit data is referred to as a first program step. To perform the first program step, the memory device 150 may obtain first bit data from the controller 130 . When the memory device 150 performs the first program step on the memory cells using the first bit data, some of the memory cells in the erase state may move to the program state. In the example of FIG. 5 , memory cells may have logic '1' or logic '0' values.

제3 분포도(506)는 메모리 장치(150)가 제2 프로그램스텝을 수행한 후 메모리 셀들의 문턱전압 상태를 나타낸다. 메모리 장치(150)는 제1 비트 데이터가 프로그램된 후, 상기 메모리 셀들의 비트들 중 제2 비트 데이터, 예를 들어 MSB(Most Significant Bit) 데이터 및 CSB(Central Significant Bit) 데이터를 메모리 셀들에 더 프로그램할 수 있다. 제2 비트 데이터를 더 프로그램하는 동작이 제2 프로그램스텝으로 지칭된다. 메모리 장치(150)는 상기 제1 및 제2 비트 데이터를 사용하여 메모리 셀들에 제2 프로그램스텝을 수행할 수 있다. 구현에 따라, 제2 프로그램 스텝을 수행하기 위해 메모리 장치(150)는 컨트롤러(130)로부터 제1 및 제2 비트 데이터를 획득할 수도 있고, 컨트롤러(130)로부터는 제2 비트 데이터만을 획득하고 메모리 셀들로부터 제1 비트 데이터를 획득할 수도 있다. 메모리 장치(150)가 메모리 셀들에 제2 프로그램스텝을 수행하면, MSB 데이터, CSB 데이터 및 LSB 데이터가 모두 프로그램 완료될 수 있다. 도 5의 예에서, 메모리 셀들은 '111', '101', '001', '011', '010', '110', '100', 및 '000'의 값을 가질 수 있다.A third distribution chart 506 represents threshold voltage states of memory cells after the memory device 150 performs the second program step. After the first bit data is programmed, the memory device 150 adds second bit data among the bits of the memory cells, for example, most significant bit (MSB) data and central significant bit (CSB) data to the memory cells. can be programmed An operation of further programming the second bit data is referred to as a second program step. The memory device 150 may perform a second program step on memory cells using the first and second bit data. Depending on implementation, in order to perform the second program step, the memory device 150 may obtain first and second bit data from the controller 130, or obtain only the second bit data from the controller 130 and obtain the memory device 150. First bit data may be obtained from the cells. When the memory device 150 performs the second program step on the memory cells, all of MSB data, CSB data, and LSB data may be programmed. In the example of FIG. 5 , memory cells may have values of '111', '101', '001', '011', '010', '110', '100', and '000'.

도 5는 TLC 메모리 블록의 경우를 예로 들어 멀티스텝 프로그램 동작을 설명하였으나, 멀티스텝 프로그램 동작은 다양한 유형의 MLC 메모리 블록에 적용될 수 있다. 예를 들어, 메모리 장치(150)가 DLC 메모리 블록에 멀티스텝 프로그램 동작을 수행하는 경우, 제1 프로그램스텝에서 2비트 데이터 중 LSB 데이터를 이용하여 2개의 문턱전압 상태를 형성할 수 있다. 그리고, 메모리 장치(150)는 제2 프로그램스텝에서 LSB 데이터 및 MSB 데이터를 이용하여 최종적으로 4개의 문턱전압 상태를 형성할 수 있다.5 illustrates the multi-step program operation by taking a TLC memory block as an example, the multi-step program operation can be applied to various types of MLC memory blocks. For example, when the memory device 150 performs a multi-step program operation on a DLC memory block, two threshold voltage states may be formed using LSB data among 2-bit data in a first program step. Also, the memory device 150 may finally form four threshold voltage states using the LSB data and the MSB data in the second program step.

한편, 어떤 물리 페이지에 프로그램 동작을 수행하는 경우, 워드라인 커플링으로 인해 인접한 물리 페이지의 문턱전압 분포도 변하는 프로그램 디스터번스가 발생할 수 있다. 복수의 물리 페이지들을 프로그램할 때 프로그램 디스터번스의 영향을 최소화하기 위해 메모리 장치(150)의 프로그램 순서가 결정될 수 있다.Meanwhile, when a program operation is performed on a certain physical page, a program disturbance in which a threshold voltage distribution of an adjacent physical page is also changed due to word line coupling may occur. A program sequence of the memory device 150 may be determined to minimize an effect of program disturbance when programming a plurality of physical pages.

도 6은 멀티스텝 프로그램 동작을 수행하는 메모리 장치(150)의 프로그램 순서를 설명하는 도면이다.6 is a diagram illustrating a program sequence of the memory device 150 performing a multi-step program operation.

메모리 장치(150)가 MLC 메모리 장치인 경우, 각 물리 페이지들은 복수의 서브 페이지들을 포함할 수 있다. 예를 들어, 메모리 장치(150)가 DLC 메모리 장치인 경우 각 물리 페이지들은 제1 비트 페이지 및 제2 비트 페이지를 포함할 수 있다. When the memory device 150 is an MLC memory device, each physical page may include a plurality of subpages. For example, when the memory device 150 is a DLC memory device, each physical page may include a first bit page and a second bit page.

도 6에 도시된 제1 테이블(600)은 하나의 메모리 블록에 포함된 서브 페이지별 프로그램 순서를 나타낸다. 제1 테이블(600)의 첫 번째 행에는 제1 내지 제8 드레인 셀렉트 라인(DSL1 - DSL8)이 표시되고, 첫 번째 열에는 제1 내지 제3 워드라인(WL1 - WL3)이 표시된다. 도 4를 참조하여 설명된 것과 같이, 하나의 메모리 블록에서 복수의 물리 페이지들은 드레인 셀렉트 라인(DSL)들과 워드 라인(WL)들에 의해 선택될 수 있다. 이하에서, X번째 워드 라인과 Y번째 드레인 셀렉트 라인에 의해 선택되는 물리 페이지는 페이지XY로 지칭될 수 있다. 예를 들어, 제1 워드라인(WL1)과 제4 드레인 셀렉트 라인(DSL4)으로 특정되는 물리 페이지는 페이지14(Page14)로 지칭될 수 있다.A first table 600 shown in FIG. 6 indicates a program order for each subpage included in one memory block. First to eighth drain select lines DSL1 to DSL8 are displayed in the first row of the first table 600 , and first to third word lines WL1 to WL3 are displayed in the first column. As described with reference to FIG. 4 , a plurality of physical pages in one memory block may be selected by drain select lines DSL and word lines WL. Hereinafter, a physical page selected by the X-th word line and the Y-th drain select line may be referred to as page XY. For example, a physical page specified by the first word line WL1 and the fourth drain select line DSL4 may be referred to as page 14 (Page14).

제1 테이블(600)의 두 번째 열에는 제1 내지 제3 워드라인(WL1 - WL3) 각각의 제1 비트 및 제2 비트가 표시된다. 제1 테이블(600)의 각 엔트리(entry)는 각 서브 페이지에 대응할 수 있으며, 제1 테이블(600)에 표시된 '1', '2', ... '40'과 같은 숫자는 각 서브 페이지의 프로그램 순서를 나타낸다. A first bit and a second bit of each of the first to third word lines WL1 to WL3 are displayed in the second column of the first table 600 . Each entry of the first table 600 may correspond to each subpage, and numbers such as '1', '2', ... '40' displayed in the first table 600 may correspond to each subpage. indicates the program sequence of

메모리 장치(150)가 N번째 워드 라인에서 제1 프로그램스텝을 수행한 뒤 상기 N번째 워드 라인에서 제2 프로그램스텝을 연속해서 수행하는 경우, 이레이즈 상태인 N+1번째 워드 라인에 연결된 메모리 셀들이 프로그램 디스터번스의 영향을 크게 받을 수 있다. 프로그램 디스터번스의 영향을 최소화하기 위해, N번째 워드 라인에서 제1 프로그램스텝을 수행하고, 상기 N+1번째 워드라인에서 제1 프로그램스텝을 수행한 후에 상기 N번째 워드라인에서 제2 프로그램스텝을 수행할 수 있다.When the memory device 150 continuously performs the second program step on the N-th word line after performing the first program step on the N-th word line, the memory cell connected to the N+1-th word line in an erase state can be greatly affected by program disturbances. To minimize the effect of program disturbance, the first program step is performed on the N-th word line, and the second program step is performed on the N-th word line after the first program step is performed on the N+1-th word line. can do.

예를 들어, 제1 테이블(600)의 프로그램 순서 '1' 내지 '8'을 참조하면 메모리 장치(150)는 메모리 블록의 제1 워드 라인(WL1)에 연관된 페이지11 내지 페이지18의 제1 비트 페이지들을 순서대로 프로그램할 수 있다. 프로그램 순서 '9' 및 '10'을 참조하면, 메모리 장치(150)는 페이지11 내지 페이지18의 제1 비트 페이지들의 프로그램이 완료되면 페이지21에 해당하는 제1 비트 페이지의 프로그램을 먼저 수행하고, 페이지11에 해당하는 제2 비트 페이지의 프로그램을 수행할 수 있다. 프로그램 순서 '11' 내지 '24'를 참조하면, 페이지11 및 페이지21의 경우와 마찬가지로, 페이지12 내지 페이지18과 페이지22 내지 페이지28에서도 제2 워드 라인(WL2)에 연관된 제1 비트 페이지가 제1 워드 라인(WL1)에 연관된 제2 비트 페이지보다 먼저 프로그램될 수 있다. 마찬가지로, 프로그램 순서 '25' 내지 '40'을 참조하면, 메모리 장치(150)는 제3 워드 라인(WL3)에 연관된 제1 비트 페이지를 제2 워드 라인(WL2)에 연관된 제2 비트 페이지보다 먼저 프로그램할 수 있다.For example, referring to program sequences '1' to '8' of the first table 600, the memory device 150 displays the first bits of pages 11 to 18 associated with the first word line WL1 of the memory block. Pages can be programmed sequentially. Referring to program sequences '9' and '10', when the programming of the first bit pages of pages 11 to 18 is completed, the memory device 150 first executes the programming of the first bit page corresponding to page 21, The program of the second bit page corresponding to page 11 can be performed. Referring to program sequences '11' to '24', similarly to the case of pages 11 and 21, the first bit page associated with the second word line WL2 also appears in pages 12 to 18 and 22 to 28. It may be programmed prior to the second bit page associated with one word line WL1. Similarly, referring to program sequences '25' to '40', the memory device 150 sets the first bit page associated with the third word line WL3 prior to the second bit page associated with the second word line WL2. can be programmed

어떤 물리 페이지의 제1 및 제2 프로그램스텝이 모두 성공적으로 완료되어야 상기 물리 페이지의 프로그램 동작이 완료될 수 있다. 상기 제1 프로그램스텝이 성공적으로 완료되었더라도 상기 제2 프로그램스텝이 실패하면 메모리 장치(150)는 상기 물리 페이지의 프로그램 동작이 실패한 것으로 판단하고 제1 및 제2 비트 페이지를 다른 물리 페이지에 다시 프로그램할 수 있다. 메모리 시스템(110)의 신뢰성을 보장하기 위해, 컨트롤러(130)는 제2 프로그램스텝이 완료될 때까지 제1 및 제2 비트 페이지를 유지할 수 있다. When both the first and second program steps of a certain physical page are successfully completed, the program operation of the physical page can be completed. Even if the first program step is successfully completed, if the second program step fails, the memory device 150 determines that the program operation of the physical page has failed and reprograms the first and second bit pages into different physical pages. can To ensure reliability of the memory system 110, the controller 130 may maintain the first and second bit pages until the second program step is completed.

도 6의 예에서, 페이지 21의 제1 프로그램스텝은 9번째 순서로 수행되고, 제2 프로그램스텝은 26번째 순서로 수행될 수 있다. 상기 26번째 순서로 수행되는 제2 프로그램스텝이 완료되어야 페이지 21의 프로그램 동작이 완료될 수 있다. 만약 9번째 순서로 프로그램된 데이터청크는 26번째 순서로 수행되는 제2 프로그램스텝이 완료될 때까지 컨트롤러(130)에 유지될 수 있다. 만약 상기 데이터청크가 논백업 데이터청크라면, 상기 데이터청크는 26번째 순서의 제2 프로그램스텝이 완료될 때까지 라이트 버퍼(146)에 유지될 수 있다. In the example of FIG. 6 , the first program step of page 21 may be performed in the 9th order, and the second program step may be performed in the 26th order. The program operation of page 21 can be completed only when the second program step performed in the 26th order is completed. If the data chunk programmed in the 9th order can be maintained in the controller 130 until the second program step performed in the 26th order is completed. If the data chunk is a non-backup data chunk, the data chunk may be maintained in the write buffer 146 until the second program step in the 26th sequence is completed.

만약 상기 논백업 데이터청크가 10번째 순서로 프로그램된다면, 상기 논백업 데이터청크는 페이지 12에 제2 프로그램스텝을 통해 프로그램될 수 있으며 10번째 순서의 제2 프로그램스텝이 완료되면 라이트 버퍼(146)에서 제거될 수 있다. If the non-backup data chunk is programmed in the 10th order, the non-backup data chunk can be programmed through the second program step in page 12, and when the second program step in the 10th order is completed, the write buffer 146 can be removed

본 발명의 실시 예에 따르면, 컨트롤러(130)는 데이터청크들이 메모리 장치(150)에 프로그램되는 순서를 조정하되, 논백업 데이터청크들이 제2 프로그램스텝에서 프로그램되도록 함으로써 논백업 데이터청크가 라이트 버퍼(146)로부터 신속하게 제거되도록 할 수 있다. 본 발명의 실시 예에 따른 컨트롤러(130)의 동작은 도 7 내지 도 9b를 참조하여 상세히 설명된다.According to an embodiment of the present invention, the controller 130 adjusts the order in which data chunks are programmed into the memory device 150, but allows the non-backup data chunks to be programmed in the second program step, so that the non-backup data chunks are written to the write buffer ( 146) can be quickly removed. An operation of the controller 130 according to an embodiment of the present invention will be described in detail with reference to FIGS. 7 to 9B.

도 7은 본 발명의 실시 예에 따라 라이트 동작을 수행하기 위한 컨트롤러(130) 및 메모리 장치(150)의 상호작용(transaction)을 나타낸다.7 illustrates a transaction between the controller 130 and the memory device 150 for performing a write operation according to an embodiment of the present invention.

단계 S702에서, 라이트 버퍼(146)는 호스트 인터페이스(132)를 통해 수신된 데이터 청크들을 버퍼링할 수 있다.In step S702 , the write buffer 146 may buffer the data chunks received through the host interface 132 .

단계 S704에서, 백업 메모리(148)는 호스트 인터페이스(132)를 통해 수신된 상기 데이터 청크들을 선택적으로 백업할 수 있다.In step S704 , the backup memory 148 may selectively back up the data chunks received through the host interface 132 .

단계 S702 및 단계 S704는 각각 도 3을 참조하여 설명된 메인 데이터패스(302) 및 백업 데이터패스(304)를 통해 병렬로 수행될 수 있다.Steps S702 and S704 may be performed in parallel through the main data path 302 and backup data path 304 described with reference to FIG. 3 , respectively.

단계 S706에서, 프로세서(134)는 라이트 버퍼(146)에 버퍼링된 데이터청크들이 메모리 장치(150)에 프로그램되는 순서를 결정할 수 있다. 구체적으로, 프로세서(134)는 논백업 데이터청크가 제2 비트 페이지에 프로그램될 수 있도록 프로그램 순서를 조정할 수 있다. In step S706, the processor 134 may determine the order in which the data chunks buffered in the write buffer 146 are programmed into the memory device 150. Specifically, the processor 134 may adjust the program order so that the non-backup data chunk is programmed into the second bit page.

단계 S708에서, 메모리 인터페이스(142)는 제1 물리 페이지의 제1 비트 페이지에 프로그램될 데이터청크를 메모리 장치(150)로 제공할 수 있다. 이하에서, 제1 비트 페이지에 프로그램될 데이터청크는 제1 비트 데이터청크로 지칭될 수 있다. 본 발명의 실시 예에 따르면, 제1 비트 데이터청크는 항상 노멀 데이터청크일 수 있다.In step S708 , the memory interface 142 may provide the data chunk to be programmed in the first bit page of the first physical page to the memory device 150 . Hereinafter, a data chunk to be programmed into the first bit page may be referred to as a first bit data chunk. According to an embodiment of the present invention, the first bit data chunk may always be a normal data chunk.

제1 물리 페이지의 제1 비트 데이터청크가 메모리 장치(150)로 제공된 후, 프로세서(134)는 단계 S710에서 상기 제1 비트 데이터청크를 라이트 버퍼(146)로부터 제거할 수 있다.After the first bit data chunk of the first physical page is provided to the memory device 150 , the processor 134 may remove the first bit data chunk from the write buffer 146 in operation S710 .

단계 S712에서, 메모리 장치(150)는 컨트롤러(130)로부터 수신된 제1 비트 데이터청크를 이용하여 제1 물리 페이지의 제1 프로그램스텝을 수행할 수 있다.In step S712, the memory device 150 may perform the first program step of the first physical page by using the first bit data chunk received from the controller 130.

단계 S714에서, 메모리 인터페이스(142)는 제1 물리 페이지에 후속하는 제2 물리 페이지의 제1 비트 데이터청크를 메모리 장치(150)로 제공할 수 있다.In operation S714 , the memory interface 142 may provide the first bit data chunk of the second physical page subsequent to the first physical page to the memory device 150 .

제2 물리 페이지의 제1 비트 데이터청크가 메모리 장치(150)로 제공된 후, 프로세서(134)는 단계 S716에서 상기 제1 비트 데이터청크를 라이트 버퍼(146)로부터 제거할 수 있다.After the first bit data chunk of the second physical page is provided to the memory device 150 , the processor 134 may remove the first bit data chunk from the write buffer 146 in operation S716 .

단계 S718에서, 메모리 장치(150)는 컨트롤러(130)로부터 수신된 제1 비트 데이터청크를 이용하여 제2 물리 페이지의 제1 프로그램스텝을 수행할 수 있다.In step S718, the memory device 150 may perform the first program step of the second physical page by using the first bit data chunk received from the controller 130.

단계 S720에서, 메모리 인터페이스(142)는 제1 물리 페이지의 제2 비트 페이지에 프로그램될 데이터청크인 제2 비트 데이터청크를 메모리 장치(150)로 제공할 수 있다. 본 발명의 실시 예에 따르면, 제2 비트 데이터청크는 논백업 데이터청크 또는 노멀 데이터청크일 수 있다. 도 7은 제2 비트 데이터청크가 논백업 데이터청크인 경우를 예시한다. 제2 비트 데이터청크가 메모리 장치(150)로 제공된 후, 프로세서(134)는 제2 비트 데이터청크를 라이트 버퍼(146)로부터 제거하지 않고 라이트 버퍼(146)에 유지할 수 있다.In step S720 , the memory interface 142 may provide the second bit data chunk, which is a data chunk to be programmed into the second bit page of the first physical page, to the memory device 150 . According to an embodiment of the present invention, the second bit data chunk may be a non-backup data chunk or a normal data chunk. 7 illustrates a case where the second bit data chunk is a non-backup data chunk. After the second bit data chunk is provided to the memory device 150 , the processor 134 may retain the second bit data chunk in the write buffer 146 without removing it from the write buffer 146 .

단계 S722에서, 메모리 장치(150)는 컨트롤러(130)로부터 수신된 제2 비트 데이터청크를 이용하여 제1 물리 페이지의 제2 프로그램스텝을 수행할 수 있다.In step S722, the memory device 150 may perform the second program step of the first physical page by using the second bit data chunk received from the controller 130.

단계 S712의 제1 프로그램스텝 및 단계 S722의 제2 프로그램스텝이 성공적으로 완료되면, 메모리 장치(150)는 단계 S724에서 제1 물리 페이지에 대한 프로그램 완료 신호를 컨트롤러(130)로 제공할 수 있다.When the first program step of step S712 and the second program step of step S722 are successfully completed, the memory device 150 may provide a program completion signal for the first physical page to the controller 130 in step S724.

단계 S726에서, 프로세서(134)는 상기 프로그램 완료 신호에 응하여 제1 물리 페이지와 연관된 백업 데이터청크 및 논백업 데이터청크를 제거할 수 있다. 구체적으로, 프로세서(134)는 상기 제1 물리 페이지의 제1 비트 데이터청크에 해당하는 백업 데이터청크를 백업 메모리(148)로부터 제거할 수 있다. 그리고, 프로세서(134)는 논백업 데이터청크인 제1 물리 페이지의 제2 비트 데이터청크를 라이트 버퍼(146)로부터 제거할 수 있다.In step S726, the processor 134 may remove the backup data chunk and the non-backup data chunk associated with the first physical page in response to the program completion signal. Specifically, the processor 134 may remove the backup data chunk corresponding to the first bit data chunk of the first physical page from the backup memory 148 . Also, the processor 134 may remove the second bit data chunk of the first physical page, which is the non-backup data chunk, from the write buffer 146 .

이하에서, 프로세서(134)가 상기 논백업 데이터청크가 제2 프로그램스텝을 통해 프로그램될 수 있도록 프로그램 순서를 결정하는 방법의 예가 도 8을 참조하여 상세히 설명된다.Hereinafter, an example of how the processor 134 determines the program order so that the non-backup data chunk can be programmed through the second program step will be described in detail with reference to FIG. 8 .

도 8은 단계 S706의 세부 동작을 예시하는 도면이다.8 is a diagram illustrating the detailed operation of step S706.

S802에서, 프로세서(134)는 메모리 장치(150)의 프로그램 순서에 따라 제1 프로그램스텝을 수행할 차례인지 여부를 판단할 수 있다. 메모리 장치(150)의 프로그램 순서의 예는 도 6을 참조하여 설명되었다.In S802, the processor 134 may determine whether it is the turn to perform the first program step according to the program order of the memory device 150. An example of the program sequence of the memory device 150 has been described with reference to FIG. 6 .

메모리 장치(150)가 제1 프로그램스텝을 수행할 차례인 경우(단계 S802에서, "YES"), 프로세서(134)는 단계 S804에서 라이트 버퍼(146)에 버퍼링된 데이터청크들 중 노멀 데이터청크가 상기 제1 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정할 수 있다. 예를 들어, 프로세서(134)는 라이트 버퍼(146)에 버퍼링된 노멀 데이터청크들 중 가장 오래된 데이터청크가 상기 제1 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정할 수 있다. 라이트 버퍼(146)에 버퍼링된 데이터청크들 중 가장 오래된 데이터청크가 논백업 데이터청크인 경우라도, 프로세서(134)는 상기 논백업 데이터청크가 프로그램되는 것을 보류할 수 있다.When it is the turn of the memory device 150 to perform the first program step (“YES” in step S802), the processor 134 selects a normal data chunk among the data chunks buffered in the write buffer 146 in step S804. A program sequence may be determined to be programmed in the first program step. For example, the processor 134 may determine a program order such that the oldest data chunk among the normal data chunks buffered in the write buffer 146 is programmed in the first program step. Even when the oldest data chunk among the data chunks buffered in the write buffer 146 is a non-backup data chunk, the processor 134 may suspend programming of the non-backup data chunk.

메모리 장치(150)가 제2 프로그램스텝을 수행할 차례인 경우(단계 S802에서, "NO"), 프로세서(134)는 단계 S806에서 라이트 버퍼(146)에 논백업 데이터청크가 버퍼링되었는지 여부를 판단할 수 있다.When it is the turn of the memory device 150 to perform the second program step ("NO" in step S802), the processor 134 determines whether the non-backup data chunk is buffered in the write buffer 146 in step S806. can do.

라이트 버퍼(146)에 논백업 데이터청크가 버퍼링된 경우(단계 S806에서, "YES"), 프로세서(134)는 단계 S808에서 상기 논백업 데이터청크가 상기 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정할 수 있다. 예를 들어, 컨트롤러(130)는 라이트 버퍼(146)에 버퍼링된 논백업 데이터청크들 중 가장 오래된 데이터청크가 상기 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정할 수 있다.If the non-backup data chunk is buffered in the write buffer 146 ("YES" in step S806), the processor 134 determines the program order so that the non-backup data chunk is programmed in the second program step in step S808. can For example, the controller 130 may determine the program order so that the oldest data chunk among the non-backup data chunks buffered in the write buffer 146 is programmed in the second program step.

라이트 버퍼(146)에 노멀 데이터청크들만이 버퍼링된 경우(단계 S806에서, "NO"), 프로세서(134)는 단계 S804에서 상기 노멀 데이터청크들 중 어느 하나가 상기 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정할 수 있다.When only the normal data chunks are buffered in the write buffer 146 ("NO" in step S806), the processor 134 program in step S804 such that any one of the normal data chunks is programmed in the second program step. order can be determined.

본 발명의 실시 예에 따르면, 논백업 데이터청크가 나중에 수신된 노멀 데이터청크보다 늦은 순서로 메모리 장치(150)에 프로그램되는 경우도 있다. 예를 들어, 논백업 데이터청크보다 나중에 수신된 노멀 데이터청크가 제2 물리 페이지의 제1 비트 페이지에 먼저 프로그램되고, 상기 논백업 데이터청크가 제1 물리 페이지의 제2 비트 페이지에 프로그램될 수 있다. According to an embodiment of the present invention, non-backup data chunks may be programmed into the memory device 150 in a later order than normal data chunks received later. For example, the normal data chunk received later than the non-backup data chunk may be first programmed into the first bit page of the second physical page, and the non-backup data chunk may be programmed into the second bit page of the first physical page. .

그러나, 제2 물리 페이지의 제1 비트 페이지에 프로그램된 데이터는 제2 물리 페이지의 제2 비트 페이지의 프로그램 동작까지 완료된 후에 컨트롤러(130)로부터 제거될 수 있는 반면에, 상기 논백업 데이터청크는 제1 물리 페이지의 제2 비트 페이지에 성공적으로 프로그램되면 곧바로 라이트 버퍼(146)로부터 제거될 수 있다. 따라서, 라이트 버퍼(146)에 버퍼링되는 논백업 데이터청크가 신속하게 제거될 수 있다.However, data programmed in the first bit page of the second physical page can be removed from the controller 130 after the program operation of the second bit page of the second physical page is completed, whereas the non-backup data chunk If the second bit page of one physical page is successfully programmed, it can be removed from the write buffer 146 immediately. Accordingly, non-backup data chunks buffered in the write buffer 146 can be quickly removed.

이하에서, 본 발명의 실시 예에 따른 컨트롤러(130)의 동작이 도 9a 및 도 9b의 구체적인 예시를 참조하여 설명된다.Hereinafter, the operation of the controller 130 according to an embodiment of the present invention will be described with reference to specific examples of FIGS. 9A and 9B.

도 9a는 라이트 버퍼(146)에 버퍼링된 데이터청크들을 예시한다.9A illustrates data chunks buffered in the write buffer 146.

도 9a의 예에서, 복수의 데이터청크들이 제1 내지 제24 데이터청크(D1 - D24)의 순서로 라이트 버퍼(146)에 버퍼링될 수 있다. 상기 복수의 데이터청크들 중 노멀 데이터청크는 도트 패턴이 표시된 사각형으로 도시되고, 논백업 데이터청크는 빗금 패턴이 표시된 사각형으로 도시된다. 제1 내지 제24 데이터청크(D1 - D24) 중 제4, 제7, 제11, 제15, 제18 및 제23 데이터청크(D4, D7, D11, D15, D18, D23)가 논백업 데이터청크이고, 나머지 데이터청크들이 노멀 데이터청크인 경우를 예로 들어 컨트롤러(130)의 동작이 설명된다.In the example of FIG. 9A , a plurality of data chunks may be buffered in the write buffer 146 in the order of first to twenty-fourth data chunks D1 to D24. Among the plurality of data chunks, a normal data chunk is shown as a rectangle marked with a dot pattern, and a non-backup data chunk is shown as a square marked with a hatched pattern. The 4th, 7th, 11th, 15th, 18th and 23rd data chunks (D4, D7, D11, D15, D18, D23) among the 1st to 24th data chunks (D1 to D24) are non-backup data chunks. , and the operation of the controller 130 will be described taking a case where the remaining data chunks are normal data chunks as an example.

도 9b는 도 9a의 예에서 라이트 버퍼(146)에 버퍼링된 데이터청크들이 프로그램되는 순서를 설명하기 위한 도면이다.FIG. 9B is a diagram for explaining an order in which data chunks buffered in the write buffer 146 in the example of FIG. 9A are programmed.

제2 테이블(900)은 하나의 메모리 블록에 포함된 서브 페이지별 프로그램 순서 및 서브 페이지별로 프로그램되는 데이터청크를 나타낸다. 제2 테이블(900)의 첫 번째 행은 제1 내지 제8 드레인 셀렉트 라인(DSL1 - DSL8)을 나타내고, 첫 번째 열과 두 번째 열은 제1 내지 제3 워드라인(WL1 - WL3) 각각의 제1 비트 페이지 및 제2 비트 페이지를 나타낸다. 제2 테이블(900)은 각 서브 페이지별 프로그램 순서(PO) 및 본 발명의 실시 예에 따라 각 서브 페이지에 프로그램되는 데이터청크(D)를 도시한다. 제2 테이블(900)의 서브 페이지별 프로그램 순서는 도 6의 제1 테이블(600)을 참조하여 설명된 것과 동일하다.The second table 900 shows a program sequence for each subpage included in one memory block and data chunks programmed for each subpage. The first row of the second table 900 represents the first to eighth drain select lines DSL1 to DSL8, and the first and second columns represent first to third word lines WL1 to WL3 respectively. Indicates a bit page and a second bit page. The second table 900 shows the program order (PO) for each subpage and the data chunk (D) programmed in each subpage according to an embodiment of the present invention. The program order of each subpage of the second table 900 is the same as that described with reference to the first table 600 of FIG. 6 .

도 9b를 참조하면, 노멀 데이터청크인 제1 내지 제3 데이터청크(D1 - D3)는 라이트 버퍼(146)에 버퍼링된 순서대로, 프로그램 순서 '1' 내지 '3'에 해당하는 서브 페이지에 프로그램될 수 있다. Referring to FIG. 9B, the first to third data chunks D1 to D3, which are normal data chunks, are programmed into subpages corresponding to program sequences '1' to '3' in the order in which they are buffered in the write buffer 146. It can be.

본 발명의 실시 예에 따르면, 논백업 데이터청크인 제4 데이터청크(D4)는 제2 프로그램스텝에서 프로그램될 수 있도록 프로그램 순서가 결정될 수 있다. 도 9b에서 제4 데이터청크(D4)는 프로그램 순서 '4' 내지 '9'에 해당하는 서브 페이지에는 프로그램될 수 없으며, 프로그램 순서 '10'에 해당하는 서브 페이지에 프로그램될 수 있다. 프로그램 순서 '4' 내지 '9'에 해당하는 서브 페이지에는 제4 데이터청크(D4)보다 나중에 수신된 노멀 데이터청크들이 먼저 프로그램될 수 있다. According to an embodiment of the present invention, the program sequence of the fourth data chunk D4, which is a non-backup data chunk, can be programmed in the second program step. 9B, the fourth data chunk D4 cannot be programmed in subpages corresponding to program sequences '4' to '9', but can be programmed in subpages corresponding to program sequence '10'. In subpages corresponding to program sequences '4' to '9', normal data chunks received later than the fourth data chunk D4 may be programmed first.

도 9b에서 제1 내지 제4 데이터청크(D1 - D4)뿐만 아니라, 제5 내지 제24 데이터청크(D5 - D24)에 대해서도 각 데이터 청크가 프로그램되는 순서 및 각 데이터 청크가 프로그램되는 서브 페이지가 도시된다. 도 9b에서 노멀 데이터청크가 프로그램될 서브 페이지에는 도트 패턴이 표시되고, 논백업 데이터청크가 프로그램될 서브 페이지에는 빗금 패턴이 표시된다. 패턴이 도시되지 않은 서브 페이지는 이레이즈 상태일 수 있다. In FIG. 9B, the order in which each data chunk is programmed and the subpages in which each data chunk is programmed are shown for the fifth to 24th data chunks D5 to D24 as well as the first to fourth data chunks D1 to D4. do. In FIG. 9B, a dot pattern is displayed on a subpage where a normal data chunk is to be programmed, and a hatched pattern is displayed on a subpage where a non-backup data chunk is to be programmed. A subpage in which a pattern is not shown may be in an erase state.

도 9b를 참조하면, 노멀 데이터청크들은 제1 비트 페이지에도 프로그램되고 제2 비트 페이지에도 프로그램될 수 있는 것과 달리, 논백업 데이터청크들은 모두 제2 비트 페이지에 프로그램될 수 있다.Referring to FIG. 9B , unlike the normal data chunks that can be programmed to both the first bit page and the second bit page, all of the non-backup data chunks can be programmed to the second bit page.

도 9b를 참조하면, 논백업 데이터청크가 제2 비트 페이지에 프로그램될 수 있도록 프로그램 순서가 조정되는 경우, 데이터청크들이 라이트 버퍼(146)에 버퍼링된 순서대로 메모리 장치(150)에 프로그램되는 경우보다 논백업 데이터청크가 라이트 버퍼(146)에서 신속하게 제거될 수 있다. Referring to FIG. 9B , when the program order is adjusted so that the non-backup data chunks can be programmed into the second bit page, the data chunks are programmed into the memory device 150 in the order in which they are buffered in the write buffer 146. Non-backup data chunks can be quickly removed from the write buffer 146.

제1 예로, 본 발명의 실시 예에 따르면 제4 데이터청크(D4)는 페이지 11의 제2 비트 페이지에 프로그램될 수 있다. 제4 데이터청크(D4)는 라이트 버퍼(146)에 4번째 순서로 버퍼링되어 10번째 순서로 메모리 장치(150)에 프로그램될 수 있다. 페이지 11의 제2 비트 페이지까지 성공적으로 프로그램 완료되면 제4 데이터청크(D4)는 라이트 버퍼(146)로부터 제거될 수 있다. 대조적으로, 만약 제4 데이터청크(D4)를 라이트 버퍼(146)에 수신된 순서와 같이 4번째 순서로 프로그램한다면 제4 데이터청크(D4)는 페이지 14의 제1 비트 페이지에 프로그램될 수 있다. 제4 데이터청크(D4)는 페이지 14의 제2 비트 페이지까지 성공적으로 프로그램 완료되어야 라이트 버퍼(146)로부터 제거될 수 있으며, 페이지 14의 제2 비트 페이지는 16번째 순서로 프로그램될 수 있다. As a first example, according to an embodiment of the present invention, the fourth data chunk D4 may be programmed in the second bit page of page 11. The fourth data chunk D4 may be buffered in the write buffer 146 in the fourth order and programmed in the memory device 150 in the tenth order. When programming up to the second bit page of page 11 is successfully completed, the fourth data chunk D4 may be removed from the write buffer 146 . In contrast, if the fourth data chunk D4 is programmed in the fourth order as received in the write buffer 146, the fourth data chunk D4 can be programmed in the first bit page of page 14. The fourth data chunk D4 can be removed from the write buffer 146 only when the second bit page of page 14 is successfully programmed, and the second bit page of page 14 can be programmed in the 16th order.

제2 예로, 본 발명의 실시 예에 따르면 제23 데이터청크(D23)는 페이지 18의 제2 비트 페이지에 24번째 순서로 프로그램될 수 있다. 제23 데이터청크(D23)는 24번째 순서의 프로그램이 성공적으로 완료되면 라이트 버퍼(146)로부터 제거될 수 있다. 대조적으로, 제23 데이터청크(D23)를 23번째 순서로 프로그램한다면, 제23 데이터청크(D23)는 페이지 28의 제1 비트 페이지에 프로그램될 수 있다. 페이지 28의 제2 비트 페이지는 40번째 순서로 프로그램될 수 있으며, 제23 데이터청크(D23)는 40번째 순서의 프로그램이 성공적으로 완료되어야 라이트 버퍼(146)로부터 제거될 수 있다.As a second example, according to an embodiment of the present invention, the 23rd data chunk D23 may be programmed in the 24th order of the 2nd bit page of page 18. The 23rd data chunk D23 may be removed from the write buffer 146 when the 24th sequential program is successfully completed. In contrast, if the 23rd data chunk D23 is programmed in the 23rd order, the 23rd data chunk D23 can be programmed in the first bit page of page 28. The second bit page of page 28 can be programmed in the 40th order, and the 23rd data chunk D23 can be removed from the write buffer 146 only when the 40th order of programming is successfully completed.

제4 및 제23 데이터청크(D4, D23)뿐만 아니라, 나머지 논백업 데이터청크의 경우에도 제2 비트 페이지에 프로그램될 수 있도록 프로그램 순서가 조정되는 경우에 상기 논백업 데이터청크가 라이트 버퍼(146)에 유지되는 시간은, 버퍼링된 순서대로 메모리 장치(150)에 프로그램되는 경우에 비해 감소되거나 동일할 수 있다.When the program order is adjusted so that not only the 4th and 23rd data chunks D4 and D23 but also the remaining non-backup data chunks can be programmed in the second bit page, the non-backup data chunks are written to the write buffer 146 The time maintained in may be reduced or equal to that of programming in the memory device 150 in the buffered order.

본 발명의 실시 예에 따르면, 컨트롤러(130)는 메인 데이터패스(302)를 통해 메모리 장치(150)에 프로그램할 데이터청크들을 라이트 버퍼(146)에 버퍼링하고, 백업 데이터패스(304)에 병목이 발생하지 않도록 데이터청크들을 백업 메모리(148)에 선택적으로 백업할 수 있다. 컨트롤러(130)는 상기 데이터청크들 각각의 프로그램 순서를 결정할 수 있다. 구체적으로, 컨트롤러(130)는 논백업 데이터청크가 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정할 수 있다. 논백업 데이터청크가 제2 비트 페이지에 프로그램 완료되는 경우 상기 제2 비트 페이지를 포함하는 물리 페이지의 프로그램 동작이 완료될 수 있으므로, 컨트롤러(130)는 상기 논백업 데이터청크를 라이트 버퍼(146)로부터 신속하게 제거할 수 있다. 논백업 데이터청크가 라이트 버퍼(146)로부터 신속하게 제거되면 라이트 버퍼(146)에서 논백업 데이터청크들이 적체되는 일이 방지될 수 있다.According to an embodiment of the present invention, the controller 130 buffers data chunks to be programmed into the memory device 150 through the main data path 302 in the write buffer 146, and the backup data path 304 is the bottleneck. Data chunks may be selectively backed up in the backup memory 148 to prevent this from occurring. The controller 130 may determine a program order of each of the data chunks. Specifically, the controller 130 may determine the program order so that the non-backup data chunk is programmed in the second program step. When the non-backup data chunk is programmed into the second bit page, since the program operation of the physical page including the second bit page can be completed, the controller 130 transfers the non-backup data chunk from the write buffer 146. can be quickly removed. If the non-backup data chunks are promptly removed from the write buffer 146, accumulation of the non-backup data chunks in the write buffer 146 can be prevented.

한편, 도 5 내지 도 9b에서 메모리 장치(150)가 DLC 메모리 장치이고, 2스텝 프로그램 동작을 수행하는 경우를 예로 들어 본 발명의 실시 예가 설명되었으나, 본 발명은 도 5 내지 도 9b의 예로 제한되지 않는다.Meanwhile, in FIGS. 5 to 9B, the embodiment of the present invention has been described taking a case in which the memory device 150 is a DLC memory device and performs a 2-step program operation as an example, but the present invention is not limited to the examples of FIGS. 5 to 9B. don't

제1 예로, 본 발명은 메모리 장치(150)가 TLC 메모리 장치이고 제1 프로그램스텝에서 LSB 데이터를 프로그램하고, 제2 프로그램스텝에서 CSB 데이터 및 MSB 데이터를 프로그램하는 경우에도 적용될 수 있다. 컨트롤러(130)는 데이터청크들의 프로그램 순서를 결정할 때, 논백업 데이터청크가 CSB 페이지 또는 MSB 페이지에 프로그램되도록 프로그램 순서를 결정할 수 있다.As a first example, the present invention can also be applied to a case where the memory device 150 is a TLC memory device, LSB data is programmed in the first program step, and CSB data and MSB data are programmed in the second program step. When determining the program order of the data chunks, the controller 130 may determine the program order so that the non-backup data chunk is programmed into a CSB page or an MSB page.

제2 예로, 본 발명은 메모리 장치(150)가 3개 이상의 프로그램스텝을 수행함으로써 물리 페이지를 프로그램하는 경우에도 적용될 수 있다. 컨트롤러(130)는 데이터청크들의 프로그램 순서를 결정할 때, 논백업 데이터청크가 가장 마지막 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정할 수 있다.As a second example, the present invention may also be applied to a case in which a physical page is programmed by the memory device 150 performing three or more program steps. When determining the program order of the data chunks, the controller 130 may determine the program order so that the non-backup data chunk is programmed at the last program step.

본 발명의 실시 예에 따르면, 백업 메모리(148)에 라이트 버퍼(146)의 모든 데이터청크들을 백업하는 경우와 마찬가지로 데이터 청크들은 프로그램 동작이 완료될 때까지 컨트롤러(130)에 유지될 수 있다. 그리고, 본 발명의 실시 예에 따르면 백업 메모리(148)의 병목이 방지되므로 백업 메모리(148)에 라이트 버퍼(146)의 모든 데이터청크들을 백업하는 경우에 비해 메모리 시스템(110)의 라이트 동작 속도가 향상될 수 있다. 뿐만 아니라, 본 발명의 실시 예에 따르면 라이트 버퍼(146)에서 논백업 데이터청크들이 적체되는 일이 방지되므로 고속 메모리로 구현되는 라이트 버퍼(146)에 요구되는 용량은 백업 메모리(148)에 라이트 버퍼(146)의 모든 데이터청크들을 백업하는 경우에 비해 거의 증가하지 않을 수 있다. 따라서, 메모리 시스템(110)의 성능이 향상되고, 신뢰성이 유지되면서 메모리 시스템(110)의 제조비용이나 회로면적이 증가하는 것은 방지될 수 있다.According to an embodiment of the present invention, similar to the case where all data chunks of the write buffer 146 are backed up in the backup memory 148, the data chunks may be maintained in the controller 130 until the program operation is completed. In addition, according to an embodiment of the present invention, since the bottleneck of the backup memory 148 is prevented, the write operation speed of the memory system 110 is increased compared to the case of backing up all the data chunks of the write buffer 146 in the backup memory 148. can be improved In addition, since accumulation of non-backup data chunks in the write buffer 146 is prevented according to an embodiment of the present invention, the required capacity of the write buffer 146 implemented as a high-speed memory is stored in the backup memory 148 as a write buffer. It may hardly increase compared to the case of backing up all the data chunks of (146). Accordingly, the performance of the memory system 110 is improved and reliability is maintained, while increasing manufacturing cost or circuit area of the memory system 110 can be prevented.

이상 본 발명의 실시예에 따른 컨트롤러 및 컨트롤러의 동작 방법을 구체적인 실시 형태로서 설명하였으나, 이는 예시에 불과한 것으로서 본 발명은 이에 한정되지 않는 것이며, 본 명세서에 개시된 기초 사상에 따르는 최광의 범위를 갖는 것으로 해석되어야 한다. 당업자는 개시된 실시 형태들을 조합, 치환하여 적시되지 않은 실시 형태를 실시할 수 있으나, 이 역시 본 발명의 권리범위를 벗어나지 않는 것이다. 이외에도 당업자는 본 명세서에 기초하여 개시된 실시형태를 용이하게 변경 또는 변형할 수 있으며, 이러한 변경 또는 변형도 본 발명의 권리범위에 속함은 명백하다.Although the controller and the operating method of the controller according to the embodiment of the present invention have been described as specific embodiments, this is only an example, and the present invention is not limited thereto, and is to have the widest scope according to the basic ideas disclosed herein. should be interpreted A person skilled in the art may implement an embodiment that is not indicated by combining or substituting the disclosed embodiments, but this also does not deviate from the scope of the present invention. In addition, those skilled in the art can easily change or modify the disclosed embodiments based on this specification, and it is clear that such changes or modifications also fall within the scope of the present invention.

Claims (21)

제1 및 제2 프로그램스텝을 거쳐 프로그램되는 멀티 레벨 셀들을 포함하는 메모리 장치를 제어하는 컨트롤러의 동작 방법에 있어서,
프로그램될 데이터청크들을 라이트 버퍼에 버퍼링하는 단계;
상기 데이터청크들을 선택적으로 백업 메모리에 백업하는 단계;
상기 라이트 버퍼에 버퍼링된 데이터청크들 각각의 프로그램 순서를 결정하되, 상기 데이터청크들 중 논백업 데이터청크는 제2 프로그램스텝에서 프로그램되도록 상기 프로그램 순서를 결정하는 단계; 및
상기 메모리 장치가 제1 물리 페이지에 제1 프로그램스텝을 수행하고, 상기 제1 물리 페이지에 후속하는 제2 물리 페이지에 제1 프로그램스텝을 수행한 후 상기 제1 물리 페이지에 제2 프로그램스텝을 수행함으로써 상기 데이터청크들을 프로그램하도록 상기 메모리 장치를 제어하는 단계
를 포함하는 동작 방법.
A method of operating a controller for controlling a memory device including multi-level cells programmed through first and second program steps,
buffering data chunks to be programmed in a write buffer;
selectively backing up the data chunks to a backup memory;
determining a program order of each of the data chunks buffered in the write buffer so that a non-backup data chunk among the data chunks is programmed in a second program step; and
The memory device performs a first program step on a first physical page, performs a first program step on a second physical page subsequent to the first physical page, and then performs a second program step on the first physical page. controlling the memory device to program the data chunks by
Operation method including.
제1항에 있어서,
상기 데이터청크들 각각의 프로그램 순서를 결정하는 단계는
상기 데이터청크들 중 노멀 데이터청크는 제1 또는 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정하는 단계를 포함하고,
상기 노멀 데이터청크는 라이트 버퍼에 버퍼링된 데이터청크들 중, 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크인
동작 방법.
According to claim 1,
Determining the program order of each of the data chunks
determining a program sequence so that a normal data chunk among the data chunks is programmed in a first or second program step;
In the normal data chunk, among data chunks buffered in the write buffer, a corresponding backup data chunk is a data chunk backed up in the backup memory.
how it works.
제2항에 있어서,
상기 라이트 버퍼에 버퍼링된 데이터청크들 각각의 프로그램 순서를 결정하는 단계는
상기 메모리 장치가 제1 프로그램스텝을 수행할 차례에 상기 데이터청크들 중 노멀 데이터청크가 프로그램되도록 상기 프로그램 순서를 결정하는 단계;
상기 메모리 장치가 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 논백업 데이터청크가 버퍼링된 경우 상기 논백업 데이터청크가 프로그램되도록 상기 프로그램 순서를 결정하는 단계; 및
상기 메모리 장치가 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 노멀 데이터청크만이 버퍼링된 경우 상기 노멀 데이터청크가 프로그램되도록 상기 프로그램 순서를 결정하는 단계를 포함하는
동작 방법.
According to claim 2,
Determining the program order of each of the data chunks buffered in the write buffer
determining the program sequence such that a normal data chunk among the data chunks is programmed when it is the turn of the memory device to perform a first program step;
determining the program order so that the non-backup data chunk is programmed when the non-backup data chunk is buffered in the write buffer when it is the turn of the memory device to perform the second program step; and
Determining the program order so that the normal data chunk is programmed when only the normal data chunk is buffered in the write buffer when it is the turn of the memory device to perform the second program step.
how it works.
제1항에 있어서,
상기 동작 방법은
논백업 데이터청크를 상기 메모리 장치로 제공하는 단계; 및
상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 논백업 데이터청크를 상기 라이트 버퍼에서 제거하는 단계
를 더 포함하는 동작 방법.
According to claim 1,
The above operation method is
providing a non-backup data chunk to the memory device; and
removing the non-backup data chunk from the write buffer when a program operation of a physical page associated with the non-backup data chunk is successfully completed;
Operation method further comprising.
제4항에 있어서,
상기 동작 방법은
상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 라이트 버퍼에 버퍼링된 상기 논백업 데이터청크를 상기 메모리 장치로 다시 제공하는 단계
를 더 포함하는 동작 방법.
According to claim 4,
The above operation method is
If a program operation of a physical page associated with the non-backup data chunk fails, providing the non-backup data chunk buffered in the write buffer to the memory device again.
Operation method further comprising.
제1항에 있어서,
상기 동작 방법은
노멀 데이터청크를 상기 메모리 장치로 제공하는 단계; 및
상기 노멀 데이터청크를 상기 메모리 장치로 제공한 후 상기 노멀 데이터청크를 상기 라이트 버퍼에서 제거하는 단계
를 더 포함하고,
상기 노멀 데이터청크는 상기 라이트 버퍼에 버퍼링된 데이터청크들 중, 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크인
동작 방법.
According to claim 1,
The above operation method is
providing a normal data chunk to the memory device; and
removing the normal data chunk from the write buffer after providing the normal data chunk to the memory device;
Including more,
Among the data chunks buffered in the write buffer, the normal data chunk corresponds to a data chunk backed up in the backup memory.
how it works.
제6항에 있어서,
상기 동작 방법은
상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 노멀 데이터청크에 대응하는 백업 데이터청크를 상기 백업 메모리에서 제거하는 단계
를 더 포함하는 동작 방법.
According to claim 6,
The above operation method is
removing a backup data chunk corresponding to the normal data chunk from the backup memory when a program operation of a physical page associated with the normal data chunk is successfully completed;
Operation method further comprising.
제7항에 있어서,
상기 동작 방법은
상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 백업 메모리에 백업된 상기 백업 데이터청크를 상기 메모리 장치로 제공하는 단계
를 더 포함하는 동작 방법.
According to claim 7,
The above operation method is
If a program operation of a physical page associated with the normal data chunk fails, providing the backup data chunk backed up in the backup memory to the memory device.
Operation method further comprising.
제1항에 있어서,
상기 데이터청크들을 선택적으로 상기 백업 메모리에 백업하는 단계는
호스트로부터 수신된 데이터청크가 상기 백업 메모리로 백업되는 데이터패스에서 병목이 발생하지 않도록 상기 데이터청크를 폐기하거나 상기 백업 메모리에 백업하는 단계를 포함하고,
상기 라이트 버퍼는 상기 백업 메모리보다 고속으로 동작하는 메모리인
동작 방법.
According to claim 1,
The step of selectively backing up the data chunks to the backup memory
Discarding the data chunk received from the host or backing it up to the backup memory so that a bottleneck does not occur in a data path where the data chunk is backed up to the backup memory;
The write buffer is a memory that operates at a higher speed than the backup memory.
how it works.
제9항에 있어서,
상기 데이터청크들을 선택적으로 상기 백업 메모리에 백업하는 단계는
상기 호스트로부터 수신된 데이터청크가 경유하는 임시 버퍼에 여유공간이 있는 경우 상기 데이터청크를 상기 임시 버퍼에 버퍼링하고, 상기 임시 버퍼에 버퍼링된 데이터청크를 백업 메모리에 백업하는 단계; 및
상기 임시 버퍼에 여유공간이 없는 경우 상기 데이터청크를 임시 버퍼에 버퍼링하지 않고 폐기하는 단계를 포함하는
동작 방법.
According to claim 9,
The step of selectively backing up the data chunks to the backup memory
buffering the data chunk in the temporary buffer and backing up the data chunk buffered in the temporary buffer to a backup memory when there is free space in the temporary buffer through which the data chunk received from the host passes; and
Discarding the data chunk without buffering it in the temporary buffer when there is no free space in the temporary buffer.
how it works.
제1 및 제2 프로그램스텝을 거쳐 프로그램되는 멀티 레벨 셀들을 포함하는 메모리 장치를 제어하는 컨트롤러에 있어서,
프로그램될 데이터청크들을 버퍼링하는 라이트 버퍼;
상기 데이터청크들을 선택적으로 백업하는 백업 메모리;
상기 라이트 버퍼에 버퍼링된 데이터청크들 각각의 프로그램 순서를 결정하되, 상기 데이터청크들 중 논백업 데이터청크는 제2 프로그램스텝에서 프로그램되도록 상기 프로그램 순서를 결정하는 프로세서를 포함하고,
상기 프로세서는
상기 메모리 장치가 제1 물리 페이지에 제1 프로그램스텝을 수행하고, 상기 제1 물리 페이지에 후속하는 제2 물리 페이지에 제1 프로그램스텝을 수행한 후 상기 제1 물리 페이지에 제2 프로그램스텝을 수행함으로써 상기 데이터청크들을 프로그램하도록 상기 메모리 장치를 제어하는
컨트롤러.
A controller for controlling a memory device including multi-level cells programmed through first and second program steps,
a write buffer buffering data chunks to be programmed;
a backup memory that selectively backs up the data chunks;
A processor determining a program order of each of the data chunks buffered in the write buffer, wherein a non-backup data chunk among the data chunks is programmed in a second program step;
The processor
The memory device performs a first program step on a first physical page, performs a first program step on a second physical page subsequent to the first physical page, and then performs a second program step on the first physical page. Controlling the memory device to program the data chunks by
controller.
제11항에 있어서,
상기 프로세서는
상기 데이터청크들 중 노멀 데이터청크는 제1 또는 제2 프로그램스텝에서 프로그램되도록 프로그램 순서를 결정하고,
상기 노멀 데이터청크는 라이트 버퍼에 버퍼링된 데이터청크들 중, 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크인
컨트롤러.
According to claim 11,
The processor
determining a program order so that a normal data chunk among the data chunks is programmed in a first or second program step;
In the normal data chunk, among data chunks buffered in the write buffer, a corresponding backup data chunk is a data chunk backed up in the backup memory.
controller.
제12항에 있어서,
상기 프로세서는
상기 메모리 장치가 제1 프로그램스텝을 수행할 차례에 상기 데이터청크들 중 노멀 데이터청크를 프로그램하고, 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 논백업 데이터청크가 버퍼링된 경우 상기 논백업 데이터청크를 프로그램하고, 상기 제2 프로그램스텝을 수행할 차례에 상기 라이트 버퍼에 노멀 데이터청크만이 버퍼링된 경우 상기 노멀 데이터청크를 프로그램하도록 상기 프로그램 순서를 결정하는
컨트롤러.
According to claim 12,
The processor
When the memory device programs a normal data chunk among the data chunks in the turn to perform the first program step and the non-backup data chunk is buffered in the write buffer in the turn to perform the second program step, the non-backup data chunk Determining the program order to program the normal data chunk when only the normal data chunk is buffered in the write buffer at the turn of programming the chunk and performing the second program step
controller.
제11항에 있어서,
상기 프로세서는
논백업 데이터청크를 상기 메모리 장치로 제공하고, 상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 논백업 데이터청크를 상기 라이트 버퍼에서 제거하는
컨트롤러.
According to claim 11,
The processor
Providing a non-backup data chunk to the memory device, and removing the non-backup data chunk from the write buffer when a program operation of a physical page associated with the non-backup data chunk is successfully completed
controller.
제14항에 있어서,
상기 프로세서는
상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 라이트 버퍼에 버퍼링된 상기 논백업 데이터청크를 상기 메모리 장치로 다시 제공하는
컨트롤러.
According to claim 14,
The processor
If the program operation of the physical page associated with the non-backup data chunk fails, providing the non-backup data chunk buffered in the write buffer to the memory device again.
controller.
제11항에 있어서,
상기 프로세서는
노멀 데이터청크를 메모리 장치로 제공하고, 상기 노멀 데이터청크를 상기 라이트 버퍼에서 제거하고,
상기 노멀 데이터청크는 상기 라이트 버퍼에 버퍼링된 데이터청크들 중 대응하는 백업 데이터청크가 상기 백업 메모리에 백업된 데이터청크인
컨트롤러.
According to claim 11,
The processor
providing a normal data chunk to a memory device and removing the normal data chunk from the write buffer;
In the normal data chunk, a corresponding backup data chunk among data chunks buffered in the write buffer is a data chunk backed up in the backup memory.
controller.
제16항에 있어서,
상기 프로세서는
상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 성공적으로 완료되면 상기 노멀 데이터청크에 대응하는 백업 데이터청크를 상기 백업 메모리에서 제거하는
컨트롤러.
According to claim 16,
The processor
removing a backup data chunk corresponding to the normal data chunk from the backup memory when the program operation of the physical page associated with the normal data chunk is successfully completed;
controller.
제17항에 있어서,
상기 프로세서는
상기 노멀 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 백업 메모리에 백업된 상기 백업 데이터청크를 상기 메모리 장치로 제공하는
컨트롤러.
According to claim 17,
The processor
Providing the backup data chunk backed up in the backup memory to the memory device when a program operation of the physical page associated with the normal data chunk fails.
controller.
제11항에 있어서,
상기 백업 메모리는
호스트로부터 수신된 데이터청크가 상기 백업 메모리로 백업되는 데이터패스에서 병목이 발생하지 않도록 상기 데이터청크를 선택적으로 상기 백업 메모리에 백업하고,
상기 라이트 버퍼는 상기 백업 메모리보다 고속으로 동작하는 메모리인
컨트롤러.
According to claim 11,
The backup memory is
selectively backing up the data chunks received from the host to the backup memory so that a bottleneck does not occur in a data path where the data chunks are backed up to the backup memory;
The write buffer is a memory that operates at a higher speed than the backup memory.
controller.
제19항에 있어서,
상기 컨트롤러는
상기 호스트로부터 수신된 데이터청크가 경유하는 임시 버퍼를 더 포함하고,
상기 임시 버퍼는
내부에 여유공간이 있는 경우 상기 데이터청크를 버퍼링한 후 상기 버퍼링된 데이터청크를 상기 백업 메모리로 제공하고, 내부에 여유공간이 없는 경우 상기 데이터청크를 버퍼링하지 않고 폐기하는
컨트롤러.
According to claim 19,
The controller
Further comprising a temporary buffer through which the data chunk received from the host passes;
The temporary buffer is
If there is free space inside, the data chunk is buffered and then the buffered data chunk is provided to the backup memory, and when there is no free space inside, the data chunk is discarded without buffering.
controller.
제1 및 제2 프로그램스텝을 거쳐 프로그램되는 멀티 레벨 셀들을 포함하는 메모리 장치를 제어하는 컨트롤러에 있어서,
프로그램될 데이터청크들을 버퍼링하는 라이트 버퍼;
상기 데이터청크들을 선택적으로 백업하는 백업 메모리;
상기 라이트 버퍼에 버퍼링된 데이터청크들 각각의 프로그램 순서를 결정하되, 상기 데이터청크들 중 논백업 데이터청크는 제2 프로그램스텝에서 프로그램되도록 상기 프로그램 순서를 결정하는 프로세서를 포함하고,
상기 프로세서는
상기 메모리 장치가 제1 물리 페이지에 제1 프로그램스텝을 수행하고, 상기 제1 물리 페이지에 후속하는 제2 물리 페이지에 제1 프로그램스텝을 수행한 후 상기 제1 물리 페이지에 제2 프로그램스텝을 수행함으로써 상기 데이터청크들을 프로그램하도록 상기 메모리 장치를 제어하고, 상기 논백업 데이터청크에 연관된 물리 페이지의 프로그램 동작이 실패하면, 상기 라이트 버퍼에 버퍼링된 상기 논백업 데이터청크를 상기 메모리 장치로 다시 제공하는
컨트롤러.
A controller for controlling a memory device including multi-level cells programmed through first and second program steps,
a write buffer buffering data chunks to be programmed;
a backup memory that selectively backs up the data chunks;
A processor determining a program order of each of the data chunks buffered in the write buffer, wherein a non-backup data chunk among the data chunks is programmed in a second program step;
The processor
The memory device executes a first program step on a first physical page, performs a first program step on a second physical page subsequent to the first physical page, and then performs a second program step on the first physical page. By controlling the memory device to program the data chunks, and if the program operation of the physical page associated with the non-backup data chunk fails, providing the non-backup data chunk buffered in the write buffer to the memory device again
controller.
KR1020210079965A 2021-06-21 2021-06-21 Controller and operation method thereof KR20220169642A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
KR1020210079965A KR20220169642A (en) 2021-06-21 2021-06-21 Controller and operation method thereof
US17/536,712 US11789637B2 (en) 2021-06-21 2021-11-29 Controller and operation method thereof
CN202210247077.3A CN115576482A (en) 2021-06-21 2022-03-14 Controller and operation method thereof
DE102022203891.6A DE102022203891A1 (en) 2021-06-21 2022-04-21 CONTROL AND PROCEDURES OF OPERATION THEREOF
JP2022085888A JP2023001880A (en) 2021-06-21 2022-05-26 Controller and method for operating controller
US18/460,705 US20230409228A1 (en) 2021-06-21 2023-09-05 Controller and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210079965A KR20220169642A (en) 2021-06-21 2021-06-21 Controller and operation method thereof

Publications (1)

Publication Number Publication Date
KR20220169642A true KR20220169642A (en) 2022-12-28

Family

ID=84283744

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210079965A KR20220169642A (en) 2021-06-21 2021-06-21 Controller and operation method thereof

Country Status (5)

Country Link
US (2) US11789637B2 (en)
JP (1) JP2023001880A (en)
KR (1) KR20220169642A (en)
CN (1) CN115576482A (en)
DE (1) DE102022203891A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220169642A (en) * 2021-06-21 2022-12-28 에스케이하이닉스 주식회사 Controller and operation method thereof

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101626080B1 (en) 2010-02-17 2016-06-01 삼성전자주식회사 Method for managing page buffer and devices performing the same
KR101856506B1 (en) * 2011-09-22 2018-05-11 삼성전자주식회사 Data storage device and data write method thereof
US9141308B2 (en) * 2011-12-30 2015-09-22 Sandisk Technologies Inc. Controller and method for using a transaction flag for page protection
KR102106866B1 (en) * 2013-01-29 2020-05-06 삼성전자주식회사 Multi-level Nonvolatile memory and Method of Progmming threrof
KR102271462B1 (en) * 2015-01-13 2021-07-05 삼성전자주식회사 Nonvolatile memory device, operating method of the same, and programming method of the same
KR20170056782A (en) 2015-11-13 2017-05-24 에스케이하이닉스 주식회사 Memory system and operating method for the same
TWI578222B (en) * 2015-11-18 2017-04-11 慧榮科技股份有限公司 Data storage device and data maintenance method thereof
US10319445B1 (en) * 2017-11-30 2019-06-11 Western Digital Technologies, Inc. Programming unprogrammed upper page during lower page programming of multi-level storage cells
JP6967959B2 (en) * 2017-12-08 2021-11-17 キオクシア株式会社 Memory system and control method
JP7051546B2 (en) * 2018-04-16 2022-04-11 キオクシア株式会社 Memory system and control method
KR102583787B1 (en) 2018-11-13 2023-10-05 에스케이하이닉스 주식회사 Data Storage Device and Operation Method Thereof, Storage System Having the Same
KR20200113989A (en) * 2019-03-27 2020-10-07 에스케이하이닉스 주식회사 Apparatus and method for controlling write operation of memory system
KR102492806B1 (en) 2019-12-20 2023-01-30 김승연 Method for managing inventory and product sales using smart shelves and smart shelves for inventory management and product sales
KR20220169642A (en) * 2021-06-21 2022-12-28 에스케이하이닉스 주식회사 Controller and operation method thereof

Also Published As

Publication number Publication date
DE102022203891A1 (en) 2022-12-22
CN115576482A (en) 2023-01-06
US20230409228A1 (en) 2023-12-21
US20220404972A1 (en) 2022-12-22
US11789637B2 (en) 2023-10-17
JP2023001880A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
KR102468751B1 (en) Memory system and operating method of memory system
KR102617411B1 (en) Memory system and operation method thereof
US11681554B2 (en) Logical address distribution in multicore memory system
US10725863B2 (en) Memory system and method for operating the same
KR20180039785A (en) Memory system and operation method for the same
KR102495539B1 (en) Memory system and operating method thereof
KR20160075174A (en) Memory system and operation method for the same
KR20170059658A (en) Memory system and operation method for the same
US11922065B2 (en) Memory system and operating method thereof
KR20220008058A (en) Controller and operation method thereof
KR20180111157A (en) Controller and operating method of controller
CN113539341A (en) Memory device and operation method thereof
CN111273856B (en) Controller and operation method thereof
KR102340094B1 (en) Memory system and operating method thereof
CN113223589A (en) Memory system and operating method thereof
KR20190031692A (en) Data processing system and operation method for the same
US20230409228A1 (en) Controller and operation method thereof
US11538547B2 (en) Systems and methods for read error recovery
CN111381772B (en) Controller of semiconductor memory device and method of operating the same
CN109918315B (en) Memory system and operation method thereof
CN112084119A (en) Storage device, host device, and method of operating storage device and host device
KR102289883B1 (en) Controller and operation method thereof
KR20190068197A (en) Memory system and operation method thereof
US11265021B2 (en) Apparatus and method for error recovery in memory system
US20210223974A1 (en) Memory system for multi-clustering read thresholds and method thereof