TWM652759U - data storage device - Google Patents

data storage device Download PDF

Info

Publication number
TWM652759U
TWM652759U TW112212820U TW112212820U TWM652759U TW M652759 U TWM652759 U TW M652759U TW 112212820 U TW112212820 U TW 112212820U TW 112212820 U TW112212820 U TW 112212820U TW M652759 U TWM652759 U TW M652759U
Authority
TW
Taiwan
Prior art keywords
data
storage
control unit
storage part
unit
Prior art date
Application number
TW112212820U
Other languages
Chinese (zh)
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 TW112212820U priority Critical patent/TWM652759U/en
Publication of TWM652759U publication Critical patent/TWM652759U/en

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

一種資料儲存裝置,其包含一控制單元、一緩衝儲存單元及一主要儲存單元。該控制單元用於將一待儲存資料轉換為一或多個被暫存於該緩衝儲存單元的資料部分,並對每一資料部分執行以下處理:判斷該資料部分的大小是否達到一預定大小,若否,以一第一寫入模式將該資料部分從該緩衝儲存單元寫入至該第一儲存部分,若是,以一第二寫入模式將該資料部分從該緩衝儲存單元直接寫入至該第二儲存部分。該第一寫入模式能使該第一儲存部分的單一個儲存元件儲存單一個位元的資料,該第二寫入模式能使該第二儲存部分的單一個儲存元件儲存多個位元的資料。A data storage device includes a control unit, a buffer storage unit and a main storage unit. The control unit is used to convert a data to be stored into one or more data parts temporarily stored in the buffer storage unit, and perform the following processing on each data part: determine whether the size of the data part reaches a predetermined size, If not, write the data portion from the buffer storage unit to the first storage portion in a first writing mode. If yes, write the data portion directly from the buffer storage unit to the buffer storage unit in a second writing mode. the second storage section. The first writing mode enables a single storage element of the first storage part to store a single bit of data, and the second writing mode enables a single storage element of the second storage part to store multiple bits of data. material.

Description

資料儲存裝置data storage device

本新型是有關於一種儲存裝置,特別是指一種用於儲存數位資料的資料儲存裝置。The present invention relates to a storage device, in particular to a data storage device for storing digital data.

固態硬碟(Solid-state drive,簡稱SSD)相較於傳統的機械硬碟具備更加優異的讀取速度,而已經普及於現今的電子產品市場。Solid-state drives (SSDs for short) have better reading speeds than traditional mechanical hard drives, and have become popular in today's electronic product market.

簡言之,固態硬碟通常以懸浮閘極(Floating Gate)電晶體作為其內部的最小儲存單元(亦稱為cell),且目前固態硬碟的儲存類型分為「單層式儲存」(簡稱SLC)、「多層式儲存」(有時亦稱「雙層式儲存」,簡稱MLC)、「三層式儲存」(簡稱TLC)以及「四層式儲存」(簡稱QLC)數種。In short, solid-state drives usually use floating gate transistors as their internal smallest storage units (also called cells), and the current storage types of solid-state drives are divided into "single-layer storage" (referred to as "single-layer storage"). SLC), "multi-tier storage" (sometimes also called "two-tier storage", referred to as MLC), "three-tier storage" (referred to as TLC) and "quad-tier storage" (referred to as QLC).

以SLC而言,SLC的每一個cell只能儲存一個位元的資料,雖然其相較於MLC、TLC、QLC具有最快的資料存取速度,但其成本同時也最為高昂。MLC、TLC、QLC的單一個cell分別能儲存兩位元、三位元及四位元的資料,故在成本上較SLC具有優勢,但每個cell能儲存的位元數愈多,其存取速度就愈慢。As for SLC, each cell of SLC can only store one bit of data. Although it has the fastest data access speed compared to MLC, TLC, and QLC, its cost is also the highest. A single cell of MLC, TLC, and QLC can store two-bit, three-bit, and four-bit data respectively, so they have an advantage over SLC in terms of cost. However, the more bits each cell can store, the higher the storage cost. The slower the speed.

基於上述,使用者常因存取速度與成本之間的取捨而產生困擾,因此,要如何對現有技術進行改善,以在存取速度與成本之間取得更佳的平衡,便成為一個值得探討之議題。Based on the above, users are often troubled by the trade-off between access speed and cost. Therefore, how to improve the existing technology to achieve a better balance between access speed and cost has become a question worth exploring. the issue.

因此,本新型的其中一目的,便在於提供一種有助於平衡存取速度與成本的資料儲存裝置。Therefore, one of the objectives of the present invention is to provide a data storage device that helps balance access speed and cost.

本新型資料儲存裝置適用於與一電腦組件電連接;該資料儲存裝置包含一控制單元、一電連接該控制單元的緩衝儲存單元,以及一主要儲存單元。該主要儲存單元包括一電連接該控制單元的第一儲存部分,以及一電連接該控制單元的第二儲存部分,其中,該第一儲存部分及該第二儲存部分各自具有多個分頁,且每一分頁具有多個與該控制單元電連接的儲存元件。當該控制單元經由該電腦組件接收到一要被儲存的待儲存資料時,該控制單元將該待儲存資料轉換為一或多個被暫存於該緩衝儲存單元的資料部分,並對每一個資料部分執行一寫入處理,其中,該控制單元對每一個資料部分執行該寫入處理的方式包含:判斷該資料部分的資料大小是否達到一預定大小,於判斷結果為否時,以一第一寫入模式將該資料部分從該緩衝儲存單元寫入至該第一儲存部分中的其中一個分頁,於判斷結果為是時,以一第二寫入模式將該資料部分從該緩衝儲存單元直接寫入至該第二儲存部分中的其中一個分頁,其中,該第一寫入模式能使該第一儲存部分中的單一個儲存元件儲存單一個位元的資料,該第二寫入模式能使該第二儲存部分中的單一個儲存元件儲存多個位元的資料。The new data storage device is suitable for electrical connection with a computer component; the data storage device includes a control unit, a buffer storage unit electrically connected to the control unit, and a main storage unit. The main storage unit includes a first storage part electrically connected to the control unit, and a second storage part electrically connected to the control unit, wherein the first storage part and the second storage part each have a plurality of pages, and Each page has a plurality of storage elements electrically connected to the control unit. When the control unit receives a data to be stored to be stored through the computer component, the control unit converts the data to be stored into one or more data parts that are temporarily stored in the buffer storage unit, and for each The data part performs a write process, wherein the control unit performs the write process on each data part including: judging whether the data size of the data part reaches a predetermined size, and when the judgment result is no, use a first A write mode is used to write the data portion from the buffer storage unit to one of the pages in the first storage portion. When the determination result is yes, a second write mode is used to write the data portion from the buffer storage unit. Write directly to one of the pages in the second storage part, wherein the first writing mode enables a single storage element in the first storage part to store a single bit of data, and the second writing mode A single storage element in the second storage part can store multiple bits of data.

在本新型資料儲存裝置的一些實施態樣中,該控制單元還用於判斷該第一儲存部分的該等分頁中是否存在其中一個所儲存之資料的大小達到一預設大小的已滿分頁,並於判斷結果為是時,將該已滿分頁中的資料以該第二寫入模式從該已滿分頁轉移至該第二儲存部分的其中一個分頁中,該預設大小等於或小於該預定大小。In some implementations of the new data storage device, the control unit is also used to determine whether there is a full page in which the size of the stored data reaches a preset size in the pages of the first storage part. And when the judgment result is yes, the data in the full page is transferred from the full page to one of the pages in the second storage part in the second writing mode, and the default size is equal to or smaller than the predetermined size.

在本新型資料儲存裝置的一些實施態樣中,該第一儲存部分及該第二儲存部分在該主要儲存單元中的配置位置是被預先決定好且固定不變。In some implementations of the novel data storage device, the configuration positions of the first storage part and the second storage part in the main storage unit are predetermined and fixed.

本新型之功效在於:該資料儲存裝置的控制單元能依據每一資料部分的資料大小是否達到預定大小,來決定要以速度較快的第一寫入模式將該資料部分寫入至該第一儲存部分儲存,還是要以資料儲存密度較高的第二寫入模式將該資料部分寫入至該第二儲存部分儲存,亦即根據資料部分的大小來決定其儲存模式及儲存區域,藉此,該資料儲存裝置有助於在存取速度與成本之間取得更佳的平衡,故確實能對現有技術作出改善。The function of the present invention is that the control unit of the data storage device can decide to write the data part to the first data part in the faster first writing mode based on whether the data size of each data part reaches a predetermined size. To store part of the data, it is still necessary to use the second writing mode with higher data storage density to write the data part to the second storage part, that is, to determine the storage mode and storage area according to the size of the data part. , this data storage device helps to achieve a better balance between access speed and cost, so it can indeed improve the existing technology.

在本新型被詳細描述之前應當注意:在未特別定義的情況下,本專利說明書中所述的「電連接(electrically connected)」是用來描述電腦硬體(例如電子系統、設備、裝置、單元、元件)之間的「耦接(coupled)」關係,且泛指複數電腦硬體之間透過導體/半導體材料彼此實體相連而實現的「有線電連接」,以及利用無線通訊技術(例如但不限於無線網路、藍芽及電磁感應等)而實現無線資料傳輸的「無線電連接」。另一方面,在未特別定義的情況下,本專利說明書中所述的「電連接」也泛指複數電腦硬體之間彼此直接耦接而實現的「直接電連接」,以及複數電腦硬體之間是透過其他電腦硬體間接耦接而實現的「間接電連接」。Before the present invention is described in detail, it should be noted that, unless otherwise defined, the term "electrically connected" described in this patent specification is used to describe computer hardware (such as electronic systems, equipment, devices, units). , components), and generally refers to the "wired electrical connection" between multiple computer hardware that are physically connected to each other through conductor/semiconductor materials, and the use of wireless communication technologies (such as but not Limited to wireless networks, Bluetooth and electromagnetic induction, etc.) to achieve "radio connection" for wireless data transmission. On the other hand, unless otherwise defined, the "electrical connection" described in this patent specification also generally refers to the "direct electrical connection" achieved by direct coupling between multiple computer hardware components, as well as the "direct electrical connection" between multiple computer hardware components. There is an "indirect electrical connection" achieved through indirect coupling with other computer hardware.

在本新型被詳細描述之前應當注意:本專利說明書中所述的「單元(unit)」是代表電腦硬體而非軟體,舉例來說,「處理單元」是用來代表具備資料處理功能的電腦硬體。另一方面,本專利說明書中所述的「單元」可以是指具備特定功能的單一個電腦硬體,也可以是指具備類似功能的一群電腦硬體,舉例來說,「處理單元」可以是指具備資料處理功能的單一個處理器,但也可以是指一群處理器的集合。Before the present invention is described in detail, it should be noted that the "unit" mentioned in this patent specification represents computer hardware rather than software. For example, "processing unit" is used to represent a computer with data processing functions. Hardware. On the other hand, the "unit" mentioned in this patent specification can refer to a single computer hardware with specific functions, or it can refer to a group of computer hardware with similar functions. For example, a "processing unit" can be It refers to a single processor with data processing functions, but it can also refer to a collection of processors.

參閱圖1,本新型資料儲存裝置1的一實施例適用於被設置於一電腦組件5,並且與該電腦組件5電連接,從而使該資料儲存裝置1能透過該電腦組件5而被寫入資料或讀取資料。Referring to Figure 1, an embodiment of the new data storage device 1 is suitable for being installed in a computer component 5 and electrically connected to the computer component 5, so that the data storage device 1 can be written through the computer component 5. data or read data.

具體而言,在本實例中,該資料儲存裝置1被實現為一台固態硬碟裝置,而該電腦組件5例如是一塊設置有中央處理器的電腦主機板。進一步地,該資料儲存裝置1可例如是透過SATA或者PCI-E等連接介面而與該電腦組件5電連接。補充說明的是,在本實施例的應用中,只要該電腦組件5是允許供硬碟裝設從而對硬碟進行資料讀寫的電腦硬體,即可作為本實施例之資料儲存裝置1的應用對象,因此,該電腦組件5並不以設有中央處理器的電腦主機板為限。Specifically, in this example, the data storage device 1 is implemented as a solid state drive device, and the computer component 5 is, for example, a computer motherboard equipped with a central processing unit. Furthermore, the data storage device 1 can be electrically connected to the computer component 5 through a connection interface such as SATA or PCI-E. It should be added that in the application of this embodiment, as long as the computer component 5 is computer hardware that allows the installation of a hard disk to read and write data on the hard disk, it can be used as the data storage device 1 of this embodiment. Application object, therefore, the computer component 5 is not limited to a computer motherboard equipped with a central processing unit.

在本實施例中,該資料儲存裝置1包含一適於與該電腦組件5電連接的控制單元11、一與該控制單元11電連接的緩衝儲存單元12,以及一與該控制單元11電連接的主要儲存單元13。In this embodiment, the data storage device 1 includes a control unit 11 adapted to be electrically connected to the computer component 5, a buffer storage unit 12 electrically connected to the control unit 11, and a buffer storage unit 12 electrically connected to the control unit 11. main storage unit 13.

在本實施例中,該控制單元11是一個以積體電路實現且具有資料運算及指令收發功能的處理器,而相當於該資料儲存裝置1的中央處理單元。然而,在類似的實施態樣中,該控制單元11也可以是多個處理器的集合,或者是包括一或多個處理器的中央處理模組。In this embodiment, the control unit 11 is a processor implemented with an integrated circuit and has data computing and instruction sending and receiving functions, and is equivalent to the central processing unit of the data storage device 1 . However, in similar implementations, the control unit 11 may also be a collection of multiple processors, or a central processing module including one or more processors.

該緩衝儲存單元12為一與該控制單元11電連接的隨機存取記憶體(Random-Access Memory)。而且,在本實施例中,該緩衝儲存單元12是被作為該資料儲存裝置1的一分時緩衝器(Translation Storage Buffer,簡稱TSB),而用於供該控制單元11暫存即將要被寫入至該主要儲存單元13儲存的資料。The buffer storage unit 12 is a random access memory (Random-Access Memory) electrically connected to the control unit 11 . Moreover, in this embodiment, the buffer storage unit 12 is used as a time-sharing buffer (Translation Storage Buffer, TSB for short) of the data storage device 1, and is used for the control unit 11 to temporarily store the data to be written. The data stored in the main storage unit 13 is entered.

該主要儲存單元13例如是以NAND快閃記憶體實現,但並不限於此。更詳細地說,該主要儲存單元13包括一電連接該控制單元11的第一儲存部分131,以及一電連接該控制單元11的第二儲存部分132。其中,該第一儲存部分131及該第二儲存部分132各自具有多個儲存容量大小彼此相同的分頁133(亦稱為Page)。The main storage unit 13 is implemented by, for example, NAND flash memory, but is not limited thereto. In more detail, the main storage unit 13 includes a first storage part 131 electrically connected to the control unit 11 and a second storage part 132 electrically connected to the control unit 11 . The first storage part 131 and the second storage part 132 each have a plurality of pages 133 (also referred to as Pages) with the same storage capacity.

該等分頁133是構成該第一儲存部分131及該第二儲存部分132之儲存區塊(亦稱為Block,圖未示出)的基本單位,舉例來說,每一百二十八個或二百五十六個分頁133會構成一個儲存區塊,但並不以此為限。進一步地,如圖2所示,每一分頁133具有多個與該控制單元11電連接的儲存元件134。具體而言,每一個儲存元件134是一個懸浮閘極電晶體,而且,依據每一分頁133所應用的資料儲存技術(例如SLC技術、MLC技術、TLC技術或QLC技術),該分頁133中的每一個儲存元件134可用於儲存一個、兩個、三個或四個位元的資料。The pages 133 are the basic units of the storage blocks (also called Blocks, not shown) that constitute the first storage part 131 and the second storage part 132. For example, each page 128 or Two hundred and fifty-six pages 133 will constitute a storage block, but it is not limited to this. Further, as shown in FIG. 2 , each page 133 has a plurality of storage elements 134 electrically connected to the control unit 11 . Specifically, each storage device 134 is a floating gate transistor, and, depending on the data storage technology used in each page 133 (such as SLC technology, MLC technology, TLC technology or QLC technology), the data in the page 133 Each storage element 134 may be used to store one, two, three or four bits of data.

補充說明的是,每一個分頁133是指該第一儲存部分131及該第二儲存部分132被讀取/寫入資料的最小單位,且每一分頁133的儲存容量大小可例如為2KB、4KB、8KB或者16KB。換言之,對於每一分頁133,該控制單元11僅能對該分頁133的所有儲存元件134一併進行資料的讀取或寫入,而無法僅對該分頁133的其中一部份的儲存元件134進行讀取或寫入。It should be added that each page 133 refers to the smallest unit of data read/written in the first storage part 131 and the second storage part 132, and the storage capacity size of each page 133 can be, for example, 2KB or 4KB. , 8KB or 16KB. In other words, for each page 133 , the control unit 11 can only read or write data to all the storage elements 134 of the page 133 , but cannot only read or write data to a part of the storage elements 134 of the page 133 . to read or write.

在本實施例中,該第一儲存部分131是該主要儲存單元13中利用SLC技術所實現的儲存區域,該第二儲存部分132則是利用TLC技術所實現的儲存區域。換言之,在本實施例中,該第一儲存部分131中的每一個儲存元件134是用於儲存單一個位元的資料,而該第二儲存部分132中的每一個儲存元件134則是用於儲存三個位元的資料。然而,在其他實施例中,該第二儲存部分132也可以是利用MLC或QLC技術所實現的儲存區域,簡言之,該第二儲存部分132只要是能使每一個儲存元件134儲存多個位元之資料的儲存區域即可實施,故其實際實施態樣並不以本實施例為限。In this embodiment, the first storage part 131 is a storage area implemented using SLC technology in the main storage unit 13, and the second storage part 132 is a storage area implemented using TLC technology. In other words, in this embodiment, each storage element 134 in the first storage part 131 is used to store a single bit of data, and each storage element 134 in the second storage part 132 is used to store Store three bits of data. However, in other embodiments, the second storage part 132 may also be a storage area implemented using MLC or QLC technology. In short, the second storage part 132 can enable each storage element 134 to store multiple The bit data storage area can be implemented, so the actual implementation is not limited to this embodiment.

進一步地,在本實施例中,該第一儲存部分131及該第二儲存部分132在該主要儲存單元13中的配置位置是被預先決定好且固定不變的。換言之,該第一儲存部分131及該第二儲存部分132都是在該主要儲存單元13中被預先配置好的固定儲存區域。此外,該第一儲存部分131與該第二儲存部分132的儲存空間比例可例如為一比四,然而,應當理解,其兩者儲存空間的比例可依據不同的成本考量或其他需求而被自由調整,故本實施例對此並不做特別限制。Furthermore, in this embodiment, the arrangement positions of the first storage part 131 and the second storage part 132 in the main storage unit 13 are predetermined and fixed. In other words, the first storage part 131 and the second storage part 132 are fixed storage areas that are preconfigured in the main storage unit 13 . In addition, the storage space ratio of the first storage part 131 and the second storage part 132 may be, for example, one to four. However, it should be understood that the ratio of the two storage spaces may be freely determined based on different cost considerations or other requirements. Adjustment is not particularly limited in this embodiment.

以下說明本實施例之資料儲存裝置1的運作方式。The following describes the operation mode of the data storage device 1 of this embodiment.

首先,當該控制單元11經由該電腦組件5接收到一要被儲存至該資料儲存裝置1內的待儲存資料時,該控制單元11根據每一分頁133的儲存容量大小(例如但不限於4KB)對該待儲存資料進行檔案分割,以將該待儲存資料轉換為多個能夠共同構成該待儲存資料的資料部分,並且將該等資料部分全部或部分地暫存至該緩衝儲存單元12。補充說明的是,若該待儲存資料整體的檔案大小並未達到單一個分頁133的儲存容量大小,則該控制單元11便會將該待儲存資料的整體作為單一個資料部分。First, when the control unit 11 receives a data to be stored in the data storage device 1 via the computer component 5, the control unit 11 determines the storage capacity of each page 133 (for example, but not limited to 4KB). ) perform file division on the data to be stored to convert the data to be stored into multiple data parts that can jointly constitute the data to be stored, and temporarily store all or part of the data parts in the buffer storage unit 12 . It should be added that if the file size of the entire data to be stored does not reach the storage capacity of a single page 133, the control unit 11 will treat the entire data to be stored as a single data part.

在該控制單元11將該等資料部分暫存至該緩衝儲存單元12之後,該控制單元11對於該緩衝儲存單元12中的每一個資料部分執行一寫入處理。具體來說,該控制單元11對每一個資料部分執行該寫入處理的方式,是判斷該資料部分的資料大小是否達到一預定大小,而且,該預定大小在本實施例中等於單一個分頁133的儲存容量大小(例如但不限於4KB)。因此,在本實施例中,該控制單元11相當於是判斷該資料部分是否剛好能夠填滿一個空白的分頁133。After the control unit 11 temporarily stores the data portions in the buffer storage unit 12 , the control unit 11 performs a writing process for each data portion in the buffer storage unit 12 . Specifically, the way the control unit 11 performs the writing process for each data part is to determine whether the data size of the data part reaches a predetermined size, and the predetermined size is equal to a single page 133 in this embodiment. The size of the storage capacity (such as but not limited to 4KB). Therefore, in this embodiment, the control unit 11 is equivalent to determining whether the data part can just fill a blank page 133.

若該控制單元11判定該資料部分的資料大小並未達到該預定大小(亦即判斷結果為否),該控制單元11以一第一寫入模式將該資料部分從該緩衝儲存單元12寫入至該第一儲存部分131中的其中一個剩餘容量大小足夠的分頁133。具體而言,該第一寫入模式在本實施例中為SLC寫入模式,而能夠使該第一儲存部分131中的單一個儲存元件134儲存單一個位元的資料。換言之,在本實施例中,若該控制單元11判定該資料部分的資料大小不足以剛好填滿一個空白的分頁133,則該控制單元11便會採用寫入速度相對較快的SLC寫入模式,而將該資料部分寫入至該第一儲存部分131中的其中一個分頁133內,以使該資料部分從該緩衝儲存單元12被轉移至以SLC技術實現的該第一儲存部分131中儲存。If the control unit 11 determines that the data size of the data part does not reach the predetermined size (that is, the judgment result is no), the control unit 11 writes the data part from the buffer storage unit 12 in a first writing mode. to one of the pages 133 with sufficient remaining capacity in the first storage part 131 . Specifically, the first writing mode in this embodiment is an SLC writing mode, which enables a single storage element 134 in the first storage part 131 to store a single bit of data. In other words, in this embodiment, if the control unit 11 determines that the data size of the data part is not enough to fill a blank page 133, the control unit 11 will adopt the SLC writing mode with a relatively fast writing speed. , and the data part is written into one of the pages 133 in the first storage part 131, so that the data part is transferred from the buffer storage unit 12 to the first storage part 131 implemented with SLC technology for storage. .

另一方面,若該控制單元11判定該資料部分的資料大小有達到該預定大小(亦即判斷結果為是),該控制單元11以一第二寫入模式將該資料部分從該緩衝儲存單元12「直接」寫入至該第二儲存部分132中的其中一個空白的分頁133。具體而言,該第二寫入模式在本實施例中為TLC寫入模式,而能夠使該第二儲存部分132中的單一個儲存元件134儲存三個位元的資料。換言之,若該控制單元11判定該資料部分的資料大小足以填滿一個空白的分頁133,該控制單元11便會採用資料儲存密度相對較高的TLC寫入模式,而將該資料部分寫入至該第二儲存部分132中的其中一個分頁133內,以使該資料部分從該緩衝儲存單元12被直接轉移至以TLC技術實現的該第二儲存部分132中儲存。On the other hand, if the control unit 11 determines that the data size of the data part has reached the predetermined size (that is, the judgment result is yes), the control unit 11 writes the data part from the buffer storage unit in a second writing mode. 12 is written "directly" to one of the empty pages 133 in the second storage portion 132. Specifically, the second writing mode in this embodiment is a TLC writing mode, which enables a single storage element 134 in the second storage part 132 to store three bits of data. In other words, if the control unit 11 determines that the data size of the data part is enough to fill a blank page 133, the control unit 11 will use the TLC writing mode with relatively high data storage density to write the data part into In one of the pages 133 in the second storage part 132, the data part is directly transferred from the buffer storage unit 12 to the second storage part 132 implemented with TLC technology for storage.

特別強調的是,一旦該控制單元11判定該資料部分的資料大有達到該預定大小,該控制單元11即會將該資料部分「直接」從該緩衝儲存單元12轉移至該第二儲存部分132中儲存,而並非先將該資料部分從該緩衝儲存單元12轉移至該第一儲存部分131儲存,再將該資料部分從該第一儲存部分131轉移至該第二儲存部分132儲存。藉此,本實施例能節省將該資料部分從該緩衝儲存單元12經由該第一儲存部分131「間接」轉移至該第二儲存部分132儲存所須額外耗費的時間,因此,本實施例能以相對更短的整體處理時間、更少的作業量完成將該資料部分從該緩衝儲存單元12轉移至該第二儲存部分132儲存的寫入作業,同時避免因「間接」轉移的做法所導致的延遲(Latency)情況,是以,本實施例具備優良的穩定性及效能,並且能減緩該第一儲存部分131因被讀寫所致之耗損。It is particularly emphasized that once the control unit 11 determines that the data size of the data part reaches the predetermined size, the control unit 11 will "directly" transfer the data part from the buffer storage unit 12 to the second storage part 132 Instead of first transferring the data part from the buffer storage unit 12 to the first storage part 131 for storage, and then transferring the data part from the first storage part 131 to the second storage part 132 for storage. Thereby, this embodiment can save the extra time required to "indirectly" transfer the data part from the buffer storage unit 12 to the second storage part 132 for storage. Therefore, this embodiment can The writing operation of transferring the data part from the buffer storage unit 12 to the second storage part 132 is completed with a relatively shorter overall processing time and less workload, while avoiding the problems caused by the "indirect" transfer method. Latency, therefore, this embodiment has excellent stability and performance, and can slow down the wear and tear of the first storage part 131 caused by being read and written.

補充說明的是,在其他實施例中,該第二寫入模式也可以是MLC寫入模式或QLC寫入模式,簡言之,該第二寫入模式只要是能使單一個儲存元件134儲存多個位元之資料的寫入模式即可實施,而並不以本實施例為限。It should be added that in other embodiments, the second writing mode can also be an MLC writing mode or a QLC writing mode. In short, the second writing mode can only enable a single storage element 134 to store The writing mode of multiple bits of data can be implemented and is not limited to this embodiment.

在該控制單元11將每一資料部分寫入至該第一儲存部分131及該第二儲存部分132的其中一者後(相當於將該待儲存資料寫入至該主要儲存單元13儲存),該控制單元11判斷該第一儲存部分131的該等分頁133中,是否存在其中一或多個所儲存之資料的大小已達到一預設大小的已滿分頁133’(圖1中示例性地示出一者),其中,該預設大小可例如是相符於單一個分頁133的儲存容量大小(例如但不限於4KB),但也可以是略小於單一個分頁133的儲存容量大小,例如但不限於其儲存容量大小的百分之九十五,換言之,該預設大小可以是等於或略小於前述的該預定大小。並且,當該控制單元11判定該第一儲存部分131的該等分頁133中確實存在已滿分頁133’時(亦即判斷結果為是),該控制單元11將每一已滿分頁133’中的資料以該第二寫入模式從該已滿分頁133’轉移至該第二儲存部分132的其中一個空白的分頁133中,亦即將該已滿分頁133’中的資料從該第一儲存部分131轉移至該第二儲存部分132中儲存,藉此釋放該第一儲存部分131的可用儲存空間。After the control unit 11 writes each data part into one of the first storage part 131 and the second storage part 132 (equivalent to writing the data to be stored into the main storage unit 13 for storage), The control unit 11 determines whether there is one or more full pages 133' in which the size of one or more stored data has reached a preset size among the pages 133 of the first storage part 131 (exemplarily shown in FIG. 1 The default size may be, for example, consistent with the storage capacity of a single page 133 (such as but not limited to 4KB), but may also be slightly smaller than the storage capacity of a single page 133 , such as but not limited to Limited to ninety-five percent of its storage capacity, in other words, the preset size may be equal to or slightly smaller than the aforementioned predetermined size. Moreover, when the control unit 11 determines that there is indeed a full page 133' in the pages 133 of the first storage part 131 (that is, the judgment result is yes), the control unit 11 saves each full page 133'. The data in the full page 133' is transferred from the full page 133' to one of the blank pages 133 of the second storage part 132 in the second writing mode, that is, the data in the full page 133' is transferred from the first storage part 131 is transferred to the second storage part 132 for storage, thereby freeing up the available storage space of the first storage part 131.

以上即為本實施例之運作方式的示例說明。The above is an example description of the operation mode of this embodiment.

綜上所述,該資料儲存裝置1的控制單元11能依據每一資料部分的資料大小是否達到預定大小,來決定要以速度較快的第一寫入模式將該資料部分寫入至該第一儲存部分131儲存,還是要以資料儲存密度較高的第二寫入模式將該資料部分寫入至該第二儲存部分132儲存,亦即根據資料部分的大小來決定其儲存模式及儲存區域,藉此,該資料儲存裝置1有助於在存取速度與成本之間取得更佳的平衡,且亦具備優良的穩定性及效能,故確實能達成本新型之目的。To sum up, the control unit 11 of the data storage device 1 can decide to write the data part to the third data part in the faster first writing mode based on whether the data size of each data part reaches a predetermined size. To store a storage part 131, it is still necessary to write the data part to the second storage part 132 for storage in the second writing mode with higher data storage density, that is, the storage mode and storage area are determined according to the size of the data part. , thereby, the data storage device 1 helps to achieve a better balance between access speed and cost, and also has excellent stability and performance, so it can indeed achieve the purpose of the present invention.

惟以上所述者,僅為本新型之實施例而已,當不能以此限定本新型實施之範圍,凡是依本新型申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本新型專利涵蓋之範圍內。However, the above are only examples of the present invention, and should not be used to limit the scope of the present invention. All simple equivalent changes and modifications made based on the patent scope of the present invention and the content of the patent specification are still within the scope of the present invention. Within the scope covered by this new patent.

1:資料儲存裝置 11:控制單元 12:緩衝儲存單元 13:主要儲存單元 131:第一儲存部分 132:第二儲存部分 133:分頁 133’:已滿分頁 134:儲存元件 5:電腦組件 1: Data storage device 11:Control unit 12: Buffer storage unit 13:Main storage unit 131: First storage part 132: Second storage part 133:Page 133’: Pagination is full 134:Storage component 5:Computer components

本新型之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一方塊示意圖,示例性地表示本新型資料儲存裝置的一實施例,以及一適合與該實施例配合應用的電腦組件;及 圖2是一不完整的示意圖,示例性地表示該實施例所包含的一分頁,以及其所具有的多個儲存元件。 Other features and functions of the present invention will be clearly presented in the embodiments with reference to the drawings, in which: Figure 1 is a block schematic diagram schematically showing an embodiment of the new data storage device and a computer component suitable for use in conjunction with the embodiment; and FIG. 2 is an incomplete schematic diagram illustrating a page included in this embodiment and a plurality of storage elements included therein.

1:資料儲存裝置 1: Data storage device

11:控制單元 11:Control unit

12:緩衝儲存單元 12: Buffer storage unit

13:主要儲存單元 13:Main storage unit

131:第一儲存部分 131: First storage part

132:第二儲存部分 132: Second storage part

133:分頁 133:Page

133’:已滿分頁 133’: Pagination is full

5:電腦組件 5:Computer components

Claims (3)

一種資料儲存裝置,適用於與一電腦組件電連接;該資料儲存裝置包含: 一控制單元; 一緩衝儲存單元,電連接該控制單元;及 一主要儲存單元,包括一電連接該控制單元的第一儲存部分,以及一電連接該控制單元的第二儲存部分,其中,該第一儲存部分及該第二儲存部分各自具有多個分頁,且每一分頁具有多個與該控制單元電連接的儲存元件; 當該控制單元經由該電腦組件接收到一要被儲存的待儲存資料時,該控制單元將該待儲存資料轉換為一或多個被暫存於該緩衝儲存單元的資料部分,並對每一個資料部分執行一寫入處理,其中,該控制單元對每一個資料部分執行該寫入處理的方式包含:判斷該資料部分的資料大小是否達到一預定大小,於判斷結果為否時,以一第一寫入模式將該資料部分從該緩衝儲存單元寫入至該第一儲存部分中的其中一個分頁,於判斷結果為是時,以一第二寫入模式將該資料部分從該緩衝儲存單元直接寫入至該第二儲存部分中的其中一個分頁,其中,該第一寫入模式能使該第一儲存部分中的單一個儲存元件儲存單一個位元的資料,該第二寫入模式能使該第二儲存部分中的單一個儲存元件儲存多個位元的資料。 A data storage device suitable for electrical connection with a computer component; the data storage device includes: a control unit; a buffer storage unit electrically connected to the control unit; and A main storage unit includes a first storage part electrically connected to the control unit, and a second storage part electrically connected to the control unit, wherein the first storage part and the second storage part each have a plurality of pages, And each page has a plurality of storage elements electrically connected to the control unit; When the control unit receives a data to be stored to be stored through the computer component, the control unit converts the data to be stored into one or more data parts that are temporarily stored in the buffer storage unit, and for each The data part performs a write process, wherein the control unit performs the write process on each data part including: judging whether the data size of the data part reaches a predetermined size, and when the judgment result is no, use a first A write mode is used to write the data portion from the buffer storage unit to one of the pages in the first storage portion. When the determination result is yes, a second write mode is used to write the data portion from the buffer storage unit. Write directly to one of the pages in the second storage part, wherein the first writing mode enables a single storage element in the first storage part to store a single bit of data, and the second writing mode A single storage element in the second storage part can store multiple bits of data. 如請求項1所述的資料儲存裝置,其中,該控制單元還用於判斷該第一儲存部分的該等分頁中是否存在其中一個所儲存之資料的大小達到一預設大小的已滿分頁,並於判斷結果為是時,將該已滿分頁中的資料以該第二寫入模式從該已滿分頁轉移至該第二儲存部分的其中一個分頁中,該預設大小等於或小於該預定大小。The data storage device as claimed in claim 1, wherein the control unit is also used to determine whether there is a full page in which the size of the stored data reaches a preset size in the pages of the first storage part, And when the judgment result is yes, the data in the full page is transferred from the full page to one of the pages in the second storage part in the second writing mode, and the default size is equal to or smaller than the predetermined size. 如請求項1所述的資料儲存裝置,其中,該第一儲存部分及該第二儲存部分在該主要儲存單元中的配置位置是被預先決定好且固定不變。The data storage device as claimed in claim 1, wherein the arrangement positions of the first storage part and the second storage part in the main storage unit are predetermined and fixed.
TW112212820U 2023-11-24 2023-11-24 data storage device TWM652759U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112212820U TWM652759U (en) 2023-11-24 2023-11-24 data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112212820U TWM652759U (en) 2023-11-24 2023-11-24 data storage device

Publications (1)

Publication Number Publication Date
TWM652759U true TWM652759U (en) 2024-03-11

Family

ID=91268723

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112212820U TWM652759U (en) 2023-11-24 2023-11-24 data storage device

Country Status (1)

Country Link
TW (1) TWM652759U (en)

Similar Documents

Publication Publication Date Title
US10146292B2 (en) Power management
US11204833B1 (en) NVM endurance group controller using shared resource architecture
CN109643574B (en) Method and apparatus for initiating a pre-read operation prior to completion of a data load operation
US11567685B2 (en) Storage controller and storage device including the same
CN111796759B (en) Computer readable storage medium and method for fragment data reading on multiple planes
EP3926451A1 (en) Communication of data relocation information by storage device to host to improve system performance
KR20220010424A (en) Parallel boot execution of memory devices
US11966582B2 (en) Data storage device that detects and releases bottlenecks
KR101081948B1 (en) Nonvolatile memory device and data storing method thereof
EP3772682A1 (en) Method and apparatus to improve write bandwidth of a block-based multi-level cell non-volatile memory
US11861224B2 (en) Data transfer management from host buffers
TWM652759U (en) data storage device
US12045506B2 (en) Combining operations during reset
US20210397558A1 (en) Storage device and operating method thereof
CN113495850B (en) Method, apparatus and computer readable storage medium for managing garbage collection program
JP2010026950A (en) Storage device
TWI790512B (en) Storage control method and storage system
US12039173B2 (en) Data storage device that detects and releases input queue bottlenecks
US12105990B2 (en) Parallel fragmented SGL fetching for hiding host turnaround time
TWI829103B (en) Memory control circuit, memory storage device and memory control circuit unit
US20240111426A1 (en) Data Storage Device That Detects and Releases Bottlenecks In Hardware
US11893253B1 (en) Dynamic TD-PPM state and die mapping in multi-NAND channels
KR102583244B1 (en) Storage device and operating method of storage device
US12019878B2 (en) Pre-validation of blocks for garbage collection
US11656798B1 (en) Immediate partial host buffer fetching