TWI704560B - Storage device, access system and access method - Google Patents

Storage device, access system and access method Download PDF

Info

Publication number
TWI704560B
TWI704560B TW107136931A TW107136931A TWI704560B TW I704560 B TWI704560 B TW I704560B TW 107136931 A TW107136931 A TW 107136931A TW 107136931 A TW107136931 A TW 107136931A TW I704560 B TWI704560 B TW I704560B
Authority
TW
Taiwan
Prior art keywords
controller
reset
volatile memory
action
specific action
Prior art date
Application number
TW107136931A
Other languages
Chinese (zh)
Other versions
TW201903773A (en
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 TW107136931A priority Critical patent/TWI704560B/en
Publication of TW201903773A publication Critical patent/TW201903773A/en
Application granted granted Critical
Publication of TWI704560B publication Critical patent/TWI704560B/en

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A storage device including a volatile memory, an non-volatile memory and a controller is provided. The controller provides a plurality of commands to the non-volatile memory. When the controller receives a reset signal, the controller determines whether a specific action has been finished. When the specific action has not been finished by the controller, the controller continuously provides the commands to the non-volatile memory. When the specific action has been finished by the controller, the controller executes a reset action according to the reset signal. When the specific action has not been finished during a predetermined period, the controller executes the reset action.

Description

記憶裝置、存取系統及存取方法Memory device, access system and access method

本發明係有關於一種電子裝置,特別是有關於一種記憶裝置。The present invention relates to an electronic device, in particular to a memory device.

快閃記憶體等非揮發性記憶體近年來快速發展,並且設置於各式各樣的電子裝置中。目前看來,接下來不管是容量或是技術的發展,還會繼續加強。一旦越來越多的資料被放在這類的非揮發性記憶體,儲存機制也就越來越重要。Non-volatile memory such as flash memory has developed rapidly in recent years and is installed in various electronic devices. At present, it seems that whether it is the development of capacity or technology, it will continue to strengthen. Once more and more data is placed in this type of non-volatile memory, the storage mechanism becomes more and more important.

本發明提供一種記憶裝置,包括一揮發性記憶體、一非揮發性記憶體以及一控制器。控制器發出複數指令予非揮發性記憶體。當控制器接收到一重置信號時,控制器判斷一特定動作是否完成。當控制器未完成特定動作時,控制器繼續傳送該等指令予非揮發性記憶體。當控制器完成特定動作時,控制器根據重置信號執行一重置動作。當控制器在一預期時間內未完成特定動作時,該控制器執行重置動作。The present invention provides a memory device including a volatile memory, a non-volatile memory and a controller. The controller sends multiple commands to the non-volatile memory. When the controller receives a reset signal, the controller determines whether a specific action is completed. When the controller does not complete a specific action, the controller continues to send the commands to the non-volatile memory. When the controller completes a specific action, the controller performs a reset action according to the reset signal. When the controller does not complete a specific action within an expected time, the controller performs a reset action.

本發明另提供一種存取系統,包括一主機裝置以及一記憶裝置。主機裝置用以提供一重置信號。記憶裝置接收重置信號,並包括一揮發性記憶體、一非揮發性記憶體以及一控制器。控制器發出複數指令予非揮發性記憶體。當控制器接收到一重置信號時,控制器判斷一特定動作是否完成。當控制器未完成特定動作時,控制器繼續傳送該等指令予非揮發性記憶體。當控制器完成特定動作時,控制器根據重置信號執行一重置動作。當控制器在一預期時間內未完成特定動作時,控制器執行重置動作。The present invention also provides an access system, which includes a host device and a memory device. The host device is used for providing a reset signal. The memory device receives the reset signal and includes a volatile memory, a non-volatile memory, and a controller. The controller sends multiple commands to the non-volatile memory. When the controller receives a reset signal, the controller determines whether a specific action is completed. When the controller does not complete a specific action, the controller continues to send the commands to the non-volatile memory. When the controller completes a specific action, the controller performs a reset action according to the reset signal. When the controller does not complete a specific action within an expected time, the controller performs a reset action.

本發明另提供一種存取方法,適用於一記憶裝置。憶裝置包括一非揮發性記憶體以及一揮發性記憶體。本發明之存取方法包括:接收一重置信號;判斷該非揮發性記憶體是否正在接收一指令;當該非揮發性記憶體正在接收該指令時,判斷一特定動作是否完成;當該特定動作未完成時,繼續傳送該指令予該非揮發性記憶體;以及當該特定動作已完成時,執行一重置動作,其中在一預期時間內,該特定動作未完成時,執行該重置動作。The present invention also provides an access method suitable for a memory device. The memory device includes a non-volatile memory and a volatile memory. The access method of the present invention includes: receiving a reset signal; determining whether the non-volatile memory is receiving a command; when the non-volatile memory is receiving the command, determining whether a specific action is completed; when the specific action is not When completed, continue to send the command to the non-volatile memory; and when the specific action has been completed, perform a reset action, wherein the reset action is performed when the specific action is not completed within an expected time.

本發明之存取方法可經由本發明之系統來實作,其為可執行特定功能之硬體或韌體,亦可以透過程式碼方式收錄於一紀錄媒體中,並結合特定硬體來實作。當程式碼被電子裝置、處理器、電腦或機器載入且執行時,電子裝置、處理器、電腦或機器變成用以實行本發明之裝置或系統。The access method of the present invention can be implemented by the system of the present invention, which is a hardware or firmware that can perform specific functions, or it can be recorded in a recording medium through a code method and implemented in combination with specific hardware . When the program code is loaded and executed by an electronic device, processor, computer or machine, the electronic device, processor, computer or machine becomes a device or system for implementing the present invention.

為讓本發明之目的、特徵和優點能更明顯易懂,下文特舉出實施例,並配合所附圖式,做詳細之說明。本發明說明書提供不同的實施例來說明本發明不同實施方式的技術特徵。其中,實施例中的各元件之配置係為說明之用,並非用以限制本發明。另外,實施例中圖式標號之部分重覆,係為了簡化說明,並非意指不同實施例之間的關聯性。In order to make the purpose, features and advantages of the present invention more comprehensible, embodiments are specifically listed below, in conjunction with the accompanying drawings, for detailed description. The specification of the present invention provides different examples to illustrate the technical features of different embodiments of the present invention. Wherein, the configuration of each element in the embodiment is for illustrative purposes and is not used to limit the present invention. In addition, the part of the repetition of the drawing symbols in the embodiments is for simplifying the description and does not mean the relevance between different embodiments.

第1圖為本發明之存取系統的示意圖。如圖所示,存取系統100包括一主機裝置110以及一記憶裝置120。主機裝置100用以存取記憶裝置120。舉例而言,在一寫入期間,主機裝置110發出一讀取指令,用以將一外部資料寫入記憶裝置120。在一讀取期間,主機裝置110發出一讀取指令,用以讀取記憶裝置120所儲存的資料。在其它實施例中,主機裝置100發送一重置信號SRST ,用以初始化記憶裝置120。本發明並不限定記憶裝置120的種類。在一可能實施例中,記憶裝置120符合一嵌入式多媒體卡(Embedded MultiMediaCard;eMMC)規格或是一通用快閃儲存(Universal Flash Storage;UFS)協定。Figure 1 is a schematic diagram of the access system of the present invention. As shown in the figure, the access system 100 includes a host device 110 and a memory device 120. The host device 100 is used to access the memory device 120. For example, during a write period, the host device 110 issues a read command to write an external data into the memory device 120. During a reading period, the host device 110 issues a reading command to read the data stored in the memory device 120. In other embodiments, the host device 100 sends a reset signal S RST to initialize the memory device 120. The invention does not limit the type of the memory device 120. In one possible embodiment, the memory device 120 conforms to an Embedded MultiMediaCard (eMMC) specification or a Universal Flash Storage (UFS) protocol.

在本實施例中,記憶裝置120包括一界面(interface)121、一控制器122、一揮發性記憶體123以及一非揮發性記憶體124。界面121耦接於主機裝置110與控制器122之間,用以將主機裝置110所提供的資訊傳送至控制器122,或是將控制器122所提供的資訊傳送至主機裝置110。本發明並不限定界面121的種類。界面121可能係一並列傳輸界面( Parallel Interface)或是一串列傳輸界面(Serial Interface)。In this embodiment, the memory device 120 includes an interface 121, a controller 122, a volatile memory 123, and a non-volatile memory 124. The interface 121 is coupled between the host device 110 and the controller 122, and is used to transmit the information provided by the host device 110 to the controller 122, or transmit the information provided by the controller 122 to the host device 110. The invention does not limit the type of interface 121. The interface 121 may be a parallel transmission interface ( Parallel Interface) or a serial transmission interface (Serial Interface).

控制器122根據主機裝置110所發送的指令存取揮發性記憶體123以及非揮發性記憶體124之至少一者。在本實施例中,當主機裝置110發出重置信號SRST 予記憶裝置120時,如果控制器122正傳送指令予非揮發性記憶體124,控制器122暫時不進行重置動作。在此例中,控制器122判斷一特定動作是否已完成。當控制器122尚未完成特定動作時,控制器122繼續傳送指令予非揮發性記憶體124,直到完成特定動作。當控制器122完成特定動作時,控制器122根據重置信號SRST 進行一重置動作。The controller 122 accesses at least one of the volatile memory 123 and the non-volatile memory 124 according to the command sent by the host device 110. In this embodiment, when the host device 110 sends a reset signal S RST to the memory device 120, if the controller 122 is sending a command to the non-volatile memory 124, the controller 122 does not perform the reset operation temporarily. In this example, the controller 122 determines whether a specific action has been completed. When the controller 122 has not completed the specific action, the controller 122 continues to send instructions to the non-volatile memory 124 until the specific action is completed. When the controller 122 completes a specific action, the controller 122 performs a reset action according to the reset signal S RST .

舉例而言,假設,針對一操作(如讀取操作、寫入操作或設定操作),控制器122需發出100個指令予非揮發性記憶體124,其中每個指令具有32位元。當主機裝置110發出重置信號SRST 時,控制器122可能已提供第50個指令的第1-16位元予非揮發性記憶體124。然而,由於控制器122還沒將第50個指令的第17-32位元提供予非揮發性記憶體124,因此,非揮發性記憶體124尚未接收到完整的第50個指令。此時,如果控制器122直接根據重置信號SRST 進行重置動作,可能造成非揮發性記憶體124故障,無法再繼續存取資料。For example, suppose that for an operation (such as a read operation, a write operation, or a setting operation), the controller 122 needs to issue 100 commands to the non-volatile memory 124, and each command has 32 bits. When the host device 110 sends the reset signal S RST , the controller 122 may have provided bits 1-16 of the 50th command to the non-volatile memory 124. However, since the controller 122 has not provided the 17th-32th bits of the 50th command to the non-volatile memory 124, the non-volatile memory 124 has not received the complete 50th command. At this time, if the controller 122 directly performs the reset operation according to the reset signal S RST , it may cause the non-volatile memory 124 to malfunction and no longer be able to access data.

因此,在本實施例中,當控制器122接收到重置信號SRST 時,如果控制器122正傳送指令予非揮發性記憶體124,控制器122判斷是否已完成一特定動作。當控制器122未完成特定動作時,控制器122繼續傳送指令予非揮發性記憶體124。當當控制器122完成特定動作時,控制器122根據重置信號SRST 執行一重置動作。舉例而言,控制器122將第50個指令的第17-32位元提供予非揮發性記憶體124後,才進行重置動作。在此例中,特定動作係為控制器122將一指令(如第50個指令)的所有位元全部提供予非揮發性記憶體124,其中該指令係為控制器122接收到重置信號SRST 時,正提供予非揮發性記憶體124的指令。Therefore, in this embodiment, when the controller 122 receives the reset signal S RST , if the controller 122 is sending a command to the non-volatile memory 124, the controller 122 determines whether a specific action has been completed. When the controller 122 has not completed a specific action, the controller 122 continues to send commands to the non-volatile memory 124. When the controller 122 completes a specific action, the controller 122 performs a reset action according to the reset signal S RST . For example, after the controller 122 provides bits 17-32 of the 50th command to the non-volatile memory 124, the reset operation is performed. In this example, the specific action is that the controller 122 provides all the bits of a command (such as the 50th command) to the non-volatile memory 124, where the command is that the controller 122 receives the reset signal S At the time of RST , a command is being provided to the non-volatile memory 124.

在另一可能實施例中,特定動作係指控制器122將所有指令均傳送予非揮發性記憶體124。舉例而言,假設針對單一操作,控制器122需傳送100個指令予非揮發性記憶體124。在此例中,控制器122在傳送完100個指令予非揮發性記憶體124後,才會執行重置動作。在其它實施例中,當控制器122在一預期時間內未完成特定動作時,表示控制器122或是非揮發性記憶體124異常。因此,控制器122停止傳送指令予非揮發性記憶體124,並直接執行重置動作。In another possible embodiment, the specific action means that the controller 122 transmits all commands to the non-volatile memory 124. For example, suppose that for a single operation, the controller 122 needs to send 100 commands to the non-volatile memory 124. In this example, the controller 122 will perform the reset operation after sending 100 commands to the non-volatile memory 124. In other embodiments, when the controller 122 does not complete a specific action within an expected time, it means that the controller 122 or the non-volatile memory 124 is abnormal. Therefore, the controller 122 stops sending the command to the non-volatile memory 124 and directly performs the reset operation.

在本實施例中,控制器122包括一重置處理電路125以及一控制電路126。當重置處理電路125透過界面121得知主機裝置110發送重置信號SRST 時,重置處理電路125改變一重置暫存器的值。在一可能實施例中,該重置暫存器可能位於重置處理電路125、控制電路126、揮發性記憶體123或是非揮發性記憶體124中。在另一可能實施例中,重置處理電路125更具有一計數器(未顯示)。當計數器(counter)計數到一預設值時,重置處理電路125觸發控制電路126。在其它實施例中,計數器係位於控制電路126之中。In this embodiment, the controller 122 includes a reset processing circuit 125 and a control circuit 126. When the reset processing circuit 125 learns through the interface 121 that the host device 110 sends the reset signal S RST , the reset processing circuit 125 changes the value of a reset register. In a possible embodiment, the reset register may be located in the reset processing circuit 125, the control circuit 126, the volatile memory 123 or the non-volatile memory 124. In another possible embodiment, the reset processing circuit 125 further has a counter (not shown). When the counter reaches a preset value, the reset processing circuit 125 triggers the control circuit 126. In other embodiments, the counter is located in the control circuit 126.

控制電路126用以存取揮發性記憶體123及非揮發性記憶體124。在一可能實施例中,控制電路126完成一特定動作後,讀取一重置暫存器的值,用以判斷主機裝置110是否發出重置信號SRST 。在一些實施例中,當重置處理電路125接收到重置信號SRST 後,重置處理電路125觸發一計數器(未顯示)。當計數器計數到一預設值時,重置處理電路125發出一觸發信號,用以命令控制電路126立即進行重置動作。在此例中,即使控制電路126未完成特定動作,控制電路126仍會直接進行重置動作。The control circuit 126 is used to access the volatile memory 123 and the non-volatile memory 124. In a possible embodiment, after the control circuit 126 completes a specific action, it reads a reset register value to determine whether the host device 110 sends the reset signal S RST . In some embodiments, after the reset processing circuit 125 receives the reset signal S RST , the reset processing circuit 125 triggers a counter (not shown). When the counter counts to a preset value, the reset processing circuit 125 sends out a trigger signal to command the control circuit 126 to immediately perform the reset action. In this example, even if the control circuit 126 has not completed a specific action, the control circuit 126 will directly perform the reset action.

第2圖為本發明之存取方法的一可能流程示意圖。本發明的存取方法適用於一記憶裝置中。該記憶裝置包括一非揮發性記憶體以及一揮發性記憶體。首先,接收一重置信號(步驟S211)。在一可能實施例中,當記憶裝置接收到重置信號時,記憶裝置內的一控制器改變一重置暫存器的值。該重置暫存器可能位於記憶裝置的非揮發性記憶體、揮發性記憶體或是控制器中。在本實施例中,控制器係用以存取非揮發性記憶體及揮發性記憶體。Figure 2 is a schematic diagram of a possible flow of the access method of the present invention. The access method of the present invention is suitable for a memory device. The memory device includes a non-volatile memory and a volatile memory. First, a reset signal is received (step S211). In one possible embodiment, when the memory device receives the reset signal, a controller in the memory device changes the value of a reset register. The reset register may be located in the non-volatile memory, volatile memory, or controller of the memory device. In this embodiment, the controller is used to access non-volatile memory and volatile memory.

接著,判斷非揮發性記憶體是否正在接收一指令(步驟S212)。在一可能實施例中,步驟S212係由控制器所執行。當非揮發性記憶體並未接收指令,則直接進行一重置動作(步驟S213)。在一可能實施例中,重置動作係初始化控制器、揮發性記憶體、非揮發性記憶體之至少一者的內部暫存器。在其它實施例中,步驟S213係由控制器所執行。Next, it is determined whether the non-volatile memory is receiving a command (step S212). In a possible embodiment, step S212 is executed by the controller. When the non-volatile memory does not receive the command, a reset operation is directly performed (step S213). In a possible embodiment, the reset operation is to initialize an internal register of at least one of the controller, the volatile memory, and the non-volatile memory. In other embodiments, step S213 is executed by the controller.

然而,當非揮發性記憶體正在接收指令時,判斷一特定動作是否完成(步驟S214)。在一可能實施例中,控制器判斷是否已完成一特定動作。當控制器已完成特定動作時,執行重置動作(步驟S213)。然而,當特定動作未完成時,繼續傳送指令予非揮發性記憶體(步驟S215),並回到步驟S214,判斷是否已完成特定動作。However, when the non-volatile memory is receiving a command, it is determined whether a specific action is completed (step S214). In a possible embodiment, the controller determines whether a specific action has been completed. When the controller has completed a specific action, a reset action is performed (step S213). However, when the specific action is not completed, continue to send the command to the non-volatile memory (step S215), and return to step S214 to determine whether the specific action has been completed.

在一可能實施例中,該特定動作係指控制器已將一特定數量的指令提供予非揮發性記憶體。舉例而言,假設,針對單一寫入操作或讀取操作,控制器提供100個指令予非揮發性記憶體。在此例中,當控制器將100個指令全部提供予非揮發性記憶體時,表示已完成特定動作。在另一可能實施例中,該特定動作係指控制器將一指令的所有位元提供予非揮發性記憶體,其中該指令係為記憶裝置接收到重置指令時,非揮發性記憶體正在接收的指令。In a possible embodiment, the specific action means that the controller has provided a specific number of commands to the non-volatile memory. For example, suppose that for a single write operation or read operation, the controller provides 100 commands to the non-volatile memory. In this example, when the controller provides all 100 commands to the non-volatile memory, it means that a specific action has been completed. In another possible embodiment, the specific action refers to that the controller provides all bits of a command to the non-volatile memory, where the command is that when the memory device receives a reset command, the non-volatile memory is Instructions received.

第3圖為本發明之存取方法的另一可能流程示意圖。第3圖相似第2圖,不同之處第3圖多了步驟S316與S317。由於第3圖的步驟S311~S315與第2圖的步驟S211~S215相似,故不再贅述。在本實施例中,在接收到重置指令後,判斷非揮發性記憶體是否正接收指令(步驟S312)。若是,則觸發計數器(步驟S316)。在一可能實施例中,計數器係位於記憶裝置的控制器、非揮發性記憶體或是揮發性記憶體中。Figure 3 is a schematic diagram of another possible flow of the access method of the present invention. Figure 3 is similar to Figure 2, except that Figure 3 has more steps S316 and S317. Since steps S311 to S315 in FIG. 3 are similar to steps S211 to S215 in FIG. 2, they will not be described again. In this embodiment, after receiving the reset command, it is determined whether the non-volatile memory is receiving the command (step S312). If so, trigger the counter (step S316). In one possible embodiment, the counter is located in the controller, non-volatile memory or volatile memory of the memory device.

當一特定動作尚未完成,繼續傳送指令予非揮發性記憶體(步驟S315),並判斷計數器是否計數到一特定值(步驟S317)。當計數器的計數值尚未到達特定值時,回到步驟S314,繼續判斷是否已完成特定動作。然而,當計數器的計數值到達特定值時,執行重置動作,用以初始化記憶裝置(步驟S313)。When a specific action has not been completed, continue to send instructions to the non-volatile memory (step S315), and determine whether the counter counts to a specific value (step S317). When the count value of the counter has not reached the specific value, return to step S314 to continue to determine whether the specific action has been completed. However, when the count value of the counter reaches a specific value, a reset operation is performed to initialize the memory device (step S313).

由於記憶裝置不立即執行重置動作,故可避免非揮發性記憶體因未接收到完整的指令而發生故障。另外,當記憶裝置在一特定期間內無法完成特定動作時,表示記憶裝置內部的元件可能異常。因此,立即執行重置動作,以排除異常情況。Since the memory device does not immediately perform the reset operation, it can avoid the non-volatile memory from failing due to not receiving a complete command. In addition, when the memory device cannot complete a specific action within a specific period, it means that the internal components of the memory device may be abnormal. Therefore, immediately perform the reset action to eliminate the abnormal situation.

除非另作定義,在此所有詞彙(包含技術與科學詞彙)均屬本發明所屬技術領域中具有通常知識者之一般理解。此外,除非明白表示,詞彙於一般字典中之定義應解釋為與其相關技術領域之文章中意義一致,而不應解釋為理想狀態或過分正式之語態。Unless otherwise defined, all vocabulary (including technical and scientific vocabulary) herein belong to the general understanding of persons with ordinary knowledge in the technical field of the present invention. In addition, unless clearly stated, the definition of a word in a general dictionary should be interpreted as consistent with the meaning in the article in its related technical field, and should not be interpreted as an ideal state or an overly formal voice.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾。舉例來,本發明實施例所系統、裝置或是方法可以硬體、軟體或硬體以及軟體的組合的實體實施例加以實現。因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed as above in preferred embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the relevant technical field can make some changes and modifications without departing from the spirit and scope of the present invention. . For example, the system, device, or method of the embodiment of the present invention can be implemented in a physical embodiment of hardware, software, or a combination of hardware and software. Therefore, the protection scope of the present invention shall be subject to those defined by the attached patent application scope.

100‧‧‧存取系統;110‧‧‧主機裝置;120‧‧‧記憶裝置;SRST‧‧‧重置信號;121‧‧‧界面;122‧‧‧控制器;123‧‧‧揮發性記憶體;124‧‧‧非揮發性記憶體;125‧‧‧重置處理電路;126‧‧‧控制電路;S211~S215、S311~S317‧‧‧步驟。100‧‧‧Access system; 110‧‧‧Host device; 120‧‧‧Memory device; S RST ‧‧‧Reset signal; 121‧‧‧Interface; 122‧‧‧controller; 123‧‧‧volatile Memory; 124‧‧‧Non-volatile memory; 125‧‧‧Reset processing circuit; 126‧‧‧Control circuit; S211~S215, S311~S317‧‧‧Steps.

第1圖為本發明之存取系統的示意圖。 第2圖為本發明之存取方法的一可能流程示意圖。 第3圖為本發明之存取方法的一可能流程示意圖。Figure 1 is a schematic diagram of the access system of the present invention. Figure 2 is a schematic diagram of a possible flow of the access method of the present invention. Figure 3 is a schematic diagram of a possible flow of the access method of the present invention.

100‧‧‧存取系統 100‧‧‧Access System

110‧‧‧主機裝置 110‧‧‧Host device

120‧‧‧記憶裝置 120‧‧‧Memory Device

SRST‧‧‧重置信號 S RST ‧‧‧Reset signal

121‧‧‧界面 121‧‧‧Interface

122‧‧‧控制器 122‧‧‧Controller

123‧‧‧揮發性記憶體 123‧‧‧volatile memory

124‧‧‧非揮發性記憶體 124‧‧‧Non-volatile memory

125‧‧‧重置處理電路 125‧‧‧Reset processing circuit

126‧‧‧控制電路 126‧‧‧Control circuit

Claims (10)

一種記憶裝置,包括:一揮發性記憶體;一非揮發性記憶體;以及一控制器,發出複數指令予該非揮發性記憶體,並包括一重置處理電路以及一控制電路;其中當該控制器接收到一重置信號時,該控制器判斷一特定動作是否完成,當該控制器未完成該特定動作時,該控制器繼續傳送該等指令予該非揮發性記憶體,當該控制器完成該特定動作時,該控制器根據該重置信號執行一重置動作,其中當該控制器接收到該重置信號並且該非揮發性記憶體未接收該等指令時,該控制器立即執行該重置動作,其中當該重置處理電路接收到該重置信號時,該重置處理電路觸發一計數器,其中當該計數器未計數到一預設值並且該控制器未完成該特定動作時,該控制電路不執行該重置動作,其中當該計數器計數到該預設值時,該重置處理電路命令該控制電路立即執行該重置動作。 A memory device includes: a volatile memory; a non-volatile memory; and a controller, which sends a plurality of instructions to the non-volatile memory, and includes a reset processing circuit and a control circuit; wherein when the control When the controller receives a reset signal, the controller determines whether a specific action is completed. When the controller does not complete the specific action, the controller continues to send the commands to the non-volatile memory. When the controller completes During the specific action, the controller executes a reset action according to the reset signal, wherein when the controller receives the reset signal and the non-volatile memory does not receive the commands, the controller immediately executes the reset When the reset processing circuit receives the reset signal, the reset processing circuit triggers a counter, wherein when the counter does not count to a preset value and the controller does not complete the specific action, the The control circuit does not perform the reset operation, wherein when the counter counts to the preset value, the reset processing circuit commands the control circuit to immediately perform the reset operation. 如申請專利範圍第1項所述之記憶裝置,其中當該控制器接收到該重置信號時,該控制器改變一重置暫存器的值。 The memory device described in claim 1, wherein when the controller receives the reset signal, the controller changes the value of a reset register. 如申請專利範圍第2項所述之記憶裝置,其中該重置暫存器位於該揮發性記憶體中。 The memory device described in item 2 of the scope of patent application, wherein the reset register is located in the volatile memory. 如申請專利範圍第1項所述之記憶裝置,其中該重置動作係重置該揮發性記憶體及該非揮發性記憶體之至少一者。 The memory device described in claim 1, wherein the reset operation is to reset at least one of the volatile memory and the non-volatile memory. 如申請專利範圍第1項所述之記憶裝置,其中該特定動作係為該控制器將該等指令均傳送予該非揮發性記憶體。 For the memory device described in item 1 of the scope of patent application, the specific action is that the controller transmits all the commands to the non-volatile memory. 如申請專利範圍第1項所述之記憶裝置,其中當該控制器接收到該重置信號,並且該控制器正在傳送該等指令中之一特定指令予該非揮發性記憶體時,該特定動作係為該控制器將該特定指令的所有位元均傳送予該非揮發性記憶體。 The memory device described in the first item of the scope of patent application, wherein when the controller receives the reset signal and the controller is sending one of the commands to the non-volatile memory, the specific action It means that the controller transmits all the bits of the specific command to the non-volatile memory. 如申請專利範圍第1項所述之記憶裝置,其中該重置動作係初始化該控制器、該揮發性記憶體以及該非揮發性記憶體之至少一者的內部暫存器。 The memory device described in claim 1, wherein the reset operation is to initialize an internal register of at least one of the controller, the volatile memory, and the non-volatile memory. 一種存取系統,包括:一主機裝置,用以提供一重置信號;以及一記憶裝置,接收該重置信號,並包括:一揮發性記憶體;一非揮發性記憶體;以及一控制器,發出複數指令予該非揮發性記憶體,並包括一重置處理電路以及一控制電路;其中當該控制器接收到一重置信號時,該控制器判斷一特定動作是否完成,當該控制器未完成該特定動作時,該控制器繼續傳送該等指令予該非揮發性記憶體,當該控制器完成該特定動作時,該控制器根據該重置信號執行一重置動作,其中當該控制器接收到該重置信號並且該非揮發性記憶體未接收該等指令時,該控制器立即執行該重置動作,其中當該重置處理電路接收到該重置信號時,該重置處理電路觸發一計數器, 其中當該計數器未計數到一預設值並且該控制器未完成該特定動作時,該控制電路不執行該重置動作,其中當該計數器計數到該預設值時,該重置處理電路命令該控制電路立即執行該重置動作。 An access system includes: a host device for providing a reset signal; and a memory device for receiving the reset signal, and including: a volatile memory; a non-volatile memory; and a controller , Issue a plurality of instructions to the non-volatile memory, and include a reset processing circuit and a control circuit; wherein when the controller receives a reset signal, the controller determines whether a specific action is completed, when the controller When the specific action is not completed, the controller continues to send the commands to the non-volatile memory. When the controller completes the specific action, the controller performs a reset action according to the reset signal, wherein when the control When the device receives the reset signal and the non-volatile memory does not receive the instructions, the controller immediately executes the reset action, wherein when the reset processing circuit receives the reset signal, the reset processing circuit Trigger a counter, When the counter has not counted to a preset value and the controller has not completed the specific action, the control circuit does not perform the reset action, and when the counter counts to the preset value, the reset processing circuit commands The control circuit immediately executes the reset action. 如申請專利範圍第8項所述之存取系統,其中該重置動作係初始化該控制器、該揮發性記憶體以及該非揮發性記憶體之至少一者的內部暫存器。 The access system described in claim 8, wherein the reset action is to initialize an internal register of at least one of the controller, the volatile memory and the non-volatile memory. 一種存取方法,適用於一記憶裝置,該記憶裝置包括一非揮發性記憶體以及一揮發性記憶體,該存取方法包括:接收一重置信號;判斷該非揮發性記憶體是否正在接收一指令;當該非揮發性記憶體正在接收該指令時,觸發一計數器並判斷一特定動作是否完成;當該特定動作未完成時,繼續傳送該指令予該非揮發性記憶體;以及當該特定動作已完成時,執行一重置動作,其中在接收到該重置信號並且該非揮發性記憶體未接收該指令時,立即執行該重置動作,其中當該計數器未計數到一預設值並且該特定動作尚未完成時,不執行該重置動作,其中當該計數器計數到該預設值時,立即執行該重置動作。 An access method is suitable for a memory device. The memory device includes a non-volatile memory and a volatile memory. The access method includes: receiving a reset signal; determining whether the non-volatile memory is receiving a Command; when the non-volatile memory is receiving the command, trigger a counter and determine whether a specific action is completed; when the specific action is not completed, continue to send the command to the non-volatile memory; and when the specific action has been Upon completion, perform a reset action, wherein when the reset signal is received and the non-volatile memory does not receive the command, the reset action is performed immediately, wherein when the counter has not counted to a preset value and the specific When the action has not been completed, the reset action is not executed, and the reset action is executed immediately when the counter counts to the preset value.
TW107136931A 2017-04-28 2017-04-28 Storage device, access system and access method TWI704560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107136931A TWI704560B (en) 2017-04-28 2017-04-28 Storage device, access system and access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107136931A TWI704560B (en) 2017-04-28 2017-04-28 Storage device, access system and access method

Publications (2)

Publication Number Publication Date
TW201903773A TW201903773A (en) 2019-01-16
TWI704560B true TWI704560B (en) 2020-09-11

Family

ID=65803492

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107136931A TWI704560B (en) 2017-04-28 2017-04-28 Storage device, access system and access method

Country Status (1)

Country Link
TW (1) TWI704560B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050024968A1 (en) * 2003-07-31 2005-02-03 Brocade Communications Systems, Inc. Apparatus for reducing data corruption in a non-volatile memory
US20100306518A1 (en) * 2009-05-27 2010-12-02 Suryawanshi Ganesh R Method for managing the reset of a data processor
US20130159775A1 (en) * 2010-12-09 2013-06-20 Apple Inc. Debug Registers for Halting Processor Cores after Reset or Power Off
US20140297936A1 (en) * 2010-10-08 2014-10-02 Phison Electronics Corp. Non-volatile memory storage apparatus, memory controller and data storing method
US20140351056A1 (en) * 2011-12-28 2014-11-27 Datalogic Ip Tech S.R.L. Customer terminal and self-shopping system
TW201704929A (en) * 2015-07-30 2017-02-01 神雲科技股份有限公司 Server and method for detecting power reset

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050024968A1 (en) * 2003-07-31 2005-02-03 Brocade Communications Systems, Inc. Apparatus for reducing data corruption in a non-volatile memory
US20100306518A1 (en) * 2009-05-27 2010-12-02 Suryawanshi Ganesh R Method for managing the reset of a data processor
US20140297936A1 (en) * 2010-10-08 2014-10-02 Phison Electronics Corp. Non-volatile memory storage apparatus, memory controller and data storing method
US20130159775A1 (en) * 2010-12-09 2013-06-20 Apple Inc. Debug Registers for Halting Processor Cores after Reset or Power Off
US20140351056A1 (en) * 2011-12-28 2014-11-27 Datalogic Ip Tech S.R.L. Customer terminal and self-shopping system
TW201704929A (en) * 2015-07-30 2017-02-01 神雲科技股份有限公司 Server and method for detecting power reset

Also Published As

Publication number Publication date
TW201903773A (en) 2019-01-16

Similar Documents

Publication Publication Date Title
US11735273B2 (en) Data storage systems and methods for improved recovery after a write abort event
US11151027B2 (en) Methods and apparatuses for requesting ready status information from a memory
CN101937726B (en) Fast data eye retraining for a memory
EP2870539B1 (en) Using slow response memory device on a fast response interface
US11714703B2 (en) Method and system for managing memory device
KR101986355B1 (en) A embedded Multimedia Card(eMMC), eMMC system including the eMMC, and a method for operating the eMMC
TWI516936B (en) Method for switching operation mode, memory controller and memory storage apparatus
TWI498743B (en) Data storage system and management method thereof
US20160179392A1 (en) Non-volatile memory device
TWI606362B (en) Accessing system and method thereof
TW201812563A (en) Methods for atomic writes in a SSD (Solid State Disk) system and apparatuses using the same
CN105843766B (en) Method and apparatus for configuring serial device
TWI657447B (en) Storage device, access system and access method
TWI704560B (en) Storage device, access system and access method
US11487638B2 (en) Computer program product and method and apparatus for controlling access to flash memory card
CN111356991A (en) Logical block addressing range conflict crawler
US20140365713A1 (en) Electronic system and operating method thereof
TWI705330B (en) Data storage device and parameter rewrite method thereof
US8972614B2 (en) Half-duplex SATA link with controlled idle gap insertion
JP2012063875A (en) Data storage device, command control device, electronic apparatus
CN103514058A (en) Data failure processing method, equipment and system