TWI655546B - Reset circuit of solid state drive and reset method thereof - Google Patents

Reset circuit of solid state drive and reset method thereof Download PDF

Info

Publication number
TWI655546B
TWI655546B TW106134896A TW106134896A TWI655546B TW I655546 B TWI655546 B TW I655546B TW 106134896 A TW106134896 A TW 106134896A TW 106134896 A TW106134896 A TW 106134896A TW I655546 B TWI655546 B TW I655546B
Authority
TW
Taiwan
Prior art keywords
reset
circuit
physical layer
level
control circuit
Prior art date
Application number
TW106134896A
Other languages
Chinese (zh)
Other versions
TW201915758A (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 TW106134896A priority Critical patent/TWI655546B/en
Application granted granted Critical
Publication of TWI655546B publication Critical patent/TWI655546B/en
Publication of TW201915758A publication Critical patent/TW201915758A/en

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Abstract

一種固態儲存裝置的重置電路,包括:一控制電路、一快閃記憶體陣列與一緩衝器。控制電路,包括一實體層電路與一第一輸出入埠。該第一輸出入埠連接至一主機的一第一重置端。該快閃記憶體陣列與該緩衝器連接至該控制電路。當該主機的該第一重置端動作一重置信號時,該第一輸出入埠的準位被變更,接著,於一延遲時間後,該實體層電路的一第二重置端的準位被變更,並重置該實體層電路。 A reset circuit for a solid state storage device includes: a control circuit, a flash memory array and a buffer. The control circuit includes a physical layer circuit and a first input port. The first output port is connected to a first reset end of a host. The flash memory array is coupled to the buffer to the control circuit. When the first reset end of the host acts as a reset signal, the level of the first output port is changed, and then, after a delay time, the level of a second reset end of the physical layer circuit Changed and reset the physical layer circuit.

Description

固態儲存裝置的重置電路及其重置方法 Reset circuit of solid state storage device and reset method thereof

本發明是有關於一種固態儲存裝置,且特別是有關於一種固態儲存裝置的重置電路及其重置方法。 The present invention relates to a solid state storage device, and more particularly to a reset circuit for a solid state storage device and a reset method thereof.

眾所周知,早期電腦系統內部的匯流排包括加速繪圖埠(Advanced Graphic Port,簡稱AGP)匯流排以及周邊元件內連接(Peripheral Component Interconnect,簡稱PCI)匯流排。AGP匯流排主要是連接至繪圖顯示卡(graphic card),PCI匯流排則連接至其他周邊裝置,例如網路卡(internet card)。 As is well known, the busbars in the early computer systems include an Advanced Graphic Port (AGP) bus and a Peripheral Component Interconnect (PCI) bus. The AGP bus is mainly connected to a graphic card, and the PCI bus is connected to other peripheral devices, such as an internet card.

由於快速周邊元件內連接(PCI Express,簡稱PCIe)匯流擁有更快的資料傳輸率,其已經取代傳統的AGP匯流排以及PCI匯流排。也就是說,現今的電腦系統內部,所有的裝置皆連接至PCIe匯流排。 Since the Fast Peripheral Component Interconnect (PCI Express) confluence has a faster data transfer rate, it has replaced the traditional AGP bus and PCI bus. That is to say, in today's computer systems, all devices are connected to the PCIe bus.

舉例來說,在現今的電腦系統中,繪圖顯示卡與固態儲存裝置(solid state drive,簡稱SSD)皆連接至PCIe匯流排。 For example, in today's computer systems, a graphics card and a solid state drive (SSD) are connected to the PCIe bus.

請參照第1圖,其所繪示為習知電腦系統中固態儲存裝置的連接示意圖。固態儲存裝置100利用PCIe匯流排120連接至主機130。 Please refer to FIG. 1 , which is a schematic diagram of the connection of a solid state storage device in a conventional computer system. The solid state storage device 100 is connected to the host 130 using a PCIe bus bar 120.

再者,固態儲存裝置100中包括一控制電路(control circuit)110與快閃記憶體陣列(flash array)105。其中,控制電路110連接至快閃記憶體陣列105。 Furthermore, the solid state storage device 100 includes a control circuit 110 and a flash array 105. The control circuit 110 is connected to the flash memory array 105.

控制電路110中包括一PCIe實體層電路(physical layer circuit,簡稱PHY circuit)112,且主機130中包括一PCIe實體層電路132。而PCIe匯流排120連接於控制電路110的PCIe實體層電路112以及主機130的PCIe實體層電路132。 The control circuit 110 includes a PCIe physical layer circuit (PHY circuit) 112, and the host 130 includes a PCIe physical layer circuit 132. The PCIe bus bar 120 is connected to the PCIe physical layer circuit 112 of the control circuit 110 and the PCIe physical layer circuit 132 of the host 130.

因此,主機130可利用PCIe匯流排120發出存取指令至固態儲存裝置100的控制電路110。舉例來說,控制電路110根據寫入指令,將主機130提供的寫入資料存入快閃記憶體陣列105。或者,控制電路110根據讀取指令,將快閃記憶體陣列105中的讀取資料傳遞至主機130。 Therefore, the host 130 can utilize the PCIe bus bar 120 to issue an access command to the control circuit 110 of the solid state storage device 100. For example, the control circuit 110 stores the write data provided by the host 130 into the flash memory array 105 according to the write command. Alternatively, the control circuit 110 passes the read data in the flash memory array 105 to the host 130 in accordance with the read command.

根據PCIe匯流排120的規格,PCIe匯流排120的多個控制信號中包括一重置信號(Reset signal)。如第1圖所示,主機130的PCIe實體層電路132具有一重置端RESET1#,用以動作(activate)上述重置信號。再者,主機130的PCIe實體層電路132之重置端RESET1#通過一條信號線(physical wire)直接連接於控制電路110的PCIe實體層電路112之重置端RESET2#。因此,主機130的PCIe實體層電路132可在任何時 間通過重置端RESET1#動作重置信號,並直接重置控制電路110的PCIe實體層電路112。 According to the specifications of the PCIe bus bar 120, a plurality of control signals of the PCIe bus bar 120 include a reset signal. As shown in FIG. 1, the PCIe physical layer circuit 132 of the host 130 has a reset terminal RESET1# for activating the reset signal. Moreover, the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130 is directly connected to the reset terminal RESET2# of the PCIe physical layer circuit 112 of the control circuit 110 through a physical wire. Therefore, the PCIe physical layer circuit 132 of the host 130 can be at any time. The signal is reset by the reset terminal RESET1#, and the PCIe physical layer circuit 112 of the control circuit 110 is directly reset.

根據PCIe匯流排120的規格,PCIe匯流排120的重置信號,具有最高的優先權需要優先處理。換句話說,一旦控制電路110的PCIe實體層電路112之重置端RESET2#接收到重置信號時,須立即重置控制電路110的PCIe實體層電路112。由於主機130的PCIe實體層電路132可在任何時間動作重置信號,因此,如果控制電路110的PCIe實體層電路112正在執行存取指令的過程且主機130動作重置信號時,控制電路110的PCIe實體層電路112會被強制進行重置,如此可能使得控制電路110正在處理的資料損毀(data corruption),並造成固態儲存裝置100無可回復的傷害。 According to the specifications of the PCIe bus 120, the reset signal of the PCIe bus 120 has the highest priority and needs to be prioritized. In other words, once the reset terminal RESET2# of the PCIe physical layer circuit 112 of the control circuit 110 receives the reset signal, the PCIe physical layer circuit 112 of the control circuit 110 must be immediately reset. Since the PCIe physical layer circuit 132 of the host 130 can actuate the reset signal at any time, if the PCIe physical layer circuit 112 of the control circuit 110 is performing the process of accessing the instruction and the host 130 acts as a reset signal, the control circuit 110 The PCIe physical layer circuit 112 is forced to reset, which may cause data corruption that the control circuit 110 is processing and cause the solid state storage device 100 to be unrecoverable.

本發明有關於一種固態儲存裝置的重置電路,該固態儲存裝置經由一匯流排連接至一主機,該主機具有一第一重置端,該固態儲存裝置的重置電路包括:一控制電路,包括對應該匯流排的一實體層電路與一第一輸出入埠,該實體層電路具有一第二重置端,其中該主機的該第一重置端連接至該第一輸出入埠,其中該實體層電路根據該第二重置端的準位狀態來重置該實體層電路;一快閃記憶體陣列連接至該控制電路;以及一緩衝器,連接至該控制電路;其中,當該主機的該第一重置端動作一重置 信號時,該第一輸出入埠由一第一準位變更為一第二準位,接著,於一延遲時間後,該實體層電路的該第二重置端由一第三準位被變更為一第四準位,並重置該實體層電路。 The present invention relates to a reset circuit for a solid state storage device. The solid state storage device is connected to a host via a bus bar. The host has a first reset terminal, and the reset circuit of the solid state storage device includes: a control circuit. a physical layer circuit corresponding to the bus bar and a first input port, the physical layer circuit having a second reset end, wherein the first reset end of the host is connected to the first output port, wherein The physical layer circuit resets the physical layer circuit according to the level state of the second reset terminal; a flash memory array is connected to the control circuit; and a buffer is connected to the control circuit; wherein, when the host The first reset end action is reset When the signal is received, the first input port is changed from a first level to a second level, and then, after a delay time, the second reset end of the physical layer circuit is changed by a third level. It is a fourth level and resets the physical layer circuit.

本發明有關於一種用於固態儲存裝置的重置電路的重置方法,該固態儲存裝置經由一匯流排連接至一主機,該主機具有一第一重置端,該固態儲存裝置的重置電路包括一控制電路,包括對應該匯流排的一實體層電路與一第一輸出入埠,該實體層電路具有一第二重置端,該重置方法包括:判斷該第一輸出入埠是否由一第一準位變更為一第二準位,其中該第一輸出入埠連接至該主機的該第一重置端;於該第一輸出入埠變更為該第二準位後的一延遲時間,將該實體層電路的該第二重置端由一第三準位被變更為一第四準位;以及重置該實體層電路;其中,當判斷該第一輸出入埠變更為該第二準位時,該控制電路暫時拒絕接收該主機發出的指令,並將該實體層電路處理的資料暫時儲存至一緩衝器。 The invention relates to a reset method for a reset circuit of a solid-state storage device, which is connected to a host via a bus bar, the host has a first reset end, and the reset circuit of the solid-state storage device The method includes a control circuit, including a physical layer circuit corresponding to the bus bar and a first input port, the physical layer circuit has a second reset end, the reset method includes: determining whether the first output port is Changing a first level to a second level, wherein the first output port is connected to the first reset end of the host; and a delay after the first output port is changed to the second level Time, the second reset end of the physical layer circuit is changed from a third level to a fourth level; and resetting the physical layer circuit; wherein, when determining that the first output port is changed to the At the second level, the control circuit temporarily refuses to receive an instruction issued by the host, and temporarily stores the data processed by the physical layer circuit to a buffer.

為了對本發明之上述及其他方面有更佳的瞭解,下文特舉實施例,並配合所附圖式詳細說明如下: In order to better understand the above and other aspects of the present invention, the following detailed description of the embodiments and the accompanying drawings

100、200、300‧‧‧固態儲存裝置 100, 200, 300‧‧‧ solid storage devices

105、205、305‧‧‧快閃記憶體陣列 105, 205, 305‧‧‧ flash memory array

110、210、310‧‧‧控制電路 110, 210, 310‧‧‧ control circuit

120、220、320‧‧‧PCIe匯流排 120, 220, 320‧‧‧ PCIe bus

130‧‧‧主機 130‧‧‧Host

132、112、212、312‧‧‧PCIe實體層電路 132, 112, 212, 312‧‧‧ PCIe physical layer circuit

208‧‧‧緩衝器 208‧‧‧buffer

330‧‧‧延遲電路 330‧‧‧Delay circuit

第1圖為習知電腦系統中固態儲存裝置的連接示意圖。 Figure 1 is a schematic diagram of the connection of a solid state storage device in a conventional computer system.

第2A圖與第2B圖為本發明電腦系統內固態儲存裝置的連接示意圖的第一實施例及其相關信號示意圖。 2A and 2B are diagrams showing a first embodiment of a connection diagram of a solid state storage device in a computer system of the present invention and related signal diagrams.

第3圖為本發明電腦系統內固態儲存裝置的連接示意圖的第二實施例。 Figure 3 is a second embodiment of a connection diagram of a solid state storage device in a computer system of the present invention.

請參照第2A圖與第2B圖,其所繪示為本發明電腦系統內固態儲存裝置的連接示意圖的第一實施例及其相關信號示意圖。其中,主機130利用PCIe匯流排220發出存取指令至固態儲存裝置200,其詳細運作原理不再贅述。另外,主機130的結構相同於第1圖,此處不再贅述。 Please refer to FIG. 2A and FIG. 2B , which are diagrams showing a first embodiment of a connection diagram of a solid state storage device in a computer system of the present invention and related signal diagrams. The host 130 sends an access command to the solid-state storage device 200 by using the PCIe bus bar 220. The detailed operation principle is not described herein. In addition, the structure of the host 130 is the same as that of FIG. 1, and details are not described herein again.

固態儲存裝置200中包括一控制電路210、快閃記憶體陣列205與緩衝器208。控制電路210連接至快閃記憶體陣列205與緩衝器208。其中,緩衝器208可為動態隨機存取記憶體(DRAM)。 The solid state storage device 200 includes a control circuit 210, a flash memory array 205, and a buffer 208. Control circuit 210 is coupled to flash memory array 205 and buffer 208. The buffer 208 can be a dynamic random access memory (DRAM).

控制電路210中包括一PCIe實體層電路(physical layer circuit,簡稱PHY circuit)212,且PCIe實體層電路212中包括一重置端RESET2#。再者,控制電路210更包括二個輸出入埠(I/O port),例如通用輸出入埠(general purpose I/O port,簡稱GPIO)GPIO1與GPIO2。 The control circuit 210 includes a PCIe physical layer circuit (PHY circuit) 212, and the PCIe physical layer circuit 212 includes a reset terminal RESET2#. Furthermore, the control circuit 210 further includes two I/O ports, such as a general purpose I/O port (GPIO) GPIO1 and GPIO2.

根據本發明的第一實施例,控制電路210的通用輸出入埠GPIO1通過信號線(physical wire)直接連接於主機130的PCIe實體層電路132之重置端RESET1#。控制電路210的通用輸出入埠GPIO1與主機130的PCIe實體層電路132之重置端 RESET1#具有相同的準位。再者,控制電路210的通用輸出入埠GPIO2通過信號線直接連接於控制電路210的PCIe實體層電路212之重置端RESET2#。控制電路210的通用輸出入埠GPIO2與控制電路210的PCIe實體層電路212之重置端RESET2#具有相同的準位。 According to the first embodiment of the present invention, the general-purpose input port GPIO1 of the control circuit 210 is directly connected to the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130 via a physical wire. The general purpose output of the control circuit 210 is the reset terminal of the PCIe physical layer circuit 132 of the GPIO1 and the host 130. RESET1# has the same level. Furthermore, the general-purpose input port GPIO2 of the control circuit 210 is directly connected to the reset terminal RESET2# of the PCIe physical layer circuit 212 of the control circuit 210 through a signal line. The general-purpose output port GPIO2 of the control circuit 210 has the same level as the reset terminal RESET2# of the PCIe physical layer circuit 212 of the control circuit 210.

於主機130對固態儲存裝置200進行一般操作時,例如進行資料存取操作時,控制電路210的通用輸出入埠GPIO1與主機130的PCIe實體層電路132之重置端RESET1#是位於相同準位,例如第一準位;控制電路210的通用輸出入埠GPIO2與控制電路210的PCIe實體層電路212之重置端RESET2#是位於相同準位,例如第二準位。其中,第一準位與第二準位可為相同準位或不同準位。 When the host 130 performs a general operation on the solid-state storage device 200, for example, when performing a data access operation, the general-purpose output of the control circuit 210 is at the same level as the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130. For example, the first level; the general-purpose output port GPIO2 of the control circuit 210 and the reset terminal RESET2# of the PCIe physical layer circuit 212 of the control circuit 210 are at the same level, for example, the second level. The first level and the second level may be the same level or different levels.

根據本發明實施例,當主機130的PCIe實體層電路通過重置端RESET1#動作重置信號時,控制電路210的通用輸出入埠GPIO1會變更為第三準位,其中第三準位不同於第一準位。接著,在一個延遲時間(delay time)之後,將控制電路210的PCIe實體層電路212之重置端RESET2#變更為第四準位,其中第四準位不同於第二準位。 According to the embodiment of the present invention, when the PCIe physical layer circuit of the host 130 is reset by the reset terminal RESET1#, the general-purpose output port GPIO1 of the control circuit 210 is changed to the third level, wherein the third level is different from the third level. First level. Then, after a delay time, the reset terminal RESET2# of the PCIe physical layer circuit 212 of the control circuit 210 is changed to a fourth level, wherein the fourth level is different from the second level.

下述以第一準位與第二準位皆為高準位為例來具體說明本發明實施例。 The embodiments of the present invention are specifically described below by taking the first level and the second level as high standards as an example.

當主機130欲對控制電路210的PCIe實體層電路212進行重置時,主機130的PCIe實體層電路132通過重置端 RESET1#動作重置信號。具體而言,主機130的PCIe實體層電路132之重置端RESET1#由高準位(第一準位)變更為低準位(第三準位),使控制電路210的通用輸出入埠GPIO1由高準位(第一準位)變更為低準位(第三準位)。控制電路210根據通用輸出入埠GPIO1的準位狀態來判斷是否接收到重置信號。 When the host 130 wants to reset the PCIe physical layer circuit 212 of the control circuit 210, the PCIe physical layer circuit 132 of the host 130 passes the reset end. RESET1# action reset signal. Specifically, the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130 is changed from a high level (first level) to a low level (third level), so that the general output of the control circuit 210 is input to the 埠 GPIO1. Changed from high level (first level) to low level (third level). The control circuit 210 determines whether or not the reset signal is received based on the level of the general-purpose input port 埠 GPIO1.

接著,控制電路210在一個延遲時間(delay time)之後,於通用輸出入埠GPIO2上動作一控制信號。具體而言,控制電路210在一個延遲時間(delay time)之後,將通用輸出入埠GPIO2由高準位(第二準位)變更為低準位(第四準位),進而將控制電路210的PCIe實體層電路212的重置端RESET2#由高準位(第二準位)變更為低準位(第四準位)。PCIe實體層電路212根據重置端RESET2#的準位狀態來重置控制電路210的PCIe實體層電路212。 Next, the control circuit 210 operates a control signal on the general-purpose output port GPIO2 after a delay time. Specifically, after a delay time, the control circuit 210 changes the general-purpose output port GPIO2 from a high level (second level) to a low level (fourth level), thereby controlling the circuit 210. The reset terminal RESET2# of the PCIe physical layer circuit 212 is changed from a high level (second level) to a low level (fourth level). The PCIe physical layer circuit 212 resets the PCIe physical layer circuit 212 of the control circuit 210 according to the level state of the reset terminal RESET2#.

另外,控制電路210的通用輸出入埠GPIO1埠接收到重置信號時,即控制電路210的通用輸出入埠GPIO1由高準位(第一準位)變更為低準位(第三準位)時,控制電路210會立刻進行資料保全動作。舉例來說,控制電路210暫時拒絕接收主機130發出的指令。再者,控制電路210將PCIe實體層電路212正在處理的資料,暫時儲存於緩充器208中。 In addition, when the general-purpose input/output GPIO1 of the control circuit 210 receives the reset signal, that is, the general-purpose output port GPIO1 of the control circuit 210 is changed from the high level (first level) to the low level (third level). At this time, the control circuit 210 immediately performs a data security operation. For example, control circuit 210 temporarily rejects instructions from host 130. Moreover, the control circuit 210 temporarily stores the data being processed by the PCIe physical layer circuit 212 in the buffer 208.

如第2B圖所示,假設主機130於時間點ta時欲對控制電路210的PCIe實體層電路212進行重置。在時間點ta之前,主機130與固態儲存裝置200是處於一般操作,此時主機130 的PCIe實體層電路132之重置端RESET1#以及控制電路210的通用輸出入埠GPIO2是位於高準位。同時,分別與其連接的控制電路210的通用輸出入埠GPIO1以及控制電路210的PCIe實體層電路212之重置端RESET2#亦位於高準位。 As shown in FIG. 2B, it is assumed that the host 130 is to reset the PCIe physical layer circuit 212 of the control circuit 210 at the time point ta. Before the time point ta, the host 130 and the solid state storage device 200 are in a normal operation, at this time, the host 130 The reset terminal RESET1# of the PCIe physical layer circuit 132 and the general-purpose output port GPIO2 of the control circuit 210 are located at a high level. At the same time, the general-purpose output port GPIO1 of the control circuit 210 connected thereto and the reset terminal RESET2# of the PCIe physical layer circuit 212 of the control circuit 210 are also located at a high level.

當主機130於時間點ta通過重置端RESET1#動作重置信號,即主機130於時間點ta將主機130的PCIe實體層電路132之重置端RESET1#由高準位變為低準位時,與其連接的控制電路210的通用輸出入埠GPIO1亦由高準位變為低準位。此時,控制電路210根據通用輸出入埠GPIO1的準位狀態來判斷接收到重置信號,並進行資料保全動作。 When the host 130 moves the reset signal through the reset terminal RESET1# at the time point ta, that is, the host 130 changes the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130 from the high level to the low level at the time point ta. The general-purpose output port GPIO1 of the control circuit 210 connected thereto is also changed from the high level to the low level. At this time, the control circuit 210 determines that the reset signal is received based on the level state of the general-purpose output port GPIO1, and performs a data security operation.

接著,於一延遲時間Td之後,於時間點tb時,控制電路210將通用輸出入埠GPIO2由高準位變為低準位,使與其連接的控制電路210的PCIe實體層電路212亦由高準位變為低準位。此時,PCIe實體層電路212根據重置端RESET2#的準位狀態來重置PCIe實體層電路212。 Then, after a delay time Td, at time tb, the control circuit 210 changes the general-purpose output port GPIO2 from the high level to the low level, so that the PCIe physical layer circuit 212 of the control circuit 210 connected thereto is also high. The level becomes a low level. At this time, the PCIe physical layer circuit 212 resets the PCIe physical layer circuit 212 according to the level state of the reset terminal RESET2#.

由於控制電路210在延遲時間Td之內已經進行資料保全動作。當PCIe實體層212重置後並再次運作時,可由緩衝器208中取回先前處理的資料並繼續處理,如此固態儲存裝置200將不會出現資料損毀(data corruption)的問題。 Since the control circuit 210 has performed the data security action within the delay time Td. When the PCIe physical layer 212 is reset and operates again, the previously processed data can be retrieved from the buffer 208 and processed, so that the solid state storage device 200 will not have the problem of data corruption.

請參照第3圖,其所繪示為本發明電腦系統內固態儲存裝置的連接示意圖的第二實施例。其中,主機130可利用PCIe匯流排320發出存取指令至固態儲存裝置300,其詳細運作 原理不再贅述。另外,主機130的結構相同於第1圖,此處不再贅述。 Please refer to FIG. 3, which illustrates a second embodiment of a connection diagram of a solid state storage device in a computer system of the present invention. The host 130 can use the PCIe bus 320 to issue an access command to the solid-state storage device 300, and the detailed operation thereof The principle is not repeated here. In addition, the structure of the host 130 is the same as that of FIG. 1, and details are not described herein again.

固態儲存裝置300中包括一控制電路310、快閃記憶體陣列305、緩衝器308與一延遲電路330。控制電路310連接至快閃記憶體陣列305與緩衝器308。其中,緩衝器308可為動態隨機存取記憶體(DRAM)。 The solid state storage device 300 includes a control circuit 310, a flash memory array 305, a buffer 308, and a delay circuit 330. Control circuit 310 is coupled to flash memory array 305 and buffer 308. The buffer 308 can be a dynamic random access memory (DRAM).

控制電路310中包括一PCIe實體層電路312,且PCIe實體層電路312中包括一重置端RESET2#。再者,控制電路310更包括一輸出入埠,例如通用輸出入埠GPIO1。 The control circuit 310 includes a PCIe physical layer circuit 312, and the PCIe physical layer circuit 312 includes a reset terminal RESET2#. Moreover, the control circuit 310 further includes an input port, such as a general-purpose input port 埠 GPIO1.

根據本發明的第二實施例,控制電路310的通用輸出入埠GPIO1通過信號線(physical wire)直接連接於主機130的PCIe實體層電路132之重置端RESET1#。再者,延遲電路330連接於控制電路210的PCIe實體層電路212之重置端RESET2#以及主機13的PCIe實體層電路132之重置端RESET1#。 According to the second embodiment of the present invention, the general-purpose input port GPIO1 of the control circuit 310 is directly connected to the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130 via a physical wire. Furthermore, the delay circuit 330 is connected to the reset terminal RESET2# of the PCIe physical layer circuit 212 of the control circuit 210 and the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 13.

在此實施例中,於主機130對固態儲存裝置300進行一般操作時,例如進行資料存取操作時,控制電路310的通用輸出入埠GPIO1與主機130的PCIe實體層電路132之重置端RESET1#是位於相同準位,例如第一準位;控制電路310的PCIe實體層電路312之重置端RESET2#是位於第二準位。其中,第一準位與第二準位可為相同準位或不同準位。 In this embodiment, when the host 130 performs a general operation on the solid-state storage device 300, for example, when performing a data access operation, the general-purpose output of the control circuit 310 enters the reset terminal RESET1 of the PCIe physical layer circuit 132 of the GPIO1 and the host 130. # is at the same level, for example, the first level; the reset terminal RESET2# of the PCIe physical layer circuit 312 of the control circuit 310 is at the second level. The first level and the second level may be the same level or different levels.

同第一實施例,當主機130的PCIe實體層電路通過重置端RESET1#動作重置信號時,控制電路310的通用輸出入埠GPIO1會變更為第三準位,其中第三準位不同於第一準位。接著,在一個延遲時間(delay time)之後,將控制電路310的PCIe實體層電路312之重置端RESET2#變更為第四準位,其中第四準位不同於第二準位。 As with the first embodiment, when the PCIe physical layer circuit of the host 130 is reset by the reset terminal RESET1#, the general-purpose output port GPIO1 of the control circuit 310 is changed to the third level, wherein the third level is different from the third level. First level. Then, after a delay time, the reset terminal RESET2# of the PCIe physical layer circuit 312 of the control circuit 310 is changed to a fourth level, wherein the fourth level is different from the second level.

下述以第一準位與第二準位皆為高準位為例來具體說明本發明實施例。 The embodiments of the present invention are specifically described below by taking the first level and the second level as high standards as an example.

當主機130欲對控制電路310的PCIe實體層電路312進行重置時,主機130的PCIe實體層電路132通過重置端RESET1#動作重置信號。具體而言,主機130的PCIe實體層電路132之重置端RESET1#由高準位(第一準位)變更為低準位(第三準位),使控制電路310的通用輸出入埠GPIO1由高準位(第一準位)變更為低準位(第三準位)。控制電路210根據通用輸出入埠GPIO1的準位狀態來判斷是否接收到重置信號,並據以進行資料保全動作。 When the host 130 wants to reset the PCIe physical layer circuit 312 of the control circuit 310, the PCIe physical layer circuit 132 of the host 130 acts to reset the signal through the reset terminal RESET1#. Specifically, the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130 is changed from a high level (first level) to a low level (third level), so that the general output of the control circuit 310 is input to the 埠 GPIO1. Changed from high level (first level) to low level (third level). The control circuit 210 determines whether or not the reset signal is received based on the state of the general-purpose input port 埠 GPIO1, and performs a data security operation accordingly.

另外,當主機130的PCIe實體層電路132通過重置端RESET1#動作重置信號時,延遲電路330亦會收到此重置信號。接著,延遲電路330會於延遲一個延遲時間(delay time)之後,將控制電路310的PCIe實體層電路312的重置端RESET2#由高準位(第二準位)變更為低準位(第四準位)。PCIe實 體層電路312根據重置端RESET2#的準位狀態來重置控制電路310的PCIe實體層電路312。 In addition, when the PCIe physical layer circuit 132 of the host 130 acts to reset the signal through the reset terminal RESET1#, the delay circuit 330 also receives the reset signal. Then, the delay circuit 330 changes the reset terminal RESET2# of the PCIe physical layer circuit 312 of the control circuit 310 from the high level (second level) to the low level after delaying a delay time (first) Four levels). PCIe real The bulk layer circuit 312 resets the PCIe physical layer circuit 312 of the control circuit 310 according to the level state of the reset terminal RESET2#.

同理,控制電路310的通用輸出入埠GPIO1埠接收到重置信號時,即控制電路210的通用輸出入埠GPIO1由高準位(第一準位)變更為低準位(第三準位)時,控制電路210會立刻進行資料保全動作。舉例來說,控制電路310暫時拒絕接收主機130發出的指令。再者,控制電路310將PCIe實體層電路312正在處理的資料,暫時儲存於緩充器308中。 Similarly, when the general-purpose input/output GPIO1 of the control circuit 310 receives the reset signal, the general-purpose output of the control circuit 210 is changed from the high level (first level) to the low level (third level). When the control circuit 210 performs the data security operation immediately. For example, control circuit 310 temporarily rejects instructions from host 130. Moreover, the control circuit 310 temporarily stores the data being processed by the PCIe physical layer circuit 312 in the buffer 308.

由於控制電路310在延遲時間之內已經進行資料保全動作。當PCIe實體層312重置後並再次運作時,可由緩衝器308中取回先前處理的資料並繼續處理,如此固態儲存裝置300將不會出現資料損毀(data corruption)的問題。 Since the control circuit 310 has performed a data security action within the delay time. When the PCIe physical layer 312 is reset and operates again, the previously processed data can be retrieved from the buffer 308 and processing continues, so that the solid state storage device 300 will not have the problem of data corruption.

根據PCIe規格書的規範,於動作重置信號時,至少需要變更主機130的PCIe實體層電路132之重置端RESET1#的準位一段Ta時間,例如100μs。根據本發明的實施例,可以將延遲時間設定為Ta/2,亦即50μs。如此,當控制電路於時脈信號500MHz的運作速度下,控制電路有足夠的時間進行資料保全動作,可以確保處理的資料皆安全的儲存至緩衝器內。 According to the specification of the PCIe specification, at the time of the action reset signal, at least the level of the reset terminal RESET1# of the PCIe physical layer circuit 132 of the host 130 needs to be changed for a period of Ta, for example, 100 μs. According to an embodiment of the invention, the delay time can be set to Ta/2, that is, 50 μs. Thus, when the control circuit operates at a speed of 500 MHz, the control circuit has sufficient time for data preservation to ensure that the processed data is safely stored in the buffer.

在本發明的實施例中,當變更主機130的PCIe實體層電路132之重置端RESET1#的準位一段Ta時間之後,主機130的PCIe實體層電路132之重置端RESET1#可回復至原準位,即一般操作時的準位。而控制電路210、310的通用輸出入 埠GPIO1以及控制電路210、310的PCIe實體層電路212、312的重置端RESET2#亦可回復至原準位,即一般操作時的準位。 In the embodiment of the present invention, after changing the level of the reset end RESET1# of the PCIe physical layer circuit 132 of the host 130 for a period of Ta, the reset end RESET1# of the PCIe physical layer circuit 132 of the host 130 can be restored to the original Level, which is the level of general operation. And the general output of the control circuits 210, 310 The reset terminal RESET2# of the GPIO1 and the PCIe physical layer circuits 212, 312 of the control circuits 210, 310 can also be restored to the original level, that is, the level at the time of normal operation.

由以上的說明可知,本發明提出一種固態儲存裝置的重置電路及重置方法。當主機發出重置信號欲重置實體層電路時,固態儲存裝置中的控制電路根據通用輸出入埠的準位狀態判斷接收到重置信號,並對應地進行資料保全動作。接著,於一延遲時間之後,控制電路的實體層電路的重置端的準位會被改變,以重置實體層電路,使得實體層電路被重置。如此,可以防止固態儲存裝置出現資料損毀(data corruption)的問題。再者,控制電路的實體層電路的重置端的準位變更時機可以直接由控制電路來控制,或者利用延遲電路來控制。 As can be seen from the above description, the present invention provides a reset circuit and a reset method for a solid state storage device. When the host sends a reset signal to reset the physical layer circuit, the control circuit in the solid state storage device determines that the reset signal is received according to the level state of the general-purpose output port, and performs data preservation action correspondingly. Then, after a delay time, the level of the reset terminal of the physical layer circuit of the control circuit is changed to reset the physical layer circuit, so that the physical layer circuit is reset. In this way, the problem of data corruption in the solid state storage device can be prevented. Furthermore, the timing change timing of the reset terminal of the physical layer circuit of the control circuit can be directly controlled by the control circuit or controlled by the delay circuit.

綜上所述,雖然本發明已以實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。 In conclusion, the present invention has been disclosed in the above embodiments, but it is not intended to limit the present invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

Claims (10)

一種固態儲存裝置的重置電路,該固態儲存裝置經由一匯流排連接至一主機,該主機具有一第一重置端,該固態儲存裝置的重置電路包括:一控制電路,包括對應該匯流排的一實體層電路,該實體層電路具有一第二重置端,其中該實體層電路根據該第二重置端的準位狀態來重置該實體層電路,其中該控制電路更包括一第一輸出入埠,該第一輸出入埠獨立於該實體層電路外,且該主機的該第一重置端連接至該第一輸出入埠;一快閃記憶體陣列連接至該控制電路;以及一緩衝器,連接至該控制電路;其中,當該主機的該第一重置端動作一重置信號時,用以重置該實體層電路,該第一輸出入埠由一第一準位變更為一第二準位,接著,於一延遲時間後,該實體層電路的該第二重置端由一第三準位被變更為一第四準位,並重置該實體層電路。 A reset circuit of a solid state storage device, the solid state storage device being connected to a host via a bus bar, the host having a first reset end, the reset circuit of the solid state storage device comprising: a control circuit, including a corresponding sink a physical layer circuit having a second reset end, wherein the physical layer circuit resets the physical layer circuit according to a level state of the second reset end, wherein the control circuit further includes a first An output port is independent of the physical layer circuit, and the first reset end of the host is connected to the first output port; a flash memory array is connected to the control circuit; And a buffer connected to the control circuit; wherein, when the first reset end of the host acts as a reset signal, the physical layer circuit is reset, and the first output is controlled by a first The bit is changed to a second level. Then, after a delay time, the second reset end of the physical layer circuit is changed from a third level to a fourth level, and the physical layer circuit is reset. . 如申請專利範圍第1項所述之固態儲存裝置的重置電路,其中該控制電路更包括一第二輸出入埠,該第二輸出入埠連接至該實體層電路的該第二重置端,其中於該延遲時間後,該控制電路通過該第二輸出入埠將該實體層電路的該第二重置端由該第三準位被變更為該第四準位。 The reset circuit of the solid state storage device of claim 1, wherein the control circuit further comprises a second input port connected to the second reset end of the physical layer circuit. After the delay time, the control circuit changes the second reset end of the physical layer circuit from the third level to the fourth level through the second output port. 如申請專利範圍第2項所述之固態儲存裝置的重置電路,其中該第一輸出入埠與該第二輸出入埠為一第一通用輸出入埠與一第二通用輸出入埠。 The reset circuit of the solid state storage device of claim 2, wherein the first input port and the second output port are a first general output port and a second common input port. 如申請專利範圍第1項所述之固態儲存裝置的重置電路,更包括一延遲電路,連接至該主機的該第一重置端與該實體層電路的該第二重置端,其中當該主機的該第一重置端動作該重置信號時,該延遲電路延遲該延遲時間後,將該實體層電路的該第二重置端由該第三準位被變更為該第四準位。 The reset circuit of the solid state storage device of claim 1, further comprising a delay circuit connected to the first reset end of the host and the second reset end of the physical layer circuit, wherein When the first reset end of the host acts on the reset signal, the delay circuit delays the delay time, and the second reset end of the physical layer circuit is changed from the third level to the fourth standard Bit. 如申請專利範圍第1項所述之固態儲存裝置的重置電路,其中該匯流排為一PCIe匯流排,且該實體層電路為一PCIe實體層電路。 The reset circuit of the solid state storage device of claim 1, wherein the bus bar is a PCIe bus bar, and the physical layer circuit is a PCIe physical layer circuit. 如申請專利範圍第1項所述之固態儲存裝置的重置電路,其中當該控制電路的該第一輸出入埠由該第一準位變更為該第二準位時,該控制電路進行一資料保全動作。 The reset circuit of the solid state storage device of claim 1, wherein the control circuit performs a control when the first output port of the control circuit is changed from the first level to the second level. Data preservation action. 如申請專利範圍第6項所述之固態儲存裝置的重置電路,其中該資料保全動作包含該控制電路暫時拒絕接收該主機發出的指令,並將該實體層電路處理的資料暫時儲存至該緩衝器。 The reset circuit of the solid state storage device of claim 6, wherein the data security action comprises the control circuit temporarily refusing to receive an instruction issued by the host, and temporarily storing the data processed by the physical layer circuit to the buffer. Device. 如申請專利範圍第6項所述之固態儲存裝置的重置電路,其中該控制電路根據該第一輸出入埠的準位狀態來判斷是否接收到該重置信號。 The reset circuit of the solid state storage device of claim 6, wherein the control circuit determines whether the reset signal is received according to the level state of the first input port. 一種用於固態儲存裝置的重置電路的重置方法,該固態儲存裝置經由一匯流排連接至一主機,該主機具有一第一重置端,該固態儲存裝置的重置電路包括一控制電路,包括對應該匯流排的一實體層電路與,該實體層電路具有一第二重置端,其中該控制電路更包括一第一輸出入埠,該第一輸出入埠獨立於該實體層電路外,且該主機的該第一重置端連接至該第一輸出入埠,該重置方法包括:判斷該第一輸出入埠是否由一第一準位變更為一第二準位,其中該第一輸出入埠連接至該主機的該第一重置端;於該第一輸出入埠變更為該第二準位後的一延遲時間,將該實體層電路的該第二重置端由一第三準位被變更為一第四準位;以及重置該實體層電路;其中,當判斷該第一輸出入埠變更為該第二準位時,該控制電路暫時拒絕接收該主機發出的指令,並將該實體層電路處理的資料暫時儲存至一緩衝器。 A reset method for a reset circuit of a solid-state storage device, the solid-state storage device being connected to a host via a bus, the host having a first reset end, the reset circuit of the solid-state storage device including a control circuit a physical layer circuit corresponding to the bus bar, the physical layer circuit having a second reset end, wherein the control circuit further includes a first output port, the first output port is independent of the physical layer circuit The resetting method includes: determining whether the first output port is changed from a first level to a second level, wherein the first reset end of the host is connected to the first output port, wherein the resetting method comprises: determining whether the first output port is changed from a first level to a second level, wherein The first output port is connected to the first reset end of the host; the second reset end of the physical layer circuit is a delay time after the first output port is changed to the second level Changing from the third level to a fourth level; and resetting the physical layer circuit; wherein, when it is determined that the first output port is changed to the second level, the control circuit temporarily refuses to receive the host Issued the order and the entity Data processing circuit is temporarily stored to a buffer. 如申請專利範圍第9項所述之用於固態儲存裝置的重置電路的重置方法,其中該匯流排為一PCIe匯流排,且該實體層電路為該PCIe實體層電路。 The method for resetting a reset circuit for a solid-state storage device according to claim 9, wherein the bus bar is a PCIe bus bar, and the physical layer circuit is the PCIe physical layer circuit.
TW106134896A 2017-10-12 2017-10-12 Reset circuit of solid state drive and reset method thereof TWI655546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106134896A TWI655546B (en) 2017-10-12 2017-10-12 Reset circuit of solid state drive and reset method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106134896A TWI655546B (en) 2017-10-12 2017-10-12 Reset circuit of solid state drive and reset method thereof

Publications (2)

Publication Number Publication Date
TWI655546B true TWI655546B (en) 2019-04-01
TW201915758A TW201915758A (en) 2019-04-16

Family

ID=66992237

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106134896A TWI655546B (en) 2017-10-12 2017-10-12 Reset circuit of solid state drive and reset method thereof

Country Status (1)

Country Link
TW (1) TWI655546B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201112130A (en) * 2009-09-24 2011-04-01 O2Micro Inc Controllers and methods for controlling data transfer, and electronic systems
TW201532069A (en) * 2014-02-05 2015-08-16 Quanta Storage Inc Reading method of solid state disk
TWI528156B (en) * 2014-12-09 2016-04-01 英業達股份有限公司 Computing system having wake-up circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201112130A (en) * 2009-09-24 2011-04-01 O2Micro Inc Controllers and methods for controlling data transfer, and electronic systems
TW201532069A (en) * 2014-02-05 2015-08-16 Quanta Storage Inc Reading method of solid state disk
TWI528156B (en) * 2014-12-09 2016-04-01 英業達股份有限公司 Computing system having wake-up circuit

Also Published As

Publication number Publication date
TW201915758A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US11210025B2 (en) Memory device including concurrent suspend states for different operations
CN108320764B (en) Semiconductor device, memory module and operating method thereof
US10002668B2 (en) Memory device, memory module, and memory system
KR102393427B1 (en) Semiconductor device and semiconductor system
JP6123017B2 (en) Apparatus and method for variable latency memory operation
KR101052945B1 (en) Method and apparatus to enable the cooperative signaling of a shared bus interrupt in a multi-rank memory subsystem
US10388401B2 (en) Semiconductor device, semiconductor system, and method thereof
US20170123892A1 (en) Parity check circuit and memory device including the same
US9659615B1 (en) Semiconductor device comprising pipe latch circuit and auto-precharge signal generation circuit
EP3805937A1 (en) Memory device including interface circuit and method of operating the same
US10372338B2 (en) Memory controller and data processing circuit with improved system efficiency
KR102398541B1 (en) Semiconductor device and semiconductor system
US9424898B2 (en) Data storage device
US7299329B2 (en) Dual edge command in DRAM
US6918016B1 (en) Method and apparatus for preventing data corruption during a memory access command postamble
US20170337955A1 (en) Active Random Access Memory
US10642328B2 (en) Solid state drive with reset circuit and reset method thereof
TWI655546B (en) Reset circuit of solid state drive and reset method thereof
US9570136B2 (en) Semiconductor memory apparatus
US9236108B1 (en) Semiconductor memory apparatus
US10297293B2 (en) Semiconductor apparatus and method of operating the same
EP2735927A2 (en) Data processing apparatus and method in PLC system
CN105608033B (en) Semiconductor device and method of operating the same
US9484955B2 (en) Semiconductor memory apparatus and training method using the same
US20170308296A1 (en) Staging write requests