Reference clock signal generation method, memory storage device and connection interface unit

By receiving various signals from the host system in the memory device and generating multiple control parameters to adjust the frequency of the reference clock signal, the problem of inflexible and interfered frequency tracking in the existing technology is solved, and the efficiency and stability of frequency adjustment are improved. sex.

CN108363453BActive Publication Date: 2024-09-17PHISON ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201710061514.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-01-26
Publication Date
2024-09-17
Estimated Expiration
2037-01-26

AI Technical Summary

Technical Problem

Existing memory devices lack flexibility in frequency tracking and can only track a single type of signal frequency, resulting in a long frequency adjustment time and greater interference from environmental and electrical factors.

Method used

By receiving multiple types of signals from the host system, multiple control parameters are generated to adjust the frequency of the reference clock signal to ensure that it is consistent with the predetermined frequency. The connection interface unit and the memory control circuit unit are used to achieve tracking and control of multiple signal frequencies. Adjustment.

Benefits of technology

It improves the efficiency of reference clock signal generation and frequency tracking, enhances resistance to environmental and electrical factors, and reduces frequency adjustment time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108363453B
    Figure CN108363453B
Patent Text Reader

Abstract

The present invention provides a reference clock signal generation method, a memory storage device and a connection interface unit, which are used in the memory storage device, and the method comprises: receiving a first type of signal from a host system; generating a first control parameter according to the frequency of the first type of signal; after receiving the first type of signal, receiving a second type of signal from the host system; generating a second control parameter according to the frequency of the second type of signal; and generating a reference clock signal that meets the first condition according to the second control parameter. In this way, the efficiency of generating the reference clock signal can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a frequency tracking technology, and more particularly to a reference clock signal generating method, a memory storage device and a connection interface unit. Background Art

[0002] Digital cameras, mobile phones and MP3 players have grown rapidly in the past few years, resulting in a rapid increase in consumer demand for storage media. Since rewritable non-volatile memory modules (e.g., flash memory) have the characteristics of data non-volatility, power saving, small size, and no mechanical structure, they are very suitable for being built into the various portable multimedia devices mentioned above.

[0003] Based on cost considerations, some memory devices are provided with an oscillation circuit to replace the quartz oscillator to generate a clock signal. However, the frequency of the clock signal generated by the oscillation circuit may be affected by internal factors (e.g., driving voltage / current offset) or external factors (e.g., ambient temperature changes) and change. Therefore, in order to communicate with the host system, the memory device adjusts its own clock frequency to be the same as (or close to) the frequency of the data signal of the host system. For example, in the transmission interface of Universal Serial Bus (USB) 2.0, the memory device can adjust its own clock frequency by tracking the frequency of the Start Of Frame (SOF) packet from the host system. Alternatively, in the transmission interface of Universal Serial Bus 3.0, the memory device can adjust its own clock frequency by tracking the frequency of the Low Frequency Periodic Signaling (LFPS) from the host system. However, these frequency tracking mechanisms can only track the frequency of a single type of signal (e.g., SOF signal or LFPS signal), lack flexibility in use, and require a long time. Summary of the invention

[0004] The invention provides a reference clock signal generating method, a memory storage device and a connection interface unit, which can increase the efficiency of generating the reference clock signal.

[0005] An exemplary embodiment of the present invention provides a reference clock signal generating method for a memory storage device, the reference clock signal generating method comprising: receiving a first type of signal from a host system; generating a first control parameter according to the frequency of the first type of signal; after receiving the first type of signal, receiving a second type of signal from the host system, wherein the first type of signal is different from the second type of signal; generating a second control parameter according to the frequency of the second type of signal; and generating a reference clock signal that meets a first condition according to the second control parameter, wherein the reference clock signal is used to generate a specific clock signal having a predetermined frequency.

[0006] In an exemplary embodiment of the present invention, the reference clock signal generating method further includes: receiving an initial signal from the host system before receiving the first type of signal; and generating initial control parameters based on the frequency of the initial signal, which are used to adjust the frequency of the reference clock signal.

[0007] In an exemplary embodiment of the present invention, the memory storage device is compatible with the Serial Advanced Technology Attachment (SATA) standard.

[0008] Another exemplary embodiment of the present invention provides a memory storage device, which includes a connection interface unit, a rewritable non-volatile memory module and a memory control circuit unit. The connection interface unit is used to connect to a host system. The rewritable non-volatile memory module includes a plurality of physical units. The memory control circuit unit is connected to the connection interface unit and the rewritable non-volatile memory module, wherein the connection interface unit is used to receive a first type of signal from the host system, wherein the connection interface unit is also used to generate a first control parameter according to the frequency of the first type of signal, wherein after receiving the first type of signal, the connection interface unit is also used to receive a second type of signal from the host system, wherein the first type of signal is different from the second type of signal, wherein the connection interface unit is also used to generate a second control parameter according to the frequency of the second type of signal, wherein the connection interface unit is also used to generate a reference clock signal that meets a first condition according to the second control parameter, wherein the reference clock signal is used to generate a specific clock signal with a predetermined frequency.

[0009] In an exemplary embodiment of the present invention, before receiving the first type of signal, the connection interface unit is also used to receive an initial signal from the host system, wherein the connection interface unit is also used to generate an initial control parameter based on the frequency of the initial signal, which is used to adjust the frequency of the reference clock signal.

[0010] Another exemplary embodiment of the present invention provides a connection interface unit for a memory storage device, the connection interface unit comprising a receiving end circuit and a reference clock generation circuit. The receiving end circuit is used to receive a first type of signal from a host system. The reference clock generation circuit is connected to the receiving end circuit and is used to generate a first control parameter according to the frequency of the first type of signal, wherein after receiving the first type of signal, the receiving end circuit is also used to receive a second type of signal from the host system, wherein the first type of signal is different from the second type of signal, wherein the reference clock generation circuit is also used to generate a second control parameter according to the frequency of the second type of signal, wherein the reference clock generation circuit is also used to generate a reference clock signal that meets a first condition according to the second control parameter, wherein the reference clock signal is used to generate a specific clock signal with a predetermined frequency.

[0011] In an exemplary embodiment of the present invention, before receiving the first type of signal, the receiving end circuit is also used to receive an initial signal from the host system, wherein the reference clock generating circuit is also used to generate an initial control parameter according to the frequency of the initial signal, which is used to adjust the frequency of the reference clock signal.

[0012] In an exemplary embodiment of the present invention, the first type of signal is transmitted subsequent to the initial signal, and the second type of signal is transmitted subsequent to the first type of signal.

[0013] In an exemplary embodiment of the present invention, the initial signal is used for a handshake operation between the memory storage device and the host system.

[0014] In an exemplary embodiment of the present invention, the initial signal is an out-of-band (OOB) signal.

[0015] In an exemplary embodiment of the present invention, the first control parameter is obtained based on the initial control parameter.

[0016] In an exemplary embodiment of the present invention, the second type of signal is transmitted subsequent to the first type of signal.

[0017] In an exemplary embodiment of the present invention, the second control parameter is obtained based on the first control parameter.

[0018] In an exemplary embodiment of the present invention, both the first control parameter and the second control parameter are used to adjust the frequency of the reference clock signal.

[0019] In an exemplary embodiment of the present invention, the connection interface unit is compatible with the Serial Advanced Technology Attachment (STA) standard.

[0020] Based on the above, the present invention can track the frequencies of at least two types of signals from the host system and generate control parameters accordingly. Then, the generated control parameters can be used to generate a reference clock signal. Compared with the traditional practice of tracking the frequency of a single signal to adjust the frequency of its own reference clock signal, the reference clock signal generation method, memory storage device and connection interface unit of the present invention can increase the efficiency of generating a reference clock signal and is also more efficient in frequency tracking.

[0021] In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below with reference to the accompanying drawings for detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment of the present invention.

[0023] Figure 2 is a schematic diagram of a host system, a memory storage device, and an I / O device according to another exemplary embodiment of the present invention.

[0024] Figure 3 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment of the present invention.

[0025] Figure 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention.

[0026] Figure 5 FIG. 4 is a schematic diagram of tracking the frequencies of various types of signals according to an exemplary embodiment of the present invention.

[0027] Figure 6 is a schematic diagram of an initial signal according to an exemplary embodiment of the present invention.

[0028] Figure 7 is a schematic diagram of a first type of signal according to an exemplary embodiment of the present invention.

[0029] Figure 8 is a schematic diagram of a connection interface unit according to an exemplary embodiment of the present invention.

[0030] Fig. 9 is a flow chart of a method for generating a reference clock signal according to an exemplary embodiment of the present invention.

[0031] Description of Reference Numerals

[0032] 10: memory storage device;

[0033] 11: Host system;

[0034] 110: system bus;

[0035] 111: processor;

[0036] 112: Random Access Memory;

[0037] 113: read-only memory;

[0038] 114: data transmission interface;

[0039] 12: Input / output (I / O) devices;

[0040] 20: Motherboard;

[0041] 201: USB flash drive;

[0042] 202: memory card;

[0043] 203: Solid state drive;

[0044] 204: wireless memory storage device;

[0045] 205: Global Positioning System Module;

[0046] 206: network interface card;

[0047] 207: wireless transmission device;

[0048] 208: keyboard;

[0049] 209: screen;

[0050] 210: Speaker;

[0051] 32: SD card;

[0052] 33: CF card;

[0053] 34: Embedded storage device;

[0054] 341: embedded multimedia card;

[0055] 342: Embedded multi-chip package storage device;

[0056] 402: connecting the interface unit;

[0057] 404: memory control circuit unit;

[0058] 406: rewritable non-volatile memory module;

[0059] Signal_0, Signal_1, Signal_2, Signal_Rx, Signal_Clk, Signal_Tx: signal;

[0060] Stage_0: stage 0;

[0061] Stage_1: Stage 1;

[0062] Stage_2: Stage 2;

[0063] 601: sudden wave;

[0064] 602: gap;

[0065] T_1, T_2 and T_3: time width;

[0066] 810: receiving end circuit;

[0067] 820: reference clock generation circuit;

[0068] 821: Tracking circuit;

[0069] 822: clock data recovery circuit;

[0070] 830: Transmitter circuit;

[0071] S901: Step (receiving an initial signal from a host system);

[0072] S902: step (generating initial control parameters according to the frequency of the initial signal);

[0073] S903: step (receiving a first type of signal from a host system);

[0074] S904: step (generating a first control parameter according to the frequency of the first type of signal);

[0075] S905: step (receiving a second type of signal from the host system);

[0076] S906: step (generating a second control parameter according to the frequency of the second type of signal);

[0077] S907: Step (generating a reference clock signal that meets the first condition according to the second control parameter). DETAILED DESCRIPTION

[0078] Generally speaking, a memory storage device (also called a memory storage system) includes a rewritable non-volatile memory module and a controller (also called a control circuit). The memory storage device is usually used together with a host system so that the host system can write data to the memory storage device or read data from the memory storage device.

[0079] Figure 1 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment of the present invention. Figure 2 is a schematic diagram of a host system, a memory storage device, and an I / O device according to another exemplary embodiment of the present invention.

[0080] Please refer to Figure 1 and Figure 2 The host system 11 generally includes a processor 111, a random access memory (RAM) 112, a read only memory (ROM) 113, and a data transmission interface 114. The processor 111, the random access memory 112, the read only memory 113, and the data transmission interface 114 are all connected to a system bus 110.

[0081] In the present exemplary embodiment, the host system 11 is connected to the memory storage device 10 via the data transmission interface 114. For example, the host system 11 can store data to the memory storage device 10 or read data from the memory storage device 10 via the data transmission interface 114. In addition, the host system 11 is connected to the I / O device 12 via the system bus 110. For example, the host system 11 can transmit an output signal to the I / O device 12 or receive an input signal from the I / O device 12 via the system bus 110.

[0082] In this exemplary embodiment, the processor 111, the random access memory 112, the read-only memory 113 and the data transmission interface 114 may be disposed on the motherboard 20 of the host system 11. The number of the data transmission interface 114 may be one or more. Through the data transmission interface 114, the motherboard 20 may be connected to the memory storage device 10 via a wired or wireless manner. The memory storage device 10 may be, for example, a USB flash drive 201, a memory card 202, a solid state drive (SSD) 203 or a wireless memory storage device 204. The wireless memory storage device 204 may be, for example, a near field communication (NFC) memory storage device, a wireless fax (WiFi) memory storage device, a Bluetooth memory storage device or a low power consumption Bluetooth memory storage device (e.g., iBeacon) and other memory storage devices based on various wireless communication technologies. In addition, the motherboard 20 can also be connected to various I / O devices such as a global positioning system (GPS) module 205, a network interface card 206, a wireless transmission device 207, a keyboard 208, a screen 209, and a speaker 210 through the system bus 110. For example, in an exemplary embodiment, the motherboard 20 can access the wireless memory storage device 204 through the wireless transmission device 207.

[0083] In an exemplary embodiment, the host system mentioned is any system that can actually cooperate with the memory storage device to store data. Although in the above exemplary embodiment, the host system is described as a computer system, however, Figure 3 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment of the present invention. Figure 3 In another exemplary embodiment, the host system 31 may also be a digital camera, a video camera, a communication device, an audio player, a video player or a tablet computer, and the memory storage device 30 may be a Secure Digital (SD) card 32, a Compact Flash (CF) card 33 or an embedded storage device 34 or other non-volatile memory storage devices used therein. The embedded storage device 34 includes various types of embedded storage devices that directly connect the memory module to the substrate of the host system, such as an embedded Multi Media Card (eMMC) 341 and / or an embedded Multi Chip Package (eMCP) storage device 342.

[0084] Figure 4is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention.

[0085] Please refer to Figure 4 The memory storage device 10 includes a connection interface unit 402 , a memory control circuit unit 404 and a rewritable non-volatile memory module 406 .

[0086] The connection interface unit 402 is used to connect the memory storage device 10 to the host system 11. In this exemplary embodiment, the connection interface unit 402 is compatible with the Serial Advanced Technology Attachment (SATA) standard. However, it should be understood that the present invention is not limited thereto, and the connection interface unit 402 may also comply with the Parallel Advanced Technology Attachment (PATA) standard, the Institute of Electrical and Electronic Engineers (IEEE) 1394 standard, the Peripheral Component Interconnect Express (PCI Express) standard, the Universal Serial Bus (USB) standard, the SD interface standard, the Ultra High Speed-I (UHS-I) interface standard, the Ultra High Speed-II (UHS-II) interface standard, the Memory Stick (MS) interface standard, the MCP interface standard, the MMC interface standard, the eMMC interface standard, the Universal Flash Storage (UFS) interface standard, the eMCP interface standard, the CF interface standard, the Integrated Device Electronics (IDE) standard or other suitable standards. The connection interface unit 402 and the memory control circuit unit 404 may be packaged in one chip, or the connection interface unit 402 may be disposed outside a chip including the memory control circuit unit 404 .

[0087] The memory control circuit unit 404 is used to execute a plurality of logic gates or control instructions implemented in hardware or firmware form and perform operations such as writing, reading and erasing data in the rewritable non-volatile memory module 406 according to the instructions of the host system 11 .

[0088] The rewritable non-volatile memory module 406 is connected to the memory control circuit unit 404 and is used to store data written by the host system 11. The rewritable non-volatile memory module 406 can be a single-level cell (SLC) NAND type flash memory module (i.e., a flash memory module in which one storage cell can store one binary bit), a multi-level cell (MLC) NAND type flash memory module (i.e., a flash memory module in which one storage cell can store two binary bits), a triple-level cell (TLC) NAND type flash memory module (i.e., a flash memory module in which one storage cell can store three binary bits), other flash memory modules, or other memory modules with the same characteristics.

[0089] In this exemplary embodiment, each memory cell in the rewritable non-volatile memory module 406 stores one or more binary bits by changing the voltage (hereinafter also referred to as the critical voltage). Specifically, there is a charge capture layer between the control gate and the channel of each memory cell. By applying a write voltage to the control gate, the amount of electrons in the charge capture layer can be changed, thereby changing the critical voltage of the memory cell. This operation of changing the critical voltage of the memory cell is also called "writing data to the memory cell" or "programming the memory cell". As the critical voltage changes, each memory cell in the rewritable non-volatile memory module 406 has multiple storage states. By applying a read voltage, it is possible to determine which storage state a memory cell belongs to, thereby obtaining one or more binary bits stored in this memory cell.

[0090] In the present exemplary embodiment, the memory cells of the rewritable non-volatile memory module 406 constitute a plurality of physical programming units, and these physical programming units constitute a plurality of physical erasing units. Specifically, the memory cells on the same word line constitute one or more physical programming units. If each memory cell can store more than two bits, the physical programming units on the same word line can be classified into at least a lower physical programming unit and an upper physical programming unit. For example, the least significant bit (LSB) of a memory cell belongs to the lower physical programming unit, and the most significant bit (MSB) of a memory cell belongs to the upper physical programming unit. Generally speaking, in an MLC NAND flash memory, the write speed of the lower physical programming unit is greater than the write speed of the upper physical programming unit, and / or the reliability of the lower physical programming unit is higher than the reliability of the upper physical programming unit.

[0091] In this exemplary embodiment, the physical programming unit is the smallest unit of programming. That is, the physical programming unit is the smallest unit for writing data. For example, the physical programming unit is a physical page or a physical sector. If the physical programming unit is a physical page, these physical programming units usually include a data binary bit area and a redundant binary bit area. The data binary bit area includes a plurality of physical sectors for storing user data, and the redundant binary bit area is used to store system data (for example, management data such as error correction codes). In this exemplary embodiment, the data binary bit area includes 32 physical sectors, and the size of a physical sector is 512 binary bytes (bytes, B). However, in other exemplary embodiments, the data binary bit area may also include 8, 16 or more or less physical sectors, and the size of each physical sector may also be larger or smaller. On the other hand, the physical erase unit is the smallest unit of erasure. That is, each physical erase unit contains the minimum number of storage cells to be erased together. For example, the physical erase unit is a physical block.

[0092] In the present exemplary embodiment, the connection interface unit 402 receives a plurality of different types of signals from the host system 11 and tracks the frequencies of the plurality of different types of signals respectively. Then, based on the frequency tracking result, the connection interface unit 402 generates a reference clock signal that meets a specific condition (also referred to as the first condition). In the present exemplary embodiment, the reference clock signal that meets the first condition means that the frequency of the reference clock signal is the same as the frequency of the signal from the host system 11; and the reference clock signal that does not meet the first condition means that the frequency of the reference clock signal is not the same as the frequency of the signal from the host system 11. Alternatively, in another exemplary embodiment, the reference clock signal that meets the first condition means that the difference between the frequency of the reference clock signal and the frequency of the signal from the host system 11 is less than a preset value; and the reference clock signal that does not meet the first condition means that the difference between the frequency of the reference clock signal and the frequency of the signal from the host system 11 is not less than the preset value. In an exemplary embodiment, if the frequency of the generated reference clock signal has been locked to the frequency of the signal from the host system 11, it can be regarded as a reference clock signal that meets the first condition has been generated; conversely, if the frequency of the generated reference clock signal has not yet been locked to the frequency of the signal from the host system 11, it can be regarded as a reference clock signal that meets the first condition has not yet been generated.

[0093] In this exemplary embodiment, the signal from the host system 11 may be a data signal for transmitting at least one instruction (e.g., various host instructions such as a data write instruction or a data delete instruction) and / or data corresponding to the instruction (e.g., data to be accessed and a logical address, etc.). For example, the instruction may include a specific instruction code and a logical address code, etc. In an exemplary embodiment, the signal from the host system 11 may also include other signals from the host system 11.

[0094] In this exemplary embodiment, the reference clock signal can be used to generate a clock signal with a predetermined frequency (also referred to as a specific clock signal). For example, the frequency of the specific clock signal (i.e., the predetermined frequency) is the same as the frequency of the reference clock signal. In an exemplary embodiment, the voltage level of the specific clock signal is different from the voltage level of the reference clock signal. For example, the specific clock signal can be obtained by performing a voltage step-up or voltage step-down on the reference clock signal. In an exemplary embodiment, there is a phase difference between the specific clock signal and the reference clock signal. For example, the specific clock signal can be obtained by delaying the reference clock signal. The reference clock signal or the specific clock signal can be used to sample a data signal from the host system 11 or to generate a data signal to be transmitted to the host system 11. For example, the data signal transmitted to the host system 11 can be used to transmit data to be read by the host system 11 or any response corresponding to an instruction from the host system 11. In addition, in another exemplary embodiment, the reference clock signal or the specific clock signal can also be used for part of the electronic circuits in the memory storage device 10.

[0095] Figure 5 FIG. 4 is a diagram showing a method of tracking frequencies of various types of signals from a host system according to an exemplary embodiment of the present invention.

[0096] Please refer to Figure 5 In this exemplary embodiment, the connection interface unit 402 tracks the frequency of the signal received from the host system 11 in stage 0 (i.e., stage_0), stage 1 (i.e., stage_1), and stage 2 (i.e., stage_2). In stage 0, the connection interface unit 402 receives a signal of a specific type (also referred to as an initial signal) Signal_0 from the host system 11. In stage 1, the connection interface unit 402 receives another signal of a specific type (also referred to as a first type of signal) Signal_1 from the host system 11. In addition, in stage 2, the connection interface unit 402 receives another signal of a specific type (also referred to as a second type of signal) Signal_2 from the host system 11. The types of the signal Signal_0, the signal Signal_1, and the signal Signal_2 are different. It should be noted that the different types of signals mentioned here can refer to various comparison criteria that can be used to distinguish different types of signals, such as different pulse waveforms, different pulse patterns, different pulse composition methods, different frequencies, and / or different uses of the signals.

[0097] In this exemplary embodiment, the signal Signal_0 is an out of band (OOB) signal. In addition, the signal Signal_0 corresponds to a handshake operation between the host system 11 and the memory storage device 10 before transmitting the signal Signal_2. For example, in a connection establishment phase (i.e., phase 0) between the host system 11 and the memory storage device 10, the host system 11 and the memory storage device 10 will use the signal Signal_0 to perform a handshake operation to ensure a connection state between the host system 11 and the memory storage device 10. In this exemplary embodiment, Signal_0 may include at least three types of out of band signals, such as a COMRESET signal, a COMINIT signal, and a COMWAKE signal. For example, in the handshake operation, the host system 11 will transmit a COMRESET signal to the memory storage device 10. For example, the COMRESET signal is used to instruct the memory storage device 10 to perform a hard reset. After receiving the COMRESET signal, the connection interface unit 402 will transmit a COMINIT signal to the host system 11. For example, the COMINIT signal is used to request communication initialization from the host system 11. The COMINIT signal may be the same as or similar to the COMRESET signal. After receiving the COMINIT signal, the host system 11 transmits a COMWAKE signal to the memory storage device 10. In addition, the memory storage device 10 may also transmit the COMWAKE signal to the host system 11.

[0098] Figure 6 is a schematic diagram of an initial signal according to an exemplary embodiment of the present invention.

[0099] Please refer to Figure 6In the present exemplary embodiment, the signal Signal_0 is an out-of-band signal including a plurality of bursts 601 and a plurality of gaps 602, wherein each burst is indicated by a slash. For example, in the COMRESET signal and the COMINIT signal, the time width T_1 of a burst 601 is approximately 106 nanoseconds (ns), and the time width T_2 of a gap 602 is approximately 320 nanoseconds; and in the COMWAKE signal, the time widths T_1 and T_2 are both approximately 106 nanoseconds. However, the time widths T_1 and T_2 may also vary with practical requirements, and the present invention is not limited thereto. In addition, in the present exemplary embodiment, the signal Signal_0 is a differential signal, which is composed of two signals with the same amplitude and opposite phases. It should be noted that in other exemplary embodiments not mentioned, the signal Signal_0 may also be other types of signals and have other waveforms and / or frequencies, etc., and is not limited to the signal type of the out-of-band signal.

[0100] In this exemplary embodiment, the connection interface unit 402 tracks the frequency of the signal Signal_0 in phase 0. For example, in an exemplary embodiment, the connection interface unit 402 tracks the frequency of the COMRESET signal in the out-of-band signal in phase 0. Alternatively, in another exemplary embodiment, the connection interface unit 402 may track the frequency of at least one of the COMRESET signal, the COMINIT signal, and the COMWAKE signal in the out-of-band signal in phase 0.

[0101] After completing the frequency tracking operation in phase 0, the host system 11 enters the next phase (i.e., phase 1). In phase 1, the host system 11 starts to transmit a signal Signal_1. It should be noted that the type of the signal Signal_1 is different from the type of the signal Signal_0. For example, Figure 6 In the exemplary embodiment, signal Signal_0 is a differential signal, and signal Signal_1 is not a differential signal, but a clock signal (or, 0 / 1 interleaved signal) with a stable frequency and / or a stable vibration. In addition, in this exemplary embodiment, signal Signal_1 is also referred to as D10.2 signal.

[0102] In this exemplary embodiment, the connection interface unit 402 also continues to track the frequency of the signal Signal_1 in phase 1. It should be noted that in phase 1, if the frequency tracking operation of the signal Signal_1 is completed, the connection interface unit 402 will send an alignment signal (not shown) to the host system 11. After recognizing the alignment signal, the host system 11 will stop transmitting the signal Signal_1 and enter the next phase (i.e., phase 2). In addition, if the alignment signal is not recognized, the host system 11 will continue to transmit the signal Signal_1.

[0103] Figure 7 is a schematic diagram of a first type of signal according to an exemplary embodiment of the present invention.

[0104] Please refer to Figure 7 Before the host system 11 recognizes the alignment signal from the memory storage device 10, the host system 11 will continue to transmit the signal Signal_1 to the memory storage device 10. In this exemplary embodiment, the signal Signal_1 is a D10.2 signal, which includes a plurality of staggered logic highs (or, logic 1) and logic lows (or, logic 0). In addition, the frequency of the signal Signal_1 is approximately 1.5 GHz. It should be noted that in other exemplary embodiments not mentioned, the signal Signal_1 may also be other types of signals and have other waveforms and / or frequencies, etc., and is not limited to the signal type of the D10.2 signal.

[0105] After entering phase 2, the host system 11 starts to transmit the signal Signal_2. In this exemplary embodiment, the signal Signal_2 is a data signal from the host system 11. For example, after phase 0 and phase 1, the host system 11 sends the signal Signal_2 to transmit an instruction to instruct the memory storage device 10 to perform a specific operation and data corresponding to the instruction. For example, the specific operation may be a data write operation or a data delete operation, etc., which the host system 11 may instruct the memory storage device 10 to perform. In addition, in this exemplary embodiment, the connection interface unit 402 also tracks the frequency of the signal Signal_2 in phase 2.

[0106] In this exemplary embodiment, phase 0, phase 1, and phase 2 occur continuously. For example, signal Signal_1 is transmitted after signal Signal_0, and signal Signal_2 is transmitted after signal Signal_1. However, in another exemplary embodiment, any two phases of phase 0, phase 1, and phase 2 may include other phases for transmitting other signals. For example, in another exemplary embodiment, signal Signal_1 is not transmitted after signal Signal_0, and / or signal Signal_2 is not transmitted after signal Signal_1.

[0107] In the present exemplary embodiment, the memory storage device 10 will transmit corresponding response signals to the host system 11 in phase 0, phase 1, and phase 2, respectively. For example, in phase 0, the connection interface unit 402 will transmit a signal corresponding to the handshake operation performed (e.g., a COMINIT signal) to the host system 11 to inform the host system 11 that it can enter the next phase. For example, in phase 1, the connection interface unit 402 will also transmit a D10.2 signal and a data signal including an alignment signal to the host system 11, wherein the alignment signal is used to inform the host system 11 that it can enter the next phase. In addition, in phase 2, the connection interface unit 402 will transmit a data signal corresponding to the execution result of a specific instruction to the host system 11. For example, in response to a data read instruction from the host system 11, the connection interface unit 402 will transmit a data signal with data read according to this data read instruction in phase 2. For the specific signal receiving and sending mechanism, please refer to Figure 5 , but it is not intended to limit the present invention.

[0108] In the present exemplary embodiment, the frequency tracking operations performed in phase 0, phase 1, and phase 2 are used to determine one or more control parameters, and the control parameters are used to control or adjust the frequency of the reference clock signal generated by the connection interface unit 402. It should be noted that the control parameters are continuously modified by the frequency tracking operations performed in the different phases. For example, after tracking the frequency of the signal Signal_0, the connection interface unit 402 generates an initial parameter (also referred to as an initial control parameter) according to the frequency of the tracked signal Signal_0. For example, the initial control parameter can be regarded as an initial value of the control parameter.

[0109] After tracking the frequency of the signal Signal_1, the connection interface unit 402 generates another control parameter (also referred to as a first control parameter) according to the frequency of the tracked signal Signal_1. The first control parameter can be directly generated or obtained based on the initial control parameter. For example, in an exemplary embodiment, according to the frequency of the tracked signal Signal_1, the connection interface unit 402 adjusts the initial control parameter to the first control parameter.

[0110] After tracking the frequency of the signal Signal_2, the connection interface unit 402 further generates another control parameter (also referred to as a second control parameter) according to the frequency of the tracked signal Signal_2. The second control parameter can be directly generated or obtained based on the first control parameter. For example, in an exemplary embodiment, according to the frequency of the tracked signal Signal_2, the connection interface unit 402 adjusts the first control parameter to the second control parameter.

[0111] According to the second control parameter, the connection interface unit 402 generates a reference clock signal that meets the first condition. For example, in the operation of continuously adjusting the control parameter, the frequency of the reference clock signal generated by the connection interface unit 402 according to the control parameter will get closer and closer to the frequency of the signal from the host system 11. In an exemplary embodiment, the connection interface unit 402 will lock the frequency of the generated reference clock signal to the frequency of the signal Signal_2 through the frequency tracking operation of stage 2.

[0112] In this exemplary embodiment, the connection interface unit 402 has an oscillator (not shown) and does not have a crystal oscillator. The oscillator of the connection interface unit 402 can be a voltage-controlled oscillator or a digital oscillator and is used to generate the reference clock signal. For example, if the oscillator is a voltage-controlled oscillator, the control parameter refers to a control voltage for controlling the frequency of the reference clock signal output by the voltage-controlled oscillator. Alternatively, if the oscillator is a digital oscillator, the control parameter refers to a control code for controlling the frequency of the reference clock signal output by the digital oscillator.

[0113] From another perspective, in phase 0, a target signal for the connection interface unit 402 to perform a frequency tracking operation is signal Signal_0, and the connection interface unit 402 generates the initial control parameter according to the frequency tracking result of signal Signal_0. In phase 1, the target signal for the connection interface unit 402 to perform a frequency tracking operation is switched to signal Signal_1, and the connection interface unit 402 generates the first control parameter according to the frequency tracking result of signal Signal_1. Then, in phase 2, the target signal for the connection interface unit 402 to perform a frequency tracking operation is further switched to signal Signal_2, and the connection interface unit 402 generates the second control parameter according to the frequency tracking result of signal Signal_2.

[0114] In an exemplary embodiment, the fineness of adjustment of the control parameter in stage 0 is lower than the fineness of adjustment of the control parameter in stage 1 and / or stage 2; and the fineness of adjustment of the control parameter in stage 1 is also lower than the fineness of adjustment of the control parameter in stage 2. The fineness corresponds to an adjustment step of the control parameter. For example, in stage 0, the adjustment operation of the control parameters can be regarded as a coarse adjustment operation, which uses the relatively largest adjustment step to adjust the control parameters, so that the frequency of the first signal can be roughly controlled within a preset range near the frequency of the target signal; in stage 1, the adjustment operation of the control parameters can be regarded as a coarse adjustment combined with fine adjustment operation, which uses the second largest adjustment step to adjust the control parameters, so that the frequency of the first signal can be further controlled from the preset range to a frequency closer to the target signal based on better precision; in stage 2, the adjustment operation of the control parameters can be regarded as a fine adjustment operation, which uses the relatively smallest adjustment step to adjust the control parameters, so that the frequency of the first signal can be locked to (or approach) the frequency of the target signal based on a lower error (highest precision).

[0115] It should be noted that, although the above exemplary embodiments are all based on continuously tracking the frequencies of the signals Signal_0, Signal_1, and Signal_2 and generating corresponding control parameters according to the frequency tracking results, in another exemplary embodiment, the connection interface unit 402 may also only track the frequency of the signal Signal_0 and the frequency of the signal Signal_2 (i.e., not tracking the frequency of the signal Signal_1). Alternatively, in another exemplary embodiment, the connection interface unit 402 may also only track the frequency of the signal Signal_1 and the frequency of the signal Signal_2 (i.e., not tracking the frequency of the signal Signal_0). Then, the connection interface unit 402 generates the control parameters according to the frequency tracking results.

[0116] It should be noted that, although in the aforementioned exemplary embodiment, signal signal_0 can be regarded as an initial signal, signal signal_1 can be regarded as a first-class signal, and signal signal_2 can be regarded as a second-class signal, the classification of these signals can also be adjusted according to practical needs. Figure 5 In another exemplary embodiment, a portion of signal signal_0 and signal signal_1 or a combination thereof may also be referred to as a first type of signal, and / or a portion of signal signal_1 and signal signal_2 or a combination thereof may also be referred to as a second type of signal. For example, in an exemplary embodiment where only the frequency of signal Signal_0 and the frequency of signal Signal_2 are tracked (i.e., the frequency of signal Signal_1 is not tracked), signal Signal_0 will be regarded as the first type of signal, rather than the initial signal.

[0117] Figure 8 is a schematic diagram of a connection interface unit according to an exemplary embodiment of the present invention.

[0118] Please refer to Figure 8 In the present exemplary embodiment, the connection interface unit 402 includes a receiving circuit 810, a reference clock generating circuit 820 and a transmitting circuit 830. The reference clock generating circuit 820 is connected to the receiving circuit 810 and the transmitting circuit 830. The receiving circuit 810 is used to receive the signal Signal_Rx from the host system 11. The reference clock generating circuit 820 is used to receive the output signal of the receiving circuit 810 and generate a signal Signal_Clk (i.e., a reference clock signal) accordingly. It should be noted that the reference clock generating circuit 820 tracks the frequencies of various signals from the host system 11 in multiple stages and adjusts the control parameters for controlling the frequency of the signal Signal_Clk according to the frequency tracking results, so that the frequency of the signal Signal_Clk is locked to (or, approaches) the frequency of at least one type of signal from the host system 11.

[0119] In this exemplary embodiment, the reference clock generation circuit 820 includes a tracking circuit 821 and a clock data recovery circuit 822. The tracking circuit 821 is connected to the clock data recovery circuit 822. Figure 5 For example, the tracking circuit 821 is used to track the frequency of the signal Signal_0 and / or the signal Signal_1 from the host system 11; and the clock data recovery circuit 822 is used to track the frequency of the signal Signal_2 from the host system 11. Figure 5 In phase 0 and / or phase 1 of the embodiment, the tracking circuit 821 is activated to receive a signal from the host system 11 via the receiving circuit 810 and perform a frequency tracking operation. Figure 5 In phase 2, the tracking circuit 821 is disabled and the clock data recovery circuit 822 is enabled to receive a signal from the host system 11 via the receiving circuit 810 and perform a frequency tracking operation.

[0120] It should be noted that in Figure 8 In an exemplary embodiment, it is assumed that the oscillator used to generate the signal Signal_Clk according to the control parameters (e.g., the initial control parameters, the first control parameters, and the second control parameters) is located in the clock data recovery circuit 822. Therefore, the tracking circuit 821 transmits the frequency tracking results of the signal Signal_0 and / or the signal Signal_1 to the clock data recovery circuit 822. The clock data recovery circuit 822 sets the control parameters in response to the frequency tracking results of the signal Signal_0 and / or the signal Signal_1 (e.g., sets the control parameters to the initial control parameters or the first control parameters). Then, according to the frequency tracking results of the signal Signal_2, the clock data recovery circuit 822 further updates the control parameters (e.g., sets the control parameters to the second control parameters). According to the updated control parameters (i.e., the second control parameters), the frequency of the signal Signal_Clk can be locked to (approach) the frequency of the signal Signal_2. In addition, in another exemplary embodiment, the oscillator used to generate the signal Signal_Clk according to the control parameters can also be set outside the clock data recovery circuit 822, so the tracking circuit 821 and the clock data recovery circuit 822 will respectively provide corresponding control parameters to the oscillator according to the frequency tracking results to generate the signal Signal_Clk.

[0121] In this exemplary embodiment, the transmitter circuit 830 receives the signal Signal_Clk and modulates the signal Signal_Out according to the signal Signal_Clk to generate the signal Signal_Tx. For example, the transmitter circuit 830 may directly use the signal Signal_Clk to modulate the signal Signal_Out to generate the signal Signal_Tx. Alternatively, the transmitter circuit 830 may use a specific clock signal generated according to the signal Signal_Clk to modulate the signal Signal_Out to generate the signal Signal_Tx. The transmitter circuit 830 transmits the signal Signal_Tx to the host system 11. For example, the signal Signal_Tx may be Figure 5 In an exemplary embodiment, the signal transmitted from the interface unit 402 to the host system 11 in any of the phases 1 to 3 is connected. In addition, in an exemplary embodiment, the signal Signal_Clk or a specific clock signal generated according to the signal Signal_Clk can also be used to sample the Figure 5The data signal from the host system 11 in phase 2 (ie, signal Signal_2) is received.

[0122] In one exemplary embodiment, the clock data recovery circuit 822 is suitable for (or, dedicated to) tracking and locking the frequency of a high-speed signal (e.g., a high-speed data signal). In contrast, the tracking circuit 821 is suitable for (or, dedicated to) tracking and locking the frequency of a non-high-speed signal. For example, in one exemplary embodiment, the high-speed signal refers to a signal (or, data signal) with a frequency higher than 5 GHz, and the non-high-speed signal refers to a signal with a frequency lower than 5 GHz. However, in another exemplary embodiment, the frequency (or, frequency threshold) used to distinguish between high-speed signals and non-high-speed signals can also be higher (e.g., 10 GHz) or lower (e.g., 4 GHz), and the present invention is not limited thereto.

[0123] It should be noted that although the above exemplary embodiments are all based on tracking the various signals transmitted between the host system 11 and the memory storage device 10 under the Serial Advanced Technology Attachment (SATA) standard, in another exemplary embodiment, as the connection interface standard between the host system 11 and the memory storage device 10 changes, the types of the various signals transmitted between the host system 11 and the memory storage device 10 to be tracked may also be different. In other words, as long as the control parameters for controlling the frequency of the reference clock signal can be continuously generated or updated by tracking the frequencies of more than two signals, it falls within the scope of the present invention.

[0124] Fig. 9 is a flow chart of a method for generating a reference clock signal according to an exemplary embodiment of the present invention.

[0125] Please refer to Fig. 9 In step S901, an initial signal is received from a host system. In step S902, an initial control parameter is generated according to the frequency of the initial signal. In step S903, a first type of signal is received from the host system. In step S904, a first control parameter is generated according to the first type of signal. For example, the first control parameter may be directly generated or obtained based on the initial control parameter. In step S905, a second type of signal is received from the host system, wherein the first type of signal is different from the second type of signal. In step S906, a second control parameter is generated according to the frequency of the second type of signal. For example, the second control parameter may be directly generated or obtained based on the first control parameter. In step S907, a reference clock signal that meets the first condition is generated according to the second control parameter. It should be noted that in Fig. 9 In another exemplary embodiment, step S901 and step S902 may also be skipped, so that the reference clock signal generating method only needs to be executed starting from step S903.

[0126] However, Fig. 9 The steps in the above are described in detail, so I will not repeat them here. It is worth noting that Fig. 9 Each step in the above process can be implemented as multiple program codes or circuits, and the present invention is not limited thereto. Fig. 9 The method can be used in conjunction with the above exemplary embodiments or can be used alone, and the present invention is not limited thereto.

[0127] In summary, the present invention can track the frequencies of at least two types of signals from the host system and generate control parameters accordingly. Then, the generated control parameters can be used to generate a reference clock signal that meets the first condition. Compared with the traditional practice of tracking the frequency of a single signal to adjust the frequency of the reference clock signal, the signal generation method, memory storage device and connection interface unit of the present invention can increase the efficiency of generating the reference clock signal and is also more efficient in frequency tracking.

[0128] Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the present invention. Any person skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the attached claims.

Claims

1. A reference clock signal generation method for a memory storage device, characterized in that: The reference clock signal generation method comprises: receiving a first signal from a host system; Tracking the frequency of the first type of signal and generating a first control parameter according to the frequency tracking result of the first type of signal; After receiving the first type of signal, receiving a second type of signal from the host system, wherein the first type of signal is different from the second type of signal; generating a second control parameter according to the frequency of the second type of signal and the first control parameter; generating a reference clock signal that meets a first condition according to the second control parameter, wherein the reference clock signal is used to generate a specific clock signal with a predetermined frequency; receiving an initial signal from the host system before receiving the first type of signal; and An initial control parameter is generated according to the frequency of the initial signal, and is used to adjust the frequency of the reference clock signal.

2. The reference clock signal generating method according to claim 1, characterized in that: The first type of signal is transmitted subsequent to the initial signal, and the second type of signal is transmitted subsequent to the first type of signal.

3. The reference clock signal generating method according to claim 1, wherein: The initialization signal is used for a handshake operation between the memory storage device and the host system.

4. The reference clock signal generating method according to claim 3, characterized in that: The initial signal is an out-of-band signal.

5. The reference clock signal generating method according to claim 1, wherein: The first control parameter is obtained based on the initial control parameter.

6. The reference clock signal generating method according to claim 1, wherein: The second type of signal is transmitted subsequent to the first type of signal.

7. The reference clock signal generating method according to claim 1, characterized in that: The first control parameter and the second control parameter are both used to adjust the frequency of the reference clock signal.

8. The reference clock signal generating method according to claim 1, wherein: The memory storage device is compliant with the Serial Advanced Technology Attachment standard.

9. A memory storage device, characterized in that: include: A connection interface unit for connecting to a host system; A rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical units; as well as A memory control circuit unit connected to the connection interface unit and the rewritable non-volatile memory module, wherein the connection interface unit is used to receive a first type of signal from the host system, The connection interface unit is further used to track the frequency of the first type of signal and generate a first control parameter according to the frequency tracking result of the first type of signal. After receiving the first type of signal, the connection interface unit is further configured to receive a second type of signal from the host system, wherein the first type of signal is different from the second type of signal. The connection interface unit is further used to generate a second control parameter according to the frequency of the second type of signal and the first control parameter. The connection interface unit is further used to generate a reference clock signal that meets the first condition according to the second control parameter, wherein the reference clock signal is used to generate a specific clock signal with a predetermined frequency. Before receiving the first type of signal, the connection interface unit is further used to receive an initial signal from the host system. The connection interface unit is further used to generate an initial control parameter according to the frequency of the initial signal, which is used to adjust the frequency of the reference clock signal.

10. The memory storage device according to claim 9, characterized in that: The first type of signal is transmitted subsequent to the initial signal, and the second type of signal is transmitted subsequent to the first type of signal.

11. The memory storage device according to claim 9, characterized in that: The initialization signal is used for a handshake operation between the memory storage device and the host system.

12. The memory storage device according to claim 11, characterized in that The initial signal is an out-of-band signal.

13. The memory storage device according to claim 9, characterized in that The first control parameter is obtained based on the initial control parameter.

14. The memory storage device according to claim 9, characterized in that The second type of signal is transmitted subsequent to the first type of signal.

15. The memory storage device according to claim 9, characterized in that The first control parameter and the second control parameter are both used to adjust the frequency of the reference clock signal.

16. The memory storage device according to claim 9, characterized in that The connection interface unit is compliant with the Serial Advanced Technology Attachment standard.

17. A connection interface unit for a memory storage device, characterized in that: The connection interface unit comprises: A receiving circuit for receiving a first type of signal from a host system; and A reference clock generation circuit is connected to the receiving end circuit and is used to track the frequency of the first type of signal and generate a first control parameter according to the frequency tracking result of the first type of signal. After receiving the first type of signal, the receiving end circuit is further configured to receive a second type of signal from the host system, wherein the first type of signal is different from the second type of signal. The reference clock generation circuit is further used to generate a second control parameter according to the frequency of the second type of signal and the first control parameter. The reference clock generation circuit is further used to generate a reference clock signal that meets the first condition according to the second control parameter, wherein the reference clock signal is used to generate a specific clock signal with a predetermined frequency. Before receiving the first type of signal, the receiving end circuit is further used to receive an initial signal from the host system. The reference clock generation circuit is further used to generate an initial control parameter according to the frequency of the initial signal, which is used to adjust the frequency of the reference clock signal.

18. The connection interface unit according to claim 17, characterized in that: The first type of signal is transmitted subsequent to the initial signal, and the second type of signal is transmitted subsequent to the first type of signal.

19. The connection interface unit according to claim 17, characterized in that: The initialization signal is used for a handshake operation between the memory storage device and the host system.

20. The connection interface unit according to claim 19, characterized in that: The initial signal is an out-of-band signal.

21. The connection interface unit according to claim 17, characterized in that: The first control parameter is obtained based on the initial control parameter.

22. The connection interface unit according to claim 17, characterized in that: The second type of signal is transmitted subsequent to the first type of signal.

23. The connection interface unit according to claim 17, characterized in that: The first control parameter and the second control parameter are both used to adjust the frequency of the reference clock signal.

24. The connection interface unit according to claim 17, characterized in that: The connection interface unit is compliant with the Serial Advanced Technology Attachment standard.