A NAND Flash controller interface circuit and flash memory system

By designing a command address timing generation circuit in the NAND Flash controller interface circuit, determining the time parameters of the target interface mode according to the interface selection signal, the multiplexing of SDR, NV-DDR2, and NV-DDR3 modes is realized, and the circuit after interface switching is solved The problem of resource waste has improved resource utilization.

CN112925483BActive Publication Date: 2024-11-08INST OF MICROELECTRONICS CHINESE ACAD OF SCI LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110327090.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-26
Publication Date
2024-11-08
Estimated Expiration
2041-03-26

AI Technical Summary

Technical Problem

In the existing NAND Flash controller design, the timing generation circuits under different data interfaces are implemented by instructions, addresses, and data paths, resulting in other unused timing generation circuits being idle after the interface switch, wasting circuit resources.

Method used

Design a NAND Flash controller interface circuit, including a command address timing generation circuit, which can determine the time parameters of the target interface mode according to the interface selection signal, and generate the command period timing and address period timing of the target interface mode according to the target interface mode, so as to realize the circuit The module is multiplexed and supports SDR, NV-DDR2, NV-DDR3 modes.

Benefits of technology

Through the multiplexing of circuit modules, circuit resources are saved, design is simplified, circuit utilization is improved, and redundant design of multiple target interface modules is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112925483B_ABST
    Figure CN112925483B_ABST
Patent Text Reader

Abstract

The present application discloses a NAND Flash controller interface circuit and a flash memory system. The NAND Flash controller interface circuit includes a command address timing generation circuit, wherein the command address timing generation circuit can determine the time parameters corresponding to the target interface mode according to the interface selection signal, and generate the command cycle timing and address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode. The target interface mode can be any one of the SDR mode, NV‑DDR2 mode, and NV‑DDR3 mode. In this way, the command address timing generation circuit can determine the corresponding time parameters according to the interface selection signal, and work under multiple target interface modes according to multiple time parameters, thereby realizing the reuse of circuit modules, and there is no need to set different circuit modules corresponding to multiple target interface modules, thereby saving circuit resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology and, in particular, to a NAND Flash controller interface circuit and a flash memory system. Background Art

[0002] Flash memory, especially NAND flash memory, is a type of non-volatile memory that is widely used in storage fields such as mobile phones, laptops, and cloud storage. With the update of NAND Flash technology, the design of NAND Flash controllers is becoming increasingly important for improving NAND Flash performance.

[0003] The Open NAND Flash Interface (ONFI) specification is a Flash memory interface standard. It is a standard advocated by Intel to unify the chaotic flash memory interfaces. Currently, the data interface of the ONFI protocol has developed to NV-DDR3, and different data interfaces have different time modes. In the ONFI protocol, NAND Flash supports three data interfaces:

[0004] ① When the voltage VccQ=3.3V, it enters SDR mode after power-on initialization is completed, and it can switch between SDR and NV-DDR; ② When the voltage VccQ=1.8V, it enters SDR mode after power-on initialization is completed, and it can switch between SDR and NV-DDR, SDR and NV-DDR2; ③ When the voltage VccQ=1.2v, it enters NV-DDR3 mode after power-on initialization, and the data interface no longer switches.

[0005] At present, the mainstream NAND Flash in the industry mainly supports SDR and NV-DDR2 / 3 data interfaces. Therefore, the present invention is mainly based on the research of SDR and NV-DDR2 / 3 data interfaces.

[0006] In the existing controller design, the timing generation circuits under different data interfaces are implemented by four parts: instruction, address, data input, and data output. In the process of mode switching, the timing generation circuits of the command cycle and address cycle are only used within the time under the corresponding data interface. For example, when the SDR data interface is switched to the NV-DDR2 data interface, the SDR timing generation circuit is in an idle state, and vice versa.

[0007] For the timing generation circuit of the controller, since the operation of NAND Flash only corresponds to one data interface at the same time, different data interface implementations correspond to different circuits. Therefore, after the interface is switched, other unused timing generation circuits will be idle, which wastes circuit resources. Summary of the invention

[0008] In view of this, the present application provides a NAND Flash controller interface circuit and a flash memory system, which can save circuit resources.

[0009] The present application provides a NAND Flash controller interface circuit, including:

[0010] A command address timing generation circuit is used to determine the time parameters corresponding to the target interface mode according to the interface selection signal, and generate the command cycle timing and address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode; the target interface mode is any one of the SDR mode, NV-DDR2 mode, and NV-DDR3 mode.

[0011] Optionally, after power-on initialization is completed, the initial interface mode is used as the target interface mode; wherein the target interface mode is the SDR mode or the NV-DDR3 mode.

[0012] Optionally, the NAND Flash controller interface circuit further includes:

[0013] A clock switching circuit is used to perform clock switching according to the interface selection signal when the first interface mode is switched to the second interface mode, so that the time parameters of the target interface mode are switched from the time parameters of the first interface mode to the time parameters of the second interface mode.

[0014] Optionally, the first interface mode is SDR mode, and the second interface mode is NV-DDR2 mode; or, the first interface mode is NV-DDR2 mode, and the second interface mode is SDR mode.

[0015] Optionally, the clock switching circuit includes: a first AND gate circuit, a second AND gate circuit, a third AND gate circuit, a fourth AND gate circuit, a first D flip-flop, a second D flip-flop, a third D flip-flop, a fourth D flip-flop, a NOT gate circuit, and an OR gate circuit;

[0016] The interface selection signal is input to the first AND gate circuit, and is input to the second AND gate circuit through the NOT gate circuit;

[0017] The output end of the first AND gate circuit is connected to the D end of the first D flip-flop, the first clock signal is input to the clock input end of the first D flip-flop, the Q end of the first D flip-flop is connected to the D end of the second D flip-flop, the negation of the first clock signal is input to the clock input end of the second D flip-flop, the Q end of the second D flip-flop is connected to the input end of the third AND gate circuit, and the first clock signal is input to the input end of the third AND gate circuit; the first clock signal is a clock signal corresponding to the first interface mode;

[0018] The output end of the second AND gate circuit is connected to the D end of the third D flip-flop, the second clock signal is input to the clock input end of the third D flip-flop, the Q end of the third D flip-flop is linked to the D end of the fourth D flip-flop, the negation of the second clock signal is input to the clock input end of the fourth D flip-flop, the Q end of the fourth D flip-flop is connected to the input end of the fourth AND gate circuit, and the second clock signal is input to the input end of the fourth AND gate circuit; the second clock signal is a clock signal corresponding to the second interface mode;

[0019] The Q-negative terminal of the second D flip-flop is connected to the input terminal of the second AND gate circuit, and the Q-negative terminal of the fourth D flip-flop is connected to the input terminal of the first AND gate circuit;

[0020] The output end of the third AND gate circuit is connected to the input end of the OR gate circuit, the output end of the fourth AND gate circuit is connected to the input end of the OR gate circuit, and the output end of the OR gate circuit serves as the output end of the clock switching circuit.

[0021] Optionally, the target interface mode is based on the ONFI protocol.

[0022] Optionally, also include:

[0023] An SDR data path, used to generate an SDR data input timing or an SDR data output timing in an SDR mode;

[0024] The NV-DDR2 / NV-DDR3 data path is used to generate NV-DDR2 / NV-DDR3 data input timing or NV-DDR2 / NV-DDR3 data output timing in the NV-DDR2 / NV-DDR3 mode.

[0025] Optionally, the command cycle timing and address cycle timing corresponding to the target interface mode meet the time parameters of multiple time modes in the target interface mode.

[0026] Optionally, when the target interface mode is the SDR mode, the time modes of the target interface mode include 6 types; when the target interface mode is the NV-DDR2 mode or the NV-DDR3 mode, the time modes of the target interface mode include 13 types.

[0027] The embodiment of the present application also provides a flash memory system, including a NAND Flash flash memory unit, a controller and the NAND Flash controller interface circuit; the NAND Flash controller interface circuit connects the NAND Flash flash memory unit and the controller.

[0028] In summary, the present application discloses a NAND Flash controller interface circuit and a flash memory system. The NAND Flash controller interface circuit includes a command address timing generation circuit, wherein the command address timing generation circuit can determine the time parameters corresponding to the target interface mode according to the interface selection signal, and generate the command cycle timing and address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode. The target interface mode can be any one of the SDR mode, NV-DDR2 mode, and NV-DDR3 mode. In this way, the command address timing generation circuit can determine the corresponding time parameters according to the interface selection signal, and work under multiple target interface modes according to multiple time parameters, thereby realizing the multiplexing of circuit modules. There is no need to set different circuit modules corresponding to multiple target interface modules, thereby saving circuit resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 It is a structural schematic diagram of a current controller interface circuit;

[0031] Figure 2 A schematic diagram of the structure of a NAND Flash controller interface circuit disclosed in this application;

[0032] Figure 3 It is a schematic diagram of the SDR command cycle timing and the SDR address cycle timing;

[0033] Figure 4 It is a schematic diagram of NV-DDR2 / 3 command cycle timing and NV-DDR2 / 3 address cycle timing;

[0034] Figure 5 It is a schematic diagram of the SDR and NV-DDR2 / 3 command address timing;

[0035] Figure 6 It is a schematic diagram of the working process of the NAND Flash controller interface circuit in the scenario of switching from SDR mode to NV-DDR2 mode;

[0036] Figure 7 It is a schematic diagram of the working process of the NAND Flash controller interface circuit in the NV-DDR3 mode scenario;

[0037] Figure 8 A schematic diagram of the structure of a clock switching circuit provided in an embodiment of the present application;

[0038] Fig. 9 A schematic diagram of the structure of a flash memory system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] At present, the data interface of the ONFI protocol has developed to NV-DDR3, and different data interfaces have different time modes. In the ONFI protocol, NAND Flash supports three data interfaces:

[0041] ① When the voltage VccQ=3.3V, it enters SDR mode after power-on initialization is completed, and it can switch between SDR and NV-DDR; ② When the voltage VccQ=1.8V, it enters SDR mode after power-on initialization is completed, and it can switch between SDR and NV-DDR, SDR and NV-DDR2; ③ When the voltage VccQ=1.2v, it enters NV-DDR3 mode after power-on initialization, and the data interface no longer switches.

[0042] In the existing controller design, the timing generation circuits under different data interfaces are respectively implemented by three parts: instruction, address, and data path. In the process involving mode switching, the timing generation circuits of the command cycle and the address cycle are respectively used only within the time under the corresponding data interface. Since the timing of the NV-DDR2 and NV-DDR3 data interfaces in the ONFI protocol are exactly the same, the present invention relates to the timing description of these two data interfaces, which are collectively referred to as NV-DDR2 / 3 data interfaces.

[0043] refer to Figure 1 As shown, it is a structural diagram of a current controller interface circuit. The controller interface circuit 100 includes a timing generation circuit. The timing generation circuit includes an SDR command timing generation circuit, an SDR address timing generation circuit, an SDR data path, an NV-DDR2 / 3 command timing generation circuit, an NV-DDR2 / 3 address timing generation circuit, and an NV-DDR2 / 3 data path. When the SDR data interface is switched to the NV-DDR2 data interface, the SDR timing generation circuit is in an idle state, and vice versa.

[0044] For the timing generation circuit of the controller interface circuit, when NAND Flash operates under the SDR data interface, a set of command, address, and data path timing generation circuits are required; at the same time, when operating under the NV-DDR2 / 3 data interface, a set of command, address, and data path timing generation circuits are also required. From the analysis of the SDR and NV-DDR2 / 3 interface control timing diagrams in the ONFI protocol, the functions and timings of the two are basically the same, and the main difference lies in the different operating frequencies. However, in traditional designs, there are both SDR interface control circuits and DDR2 / 3 interface control circuits. Therefore, even if only one data interface can be used at the same time, the control circuit of the other data interface will occupy a part of the circuit resources, resulting in additional overhead.

[0045] Based on the above technical problems, an embodiment of the present application provides a NAND Flash controller interface circuit and a flash memory system, wherein the NAND Flash controller interface circuit includes a command address timing generation circuit, wherein the command address timing generation circuit can determine the time parameters corresponding to the target interface mode according to the interface selection signal, and generate the command cycle timing and address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode. The target interface mode can be any one of the SDR mode, NV-DDR2 mode, and NV-DDR3 mode. In this way, the command address timing generation circuit can determine the corresponding time parameters according to the interface selection signal, and work under multiple target interface modes according to multiple time parameters, thereby realizing the multiplexing of circuit modules. There is no need to set different circuit modules corresponding to multiple target interface modules, thereby saving circuit resources.

[0046] like Figure 2 As shown, it is a schematic diagram of the structure of a NAND Flash controller interface circuit disclosed in the present application. The NAND Flash controller interface circuit 200 may include:

[0047] The command address timing generation circuit is used to determine the time parameters corresponding to the target interface mode according to the interface selection signal, and generate the command cycle timing and address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode; the target interface mode is any one of the SDR mode, NV-DDR2 mode, and NV-DDR3 mode. That is, the SDR mode, NV-DDR2 mode, and NV-DDR3 mode can share a set of command and address timing generation circuits, namely the aforementioned command address timing generation circuit.

[0048] In the embodiment of the present application, the interface mode can be based on the ONFI protocol, and the interface mode can include SDR mode, NV-DDR2 mode, and NV-DDR3 mode. Some of these interface modes can be switched to each other to achieve different storage requirements. Each interface mode can include multiple time modes, each time mode has different time parameters, and the time parameter under a time mode is usually an integer number of clock cycles under the time mode. Then each time mode can correspond to a clock cycle. The time modes under different interface modes are different, and the time parameters are also different. The command cycle timing and address cycle timing generated in each interface mode need to meet the time parameters under multiple time modes of the interface mode.

[0049] Among them, the time period is different in different time modes. For example, there are 6 time modes (modeO-mode5) in the SDR data interface. Table 1 shows the clock period (tCLK) in each time mode, in ns.

[0050] Table 1 Clock cycles in various time modes under the SDR data interface

[0051] mode modeo model mode2 mode3 mode4 mode5 tCLK(ns) 100 50 35 30 25 20

[0052] There are 13 time modes (modeO-mode1 2) under the NV-DDR2 / 3 data interface. Table 2 shows the clock cycle (tCLK) under each time mode, in ns.

[0053] Table 2 Clock cycles in various time modes of NV-DDR2 / 3 data interface

[0054]

[0055] In the embodiment of the present application, the NAND Flash controller interface circuit may further include a counter for controlling the time parameters in each time mode. Specifically, the counter may count the number of clock cycles, so that the time parameters in each time mode may be controlled to be integer multiples of the clock cycles in the time mode using the counting result of the counter. Of course, in some scenarios, the time parameters may be controlled in other ways without using a counter. The application of the counter is illustrated below.

[0056] Taking the tCS time parameter as an example, tCS represents the establishment time of CE n, such as Figure 3 Table 3 shows the time requirements that tCS needs to meet in SDR interface mode. It can be seen that in all time modes, tCS needs to meet: tCS ≥ T CLK (T CLK is the clock cycle). Therefore, in the design, the count value of the counter that controls the time parameter tCS needs to be greater than or equal to 1. The same applies to other important time parameters.

[0057] Table 3 Time requirements that tCS needs to meet

[0058] Mode Mode0 Model Mode2 Mode3 Mode4 Mode5 <![CDATA[T CLK (ns)]]> 100 50 35 30 25 20 tCS(ns) ≥70 ≥35 ≥25 ≥25 ≥70 ≥15

[0059] In the existing controller design, the timing generation circuits under different data interfaces are implemented by three parts: instruction, address, and data path. In the process of mode switching, the timing generation circuits of the command cycle and address cycle are only used within the time under the corresponding data interface. In other words, the different timing generation circuits corresponding to different data interfaces can include four timings in the prior art: SDR command cycle timing, SDR address cycle timing, NV-DDR2 / 3 command cycle timing, and NV-DDR2 / 3 address cycle timing. The inventors have found through research that these four timings are highly similar.

[0060] refer to Figure 3 As shown, it is a schematic diagram of the SDR command cycle timing and the SDR address cycle timing, where: Figure 3 3A in is the SDR command cycle timing, Figure 3 3B in the figure is the SDR address cycle timing, where, except for slightly different CLE and ALE signals under the SDR data interface, other time parameters and timing are basically the same. Therefore, the logical relationship between the command cycle timing and the address cycle timing under the SDR data interface is the same, and the two parts can be combined into the same circuit module.

[0061] refer to Figure 4 As shown, it is a schematic diagram of NV-DDR2 / 3 command cycle timing and NV-DDR2 / 3 address cycle timing, where: Figure 44A in is the NV-DDR2 / 3 command cycle timing. Figure 4 4B in the figure is the NV-DDR2 / 3 address cycle timing. Similar to the idea in the SDR interface mode, the same circuit module can be used to complete the generation of NV-DDR2 / 3 data interface commands and address timing.

[0062] refer to Figure 5 As shown, it is a schematic diagram of the SDR and NV-DDR2 / 3 command address timing, where: Figure 5 The 5A in it is the SDR command cycle timing; Figure 5 5B in the figure is the NV-DDR2 / 3 command cycle timing. Comparing the two figures, we can see that except for the difference in timing parameters, the signal logic relationship of the two interfaces is basically the same, so the timing implementation of the two interfaces can use the same circuit module.

[0063] Therefore, in an embodiment of the present application, multiple generating circuits of the four timings, namely, SDR command cycle timing, SDR address cycle timing, NV-DDR2 / 3 command cycle timing, and NV-DDR2 / 3 address cycle timing, can be integrated into one circuit module. For example, the generating circuits of SDR command cycle timing and SDR address cycle timing can be integrated into the same circuit module, and the generating circuits of NV-DDR2 / 3 command cycle timing and NV-DDR2 / 3 address cycle timing can also be integrated into the same circuit module. Of course, the generating circuits of these four timings can also be integrated into the same circuit module.

[0064] However, although the four timings of SDR command cycle timing, SDR address cycle timing, NV-DDR2 / 3 command cycle timing, and NV-DDR2 / 3 address cycle timing are highly similar, they are still slightly different in the setting of time mode and specific time parameters. Therefore, a configurable counter is added to the integrated circuit module to meet the requirements of time mode and time parameters.

[0065] Since different circuit modules in the prior art are integrated into the same circuit module and can be reused in different interface modes, the circuit design can be simplified and the circuit utilization rate can be improved. The integrated circuit module is called a command address timing generation circuit, which can generate a command cycle timing and an address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode, wherein the target interface mode is any one of the SDR mode, the NV-DDR2 mode, and the NV-DDR3 mode.

[0066] That is to say, when the target interface mode is SDR mode, the command address timing generation circuit can generate SDR command cycle timing and SDR address cycle timing; when the target interface mode is NV-DDR2 / 3 mode, the command address timing generation circuit can generate NV-DDR2 / 3 command cycle timing and NV-DDR2 / 3 address cycle timing, and so on.

[0067] In the scenario where the NAND Flash controller interface circuit includes a counter, the time parameters can be characterized by the clock cycles in each time mode of the counter and the target interface mode, the time cycle is the product of the counting result and the clock cycle, and the command cycle timing and address cycle timing corresponding to the target interface mode meet the time parameters of multiple time modes in the target interface mode. In this way, the command address timing generation circuit can work under the time parameters of multiple target interface modes through clock switching and setting of counter values, so as to be multiplexed under multiple target interface modes.

[0068] In order to be able to smoothly multiplex the command address timing generation circuit, clock switching is required during the data interface switching process. Therefore, the NAND Flash controller interface circuit in the embodiment of the present application may include a clock switching circuit. The clock switching circuit can perform clock switching according to the interface selection signal, so that the command address timing generation circuit can obtain the time parameters of the switched target interface mode after the data interface is switched. In this way, the command address timing generation circuit can use the time parameters corresponding to the target interface mode to generate the command cycle timing and address cycle timing corresponding to the target interface mode. The generated command cycle timing and address cycle timing corresponding to the target interface mode meet the time parameters under multiple time modes under the target interface.

[0069] In the embodiment of the present application, the NAND Flash controller interface circuit may further include an interface selection signal generating unit for generating an interface selection signal according to a target interface mode, so that the clock switching circuit may perform clock switching according to the interface selection signal. The interface selection signal may be an ONFI instruction, and the clock switching circuit may determine the time parameter corresponding to the target interface mode according to the ONFI instruction.

[0070] At present, when the voltage VccQ=1.8V, the SDR mode is entered after the power-on initialization is completed, and the SDR and NV-DDR2 can be switched; when the voltage VccQ=1.2v, the NV-DDR3 mode is entered after the power-on initialization is completed, and the data interface is no longer switched.

[0071] In a specific implementation, when the first interface mode is switched to the second interface mode, the second interface mode can be used as the target interface mode, that is, the target interface mode is switched from the first interface mode to the second interface mode, and the time parameters of the target interface mode are switched from the time parameters of the first interface mode to the time parameters of the second interface mode. The first interface mode can be an SDR mode, and the second interface mode can be an NV-DDR2 mode, or the first interface mode can be an NV-DDR2 mode, and the second interface mode can be an SDR mode.

[0072] In a specific implementation, after the power-on initialization is completed, the initial interface mode can be used as the target interface mode. For example, the initial interface mode can be the SDR mode or the NV-DDR3 mode.

[0073] The working process of the NAND Flash controller interface circuit provided in the embodiment of the present application is introduced below based on specific examples.

[0074] Example 1: Scenario of switching from SDR mode to NV-DDR2 mode

[0075] refer to Figure 6 As shown in FIG. 1 , it is a schematic diagram of the working process of the NAND Flash controller interface circuit in the scenario where the SDR mode is switched to the NV-DDR2 mode, where Figure 6 6A in FIG. 6A is the working process of the NAND Flash controller interface circuit in the prior art. Figure 6 6B is the working process of the NAND Flash controller interface circuit in the embodiment of the present application.

[0076] refer to Figure 6 As shown in 6A, after power-on initialization, the SDR mode can be entered. In the prior art, the SDR command cycle timing generation circuit is used to generate the SDR command cycle timing according to the ONFI instruction, and the SDR address cycle timing generation circuit is used to generate the SDR address cycle timing, and the SDR data path is used to enter the SDR data transmission cycle, and then the SDR mode can be switched to the NV-DDR2 mode, and the NV-DDR2 command cycle timing generation circuit is used to generate the NV-DDR2 command cycle timing according to the ONFI instruction, and the NV-DDR2 address cycle timing is generated by the NV-DDR2 address cycle timing generation circuit, and the NV-DDR2 data path is used to enter the NV-DDR2 data transmission cycle.

[0077] In the embodiment of the present application, the SDR command cycle timing generating circuit, the SDR address cycle timing generating circuit, the NV-DDR2 command cycle timing generating circuit, and the NV-DDR2 address cycle timing generating circuit can be integrated into a command address timing generating circuit. The command address timing generating circuit can generate SDR command cycle timing and SDR address cycle timing in SDR mode, and generate NV-DDR2 command cycle timing and NV-DDR2 address cycle timing in NV-DDR2 mode.

[0078] Specifically, refer to Figure 6 As shown in 6B, after power-on initialization, it enters the SDR mode, and uses the command address timing generation circuit to generate SDR command cycle timing and SDR address cycle timing according to the ONFI instruction, and uses the SDR data path to enter the SDR data transmission cycle. After that, it can switch from the SDR mode to the NV-DDR2 mode, perform clock switching according to the ONFI instruction, and reuse the command address timing generation circuit to generate NV-DDR2 command cycle timing and NV-DDR2 address cycle timing, and use the NV-DDR2 data path to enter the NV-DDR2 data transmission cycle.

[0079] Example 2: (NV-DDR3) mode scenario

[0080] refer to Figure 7 As shown, it is a schematic diagram of the working process of the NAND Flash controller interface circuit in the NV-DDR3 mode scenario, where Figure 7 7A in FIG. 7A is the working process of the NAND Flash controller interface circuit in the prior art. Figure 7 7B in FIG. 7 is the working process of the NAND Flash controller interface circuit in the embodiment of the present application.

[0081] refer to Figure 7 As shown in 7A, after power-on initialization, the NV-DDR3 mode can be entered. In the prior art, the NV-DDR3 command cycle timing generation circuit is used to generate the NV-DDR3 command cycle timing according to the ONFI instruction, and the NV-DDR3 address cycle timing generation circuit is used to generate the NV-DDR3 address cycle timing, and the NV-DDR3 data path is used to enter the NV-DDR3 data transmission cycle.

[0082] In the embodiment of the present application, the NV-DDR3 command cycle timing generation circuit and the NV-DDR3 address cycle timing generation circuit can be integrated into a command address timing generation circuit, and the command address timing generation circuit generates NV-DDR3 command cycle timing and NV-DDR3 address cycle timing in the NV-DDR3 mode. Figure 7As shown in 7B, after power-on initialization, it enters the NV-DDR3 mode, generates the NV-DDR3 command cycle timing and the SDR address cycle timing using the command address timing generation circuit according to the ONFI instruction, and enters the NV-DDR3 data transmission cycle using the NV-DDR3 data path.

[0083] In the embodiment of the present application, the clock cycles corresponding to the time modes under the two data interfaces SDR and NV-DDR2 / 3 are quite different. If the command address timing generation module is reused, it will involve switching from the SDR clock to the NV-DDR2 / 3 clock. And directly switching the clock may generate glitches and functional errors. Therefore, the present invention introduces a glitch-free clock switching circuit to solve this problem. A typical glitch-free clock switching circuit is as follows Figure 8 As shown, glitch-free clock switching can be achieved regardless of whether the clock sources are related or not.

[0084] Specifically, the clock switching circuit includes: a first AND gate circuit, a second AND gate circuit, a third AND gate circuit, a fourth AND gate circuit, a first D flip-flop, a second D flip-flop, a third D flip-flop, a fourth D flip-flop, a NOT gate circuit, and an OR gate circuit;

[0085] The interface selection signal (SELECT) is input to the first AND gate circuit, and is input to the second AND gate circuit through the NOT gate circuit;

[0086] The output end of the first AND gate circuit is connected to the D end of the first D flip-flop, the first clock signal (CLK1) is input to the clock input end of the first D flip-flop, the Q end of the first D flip-flop is connected to the D end of the second D flip-flop, the negation of the first clock signal is input to the clock input end of the second D flip-flop, the Q end of the second D flip-flop is connected to the input end of the third AND gate circuit, and the first clock signal is input to the input end of the third AND gate circuit;

[0087] The output end of the second AND gate circuit is connected to the D end of the third D flip-flop, the second clock signal (CLK2) is input to the clock input end of the third D flip-flop, the Q end of the third D flip-flop is linked to the D end of the fourth D flip-flop, the negation of the second clock signal is input to the clock input end of the fourth D flip-flop, the Q end of the fourth D flip-flop is connected to the input end of the fourth AND gate circuit, and the second clock signal is input to the input end of the fourth AND gate circuit;

[0088] The Q-negative terminal of the second D flip-flop is connected to the input terminal of the second AND gate circuit, and the Q-negative terminal of the fourth D flip-flop is connected to the input terminal of the first AND gate circuit;

[0089] The output end of the third AND gate circuit is connected to the input end of the OR gate circuit, the output end of the fourth AND gate circuit is connected to the input end of the OR gate circuit, and the output end (CLKOUT) of the OR gate circuit serves as the output end of the clock switching circuit.

[0090] Of course, the above clock switching circuit is only an illustrative example. Other clock switching circuits can also be used in the embodiments of the present application, which will not be described in detail here.

[0091] In the embodiment of the present application, the NAND Flash controller interface circuit may further include:

[0092] An SDR data path, used to generate an SDR data input timing or an SDR data output timing in an SDR mode;

[0093] The NV-DDR2 / NV-DDR3 data path is used to generate NV-DDR2 / NV-DDR3 data input timing or NV-DDR2 / NV-DDR3 data output timing in the NV-DDR2 / NV-DDR3 mode.

[0094] The present application discloses a NAND Flash controller interface circuit, which includes a command address timing generation circuit, wherein the command address timing generation circuit can determine the time parameters corresponding to the target interface mode according to an interface selection signal, and generate the command cycle timing and address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode. The target interface mode can be any one of the SDR mode, NV-DDR2 mode, and NV-DDR3 mode. In this way, the command address timing generation circuit can determine the corresponding time parameters according to the interface selection signal, and work under multiple target interface modes according to multiple time parameters, thereby realizing the reuse of circuit modules, eliminating the need to set different circuit modules corresponding to multiple target interface modules, and saving circuit resources.

[0095] Based on the NAND Flash controller interface circuit provided in the above embodiment, the present application embodiment also provides a flash memory system, referring to Fig. 9 As shown, the flash memory system includes a NAND Flash memory unit 300 , a controller 400 and the aforementioned NAND Flash controller interface circuit 200 ; the NAND Flash controller interface circuit 200 connects the NAND Flash memory unit 300 and the controller 400 .

[0096] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the controller interface circuit disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the controller interface circuit part description.

[0097] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0098] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0099] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein.

[0100] Rather, it is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A NAND Flash controller interface circuit, characterized in that: include: A command address timing generation circuit is used to determine the time parameters corresponding to the target interface mode according to the interface selection signal, and generate the command cycle timing and address cycle timing corresponding to the target interface mode according to the time parameters corresponding to the target interface mode, so as to enter the data transmission cycle corresponding to the target interface mode; the target interface mode is any one of the SDR mode, NV-DDR2 mode, and NV-DDR3 mode, so that the command address timing generation circuit is multiplexed under the SDR mode, NV-DDR2 mode, and NV-DDR3 mode.

2. The controller interface circuit according to claim 1, characterized in that: After the power-on initialization is completed, the initial interface mode is used as the target interface mode; wherein the target interface mode is the SDR mode or the NV-DDR3 mode.

3. The controller interface circuit according to claim 1, characterized in that: Also includes: A clock switching circuit is used to perform clock switching according to the interface selection signal when the first interface mode is switched to the second interface mode, so that the time parameters of the target interface mode are switched from the time parameters of the first interface mode to the time parameters of the second interface mode.

4. The controller interface circuit according to claim 3, characterized in that: The first interface mode is the SDR mode, and the second interface mode is the NV-DDR2 mode; or, the first interface mode is the NV-DDR2 mode, and the second interface mode is the SDR mode.

5. The controller interface circuit according to claim 3, characterized in that: The clock switching circuit includes: a first AND gate circuit, a second AND gate circuit, a third AND gate circuit, a fourth AND gate circuit, a first D flip-flop, a second D flip-flop, a third D flip-flop, a fourth D flip-flop, a NOT gate circuit, and an OR gate circuit; The interface selection signal is input to the first AND gate circuit, and is input to the second AND gate circuit through the NOT gate circuit; The output end of the first AND gate circuit is connected to the D end of the first D flip-flop, the first clock signal is input to the clock input end of the first D flip-flop, the Q end of the first D flip-flop is connected to the D end of the second D flip-flop, the negation of the first clock signal is input to the clock input end of the second D flip-flop, the Q end of the second D flip-flop is connected to the input end of the third AND gate circuit, and the first clock signal is input to the input end of the third AND gate circuit; the first clock signal is a clock signal corresponding to the first interface mode; The output end of the second AND gate circuit is connected to the D end of the third D flip-flop, the second clock signal is input to the clock input end of the third D flip-flop, the Q end of the third D flip-flop is linked to the D end of the fourth D flip-flop, the negation of the second clock signal is input to the clock input end of the fourth D flip-flop, the Q end of the fourth D flip-flop is connected to the input end of the fourth AND gate circuit, and the second clock signal is input to the input end of the fourth AND gate circuit; the second clock signal is a clock signal corresponding to the second interface mode; The Q-negative terminal of the second D flip-flop is connected to the input terminal of the second AND gate circuit, and the Q-negative terminal of the fourth D flip-flop is connected to the input terminal of the first AND gate circuit; The output end of the third AND gate circuit is connected to the input end of the OR gate circuit, the output end of the fourth AND gate circuit is connected to the input end of the OR gate circuit, and the output end of the OR gate circuit serves as the output end of the clock switching circuit.

6. The controller interface circuit according to any one of claims 1 to 5, characterized in that: The target interface mode is based on the ONFI protocol.

7. The controller interface circuit according to any one of claims 1 to 5, characterized in that: Also includes: An SDR data path, used to generate an SDR data input timing or an SDR data output timing in an SDR mode; The NV-DDR2 / NV-DDR3 data path is used to generate NV-DDR2 / NV-DDR3 data input timing or NV-DDR2 / NV-DDR3 data output timing in the NV-DDR2 / NV-DDR3 mode.

8. The controller interface circuit according to any one of claims 1 to 5, characterized in that: The command cycle timing and address cycle timing corresponding to the target interface mode meet the time parameters of multiple time modes under the target interface mode.

9. The controller interface circuit according to claim 8, characterized in that: When the target interface mode is the SDR mode, the time modes of the target interface mode include 6 types; when the target interface mode is the NV-DDR2 mode or the NV-DDR3 mode, the time modes of the target interface mode include 13 types.

10. A flash memory system, characterized in that: It comprises a NAND Flash memory unit, a controller and a NAND Flash controller interface circuit as described in any one of claims 1 to 9; the NAND Flash controller interface circuit connects the NAND Flash memory unit and the controller.