ONFI PHY training device and method for fast switching frequency and Die
Through the design of components such as detection circuits and MUX circuits, the ONFI PHY training device is realized to quickly switch and store configuration values, solving the problems of delay and high power consumption during frequent switching in the existing technology, and improving the switching efficiency and energy efficiency of the system. .
Patent Information
- Application Number
- CN202410584610.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-12
AI Technical Summary
In the existing technology, when the ONFI PHY operating frequency and FlashDie are frequently switched, the initialization process needs to be restarted, resulting in large switching delays and high power consumption.
A fast switching frequency and Die ONFI PHY training device including a detection circuit, frequency selection circuit and storage circuit is designed. By triggering the operation on the rising edge or falling edge of the detection signal, the encoder converts 4bit data into 2bit data. Use MUX circuits and registers to store and synchronize training configuration values to avoid restarting the initialization process.
It realizes switching of training configuration values between different dies without restarting and initializing, saving frequency and die switching time and reducing system power consumption.
Smart Images

Figure CN118197385B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ONFI PHY training, and in particular to an ONFI PHY training device and method for rapidly switching frequency points and Die. Background Art
[0002] For the 3D NAND Flash particles currently on the market, a single channel can support 1 to multiple dies (such as 1die / channel, 2die / channel, 4die / channel) in the same package. UFS, SSD and other actual products have various forms, such as NAND Flash and SOC separate packaging, NAND Flash and SOC co-packaging. The stable operation of the entire system is inseparable from various trainings. At startup, a series of trainings such as initialization NAND DCC Training, Read Training and Write Training are required. For NV-LPDDR4, internal VREFQ training is also required.
[0003] In the prior art, by increasing the valid data windows of different dies, the training configuration value switching between different dies is realized. Even when the skew of different CEs is relatively large, the maximum valid data window can be obtained, thereby quickly and stably realizing the fast switching of single-channel multi-die training configurations and dynamic and seamless switching of different die configurations.
[0004] However, during the actual use of the entire system, the operating frequency of ONFI PHY and FlashDie need to be frequently switched. If each switch requires restarting the initialization process, it will cause a lot of switching delays and increase the power consumption of the entire system.
[0005] Based on this, an improved ONFI PHY training device and method for fast switching frequency and Die is designed, which does not require restarting the initialization process, thereby saving the switching time of frequency and Die and further reducing the power consumption of the system. Summary of the invention
[0006] The object of the present invention is to provide an ONFI PHY training device and method for fast switching of frequency points and Die, so as to solve the problems raised in the above background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] An ONFI PHY training device for fast switching frequency and Die, comprising:
[0009] A detection circuit, the detection circuit comprising four groups of cascaded D flip-flops, inverters and AND gate circuits, the D flip-flops and inverters of each group are cascaded, the output ends of the D flip-flops and inverters are cascaded with the input ends of the AND circuit, the input ends of the four groups of D flip-flops are sequentially cascaded with CE0, CE1, CE2 and CE3, the detection circuit is used to detect the rising edge or falling edge of the signal to trigger a corresponding operation, the detection circuit also includes an encoder, the input end of the encoder is cascaded with the output end of the AND circuit, and is used to convert 4-bit data generated by the detection circuit into 2-bit data;
[0010] A frequency point selection circuit, wherein the frequency point selection circuit is a first MUX circuit, wherein the SEL terminal, the input terminal and the output terminal of the encoder are cascaded, and are used to transmit the CE signal output by the encoder to the SEL terminal of the first MUX circuit, and control the output terminal of the first MUX circuit to output;
[0011] A storage circuit, wherein the storage circuit includes a second MUX circuit and a register, wherein the register includes template A, template B and template C inside, the SEL end of the second MUX circuit is cascaded with the output end of the first MUX circuit, and is used to transmit the data output by the first MUX circuit to the SEL end of the second MUX circuit, and control the output of the template A, template B and template C, the output end of the register is cascaded with the input end of the second MUX circuit, and is used to output the training configuration values stored in templates A, template B and template C to the input end of the second MUX circuit, the output end of the second MUX circuit is cascaded with a write calibration delay line, a read calibration delay line and a read data path first-in-first-out queue, respectively, the template A is used to transmit the stored training configuration value to the write calibration delay line, the template B is used to transmit the stored training configuration value to the read calibration delay line, and the template C is used to transmit the stored training configuration value to the read data path first-in-first-out queue.
[0012] Further, the template A is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0 to M, the addresses of Entry0 to M correspond to the addresses of frequency points 0 to M one by one, the data stored in the CE0, CE1, CE2 and CE3 signals in the template A are different, the template B is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0 to N. The addresses correspond, the addresses of Entry0~N correspond one-to-one to the addresses of frequency points 0~N, the data stored in the CE0, CE1, CE2 and CE3 signals in the template B are all different, the template C is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0~L, the addresses of the Entry0~L correspond one-to-one to the addresses of frequency points 0~L, and the data stored in the CE0, CE1, CE2 and CE3 signals in the template C are all different.
[0013] Furthermore, each die in the template A, template B, and template C stores a raining configuration value of bit[X:0], and the value of X in the bit[X:0] is determined according to the length of the longest delay line.
[0014] Furthermore, the number of Die layers corresponds to the number of CEs.
[0015] Furthermore, the encoder is a combinational digital logic circuit, and the combinational digital logic circuit is constructed using an AND gate circuit and a NOT gate circuit.
[0016] Furthermore, the first MUX circuit and the second MUX circuit are both 4-to-1 digital logic circuits.
[0017] An ONFI PHY training method for fast switching frequency and Die, the specific steps comprising:
[0018] S1. First, use NAND PHY to receive the CE0 signal of ONFI controller, that is, obtain CE0 of SOC when accessing through the detection circuit. When the detection circuit detects that the CE0 signal is triggered and is at a falling edge, it means that the system is operating the NAND Target corresponding to CE0. CE1, CE2, and CE3 all fail to detect a falling edge, indicating that the corresponding NANDTargets are not being operated. Then, the CE3, CE2, CE1, and CE0 detection circuits generate 4-bit data, and the corresponding binary number is 0001. The binary number 0001 is converted by the encoder into 2-bit data, and the corresponding binary number is 00.
[0019] S2. Then the encoder outputs the binary number 00 to the first MUX circuit. According to the setting, when the SEL end of the first MUX circuit receives the binary number 00 output by the encoder, the output end of the first MUX circuit is controlled to output the binary number 00, that is, the first frequency point;
[0020] S3. The first MUX circuit outputs the binary number 00 to the second MUX circuit, and the binary number 00 serves as the SEL terminal of the second MUX circuit to control the output of the CE signal in the control template A / B / C. According to the setting, the binary number 00 corresponds to CE0, CE0 corresponds to Die0, the address of the CE0 signal in template A corresponds to the address of the Entry0~M signal, the address of the CE0 signal in template B corresponds to the address of the Entry0~N signal, and the address of the CE0 signal in template C corresponds to the address of the Entry0~L signal. Then, the second MUX circuit synchronously outputs the configuration values in templates A, template B and template C to the corresponding write calibration delay line, read calibration delay line and read data path first-in-first-out queue;
[0021] S4. Similarly, when switching to CE1, CE2 and CE3, steps S1 to S3 are repeated.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] The present invention cascades a D flip-flop and an inverter, the output ends of the D flip-flop and the inverter are cascaded with the input end of the AND circuit, the input end of the D flip-flop is sequentially cascaded with the CE0 end, the CE1 end, the CE2 end and the CE3 end, the input end of the encoder is cascaded with the output end of the AND circuit, the SEL end and the input end of the first MUX circuit are cascaded with the output end of the encoder, the SEL end of the second MUX circuit is cascaded with the output end of the first MUX circuit, the output end of the register is cascaded with the input end of the second MUX circuit, and the output end of the second MUX circuit is cascaded with the write calibration delay line, the read calibration delay line and the read data path first-in-first-out queue, respectively. This can not only make up for the skew problem between different dies, increase the effective data windows of different dies, and realize the switching of training configuration values between different dies, but also when the training configuration value between different dies is switched, there is no need to restart the initialization process, thereby saving the switching time of the frequency point and the Die, and further reducing the power consumption of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A circuit diagram of the present invention;
[0025] Figure 2 is a waveform diagram of the present invention;
[0026] Figure 3 A schematic diagram of data transmission between the NAND PHY, memory controller and NAND Flash of the present invention;
[0027] Figure 4 It is a schematic diagram of data transmission between ONFI PHY and Flash Die of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] Example:
[0030] See also Figures 1 to 4 , the present invention provides a technical solution:
[0031] An ONFI PHY training device for fast switching of frequency and Die, such as Figure 1 As shown, including:
[0032] A detection circuit, the detection circuit comprising four groups of cascaded D flip-flops, inverters and AND gate circuits, the D flip-flops and inverters of each group are cascaded, the output ends of the D flip-flops and inverters are cascaded with the input ends of the AND circuit, the input ends of the four groups of D flip-flops are sequentially cascaded with CE0, CE1, CE2 and CE3, the detection circuit is used to detect the rising edge or falling edge of the signal to trigger a corresponding operation, the detection circuit also includes an encoder, the input end of the encoder is cascaded with the output end of the AND circuit, and is used to convert 4-bit data generated by the detection circuit into 2-bit data;
[0033] A frequency selection circuit, wherein the frequency selection circuit is a first MUX circuit, wherein a SEL terminal, an input terminal, and an output terminal of the encoder are cascaded, and are used to transmit a CE signal output by the encoder to the SEL terminal of the first MUX circuit, and control the output terminal of the first MUX circuit to output;
[0034] A storage circuit, wherein the storage circuit includes a second MUX circuit and a register, wherein the register includes template A, template B and template C inside, the SEL end of the second MUX circuit is cascaded with the output end of the first MUX circuit, and is used to transmit the data output by the first MUX circuit to the SEL end of the second MUX circuit, and control the output of the template A, template B and template C, the output end of the register is cascaded with the input end of the second MUX circuit, and is used to output the training configuration values stored in templates A, template B and template C to the input end of the second MUX circuit, the output end of the second MUX circuit is cascaded with a write calibration delay line, a read calibration delay line and a read data path first-in-first-out queue, respectively, the template A is used to transmit the stored training configuration value to the write calibration delay line, the template B is used to transmit the stored training configuration value to the read calibration delay line, and the template C is used to transmit the stored training configuration value to the read data path first-in-first-out queue.
[0035] Based on the above embodiments, Figure 1 As shown, the template A is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0 to M, the addresses of Entry0 to M correspond to the addresses of frequency points 0 to M one by one, the data stored in the CE0, CE1, CE2 and CE3 signals in the template A are different, the template B is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0 to N. The addresses of Entry0~N correspond to the addresses of frequency points 0~N one-to-one, the data stored in the CE0, CE1, CE2 and CE3 signals in the template B are all different, the template C is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0~L, the addresses of the Entry0~L correspond to the addresses of frequency points 0~L one-to-one, and the data stored in the CE0, CE1, CE2 and CE3 signals in the template C are all different.
[0036] In this embodiment, the address contents of Entry0 to M in CE0, CE1, CE2 and CE3 in template A are all different, the address contents of Entry0 to M in CE0, CE1, CE2 and CE3 in template B are all different, and the address contents of Entry0 to M in CE0, CE1, CE2 and CE3 in template C are all different.
[0037] Among them, a register generally refers to a hardware component used to store and process data. Template A, Template B and Template C, as templates of registers, refer to a standardized format or mode used when designing or describing registers. Template A, Template B and Template C can represent the name and bit width of the register.
[0038] Based on the above embodiments, Figure 1 As shown, each die in the template A, template B and template C stores a raining configuration value of bit[X:0], and the value of X in the bit[X:0] is determined according to the length of the longest delay line.
[0039] Based on the above embodiments, Figure 1 As shown, the number of Die layers corresponds to the number of CEs, that is, Die0 corresponds to CE0, Die1 corresponds to CE1, Die2 corresponds to CE2, and Die3 corresponds to CE3.
[0040] On the basis of the above embodiment, the encoder is a combinational digital logic circuit, which is constructed using an AND gate circuit and a NOT gate circuit, and can convert a 4-bit binary number of 0001 into a 2-bit binary number of 00, convert a 4-bit binary number of 0010 into a 2-bit binary number of 01, convert a 4-bit binary number of 0100 into a 2-bit binary number of 10, and convert a 4-bit binary number of 1000 into a 2-bit binary number of 11.
[0041] On the basis of the above embodiment, the first MUX circuit and the second MUX circuit are 4-to-1 digital logic circuits, and the 4-to-1 digital logic circuit includes 4 input terminals, assuming that the 4 input terminals are (CE0, CE1, CE2, CE3), one output terminal is Y, and two selection signals are S (control signal S). Taking template A as an example, the selection signal S has four combinations: 00, 01, 10 and 11. When S is 00, the output Y is Entry0~M, when S is 01, the output Y is Entry0~M, when S is 10, the output Y is Entry0~M, and when S is 11, the output Y is Entry0~M.
[0042] like Figure 3As shown in the figure, NAND PHY is the physical layer of the open NAND flash interface, responsible for managing the communication with NAND Flash. Memory controller is a hardware component used to manage system memory. It is responsible for transferring data from SOC to memory and from memory back to SOC. Memory controller usually supports multiple memory types, such as DDR memory. NANDPHY is the communication bridge between memory controller and NAND Flash. In the sending direction, it is responsible for converting the data sent by memory controller into signals that meet the NAND Flash protocol and sending them to NAND Flash; in the receiving direction, it is responsible for converting the data sent by NAND Flash into signals that comply with the memory controller and ONFI PHY interface and sending them to the memory controller. NAND PHY is a hardware component used to manage the communication between NAND Flash and SOC, and handles the signal transmission and interface protocol at the physical level. NAND PHY and memory controller ensure the data transmission between SOC and NAND Flash.
[0043] like Figure 3 As shown in the figure, NAND PHY adjusts the delay line at the transmitting end so that NAND Flash can smoothly sample the control signal and data signal at the receiving end. Correspondingly, at the NAND PHY end, by adjusting the delay line at the internal receiving end, NAND PHY can smoothly sample the output signal of NAND Flash, and then the system can work stably and reliably in both the reading and writing directions.
[0044] In this implementation, Figure 2 In which clk represents the clock signal, waveform "1" represents the input of CE0, waveform "2" represents the high level or low level after passing through the register, and waveform "3" represents the detected rising edge or falling edge.
[0045] like Figure 1 and Figure 2 as well as Figure 4 As shown, the working principle of the ONFI PHY training method of fast switching frequency and Die is as follows:
[0046] S1-1. First, use NAND PHY to receive the CE0 signal of ONFI controller, that is, obtain CE0 of SOC when accessing through the detection circuit. When the detection circuit detects that the CE0 signal is triggered and is at a falling edge, it means that the system is operating the corresponding NAND Target (that is, the NAND Target corresponding to CE0). CE1, CE2, and CE3 all fail to detect a falling edge, indicating that the corresponding NAND Targets are not being operated. Then, the CE3, CE2, CE1, and CE0 detection circuits generate 4-bit data, and the corresponding binary number is 0001. The binary number 0001 is converted by the encoder into 2-bit data, and the corresponding binary number is 00.
[0047] S1-2. The encoder then outputs the binary number 00 to the first MUX circuit. According to the setting, when the SEL terminal of the first MUX circuit receives the binary number 00 output by the encoder, the output terminal of the first MUX circuit is controlled to output the binary number 00, ie, the first frequency point;
[0048] S1-3. The first MUX circuit outputs the binary number 00 to the second MUX circuit. When the binary number 00 is used as the SEL terminal of the second MUX circuit, the configuration value of the Entry0~M signal corresponding to the CE0 signal in the control template A / B / C is output. Since each Entry (or entry) in template A, template B and template C stores the training configuration value of bit[X:0], and since the value of X is determined according to the length of the longest delay line, for example, if the length of the delay line is 8, then X is 2, and bit[X:0] is bit[2:0], then bit[2:0] covers eight different values from 0 to 7. Then the second MUX circuit synchronously outputs the configuration values in template A, template B and template C to the corresponding write calibration delay line, read calibration delay line and read data path first-in-first-out queue;
[0049] S2-1. Switch to CE1. When the detection circuit detects that the CE1 signal is triggered and is at a falling edge, it means that the system is operating the corresponding NAND Target (that is, the NAND Target corresponding to CE1). CE0, CE2, and CE3 do not detect a falling edge, indicating that the corresponding NAND Targets are not being operated. Then, the CE3, CE2, CE1, and CE0 detection circuits generate 4-bit data, and the corresponding binary number is 0010. The binary number 0010 is converted by the encoder into 2-bit data, and the corresponding binary number is 01.
[0050] S2-2. The encoder then outputs the binary number 01 to the first MUX circuit. According to the setting, when the SEL terminal of the first MUX circuit receives the binary number 01 output by the encoder, the output terminal of the first MUX circuit is controlled to output the binary number 01, switching to the second frequency;
[0051] S2-3. The first MUX circuit outputs the binary number 01 to the second MUX circuit. When the binary number 01 is used as the SEL terminal of the second MUX circuit, the configuration value of the Entry0~M signal corresponding to the CE1 signal in the control template A / B / C is output. Since each Entry (or entry) in the template A, template B and template C stores the training configuration value of bit[X:0], and since the value of X is determined according to the length of the longest delay line, for example, if the length of the delay line is 8, then X is 2, and bit[X:0] is bit[2:0], then bit[2:0] covers eight different values from 0 to 7. Then the second MUX circuit synchronously outputs the configuration values in the template A, template B and template C to the corresponding write calibration delay line, read calibration delay line and read data path first-in-first-out queue;
[0052] S3-1. Switch to CE2. When the detection circuit detects that the CE2 signal is triggered and is at a falling edge, it means that the system is operating the corresponding NAND Target (that is, the NAND Target corresponding to CE2). CE0, CE1, and CE3 do not detect a falling edge, indicating that the corresponding NAND Targets are not being operated. Then, the CE3, CE2, CE1, and CE0 detection circuits generate 4-bit data, and the corresponding binary number is 0100. The binary number 0100 is converted by the encoder into 2-bit data, and the corresponding binary number is 10.
[0053] S3-2. The encoder then outputs the binary number 10 to the first MUX circuit. According to the setting, when the SEL terminal of the first MUX circuit receives the binary number 10 output by the encoder, the output terminal of the first MUX circuit is controlled to output the binary number 10, switching to the third frequency;
[0054] S3-3. The first MUX circuit outputs the binary number 10 to the second MUX circuit. When the binary number 10 is used as the SEL terminal of the second MUX circuit, the configuration value of the Entry0~M signal corresponding to the CE2 signal in the control template A / B / C is output. Since each Entry (or entry) in template A, template B and template C stores the training configuration value of bit[X:0], and since the value of X is determined according to the length of the longest delay line, for example, if the length of the delay line is 8, then X is 2, and bit[X:0] is bit[2:0], then bit[2:0] covers eight different values from 0 to 7. Then the second MUX circuit synchronously outputs the configuration values in template A, template B and template C to the corresponding write calibration delay line, read calibration delay line and read data path first-in-first-out queue;
[0055] S4-1. Switch to CE3. When the detection circuit detects that the CE3 signal is triggered and is at a falling edge, it means that the system is operating the corresponding NAND Target (that is, the NAND Target corresponding to CE3). CE0, CE1, and CE2 do not detect a falling edge, indicating that the corresponding NAND Targets are not being operated. Then, the CE3, CE2, CE1, and CE0 detection circuits generate 4-bit data, and the corresponding binary number is 1000. The binary number 1000 is converted by the encoder into 2-bit data, and the corresponding binary number is 11.
[0056] S4-2. The encoder then outputs the binary number 11 to the first MUX circuit. According to the setting, when the SEL terminal of the first MUX circuit receives the binary number 11 output by the encoder, the output terminal of the first MUX circuit is controlled to output the binary number 11, switching to the fourth frequency;
[0057] S4-3. The first MUX circuit outputs the binary number 11 to the second MUX circuit. When the binary number 11 is used as the SEL terminal of the second MUX circuit, the configuration value output of the Entry0~M signal corresponding to the CE3 signal in the control template A / B / C is controlled. Since each Entry (or entry) in template A, template B and template C stores the training configuration value of bit[X:0], and since the value of X is determined according to the length of the longest delay line, for example, if the length of the delay line is 8, then X is 2, and bit[X:0] is bit[2:0], then bit[2:0] covers eight different values from 0 to 7. Then the second MUX circuit synchronously outputs the configuration values in template A, template B and template C to the corresponding write calibration delay line, read calibration delay line and read data path first-in-first-out queue.
[0058] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An ONFI PHY training device for fast switching frequency and Die, characterized in that: include: A detection circuit, the detection circuit comprising four groups of cascaded D flip-flops, inverters and AND gate circuits, the D flip-flops and inverters of each group are cascaded, the output ends of the D flip-flops and inverters are cascaded with the input ends of the AND circuit, the input ends of the four groups of D flip-flops are sequentially cascaded with CE0, CE1, CE2 and CE3, the detection circuit is used to detect the rising edge or falling edge of the signal to trigger a corresponding operation, the detection circuit also includes an encoder, the input end of the encoder is cascaded with the output end of the AND circuit, and is used to convert 4-bit data generated by the detection circuit into 2-bit data; A frequency point selection circuit, wherein the frequency point selection circuit is a first MUX circuit, wherein the SEL terminal, the input terminal and the output terminal of the encoder are cascaded, and are used to transmit the CE signal output by the encoder to the SEL terminal of the first MUX circuit, and control the output terminal of the first MUX circuit to output; A storage circuit, wherein the storage circuit includes a second MUX circuit and a register, wherein the register includes template A, template B and template C inside, the SEL end of the second MUX circuit is cascaded with the output end of the first MUX circuit, and is used to transmit the data output by the first MUX circuit to the SEL end of the second MUX circuit, and control the output of the template A, template B and template C, the output end of the register is cascaded with the input end of the second MUX circuit, and is used to output the training configuration values stored in templates A, template B and template C to the input end of the second MUX circuit, the output end of the second MUX circuit is cascaded with a write calibration delay line, a read calibration delay line and a read data path first-in-first-out queue, respectively, the template A is used to transmit the stored training configuration value to the write calibration delay line, the template B is used to transmit the stored training configuration value to the read calibration delay line, and the template C is used to transmit the stored training configuration value to the read data path first-in-first-out queue.
2. The ONFI PHY training device for fast switching frequency and Die according to claim 1, characterized in that: The template A is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0 to M, the addresses of Entry0 to M correspond to the addresses of frequency points 0 to M, the data stored in the CE0, CE1, CE2 and CE3 signals in the template A are different, the template B is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of Entry0 to N Correspondingly, the addresses of the Entry0~N correspond one-to-one to the addresses of the frequency points 0~N, the data stored in the CE0, CE1, CE2 and CE3 signals in the template B are all different, the template C is provided with CE0, CE1, CE2 and CE3 signals, the addresses of the CE0, CE1, CE2 and CE3 signals correspond to the addresses of the Entry0~L, the addresses of the Entry0~L correspond one-to-one to the addresses of the frequency points 0~L, and the data stored in the CE0, CE1, CE2 and CE3 signals in the template C are all different.
3. The ONFI PHY training device for fast switching frequency and Die according to claim 1, characterized in that: Each die in the template A, template B and template C stores a raining configuration value of bit[X:0], and the value of X in the bit[X:0] is determined according to the length of the longest delay line.
4. The ONFI PHY training device for fast switching frequency and Die according to claim 3, characterized in that: The number of Die layers corresponds to the number of CEs.
5. The ONFI PHY training device for fast switching frequency and Die according to claim 1, characterized in that: The encoder is a combinational digital logic circuit, and the combinational digital logic circuit is constructed using an AND gate circuit and a NOT gate circuit.
6. The ONFI PHY training device for fast switching frequency and Die according to claim 1, characterized in that: The first MUX circuit and the second MUX circuit are both 4-to-1 digital logic circuits.
7. An ONFI PHY training method for fast switching frequency and Die, characterized in that: The specific steps include: S1. First, use NAND PHY to receive the CE0 signal of ONFI controller, that is, obtain CE0 of SOC when accessing through the detection circuit. When the detection circuit detects that the CE0 signal is triggered and is at a falling edge, it means that the system is operating the NAND Target corresponding to CE0. CE1, CE2, and CE3 all fail to detect a falling edge, indicating that the corresponding NAND Targets are not being operated. Then, the CE3, CE2, CE1, and CE0 detection circuits generate 4-bit data, and the corresponding binary number is 0001. The binary number 0001 is converted by the encoder into 2-bit data, and the corresponding binary number is 00. S2. Then the encoder outputs the binary number 00 to the first MUX circuit. According to the setting, when the SEL end of the first MUX circuit receives the binary number 00 output by the encoder, the output end of the first MUX circuit is controlled to output the binary number 00, that is, the first frequency point; S3. The first MUX circuit outputs the binary number 00 to the second MUX circuit, and the binary number 00 serves as the SEL terminal of the second MUX circuit to control the output of the CE signal in the control template A / B / C. According to the setting, the binary number 00 corresponds to CE0, CE0 corresponds to Die0, the address of the CE0 signal in template A corresponds to the address of the Entry0~M signal, the address of the CE0 signal in template B corresponds to the address of the Entry0~N signal, and the address of the CE0 signal in template C corresponds to the address of the Entry0~L signal. Then, the second MUX circuit synchronously outputs the configuration values in templates A, template B and template C to the corresponding write calibration delay line, read calibration delay line and read data path first-in-first-out queue; S4. Similarly, when switching to CE1, CE2 and CE3, steps S1 to S3 are repeated.
