ONFI PHY training method, ONFI PHY, chip and electronic device

By adjusting the phase relationship between the NAND FLASH interface data signal and the data clock signal on the OFI interface, the problem of difficult timing adjustment in low-speed mode in the existing technology is solved, and a timing training method with high adaptability and fast response is realized.

CN117762839BActive Publication Date: 2024-08-23博越微电子(江苏)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410091692.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-23
Publication Date
2024-08-23
Estimated Expiration
2044-01-23

AI Technical Summary

Technical Problem

The existing technology cannot effectively adjust the DQ and DQS signal timing of NAND FLASH in low-speed mode, resulting in the inability to meet the PPA index and low applicability, and parameter differences between different manufacturers lead to an unsuitable delay chain adjustment range.

Method used

By generating and adjusting the phase relationship between the interface data signal and the data clock signal on the OFI interface, the NAND controller is used to generate the interface control signal, change the phase deviation of the flash memory data signal and the flash memory clock signal, and adapt to NAND FLASH from different manufacturers.

Benefits of technology

It realizes the rapid response adjustment of DQ and DQS signal timing in low-speed mode, getting rid of the delay chain limitation, high adaptability, small logic amount, and suitable for NAND FLASH from different manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117762839B
    Figure CN117762839B
Patent Text Reader

Abstract

The present invention provides an ONFI PHY training method, ONFI PHY, chip and electronic equipment, and relates to the technical field of flash memory timing training. The present invention uses a NAND controller to control the phase relationship between an interface data signal and a data clock signal on an OFI interface to meet the timing requirements of tDS / tDH on the NAND side, thereby getting rid of the limitation of the delay chain in the traditional technology, only requiring a controller to generate an interface control signal, with a small amount of logic, a faster response speed, and the ability to adapt to NAND FLASH particles from different manufacturers, and having high applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of flash memory timing training, in particular to an ONFI PHY training method, ONFI PHY, a chip and an electronic device. Background Art

[0002] For NAND FLASH, it can support multiple modes. In low-speed mode, the lowest speed can be supported to less than 20MHz; in high-speed mode, the speed can reach 3600MT / s. When writing data, it is necessary to ensure a certain timing between the DQS signal and the DQ signal, so the phase of the DQS signal and the DQ signal needs to be trained. Due to different NAND manufacturers and different specifications, the parameters of each manufacturer also have certain deviations.

[0003] In the prior art, the timing of DQ and DQS is trained within a certain range by the delay chain. The timing adjusted in this way depends on the size of the delay chain inside the device. However, in low-speed mode, if the delay chain is relied on alone, the timing of DQ and DQS cannot be adjusted to the specified range while meeting the PPA index. In addition, the NAND FLASH of different manufacturers may be different, and the range may also be biased, resulting in that the adjustment range of the delay chain may not necessarily meet the needs of each manufacturer in low-speed mode, and the applicability is low.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0005] The object of the present invention is to provide an ONFI PHY training method, ONFI PHY, chip and electronic device to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A training method for ONFI PHY, applicable to OFI interface NAND in mobile devices, characterized in that the training method comprises the following steps:

[0008] Generate interface data signal, interface control signal and data clock signal according to user instructions, and send the interface data signal, interface control signal and data clock signal to OFI interface;

[0009] The OFI interface sends the interface data signal and the data clock signal to the input end of the NAND, and the NAND generates the flash memory data signal and the flash memory clock signal at different output ports according to the interface data signal and the data clock signal;

[0010] The phase relationship between the interface data signal and the data clock signal is adjusted by changing the initial phase of the interface control signal, thereby adjusting the phase deviation between the flash memory data signal and the flash memory clock signal;

[0011] The phase deviation of the flash memory data signal and the flash memory clock signal is collected and compared with a preset deviation threshold to obtain an interface control signal that meets the deviation threshold.

[0012] Preferably, the data clock signal is a slow signal at the OFI interface.

[0013] Preferably, the NAND includes a NAND controller and a NAND physical layer, and the OFI interface is used to implement communication between the NAND controller and the NAND physical layer.

[0014] Preferably, when the interface control signal is at a rising edge, the NAND physical layer collects the interface data signal.

[0015] Preferably, the NAND physical layer acquires the interface data signal, latches it and sends it to the output end of the NAND, and the NAND physical layer acquires the data clock signal, transparently transmits it and sends it to the output end of the NAND.

[0016] Preferably, the interface control signal is generated by a NAND controller.

[0017] An ONFI PHY, wherein the ONFI PHY is communicatively connected to a memory controller and a NADN Flash respectively, and the ONFI PHY comprises a communicatively connected signal module, a first data processing module, a second data processing module, and a third data processing module;

[0018] The signal module is used to generate an interface data signal, an interface control signal, and a data clock signal according to a user instruction, and send the interface data signal, the interface control signal, and the data clock signal to the OFI interface;

[0019] The first data processing module is used to send the interface data signal and the data clock signal to the input end of the NAND through the OFI interface, and the NAND generates a flash memory data signal and a flash memory clock signal at different output ports according to the interface data signal and the data clock signal;

[0020] The second data processing module is used to adjust the phase relationship between the interface data signal and the data clock signal by changing the initial phase of the interface control signal, thereby adjusting the phase deviation between the flash memory data signal and the flash memory clock signal;

[0021] The third data processing module is used to collect the phase deviation between the flash memory data signal and the flash memory clock signal, and compare them with a preset deviation threshold to obtain an interface control signal that meets the deviation threshold.

[0022] A chip comprises a memory controller and the ONFI PHY according to claim 7, wherein the memory controller is communicatively connected with the ONFI PHY.

[0023] An electronic device comprises a NADN Flash and the chip according to claim 8, wherein the NADN Flash is communicatively connected with the ONFI PHY in the chip.

[0024] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention satisfies the timing requirements of tDS / tDH on the NAND side by controlling the phase relationship between the interface data signal and the data clock signal on the OFI interface by utilizing the NAND controller, thereby getting rid of the limitation of the delay chain in the traditional technology, and only requiring the controller to generate the interface control signal, with a small amount of logic, a faster response speed, and the ability to adapt to NAND FLASH particles from different manufacturers, and having high applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of the process of the present invention;

[0026] Figure 2 It is a schematic diagram of a signal timing diagram in the present invention;

[0027] Figure 3 It is a schematic diagram of the process of the prior art. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0029] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. Example

[0030] See also Figure 1 - Figure 3 , the present invention provides a technical solution:

[0031] A training method for ONFI PHY, ONFI PHY, chip and electronic device are applicable to OFI interface NAND in mobile devices. The NAND includes a NAND controller and a NAND physical layer. The NAND controller is a combination of hardware and software for controlling the NAND. The NAND physical layer is used to convert data from a frame of a logical layer into a signal that can be transmitted on a physical medium. The OFI interface is used to realize communication between the NAND controller and the NAND physical layer. The training method includes the following steps:

[0032] According to user instructions, the interface data signal OFI_wrdata, the interface control signal OFI_wrdata_EN, and the data clock signal OFI_DQS are generated, and the interface data signal OFI_wrdata, the interface control signal OFI_wrdata_EN, and the data clock signal OFI_DQS are sent to the OFI interface. The data clock signal OFI_DQS is a slow signal at the OFI interface. The interface control signal OFI_wrdata_EN is generated by the NAND controller, and when the interface control signal OFI_wrdata_EN is a rising edge, the NAND physical layer collects the interface data signal OFI_wrdata, thereby using the interface control signal OFI_wrdata_EN to control the transmission of the interface data signal OFI_wrdata, thereby realizing the change of the phase of the interface data signal OFI_wrdata.

[0033] The OFI interface sends the interface data signal OFI_wrdata and the data clock signal OFI_DQS to the input end of NAND. The NAND physical layer collects the interface data signal OFI_wrdata, latches it, and sends it to the output end of NAND to generate the flash data signal PAD_DQ. Since the physical layer of NAND latches the interface data signal OFI_wrdata, the flash data signal PAD_DQ will not change before the second rising edge of the interface control signal OFI_wrdata_EN. The NAND physical layer collects the data clock signal OFI_DQS, transmits it transparently, and sends it to the output end of NAND to generate the flash clock signal PAD_DQS. Since the physical layer of NAND transparently transmits the data clock signal OFI_DQS, the frequency, phase and other properties of the flash clock signal PAD_DQS are the same as those of the data clock signal OFI_DQS.

[0034] The present invention also provides an ONFI PHY, which is communicatively connected to a memory controller and a NADN Flash respectively, and comprises a communicatively connected signal module, a first data processing module, a second data processing module and a third data processing module.

[0035] The signal module is used to generate an interface data signal, an interface control signal, and a data clock signal according to a user instruction, and send the interface data signal, the interface control signal, and the data clock signal to the OFI interface. The first data processing module is used to send the interface data signal and the data clock signal to the input end of the NAND through the OFI interface. The NAND generates a flash memory data signal and a flash memory clock signal at different output ports according to the interface data signal and the data clock signal. The second data processing module is used to adjust the phase relationship between the interface data signal and the data clock signal by changing the initial phase of the interface control signal, thereby adjusting the phase deviation of the flash memory data signal and the flash memory clock signal. The third data processing module is used to collect the phase deviation of the flash memory data signal and the flash memory clock signal, and compare it with a preset deviation threshold to obtain an interface control signal that meets the deviation threshold.

[0036] The present invention also provides a chip and an electronic device, the chip comprising a memory controller and the ONFI PHY described in claim 7, the memory controller is communicatively connected to the ONFI PHY, the electronic device comprises a NADN Flash and the chip described in claim 8, the NADN Flash is communicatively connected to the ONFI PHY in the chip.

[0037] Reference Figure 2 It can be seen from the timing diagram that when the first rising edge of the interface control signal OFI_wrdata_EN arrives, the NAND physical layer collects the interface data signal OFI_wrdata, the sampling data is data0, the sampled data data0 is latched and sent to the output end of the NAND, and the generated flash data signal PAD_DQ is also equal to data0, until the second rising edge of the interface control signal OFI_wrdata_EN arrives, the NAND physical layer collects the interface data signal OFI_wrdata again, the sampling data is data1, the sampled data data1 is latched and sent to the output end of the NAND, so that the flash data signal PAD_DQ changes from data0 to data1, and the initial phases of the interface control signal OFI_wrdata_EN, the interface data signal OFI_wrdata, and the flash data signal PAD_DQ are the same.

[0038] Since the phases of the data clock signal OFI_DQS and the flash clock signal PAD_DQS are not affected by the interface control signal OFI_wrdata_EN, the phase relationship between the interface data signal OFI_wrdata and the data clock signal OFI_DQS can be adjusted by changing the initial phase of the interface control signal OFI_wrdata_EN, thereby adjusting the phase deviation of the flash data signal PAD_DQ and the flash clock signal PAD_DQS, and then comparing the phase deviation with the preset deviation threshold to obtain an interface control signal whose initial phase can meet the deviation threshold. The deviation threshold includes the range of NAND's data setup time tDS and data retention time tDH, which can be obtained from the product manual provided by the NAND manufacturer.

[0039] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0040] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by computer software, electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraints of the technical solution.

[0041] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0042] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A training method for ONFI PHY, applicable to OFI interface NAND in mobile devices, characterized in that: The training method comprises the following steps: Generate interface data signal, interface control signal and data clock signal according to user instructions, and send the interface data signal, interface control signal and data clock signal to OFI interface; The OFI interface sends the interface data signal and the data clock signal to the input end of the NAND, and the NAND generates the flash memory data signal and the flash memory clock signal at different output ports according to the interface data signal and the data clock signal; The phase relationship between the interface data signal and the data clock signal is adjusted by changing the initial phase of the interface control signal, thereby adjusting the phase deviation between the flash memory data signal and the flash memory clock signal; The phase deviation of the flash memory data signal and the flash memory clock signal is collected and compared with a preset deviation threshold to obtain an interface control signal that meets the deviation threshold.

2. The ONFI PHY training method according to claim 1, characterized in that: The data clock signal is a slow signal at the OFI interface.

3. The ONFI PHY training method according to claim 1, characterized in that: The NAND includes a NAND controller and a NAND physical layer, and the OFI interface is used to implement communication between the NAND controller and the NAND physical layer.

4. The ONFI PHY training method according to claim 3, characterized in that: When the interface control signal is at a rising edge, the NAND physical layer collects the interface data signal.

5. The ONFI PHY training method according to claim 3, characterized in that: The NAND physical layer acquires the interface data signal, latches it and sends it to the output end of the NAND. The NAND physical layer acquires the data clock signal, transmits it transparently and sends it to the output end of the NAND.

6. The ONFI PHY training method according to claim 3, characterized in that: The interface control signal is generated by a NAND controller.

7. An ONFI PHY, characterized in that: The ONFI PHY is respectively connected to the memory controller and the NADN Flash for communication, and the ONFI PHY includes a signal module, a first data processing module, a second data processing module and a third data processing module for communication; The signal module is used to generate an interface data signal, an interface control signal, and a data clock signal according to a user instruction, and send the interface data signal, the interface control signal, and the data clock signal to the OFI interface; The first data processing module is used to send the interface data signal and the data clock signal to the input end of the NAND through the OFI interface, and the NAND generates a flash memory data signal and a flash memory clock signal at different output ports according to the interface data signal and the data clock signal; The second data processing module is used to adjust the phase relationship between the interface data signal and the data clock signal by changing the initial phase of the interface control signal, thereby adjusting the phase deviation between the flash memory data signal and the flash memory clock signal; The third data processing module is used to collect the phase deviation between the flash memory data signal and the flash memory clock signal, and compare them with a preset deviation threshold to obtain an interface control signal that meets the deviation threshold.

8. A chip, characterized in that: The device comprises a memory controller and the ONFI PHY according to claim 7, wherein the memory controller is communicatively connected with the ONFI PHY.

9. An electronic device, characterized in that: The invention comprises NADN Flash and the chip according to claim 8, wherein the NADNFlash is communicatively connected with the ONFI PHY in the chip.