WO2023116366A1 - Flash memory controller, delay adjustment method and storage device - Google Patents

Flash memory controller, delay adjustment method and storage device Download PDF

Info

Publication number
WO2023116366A1
WO2023116366A1 PCT/CN2022/135130 CN2022135130W WO2023116366A1 WO 2023116366 A1 WO2023116366 A1 WO 2023116366A1 CN 2022135130 W CN2022135130 W CN 2022135130W WO 2023116366 A1 WO2023116366 A1 WO 2023116366A1
Authority
WO
WIPO (PCT)
Prior art keywords
flash memory
target
particle
delay
module
Prior art date
Application number
PCT/CN2022/135130
Other languages
French (fr)
Chinese (zh)
Inventor
陆震熙
黄运新
Original Assignee
深圳大普微电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳大普微电子科技有限公司 filed Critical 深圳大普微电子科技有限公司
Publication of WO2023116366A1 publication Critical patent/WO2023116366A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the invention relates to the storage field, in particular to a flash memory controller, a delay adjustment method and a storage device.
  • NAND Flash (non-volatile flash memory) storage devices include NAND Flash particles for storing data and flash memory controllers for managing data stored in NAND Flash particles.
  • the flash memory controller is connected to the NAND Flash particles through PCB (Printed Circuit Board, printed circuit board) traces, so as to realize the management of the data stored in the NAND Flash particles.
  • the delay (delay) value on the read-write link between the flash memory controller and the NAND Flash particle is controlled by the delay value inside the NAND Flash particle, the delay value of the PCB trace between the NAND Flash particle and the flash memory controller, and the flash memory.
  • the delay value of the internal link of the controller is determined by the internal particle; the delay value of the PCB trace is determined by the length of the trace; the delay value of the internal link of the flash memory controller is determined by the internal circuit.
  • connection links between the two include: DQS (Bi-directional Data Strobe, bidirectional data control pin) link, DQ ( Data input/output channel) link and DBI (Data Bus Inversion, data bus inversion) link; among them, DQ link is used to read and write NAND Flash particles, and the data signal transmitted on it is called DQ signal; DBI link The DBI signal transmitted above is used to indicate whether the current DQ signal needs to be reversed; the DQS signal transmitted on the DQS link is used as a reference signal for collecting DQ signals and DBI signals to determine when to collect DQ signals and DBI signals.
  • DQS Bi-directional Data Strobe, bidirectional data control pin
  • DQ Data input/output channel
  • DBI Data Bus Inversion, data bus inversion
  • the delay value of the internal link of the flash memory controller is determined, and the flash memory controller uses this delay value to transmit data between NAND Flash particles.
  • this method is only applicable to the case where the flash controller is connected to one NAND Flash particle. If the flash controller is connected to multiple NAND Flash particles (as shown in Figure 3), due to the link between the flash controller and different NAND Flash particles There are differences in the actual delay value, so the delay value originally set in the internal link of the flash memory controller may not be applicable to all connected NAND Flash particles, resulting in reduced read and write accuracy.
  • the object of the present invention is to provide a flash memory controller, delay adjustment method and storage device, which can detect whether the flash memory particles operated by the flash memory controller are switched, and when detecting the switching of the flash memory particles operated by the flash memory controller, switch the flash memory controller to The delay parameters on the internal link are adjusted to the delay parameters applicable to the flash memory particles currently operated by the flash memory controller, so as to ensure the accuracy of reading and writing.
  • the present invention provides a flash memory controller, comprising:
  • a data drive module respectively connected to a plurality of flash memory particles, used to select a target flash memory particle from a plurality of said flash memory particles according to the current particle operation requirements, so as to perform read and write operations on said target flash memory particle;
  • a particle switching detection module connected to the data drive module, used to generate a detection that the flash memory particle representing the current operation is switched to the target flash memory particle when it detects that the data drive module is switched to the target flash memory particle for operation Signal;
  • the signal delay module arranged on the read-write link between the data drive module and the plurality of flash memory particles is used to transmit the data between the data drive module and the target flash memory particle according to the delay parameter currently set. Read and write operation signals for delayed transmission;
  • a delay parameter setting module respectively connected to the particle switching detection module and the signal delay module, used to determine the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter after receiving the detection signal corresponding target delay parameters, and adjust the delay parameters of the signal delay module according to the target delay parameters.
  • the data drive module is respectively connected to the CE terminals of a plurality of the flash memory particles;
  • the data drive module is specifically configured to determine a target flash memory particle for pre-reading and writing operations from a plurality of flash memory particles according to the current particle operation requirements, and send a CE valid signal to the CE end of the target flash memory particle, so that the The target flash memory particle enters the working state.
  • the particle switching detection module is respectively connected to multiple enabling links between the data driving module and the CE terminals of multiple flash memory particles;
  • the particle switching detection module is specifically configured to determine that the data drive module switches to the target flash memory particle for operation when detecting that the CE valid signal is started to be transmitted on the enabling link connected to the target flash memory particle.
  • the particle switching detection module is internally provided with a CE register for recording the CE value corresponding to the flash memory particle last operated by the data drive module;
  • the granular switching detection module is specifically configured to determine the target enabled link that currently transmits the CE valid signal from among the plurality of enabled links, and determine according to the preset corresponding relationship between the enabled link and the CE value.
  • the target CE value corresponding to the target enabling link if the target CE value is inconsistent with the CE value currently stored in the CE register, it is determined that the data driver module is switched to connect to the target enabling link
  • the flash memory particles are operated, and the CE register is updated based on the target CE value.
  • the detection signal is a signal carrying the target CE value
  • the delay parameter setting module is specifically used to determine the target delay parameter corresponding to the target CE value according to the preset corresponding relationship between the CE value and the delay parameter after receiving the detection signal, and according to the target delay parameter Adjust the delay parameters of the signal delay module.
  • the particle switching detection module is further configured to generate a trigger signal before generating the detection signal after detecting that the data drive module switches to the target flash memory particle for operation;
  • the delay parameter setting module is also used to detect whether the trigger signal is received; if so, enter the step of parameter adjustment after receiving the detection signal; if not, do not enter after receiving the detection signal Steps for parameter tuning.
  • the data drive module is further configured to generate a switching signal representing that the currently operating flash memory particle is switched to the target flash memory particle when selecting a target flash memory particle from a plurality of the flash memory particles to the particle switching detection module;
  • the particle switching detection module is specifically configured to determine that the data drive module switches to the target flash memory particle based on the switching signal to operate.
  • the delay parameter setting module is internally provided with parameter registers for storing multiple delay parameter tables; wherein, the multiple delay parameter tables are used to record delay parameters applicable to multiple flash memory particles one by one;
  • the delay parameter setting module is specifically configured to, after receiving the detection signal, determine a target delay parameter table corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter table, and The delay parameters recorded in the parameter table adjust the delay parameters of the signal delay module.
  • the read-write link includes a DQS input/output link, a DQ input/output link, and a DBI input/output link; each delay parameter recorded in the delay parameter table includes an input/output link of a DQS signal. Output delay parameters, input/output delay parameters of DQ signals and input/output delay parameters of DBI signals;
  • the signal delay module includes:
  • the delay parameter setting module is specifically configured to adjust the delay parameters of the plurality of signal delay elements in a one-to-one correspondence according to the plurality of delay parameters recorded in the target delay parameter table.
  • the present invention also provides a delay adjustment method, which is applied to a flash memory controller connected to multiple flash memory particles, including:
  • the target delay parameter corresponding to the target flash memory particle is determined according to the preset corresponding relationship between the flash memory particle and the delay parameter;
  • the flash memory controller is respectively connected to the CE terminals of a plurality of the flash memory particles; the flash memory controller is internally provided with a CE register for recording the CE value corresponding to the flash memory particle last operated;
  • switch to the detection process of the target flash memory particles for operation including:
  • the target delay parameter corresponding to the target CE value is determined according to the preset corresponding relationship between the CE value and the delay parameter.
  • the present invention also provides a storage device, which includes a plurality of flash memory particles and any one of the above flash memory controllers.
  • the invention provides a flash memory controller, which includes a data driving module, a particle switching detection module, a signal delay module and a delay parameter setting module.
  • the data driving module is used to select the target flash memory particle from multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle;
  • the particle switching detection module is used to switch to the target flash memory particle for operation after the data driving module is detected , generate a detection signal that indicates that the currently operating flash memory particle switches to the target flash memory particle;
  • the signal delay module is used to delay the transmission of the read and write operation signals between the data drive module and the target flash memory particle according to the currently set delay parameters; delay
  • the parameter setting module is used to determine the target delay parameter corresponding to the target flash memory particle according to the preset correspondence between the flash memory particle and the delay parameter after receiving the detection signal, and adjust the delay parameter of the signal delay module according to the target delay parameter.
  • the present application can detect whether the flash memory particles operated by the flash controller are switched, and when detecting the switching of the flash memory particles operated by the flash controller, adjust the delay parameter on the internal link of the flash controller to the current operation of the flash controller.
  • the delay parameters applicable to flash memory particles ensure the accuracy of reading and writing.
  • the present invention also provides a delay adjustment method and a storage device, which have the same beneficial effect as the above-mentioned flash memory controller.
  • Fig. 1 is the structural representation of a kind of NAND Flash storage device in the prior art
  • Fig. 2 is a schematic diagram of the specific connection relationship between a flash memory controller and NAND Flash particles in the prior art
  • Fig. 3 is the structural representation of a kind of flash memory controller connecting a plurality of NAND Flash particles in the prior art
  • FIG. 4 is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a data drive module connected to CE terminals of multiple flash memory particles provided by an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention.
  • FIG. 7 is a delay parameter recording diagram of a delay parameter table corresponding to a plurality of flash memory particles provided by an embodiment of the present invention.
  • FIG. 8 is a flowchart of a delay adjustment method provided by an embodiment of the present invention.
  • FIG. 9 is a flow chart of detecting whether switching of flash memory particles in operation is provided by an embodiment of the present invention.
  • the core of the present invention is to provide a flash memory controller, a delay adjustment method, and a storage device, which can detect whether the flash memory particles operated by the flash memory controller are switched, and when detecting that the flash memory particles operated by the flash memory controller are switched, switch the flash memory controller to The delay parameters on the internal link are adjusted to the delay parameters applicable to the flash memory particles currently operated by the flash memory controller, so as to ensure the accuracy of reading and writing.
  • FIG. 4 is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention.
  • the flash controller includes:
  • a data drive module 1 respectively connected to multiple flash memory particles is used to select a target flash memory particle from multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle;
  • the particle switching detection module 2 connected with the data drive module 1 is used to generate a detection signal that the flash memory particle representing the current operation is switched to the target flash memory particle when it is detected that the data drive module 1 is switched to the target flash memory particle for operation;
  • the signal delay module 3 arranged on the read-write link between the data drive module 1 and a plurality of flash memory particles is used to transmit the read and write operation signals between the data drive module 1 and the target flash memory particles according to the delay parameter currently set. carry out delayed transmission;
  • the delay parameter setting module 4 connected with the particle switching detection module 2 and the signal delay module 3 respectively is used to determine the target delay parameter corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter after receiving the detection signal , and adjust the delay parameter of the signal delay module 3 according to the target delay parameter.
  • the storage device of the present application includes a plurality of flash memory particles and a flash memory controller
  • the flash memory controller includes a data drive module 1, a particle switching detection module 2, a signal delay module 3 and a delay parameter setting module 4, and its working principle is as follows:
  • the data driving module 1 is respectively connected to multiple flash memory particles, and the data driving module 1 can select a target flash memory particle from the multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle. It should be noted that the data drive module 1 can only select one flash memory particle for read and write operations at a time, that is, the data drive module 1 cannot operate multiple flash memory particles at the same time. Specifically, it can be considered that the data drive module 1 operates each flash memory particle in a time-sharing manner.
  • Particle switching detection module 2 is connected with data driving module 1 and delay parameter setting module 4 respectively, and particle switching detection module 2 can generate the flash memory particle representing the current operation when switching to the target flash memory particle for operation when detecting that data driving module 1 is switched to The detection signal of the target flash memory particle, and the generated detection signal is sent to the delay parameter setting module 4.
  • the signal delay module 3 is arranged on the read-write link between the data drive module 1 and multiple flash memory particles. When the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle, the signal delay module 3 can delay the transmission of the read and write operation signals between the data drive module 1 and the target flash memory particle according to the delay parameter currently set by itself .
  • the signal delay module 3 is located in the flash memory controller, and the delay parameter of the signal delay module 3 determines the delay value of the internal link of the flash memory controller, so adjusting the delay parameter of the signal delay module 3 is equivalent to adjusting the internal link of the flash memory controller
  • the delay value of the link so that by adjusting the delay parameter of the signal delay module 3, the delay value of the internal link of the flash memory controller is suitable for the target flash memory particle of the current operation, which can well solve the problem of connecting multiple flash memory particles to the flash memory controller.
  • the problem of inconsistent delay parameters is provided to the target flash memory particle of the current operation.
  • the adjustment of the delay parameter of the signal delay module 3 is realized by the delay parameter setting module 4.
  • the delay parameter setting module 4 can determine that the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle based on the detection signal, and According to the preset corresponding relationship between flash memory particles and delay parameters (characterize the delay parameters of signal delay modules 3 applicable to different flash memory particles), determine the target delay parameters corresponding to the target flash memory particles, and then adjust the signal delay module 3 according to the target delay parameters. Delay parameters, so that the delay value of the internal link of the flash memory controller is suitable for the target flash memory particle currently operating, so as to ensure the accuracy of reading and writing.
  • multiple flash memory particles in the same storage device are the same type of flash memory particles.
  • different types of flash memory particles such as SLC (Single Level Cell, single-level cell), MLC (Multi-Level Cell, double-layer unit), TLC (Triple Level Cell, three-layer unit), QLC (Quad-Level Cell, four-layer unit) and other types
  • SLC Single Level Cell, single-level cell
  • MLC Multiple Level Cell, double-layer unit
  • TLC Multiple Level Cell, three-layer unit
  • QLC Quadad-Level Cell, four-layer unit
  • the characteristics of each flash memory particle are different, so the working conditions are also different. In the case of low frequency and different working conditions, the same set of delay parameters can also work. In the case of high frequency, different delay parameters need to be set for each working condition. Guaranteed high precision and better matching.
  • the present application can detect whether the flash memory particles operated by the flash controller are switched, and when detecting the switching of the flash memory particles operated by the flash controller, adjust the delay parameter on the internal link of the flash controller to the current operation of the flash controller.
  • the delay parameters applicable to flash memory particles ensure the accuracy of reading and writing.
  • the data drive module, particle switching detection module, signal delay module and delay parameter setting module of the present application are all pure hardware modules, which can effectively improve read and write performance without software intervention and adjustment.
  • the data drive module 1 is respectively connected to the CE terminals of a plurality of flash memory particles;
  • the data drive module 1 is specifically used to determine the target flash memory particle for pre-reading and writing operations from multiple flash memory particles according to the current particle operation requirements, and send a CE valid signal to the CE terminal of the target flash memory particle, so that the target flash memory particle enters the working state.
  • the data driver module 1 of the present application is respectively connected to the CE (chip enable, chip enable) end of a plurality of flash memory particles, for the data driver module 1 to select the target flash memory particle from a plurality of flash memory particles use.
  • the principle of data drive module 1 selecting a target flash memory particle from multiple flash memory particles is as follows: determine the target flash memory particle for pre-reading and writing operations from multiple flash memory particles according to the current particle operation requirements, and then report to the CE of the target flash memory particle The terminal sends a CE valid signal to make the target flash memory particles enter the working state, so as to realize the read and write operations on the target flash memory particles. It should be noted that the data drive module 1 only sends a CE valid signal to the CE terminal of one flash memory particle each time, that is, only one flash memory particle is selected for read and write operations each time.
  • the CE effective signal is a low-level signal, and among multiple enable links between the data drive module 1 and the CE terminals of multiple flash memory particles, only one enable link transmits a low-level signal at a time , and the other enabling links transmit high-level signals, so that only one flash memory particle is selected for read and write operations at a time.
  • the particle switching detection module 2 is respectively connected to multiple enabling links between the data drive module 1 and the CE ends of multiple flash memory particles;
  • the particle switching detection module 2 is specifically used to determine that the data drive module 1 is switched to the target flash memory particle for operation when it detects that the enabling link connected to the target flash memory particle starts to transmit the CE valid signal.
  • the data drive module 1 is respectively connected to the CE terminals of a plurality of flash memory particles, and an enabling link is connected between the data drive module 1 and the CE terminals of each flash memory particle, and the particle switching detection module 2 is respectively connected to the data
  • the driving module 1 is connected to multiple enabling links between the CE terminals of multiple flash memory particles, and then the particle switching detection module 2 determines that the data driving module 1 switches to the target flash memory particle for operation.
  • the enable link connected to the flash memory particle starts to transmit the CE valid signal, it is determined that the data driving module 1 is switched to the target flash memory particle for operation.
  • the particle switching detection module 2 is internally provided with a CE register for recording the CE value corresponding to the flash memory particle last operated by the data drive module 1;
  • the granular switching detection module 2 is specifically used to determine the target enabled link that currently transmits a CE effective signal from multiple enabled links, and determine the corresponding relationship between the enabled link and the CE value according to the preset enabled link. If the target CE value is inconsistent with the CE value currently stored in the CE register, it is determined that the data driver module 1 switches to the flash memory particle connected to the target enabling link for operation, and updates the CE register based on the target CE value .
  • an enabling link is connected between the data driving module 1 and the CE end of each flash memory particle, in order to distinguish multiple enabling links connected between the data driving module 1 and the CE ends of multiple flash memory particles , respectively define a CE value for each enabled link, and the CE values defined by different enabled links are different, such as the Nth enabled link connected between the data driver module 1 and the CE terminal of the Nth flash memory particle
  • the corresponding CE value can be defined as N.
  • the particle switching detection module 2 of the present application has a CE register inside, and the CE register records the CE value corresponding to the flash memory particle that the data drive module 1 operated last time. Then the particle switching detection module 2 determines that the data drive module 1 switches the flash memory particles to operate, specifically as follows:
  • the granular switching detection module 2 determines the target enabled link that currently transmits a valid CE signal from multiple enabled links, and determines the corresponding link to the target enabled link according to the preset corresponding relationship between the enabled link and the CE value. The target CE value, and then judge whether the target CE value is consistent with the CE value currently stored in the CE register.
  • the target CE value is consistent with the CE value currently stored in the CE register, it is determined that the data driver module 1 is not currently switching the flash memory particles; if the target If the CE value is inconsistent with the CE value currently stored in the CE register, it is determined that the data driver module 1 switches to the flash memory particle connected to the target enabling link for operation, and updates the CE register based on the target CE value for subsequent judgment of whether the data driver module 1 Toggle operation of flash particles used.
  • the detection signal is a signal carrying a target CE value
  • the delay parameter setting module 4 is specifically used to determine the target delay parameter corresponding to the target CE value according to the preset CE value and the delay parameter correspondence after receiving the detection signal, and adjust the delay of the signal delay module 3 according to the target delay parameter parameter.
  • the particle switching detection module 2 determines that the data drive module 1 is switched to the flash particle connected to the target enabling link for operation, it will generate a flash particle that represents the current operation to be switched to a flash particle connected to the target enabling link. and send the generated detection signal to the delay parameter setting module 4. Since the target CE value can indicate that the currently operating flash memory particle is switched to the flash memory particle connected to the target enabling link, the particle switching detection module 2 is determined to switch to the flash memory particle connected to the target enabling link for operation. When , the detection signal carrying the target CE value can be specifically generated, and the detection signal carrying the target CE value can be sent to the delay parameter setting module 4 .
  • the delay parameter setting module 4 adjusts the delay parameter principle of the signal delay module 3 specifically as follows: after receiving the detection signal carrying the target CE value, according to the preset CE value and the delay parameter correspondence (representing that different CE values correspond to The delay parameters of the respective applicable signal delay modules 3 of the flash memory particles), determine the target delay parameters corresponding to the target CE value carried in the detection signal, and then adjust the delay parameters of the signal delay module 3 according to the target delay parameters, so that the flash memory controller The delay value of the internal link is applicable to the currently operating flash memory particles to ensure read and write accuracy.
  • the particle switching detection module 2 is also used to generate a trigger signal after detecting that the data drive module 1 switches to the target flash memory particle for operation and before generating the detection signal;
  • the delay parameter setting module 4 is also used to detect whether a trigger signal is received; if so, enter the step of adjusting parameters after receiving the detection signal; if not, then do not enter the step of adjusting parameters after receiving the detection signal.
  • the particle switching detection module 2 of the present application detects that the data drive module 1 switches to the target flash memory particle for operation, it first sends a trigger signal to the delay parameter setting module 4, and then sends a detection signal to the delay parameter setting module 4. It is to first notify the delay parameter setting module 4 that it is about to enter the parameter adjustment process, and then send the detection signal that the flash memory particle representing the current operation is switched to the target flash memory particle to the delay parameter setting module 4, so that the detection signal received by the delay parameter setting module 4 The signal enters the parameter adjustment process to ensure the accuracy of parameter adjustment.
  • the data drive module 1 is also used to generate a switching signal representing that the currently operating flash memory particle is switched to the target flash memory particle to the particle switching detection module 2 when selecting a target flash memory particle from a plurality of flash memory particles ;
  • the particle switching detection module 2 is specifically configured to determine based on the switching signal that the data driving module 1 switches to the target flash memory particle for operation.
  • the particle switching detection module 2 in addition to the above-mentioned connection with multiple enabling links between the data drive module 1 and the CE terminals of multiple flash memory particles, starts to transmit CE by detecting the enabling link connected to the target flash memory particle.
  • the particle switching detection module 2 in addition to determining that the data driver module 1 is switched to the target flash memory particle for operation by a valid signal, there is another way to determine that the data driver module 1 is switched to the target flash memory particle for operation:
  • the data driving module 1 selects a target flash memory particle from multiple flash memory particles, it also generates a switching signal indicating that the currently operating flash memory particle is switched to the target flash memory particle to the particle switching detection module 2 . After the particle switching detection module 2 receives the switching signal, it can directly determine based on the switching signal that the data driving module 1 switches to the target flash memory particle for operation.
  • the delay parameter setting module 4 is internally provided with a parameter register for storing a plurality of delay parameter tables; wherein, a plurality of delay parameter tables are used to record the applicable delay parameters of a plurality of flash memory particles one by one;
  • the delay parameter setting module 4 is specifically used to determine the target delay parameter table corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter table after receiving the detection signal, and according to the delay parameter recorded in the target delay parameter table Adjust the delay parameters of the signal delay module 3.
  • the delay parameter setting module 4 of the present application is provided with a parameter register inside, and a plurality of delay parameter tables are stored in the parameter register, and each delay parameter table is used to record a delay parameter applicable to a flash memory particle.
  • the delay parameter setting module 4 adjusts the delay parameter principle of the signal delay module 3 specifically as follows: after receiving the detection signal, it is determined based on the detection signal that the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle, and according to the predetermined The corresponding relationship between the flash memory particles and the delay parameter table (characterize the delay parameters of the signal delay module 3 applicable to different flash memory particles), determine the target delay parameter table corresponding to the target flash memory particle, and then follow the delay parameters recorded in the target delay parameter table Adjust the delay parameters of the signal delay module 3, so that the delay value of the internal link of the flash memory controller is suitable for the target flash memory particles currently operating, so as to ensure the accuracy of reading and writing.
  • FIG. 6 is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention.
  • the read-write link includes a DQS input/output link, a DQ input/output link, and a DBI input/output link;
  • the delay parameters recorded in each delay parameter table include the input of the DQS signal /Output delay parameter, input/output delay parameter of DQ signal and input/output delay parameter of DBI signal;
  • Signal delay module 3 includes:
  • the delay parameter setting module 4 is specifically configured to adjust the delay parameters of multiple signal delay elements according to the multiple delay parameters recorded in the target delay parameter table.
  • the read-write link between the data drive module 1 of the present application and a plurality of flash memory particles includes a DQS input link, a DQS output link, a DQ input link, and a DQ output link (the DQ signal is an 8-bit signal, Expressed as DQ0-7, the DQ input link has a total of 8 input links, and each input link inputs one bit of data; the DQ output link has a total of 8 output links, and each output link outputs one bit of data ), DBI input link and DBI output link.
  • each delay parameter table includes the input delay parameter (input delay parameter) of the DQS signal, the output delay parameter (output delay parameter) of the DQS signal, and the input delay parameter of the DQ0-7 signal , DQ0-7 signal output delay parameters, DBI signal input delay parameters DBI signal output delay parameters. That is to say, in each delay parameter table, each read-write link corresponds to a delay parameter.
  • the signal delay module 3 includes a plurality of signal delay elements (delay lines) that are arranged on multiple read-write links one by one, then the delay parameter setting module 4 adjusts the principle of the delay parameter of the signal delay module 3 specifically as follows: After receiving the detection signal, it is determined based on the detection signal that the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle, and the target delay parameter table corresponding to the target flash memory particle is determined according to the preset corresponding relationship between the flash memory particle and the delay parameter table, Then adjust the delay parameters of multiple signal delay elements one by one according to the multiple delay parameters recorded in the target delay parameter table (specifically, write the delay parameter value to the signal delay element delay line to realize delay adjustment), so that the flash memory control
  • the delay value of the internal link of the device is applicable to the target flash memory particles currently operating to ensure the accuracy of reading and writing.
  • FIG. 8 is a flowchart of a delay adjustment method provided by an embodiment of the present invention.
  • This delay adjustment method is applied to a flash controller connected to multiple flash particles, including:
  • Step S1 Select a target flash memory particle from multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle.
  • Step S2 When switching to the target flash memory particle for operation is detected, determine the target delay parameter corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter.
  • Step S3 Adjust the delay parameter on the target read-write link corresponding to the target flash memory particle according to the target delay parameter, so as to delay the transmission of the read-write operation signal on the target read-write link.
  • the flash memory controller is respectively connected to the CE terminals of a plurality of flash memory particles; the flash memory controller is internally provided with a CE register for recording the CE value corresponding to the flash memory particle of the last operation;
  • switch to the detection process of the target flash memory particle for operation including:
  • the target CE value is inconsistent with the CE value currently stored in the CE register, it is determined to switch to the flash memory particle connected to the target enabling link for operation, and update the CE register based on the target CE value;
  • the target delay parameter corresponding to the target CE value is determined according to the preset corresponding relationship between the CE value and the delay parameter.
  • the present application also provides a storage device, including a plurality of flash memory particles and any one of the above flash memory controllers.

Abstract

A flash memory controller, a delay adjustment method and a storage device. The flash memory controller comprises a data driving module, a particle switching detection module, a signal delay module and a delay parameter setting module. The data driving module selects a target flash memory particle from a plurality of flash memory particles according to the current particle operation requirement, so as to perform a read-write operation on the target flash memory particle; when it is detected that the data driving module is switched to the target flash memory particle for operation, the particle switching detection module generates a detection signal which represents that the currently operated flash memory particle is switched to the target flash memory particle; the signal delay module performs delay transmission on a read-write operation signal between the data driving module and the target flash memory particle according to the currently set delay parameter; and after receiving the detection signal, the delay parameter setting module determines, according to a correspondence between flash memory particles and delay parameters, a target delay parameter corresponding to the target flash memory particle, and adjusts a delay parameter of the signal delay module according to the target delay parameter, thereby ensuring the read-write accuracy.

Description

一种闪存控制器、延迟调整方法及存储设备A flash memory controller, delay adjustment method and storage device
本申请要求于2021年12月24日提交中国专利局、申请号为202111604831.6、发明名称为“一种闪存控制器、延迟调整方法及存储设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111604831.6 and the title of the invention "A Flash Memory Controller, Delay Adjustment Method, and Storage Device" filed with the China Patent Office on December 24, 2021, the entire contents of which are incorporated by reference incorporated in this application.
技术领域technical field
本发明涉及存储领域,特别是涉及一种闪存控制器、延迟调整方法及存储设备。The invention relates to the storage field, in particular to a flash memory controller, a delay adjustment method and a storage device.
背景技术Background technique
NAND Flash(非易失闪存)存储设备包括用于存储数据的NAND Flash颗粒及用于管理NAND Flash颗粒中存储的数据的闪存控制器。如图1所示,闪存控制器通过PCB(Printed Circuit Board,印制电路板)走线与NAND Flash颗粒连接,以实现对NAND Flash颗粒中存储的数据的管理。可见,闪存控制器和NAND Flash颗粒之间的读写链路上的delay(延迟)值由NAND Flash颗粒内部的delay值、NAND Flash颗粒到闪存控制器之间PCB走线的delay值及闪存控制器内部链路的delay值组成;其中,NAND Flash颗粒内部的delay值由内部颗粒决定;PCB走线的delay值由走线长度决定;闪存控制器内部链路的delay值由内部电路决定。NAND Flash (non-volatile flash memory) storage devices include NAND Flash particles for storing data and flash memory controllers for managing data stored in NAND Flash particles. As shown in Figure 1, the flash memory controller is connected to the NAND Flash particles through PCB (Printed Circuit Board, printed circuit board) traces, so as to realize the management of the data stored in the NAND Flash particles. It can be seen that the delay (delay) value on the read-write link between the flash memory controller and the NAND Flash particle is controlled by the delay value inside the NAND Flash particle, the delay value of the PCB trace between the NAND Flash particle and the flash memory controller, and the flash memory. The delay value of the internal link of the controller; among them, the delay value inside the NAND Flash particle is determined by the internal particle; the delay value of the PCB trace is determined by the length of the trace; the delay value of the internal link of the flash memory controller is determined by the internal circuit.
目前,闪存控制器与NAND Flash颗粒之间的具体连接关系如图2所示,二者之间的连接链路包括:DQS(Bi-directional Data Strobe,双向数据控制引脚)链路、DQ(数据输入/输出通道)链路及DBI(Data Bus Inversion,数据总线转位)链路;其中,DQ链路用于读写NAND Flash颗粒,其上传输的数据信号称为DQ信号;DBI链路上传输的DBI信号用于指示当前的DQ信号是否需要翻转;DQS链路上传输的DQS信号作为采集DQ信号和DBI信号的参考信号,以决定何时采集DQ信号和DBI信号。At present, the specific connection relationship between the flash memory controller and NAND Flash particles is shown in Figure 2. The connection links between the two include: DQS (Bi-directional Data Strobe, bidirectional data control pin) link, DQ ( Data input/output channel) link and DBI (Data Bus Inversion, data bus inversion) link; among them, DQ link is used to read and write NAND Flash particles, and the data signal transmitted on it is called DQ signal; DBI link The DBI signal transmitted above is used to indicate whether the current DQ signal needs to be reversed; the DQS signal transmitted on the DQS link is used as a reference signal for collecting DQ signals and DBI signals to determine when to collect DQ signals and DBI signals.
为了确保闪存控制器和NAND Flash颗粒之间数据传输的正确性,需要保证DQS信号、DQ信号及DBI信号之间的相位关系在一个正确的范围内。由于NAND Flash颗粒内部的delay值和规划好的PCB走线的delay值无法设置,所以DQS信号、DQ信号及DBI信号之间的相位关系只能通过设置闪存控制器内部链路的delay值来实现,在设置合适的闪存控制器内部链路的delay值后可保证闪存控制器和NAND Flash颗粒之间读写数据的准确性。In order to ensure the correctness of data transmission between the flash memory controller and NAND Flash particles, it is necessary to ensure that the phase relationship between the DQS signal, DQ signal and DBI signal is within a correct range. Since the delay value inside the NAND Flash particle and the delay value of the planned PCB trace cannot be set, the phase relationship between the DQS signal, DQ signal and DBI signal can only be realized by setting the delay value of the internal link of the flash memory controller. , the accuracy of reading and writing data between the flash memory controller and NAND Flash particles can be guaranteed after setting the appropriate delay value of the internal link of the flash memory controller.
目前,在设置好闪存控制器内部链路的delay值后,闪存控制器内部链路的delay值便确定下来,闪存控制器便以此delay值与NAND Flash颗粒之间进行数据传输。但是,这种方式只适用于闪存控制器连接一个NAND Flash颗粒的情况,若闪存控制器连接多个NAND Flash颗粒(如图3所示),由于闪存控制器与不同NAND Flash颗粒之间链路的实际delay值存在差异,所以闪存控制器内部链路原本设置的delay值可能无法适用于连接的所有NAND Flash颗粒,导致读写准确性降低。At present, after setting the delay value of the internal link of the flash memory controller, the delay value of the internal link of the flash memory controller is determined, and the flash memory controller uses this delay value to transmit data between NAND Flash particles. However, this method is only applicable to the case where the flash controller is connected to one NAND Flash particle. If the flash controller is connected to multiple NAND Flash particles (as shown in Figure 3), due to the link between the flash controller and different NAND Flash particles There are differences in the actual delay value, so the delay value originally set in the internal link of the flash memory controller may not be applicable to all connected NAND Flash particles, resulting in reduced read and write accuracy.
因此,如何提供一种解决上述技术问题的方案是本领域的技术人员目前需要解决的问题。Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present.
发明内容Contents of the invention
本发明的目的是提供一种闪存控制器、延迟调整方法及存储设备,可检测到闪存控制器操作的闪存颗粒是否切换,并在检测到闪存控制器操作的闪存颗粒切换时,将闪存控制器内部链路上的延迟参数调整至闪存控制器当前操作的闪存颗粒所适用的延迟参数,保证了读写准确性。The object of the present invention is to provide a flash memory controller, delay adjustment method and storage device, which can detect whether the flash memory particles operated by the flash memory controller are switched, and when detecting the switching of the flash memory particles operated by the flash memory controller, switch the flash memory controller to The delay parameters on the internal link are adjusted to the delay parameters applicable to the flash memory particles currently operated by the flash memory controller, so as to ensure the accuracy of reading and writing.
为解决上述技术问题,本发明提供了一种闪存控制器,包括:In order to solve the above technical problems, the present invention provides a flash memory controller, comprising:
分别与多个闪存颗粒连接的数据驱动模块,用于根据当前颗粒操作需求从多个所述闪存颗粒中选择目标闪存颗粒,以对所述目标闪存颗粒进行读写操作;A data drive module respectively connected to a plurality of flash memory particles, used to select a target flash memory particle from a plurality of said flash memory particles according to the current particle operation requirements, so as to perform read and write operations on said target flash memory particle;
与所述数据驱动模块连接的颗粒切换检测模块,用于在检测到所述数据驱动模块切换至所述目标闪存颗粒进行操作时,生成表征当前操作的闪存颗粒切换为所述目标闪存颗粒的检测信号;A particle switching detection module connected to the data drive module, used to generate a detection that the flash memory particle representing the current operation is switched to the target flash memory particle when it detects that the data drive module is switched to the target flash memory particle for operation Signal;
设于所述数据驱动模块和多个所述闪存颗粒之间的读写链路上的信号 延迟模块,用于按照当前所设置的延迟参数将所述数据驱动模块与所述目标闪存颗粒之间的读写操作信号进行延迟传输;The signal delay module arranged on the read-write link between the data drive module and the plurality of flash memory particles is used to transmit the data between the data drive module and the target flash memory particle according to the delay parameter currently set. Read and write operation signals for delayed transmission;
分别与所述颗粒切换检测模块和所述信号延迟模块连接的延迟参数设置模块,用于在接收到所述检测信号后,根据预设的闪存颗粒与延迟参数对应关系确定与所述目标闪存颗粒对应的目标延迟参数,并按照所述目标延迟参数调整所述信号延迟模块的延迟参数。A delay parameter setting module respectively connected to the particle switching detection module and the signal delay module, used to determine the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter after receiving the detection signal corresponding target delay parameters, and adjust the delay parameters of the signal delay module according to the target delay parameters.
可选地,所述数据驱动模块分别与多个所述闪存颗粒的CE端连接;Optionally, the data drive module is respectively connected to the CE terminals of a plurality of the flash memory particles;
所述数据驱动模块具体用于根据当前颗粒操作需求从多个所述闪存颗粒中确定预读写操作的目标闪存颗粒,并向所述目标闪存颗粒的CE端发送CE有效信号,以使所述目标闪存颗粒进入工作状态。The data drive module is specifically configured to determine a target flash memory particle for pre-reading and writing operations from a plurality of flash memory particles according to the current particle operation requirements, and send a CE valid signal to the CE end of the target flash memory particle, so that the The target flash memory particle enters the working state.
可选地,所述颗粒切换检测模块分别与所述数据驱动模块和多个所述闪存颗粒的CE端之间的多条使能链路连接;Optionally, the particle switching detection module is respectively connected to multiple enabling links between the data driving module and the CE terminals of multiple flash memory particles;
所述颗粒切换检测模块具体用于在检测到与所述目标闪存颗粒连接的使能链路上开始传输所述CE有效信号时,确定所述数据驱动模块切换至所述目标闪存颗粒进行操作。The particle switching detection module is specifically configured to determine that the data drive module switches to the target flash memory particle for operation when detecting that the CE valid signal is started to be transmitted on the enabling link connected to the target flash memory particle.
可选地,所述颗粒切换检测模块内部设有用于记录所述数据驱动模块上一次操作的闪存颗粒对应的CE值的CE寄存器;Optionally, the particle switching detection module is internally provided with a CE register for recording the CE value corresponding to the flash memory particle last operated by the data drive module;
所述颗粒切换检测模块具体用于从多条所述使能链路中确定当前传输有所述CE有效信号的目标使能链路,并根据预设的使能链路与CE值对应关系确定与所述目标使能链路对应的目标CE值,若所述目标CE值与所述CE寄存器当前存储的CE值不一致,则确定所述数据驱动模块切换至与所述目标使能链路连接的闪存颗粒进行操作,并基于所述目标CE值更新所述CE寄存器。The granular switching detection module is specifically configured to determine the target enabled link that currently transmits the CE valid signal from among the plurality of enabled links, and determine according to the preset corresponding relationship between the enabled link and the CE value. The target CE value corresponding to the target enabling link, if the target CE value is inconsistent with the CE value currently stored in the CE register, it is determined that the data driver module is switched to connect to the target enabling link The flash memory particles are operated, and the CE register is updated based on the target CE value.
可选地,所述检测信号为携带所述目标CE值的信号;Optionally, the detection signal is a signal carrying the target CE value;
则所述延迟参数设置模块具体用于在接收到所述检测信号后,根据预设的CE值与延迟参数对应关系确定与所述目标CE值对应的目标延迟参数,并按照所述目标延迟参数调整所述信号延迟模块的延迟参数。Then the delay parameter setting module is specifically used to determine the target delay parameter corresponding to the target CE value according to the preset corresponding relationship between the CE value and the delay parameter after receiving the detection signal, and according to the target delay parameter Adjust the delay parameters of the signal delay module.
可选地,所述颗粒切换检测模块还用于在检测到所述数据驱动模块切换至所述目标闪存颗粒进行操作之后,在生成所述检测信号之前,生成触 发信号;Optionally, the particle switching detection module is further configured to generate a trigger signal before generating the detection signal after detecting that the data drive module switches to the target flash memory particle for operation;
则所述延迟参数设置模块还用于检测是否接收到所述触发信号;若是,则进入在接收到所述检测信号后调参的步骤;若否,则不进入在接收到所述检测信号后调参的步骤。Then the delay parameter setting module is also used to detect whether the trigger signal is received; if so, enter the step of parameter adjustment after receiving the detection signal; if not, do not enter after receiving the detection signal Steps for parameter tuning.
可选地,所述数据驱动模块还用于在从多个所述闪存颗粒中选择目标闪存颗粒时,生成表征当前操作的闪存颗粒切换为所述目标闪存颗粒的切换信号至所述颗粒切换检测模块;Optionally, the data drive module is further configured to generate a switching signal representing that the currently operating flash memory particle is switched to the target flash memory particle when selecting a target flash memory particle from a plurality of the flash memory particles to the particle switching detection module;
则所述颗粒切换检测模块具体用于基于所述切换信号确定所述数据驱动模块切换至所述目标闪存颗粒进行操作。The particle switching detection module is specifically configured to determine that the data drive module switches to the target flash memory particle based on the switching signal to operate.
可选地,所述延迟参数设置模块内部设有用于存储多个延迟参数表的参数寄存器;其中,多个所述延迟参数表用于一一记录多个所述闪存颗粒所适用的延迟参数;Optionally, the delay parameter setting module is internally provided with parameter registers for storing multiple delay parameter tables; wherein, the multiple delay parameter tables are used to record delay parameters applicable to multiple flash memory particles one by one;
所述延迟参数设置模块具体用于在接收到所述检测信号后,根据预设的闪存颗粒与延迟参数表对应关系确定与所述目标闪存颗粒对应的目标延迟参数表,并按照所述目标延迟参数表中记录的延迟参数调整所述信号延迟模块的延迟参数。The delay parameter setting module is specifically configured to, after receiving the detection signal, determine a target delay parameter table corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter table, and The delay parameters recorded in the parameter table adjust the delay parameters of the signal delay module.
可选地,所述读写链路包括DQS输入/输出链路、DQ输入/输出链路及DBI输入/输出链路;每个所述延迟参数表记录的延迟参数均包括DQS信号的输入/输出延迟参数、DQ信号的输入/输出延迟参数及DBI信号的输入/输出延迟参数;Optionally, the read-write link includes a DQS input/output link, a DQ input/output link, and a DBI input/output link; each delay parameter recorded in the delay parameter table includes an input/output link of a DQS signal. Output delay parameters, input/output delay parameters of DQ signals and input/output delay parameters of DBI signals;
所述信号延迟模块包括:The signal delay module includes:
一一设于多个所述读写链路上的多个信号延迟元件;- a plurality of signal delay elements arranged on a plurality of said read-write links;
所述延迟参数设置模块具体用于按照所述目标延迟参数表中记录的多个延迟参数一一对应调整多个所述信号延迟元件的延迟参数。The delay parameter setting module is specifically configured to adjust the delay parameters of the plurality of signal delay elements in a one-to-one correspondence according to the plurality of delay parameters recorded in the target delay parameter table.
为解决上述技术问题,本发明还提供了一种延迟调整方法,应用于与多个闪存颗粒连接的闪存控制器,包括:In order to solve the above technical problems, the present invention also provides a delay adjustment method, which is applied to a flash memory controller connected to multiple flash memory particles, including:
根据当前颗粒操作需求从多个所述闪存颗粒中选择目标闪存颗粒,以对所述目标闪存颗粒进行读写操作;Selecting a target flash memory particle from a plurality of the flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle;
在检测到切换至所述目标闪存颗粒进行操作时,根据预设的闪存颗粒 与延迟参数对应关系确定与所述目标闪存颗粒对应的目标延迟参数;When it is detected that switching to the target flash memory particle is operated, the target delay parameter corresponding to the target flash memory particle is determined according to the preset corresponding relationship between the flash memory particle and the delay parameter;
按照所述目标延迟参数调整所述目标闪存颗粒对应的目标读写链路上的延迟参数,以延迟传输所述目标读写链路上的读写操作信号。Adjusting the delay parameter on the target read-write link corresponding to the target flash memory particle according to the target delay parameter, so as to delay transmission of the read-write operation signal on the target read-write link.
可选地,所述闪存控制器分别与多个所述闪存颗粒的CE端连接;所述闪存控制器内部设有用于记录上一次操作的闪存颗粒对应的CE值的CE寄存器;Optionally, the flash memory controller is respectively connected to the CE terminals of a plurality of the flash memory particles; the flash memory controller is internally provided with a CE register for recording the CE value corresponding to the flash memory particle last operated;
则切换至所述目标闪存颗粒进行操作的检测过程,包括:Then switch to the detection process of the target flash memory particles for operation, including:
从与多个所述闪存颗粒的CE端一一连接的多条使能链路中确定当前传输有CE有效信号的目标使能链路;Determining a target enabling link that currently transmits a CE valid signal from a plurality of enabling links connected one by one to the CE ends of a plurality of said flash memory particles;
根据预设的使能链路与CE值对应关系确定与所述目标使能链路对应的目标CE值;determining a target CE value corresponding to the target enabled link according to a preset corresponding relationship between enabled links and CE values;
若所述目标CE值与所述CE寄存器当前存储的CE值不一致,则确定切换至与所述目标使能链路连接的闪存颗粒进行操作,并基于所述目标CE值更新所述CE寄存器;If the target CE value is inconsistent with the CE value currently stored in the CE register, determine to switch to the flash memory particle connected to the target enabling link for operation, and update the CE register based on the target CE value;
且根据预设的闪存颗粒与延迟参数对应关系确定与所述目标闪存颗粒对应的目标延迟参数,包括:And determine the target delay parameter corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter, including:
根据预设的CE值与延迟参数对应关系确定与所述目标CE值对应的目标延迟参数。The target delay parameter corresponding to the target CE value is determined according to the preset corresponding relationship between the CE value and the delay parameter.
为解决上述技术问题,本发明还提供了一种存储设备,包括多个闪存颗粒及上述任一种闪存控制器。In order to solve the above technical problem, the present invention also provides a storage device, which includes a plurality of flash memory particles and any one of the above flash memory controllers.
本发明提供了一种闪存控制器,包括数据驱动模块、颗粒切换检测模块、信号延迟模块及延迟参数设置模块。数据驱动模块用于根据当前颗粒操作需求从多个闪存颗粒中选择目标闪存颗粒,以对目标闪存颗粒进行读写操作;颗粒切换检测模块用于在检测到数据驱动模块切换至目标闪存颗粒进行操作时,生成表征当前操作的闪存颗粒切换为目标闪存颗粒的检测信号;信号延迟模块用于按照当前所设置的延迟参数将数据驱动模块与目标闪存颗粒之间的读写操作信号进行延迟传输;延迟参数设置模块用于在接收到检测信号后,根据预设的闪存颗粒与延迟参数对应关系确定与目标闪存颗粒对应的目标延迟参数,并按照目标延迟参数调整信号延迟模块的 延迟参数。可见,本申请可检测到闪存控制器操作的闪存颗粒是否切换,并在检测到闪存控制器操作的闪存颗粒切换时,将闪存控制器内部链路上的延迟参数调整至闪存控制器当前操作的闪存颗粒所适用的延迟参数,保证了读写准确性。The invention provides a flash memory controller, which includes a data driving module, a particle switching detection module, a signal delay module and a delay parameter setting module. The data driving module is used to select the target flash memory particle from multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle; the particle switching detection module is used to switch to the target flash memory particle for operation after the data driving module is detected , generate a detection signal that indicates that the currently operating flash memory particle switches to the target flash memory particle; the signal delay module is used to delay the transmission of the read and write operation signals between the data drive module and the target flash memory particle according to the currently set delay parameters; delay The parameter setting module is used to determine the target delay parameter corresponding to the target flash memory particle according to the preset correspondence between the flash memory particle and the delay parameter after receiving the detection signal, and adjust the delay parameter of the signal delay module according to the target delay parameter. It can be seen that the present application can detect whether the flash memory particles operated by the flash controller are switched, and when detecting the switching of the flash memory particles operated by the flash controller, adjust the delay parameter on the internal link of the flash controller to the current operation of the flash controller. The delay parameters applicable to flash memory particles ensure the accuracy of reading and writing.
本发明还提供了一种延迟调整方法及存储设备,与上述闪存控制器具有相同的有益效果。The present invention also provides a delay adjustment method and a storage device, which have the same beneficial effect as the above-mentioned flash memory controller.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the prior art and the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为现有技术中的一种NAND Flash存储设备的结构示意图;Fig. 1 is the structural representation of a kind of NAND Flash storage device in the prior art;
图2为现有技术中的一种闪存控制器与NAND Flash颗粒之间的具体连接关系示意图;Fig. 2 is a schematic diagram of the specific connection relationship between a flash memory controller and NAND Flash particles in the prior art;
图3为现有技术中的一种闪存控制器连接多个NAND Flash颗粒的结构示意图;Fig. 3 is the structural representation of a kind of flash memory controller connecting a plurality of NAND Flash particles in the prior art;
图4为本发明实施例提供的一种闪存控制器的结构示意图;FIG. 4 is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention;
图5为本发明实施例提供的一种数据驱动模块连接多个闪存颗粒的CE端的结构示意图;5 is a schematic structural diagram of a data drive module connected to CE terminals of multiple flash memory particles provided by an embodiment of the present invention;
图6为本发明实施例提供的一种闪存控制器的具体结构示意图;FIG. 6 is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention;
图7为本发明实施例提供的一种多个闪存颗粒对应的延迟参数表的延迟参数记录图;FIG. 7 is a delay parameter recording diagram of a delay parameter table corresponding to a plurality of flash memory particles provided by an embodiment of the present invention;
图8为本发明实施例提供的一种延迟调整方法的流程图;FIG. 8 is a flowchart of a delay adjustment method provided by an embodiment of the present invention;
图9为本发明实施例提供的一种检测操作的闪存颗粒是否发生切换的流程图。FIG. 9 is a flow chart of detecting whether switching of flash memory particles in operation is provided by an embodiment of the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种闪存控制器、延迟调整方法及存储设备,可 检测到闪存控制器操作的闪存颗粒是否切换,并在检测到闪存控制器操作的闪存颗粒切换时,将闪存控制器内部链路上的延迟参数调整至闪存控制器当前操作的闪存颗粒所适用的延迟参数,保证了读写准确性。The core of the present invention is to provide a flash memory controller, a delay adjustment method, and a storage device, which can detect whether the flash memory particles operated by the flash memory controller are switched, and when detecting that the flash memory particles operated by the flash memory controller are switched, switch the flash memory controller to The delay parameters on the internal link are adjusted to the delay parameters applicable to the flash memory particles currently operated by the flash memory controller, so as to ensure the accuracy of reading and writing.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
请参照图4,图4为本发明实施例提供的一种闪存控制器的结构示意图。Please refer to FIG. 4 , which is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention.
该闪存控制器包括:The flash controller includes:
分别与多个闪存颗粒连接的数据驱动模块1,用于根据当前颗粒操作需求从多个闪存颗粒中选择目标闪存颗粒,以对目标闪存颗粒进行读写操作;A data drive module 1 respectively connected to multiple flash memory particles is used to select a target flash memory particle from multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle;
与数据驱动模块1连接的颗粒切换检测模块2,用于在检测到数据驱动模块1切换至目标闪存颗粒进行操作时,生成表征当前操作的闪存颗粒切换为目标闪存颗粒的检测信号;The particle switching detection module 2 connected with the data drive module 1 is used to generate a detection signal that the flash memory particle representing the current operation is switched to the target flash memory particle when it is detected that the data drive module 1 is switched to the target flash memory particle for operation;
设于数据驱动模块1和多个闪存颗粒之间的读写链路上的信号延迟模块3,用于按照当前所设置的延迟参数将数据驱动模块1与目标闪存颗粒之间的读写操作信号进行延迟传输;The signal delay module 3 arranged on the read-write link between the data drive module 1 and a plurality of flash memory particles is used to transmit the read and write operation signals between the data drive module 1 and the target flash memory particles according to the delay parameter currently set. carry out delayed transmission;
分别与颗粒切换检测模块2和信号延迟模块3连接的延迟参数设置模块4,用于在接收到检测信号后,根据预设的闪存颗粒与延迟参数对应关系确定与目标闪存颗粒对应的目标延迟参数,并按照目标延迟参数调整信号延迟模块3的延迟参数。The delay parameter setting module 4 connected with the particle switching detection module 2 and the signal delay module 3 respectively is used to determine the target delay parameter corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter after receiving the detection signal , and adjust the delay parameter of the signal delay module 3 according to the target delay parameter.
具体地,本申请的存储设备包括多个闪存颗粒和闪存控制器,闪存控制器包括数据驱动模块1、颗粒切换检测模块2、信号延迟模块3及延迟参数设置模块4,其工作原理为:Specifically, the storage device of the present application includes a plurality of flash memory particles and a flash memory controller, and the flash memory controller includes a data drive module 1, a particle switching detection module 2, a signal delay module 3 and a delay parameter setting module 4, and its working principle is as follows:
数据驱动模块1分别与多个闪存颗粒连接,数据驱动模块1可根据当前颗粒操作需求从多个闪存颗粒中选择目标闪存颗粒,以对目标闪存颗粒进行读写操作。需要说明的是,数据驱动模块1每次只能选择一个闪存颗粒进 行读写操作,即数据驱动模块1不能同时操作多个闪存颗粒,具体可认为是数据驱动模块1分时操作各个闪存颗粒。The data driving module 1 is respectively connected to multiple flash memory particles, and the data driving module 1 can select a target flash memory particle from the multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle. It should be noted that the data drive module 1 can only select one flash memory particle for read and write operations at a time, that is, the data drive module 1 cannot operate multiple flash memory particles at the same time. Specifically, it can be considered that the data drive module 1 operates each flash memory particle in a time-sharing manner.
颗粒切换检测模块2分别与数据驱动模块1和延迟参数设置模块4连接,颗粒切换检测模块2可在检测到数据驱动模块1切换至目标闪存颗粒进行操作时,生成表征当前操作的闪存颗粒切换为目标闪存颗粒的检测信号,并将生成的检测信号发送至延迟参数设置模块4。Particle switching detection module 2 is connected with data driving module 1 and delay parameter setting module 4 respectively, and particle switching detection module 2 can generate the flash memory particle representing the current operation when switching to the target flash memory particle for operation when detecting that data driving module 1 is switched to The detection signal of the target flash memory particle, and the generated detection signal is sent to the delay parameter setting module 4.
信号延迟模块3设于数据驱动模块1和多个闪存颗粒之间的读写链路上。在数据驱动模块1当前操作的闪存颗粒切换为目标闪存颗粒时,信号延迟模块3可按照自身当前所设置的延迟参数,将数据驱动模块1与目标闪存颗粒之间的读写操作信号进行延迟传输。可以理解的是,信号延迟模块3位于闪存控制器内,信号延迟模块3的延迟参数决定了闪存控制器内部链路的延迟值,则调整信号延迟模块3的延迟参数相当于调整闪存控制器内部链路的延迟值,从而可通过调整信号延迟模块3的延迟参数,使闪存控制器内部链路的延迟值适用于当前操作的目标闪存颗粒,从而可以很好解决闪存控制器连接多个闪存颗粒时延迟参数不一致的问题。The signal delay module 3 is arranged on the read-write link between the data drive module 1 and multiple flash memory particles. When the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle, the signal delay module 3 can delay the transmission of the read and write operation signals between the data drive module 1 and the target flash memory particle according to the delay parameter currently set by itself . It can be understood that the signal delay module 3 is located in the flash memory controller, and the delay parameter of the signal delay module 3 determines the delay value of the internal link of the flash memory controller, so adjusting the delay parameter of the signal delay module 3 is equivalent to adjusting the internal link of the flash memory controller The delay value of the link, so that by adjusting the delay parameter of the signal delay module 3, the delay value of the internal link of the flash memory controller is suitable for the target flash memory particle of the current operation, which can well solve the problem of connecting multiple flash memory particles to the flash memory controller. The problem of inconsistent delay parameters.
信号延迟模块3的延迟参数的调整由延迟参数设置模块4实现,延迟参数设置模块4可在接收到检测信号后,基于检测信号确定数据驱动模块1当前操作的闪存颗粒切换为目标闪存颗粒,并根据预设的闪存颗粒与延迟参数对应关系(表征不同闪存颗粒各自适用的信号延迟模块3的延迟参数),确定与目标闪存颗粒对应的目标延迟参数,然后按照目标延迟参数调整信号延迟模块3的延迟参数,以使闪存控制器内部链路的延迟值适用于当前操作的目标闪存颗粒,保证读写准确性。The adjustment of the delay parameter of the signal delay module 3 is realized by the delay parameter setting module 4. After receiving the detection signal, the delay parameter setting module 4 can determine that the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle based on the detection signal, and According to the preset corresponding relationship between flash memory particles and delay parameters (characterize the delay parameters of signal delay modules 3 applicable to different flash memory particles), determine the target delay parameters corresponding to the target flash memory particles, and then adjust the signal delay module 3 according to the target delay parameters. Delay parameters, so that the delay value of the internal link of the flash memory controller is suitable for the target flash memory particle currently operating, so as to ensure the accuracy of reading and writing.
需要说明的是,一般情况下,同一存储设备内的多个闪存颗粒是同一种类型的闪存颗粒,当然,也可支持不同类型的闪存颗粒(如SLC(Single Level Cell,单层单元)、MLC(Multi-Level Cell,双层单元)、TLC(Triple Level Cell,三层单元)、QLC(Quad-Level Cell,四层单元)等类型),这属于颗粒混用。每个闪存颗粒的特性不一样,因此工况也就不一样了,低频情况下不同工况共用同一组延迟参数也能工作,高频情况下每种工况需设置不同的延迟参数,这样才能保证高精准度,能更好匹配。It should be noted that, in general, multiple flash memory particles in the same storage device are the same type of flash memory particles. Of course, different types of flash memory particles (such as SLC (Single Level Cell, single-level cell), MLC (Multi-Level Cell, double-layer unit), TLC (Triple Level Cell, three-layer unit), QLC (Quad-Level Cell, four-layer unit) and other types), which belong to the mixed use of particles. The characteristics of each flash memory particle are different, so the working conditions are also different. In the case of low frequency and different working conditions, the same set of delay parameters can also work. In the case of high frequency, different delay parameters need to be set for each working condition. Guaranteed high precision and better matching.
可见,本申请可检测到闪存控制器操作的闪存颗粒是否切换,并在检测到闪存控制器操作的闪存颗粒切换时,将闪存控制器内部链路上的延迟参数调整至闪存控制器当前操作的闪存颗粒所适用的延迟参数,保证了读写准确性。而且,本申请的数据驱动模块、颗粒切换检测模块、信号延迟模块及延迟参数设置模块都是纯硬件模块,无需软件介入调整,可有效提高读写性能。It can be seen that the present application can detect whether the flash memory particles operated by the flash controller are switched, and when detecting the switching of the flash memory particles operated by the flash controller, adjust the delay parameter on the internal link of the flash controller to the current operation of the flash controller. The delay parameters applicable to flash memory particles ensure the accuracy of reading and writing. Moreover, the data drive module, particle switching detection module, signal delay module and delay parameter setting module of the present application are all pure hardware modules, which can effectively improve read and write performance without software intervention and adjustment.
在上述实施例的基础上:On the basis of above-mentioned embodiment:
作为一种可选的实施例,数据驱动模块1分别与多个闪存颗粒的CE端连接;As an optional embodiment, the data drive module 1 is respectively connected to the CE terminals of a plurality of flash memory particles;
数据驱动模块1具体用于根据当前颗粒操作需求从多个闪存颗粒中确定预读写操作的目标闪存颗粒,并向目标闪存颗粒的CE端发送CE有效信号,以使目标闪存颗粒进入工作状态。The data drive module 1 is specifically used to determine the target flash memory particle for pre-reading and writing operations from multiple flash memory particles according to the current particle operation requirements, and send a CE valid signal to the CE terminal of the target flash memory particle, so that the target flash memory particle enters the working state.
具体地,如图5所示,本申请的数据驱动模块1分别与多个闪存颗粒的CE(chip enable,芯片使能)端连接,供数据驱动模块1从多个闪存颗粒中选择目标闪存颗粒使用。Specifically, as shown in Figure 5, the data driver module 1 of the present application is respectively connected to the CE (chip enable, chip enable) end of a plurality of flash memory particles, for the data driver module 1 to select the target flash memory particle from a plurality of flash memory particles use.
基于此,数据驱动模块1从多个闪存颗粒中选择目标闪存颗粒的原理具体为:根据当前颗粒操作需求从多个闪存颗粒中确定预读写操作的目标闪存颗粒,然后向目标闪存颗粒的CE端发送CE有效信号,以使目标闪存颗粒进入工作状态,从而实现对目标闪存颗粒进行读写操作。需要说明的是,数据驱动模块1每次只向一个闪存颗粒的CE端发送CE有效信号,即每次只选择一个闪存颗粒进行读写操作。Based on this, the principle of data drive module 1 selecting a target flash memory particle from multiple flash memory particles is as follows: determine the target flash memory particle for pre-reading and writing operations from multiple flash memory particles according to the current particle operation requirements, and then report to the CE of the target flash memory particle The terminal sends a CE valid signal to make the target flash memory particles enter the working state, so as to realize the read and write operations on the target flash memory particles. It should be noted that the data drive module 1 only sends a CE valid signal to the CE terminal of one flash memory particle each time, that is, only one flash memory particle is selected for read and write operations each time.
更具体地,CE有效信号为低电平信号,则数据驱动模块1和多个闪存颗粒的CE端之间的多条使能链路中,每次只有一条使能链路传输低电平信号,其余使能链路均传输高电平信号,从而实现每次只选择一个闪存颗粒进行读写操作。More specifically, the CE effective signal is a low-level signal, and among multiple enable links between the data drive module 1 and the CE terminals of multiple flash memory particles, only one enable link transmits a low-level signal at a time , and the other enabling links transmit high-level signals, so that only one flash memory particle is selected for read and write operations at a time.
作为一种可选的实施例,颗粒切换检测模块2分别与数据驱动模块1和多个闪存颗粒的CE端之间的多条使能链路连接;As an optional embodiment, the particle switching detection module 2 is respectively connected to multiple enabling links between the data drive module 1 and the CE ends of multiple flash memory particles;
颗粒切换检测模块2具体用于在检测到与目标闪存颗粒连接的使能链 路上开始传输CE有效信号时,确定数据驱动模块1切换至目标闪存颗粒进行操作。The particle switching detection module 2 is specifically used to determine that the data drive module 1 is switched to the target flash memory particle for operation when it detects that the enabling link connected to the target flash memory particle starts to transmit the CE valid signal.
具体地,数据驱动模块1分别与多个闪存颗粒的CE端连接,则数据驱动模块1与每个闪存颗粒的CE端之间均连接有一条使能链路,颗粒切换检测模块2分别与数据驱动模块1和多个闪存颗粒的CE端之间的多条使能链路连接,则颗粒切换检测模块2确定数据驱动模块1切换至目标闪存颗粒进行操作的原理具体为:在检测到与目标闪存颗粒连接的使能链路上开始传输CE有效信号时,确定数据驱动模块1切换至目标闪存颗粒进行操作。Specifically, the data drive module 1 is respectively connected to the CE terminals of a plurality of flash memory particles, and an enabling link is connected between the data drive module 1 and the CE terminals of each flash memory particle, and the particle switching detection module 2 is respectively connected to the data The driving module 1 is connected to multiple enabling links between the CE terminals of multiple flash memory particles, and then the particle switching detection module 2 determines that the data driving module 1 switches to the target flash memory particle for operation. When the enable link connected to the flash memory particle starts to transmit the CE valid signal, it is determined that the data driving module 1 is switched to the target flash memory particle for operation.
作为一种可选的实施例,颗粒切换检测模块2内部设有用于记录数据驱动模块1上一次操作的闪存颗粒对应的CE值的CE寄存器;As an optional embodiment, the particle switching detection module 2 is internally provided with a CE register for recording the CE value corresponding to the flash memory particle last operated by the data drive module 1;
颗粒切换检测模块2具体用于从多条使能链路中确定当前传输有CE有效信号的目标使能链路,并根据预设的使能链路与CE值对应关系确定与目标使能链路对应的目标CE值,若目标CE值与CE寄存器当前存储的CE值不一致,则确定数据驱动模块1切换至与目标使能链路连接的闪存颗粒进行操作,并基于目标CE值更新CE寄存器。The granular switching detection module 2 is specifically used to determine the target enabled link that currently transmits a CE effective signal from multiple enabled links, and determine the corresponding relationship between the enabled link and the CE value according to the preset enabled link. If the target CE value is inconsistent with the CE value currently stored in the CE register, it is determined that the data driver module 1 switches to the flash memory particle connected to the target enabling link for operation, and updates the CE register based on the target CE value .
具体地,数据驱动模块1与每个闪存颗粒的CE端之间均连接有一条使能链路,为了区分数据驱动模块1与多个闪存颗粒的CE端之间连接的多条使能链路,分别为每条使能链路定义一个CE值,不同使能链路定义的CE值不同,如数据驱动模块1与第N个闪存颗粒的CE端之间连接的第N条使能链路对应的CE值可定义为N。Specifically, an enabling link is connected between the data driving module 1 and the CE end of each flash memory particle, in order to distinguish multiple enabling links connected between the data driving module 1 and the CE ends of multiple flash memory particles , respectively define a CE value for each enabled link, and the CE values defined by different enabled links are different, such as the Nth enabled link connected between the data driver module 1 and the CE terminal of the Nth flash memory particle The corresponding CE value can be defined as N.
基于此,本申请的颗粒切换检测模块2内部设有CE寄存器,CE寄存器中记录有数据驱动模块1上一次操作的闪存颗粒对应的CE值。则颗粒切换检测模块2确定数据驱动模块1切换闪存颗粒进行操作的原理具体为:Based on this, the particle switching detection module 2 of the present application has a CE register inside, and the CE register records the CE value corresponding to the flash memory particle that the data drive module 1 operated last time. Then the particle switching detection module 2 determines that the data drive module 1 switches the flash memory particles to operate, specifically as follows:
颗粒切换检测模块2从多条使能链路中确定当前传输有CE有效信号的目标使能链路,并根据预设的使能链路与CE值对应关系确定与目标使能链路对应的目标CE值,然后判断目标CE值与CE寄存器当前存储的CE值是否一致,若目标CE值与CE寄存器当前存储的CE值一致,则确定数据驱动模块1当前未切换操作的闪存颗粒;若目标CE值与CE寄存器当前存储的CE值不一致,则确定数据驱动模块1切换至与目标使能链路连接的闪存颗粒进行 操作,并基于目标CE值更新CE寄存器,供后续判断数据驱动模块1是否切换操作的闪存颗粒使用。The granular switching detection module 2 determines the target enabled link that currently transmits a valid CE signal from multiple enabled links, and determines the corresponding link to the target enabled link according to the preset corresponding relationship between the enabled link and the CE value. The target CE value, and then judge whether the target CE value is consistent with the CE value currently stored in the CE register. If the target CE value is consistent with the CE value currently stored in the CE register, it is determined that the data driver module 1 is not currently switching the flash memory particles; if the target If the CE value is inconsistent with the CE value currently stored in the CE register, it is determined that the data driver module 1 switches to the flash memory particle connected to the target enabling link for operation, and updates the CE register based on the target CE value for subsequent judgment of whether the data driver module 1 Toggle operation of flash particles used.
作为一种可选的实施例,检测信号为携带目标CE值的信号;As an optional embodiment, the detection signal is a signal carrying a target CE value;
则延迟参数设置模块4具体用于在接收到检测信号后,根据预设的CE值与延迟参数对应关系确定与目标CE值对应的目标延迟参数,并按照目标延迟参数调整信号延迟模块3的延迟参数。Then the delay parameter setting module 4 is specifically used to determine the target delay parameter corresponding to the target CE value according to the preset CE value and the delay parameter correspondence after receiving the detection signal, and adjust the delay of the signal delay module 3 according to the target delay parameter parameter.
具体地,颗粒切换检测模块2在确定数据驱动模块1切换至与目标使能链路连接的闪存颗粒进行操作时,会生成表征当前操作的闪存颗粒切换为与目标使能链路连接的闪存颗粒的检测信号,并将生成的检测信号发送至延迟参数设置模块4。由于目标CE值可表征当前操作的闪存颗粒切换为与目标使能链路连接的闪存颗粒,所以颗粒切换检测模块2在确定数据驱动模块1切换至与目标使能链路连接的闪存颗粒进行操作时,可具体生成携带目标CE值的检测信号,并将携带目标CE值的检测信号发送至延迟参数设置模块4。Specifically, when the particle switching detection module 2 determines that the data drive module 1 is switched to the flash particle connected to the target enabling link for operation, it will generate a flash particle that represents the current operation to be switched to a flash particle connected to the target enabling link. and send the generated detection signal to the delay parameter setting module 4. Since the target CE value can indicate that the currently operating flash memory particle is switched to the flash memory particle connected to the target enabling link, the particle switching detection module 2 is determined to switch to the flash memory particle connected to the target enabling link for operation. When , the detection signal carrying the target CE value can be specifically generated, and the detection signal carrying the target CE value can be sent to the delay parameter setting module 4 .
基于此,延迟参数设置模块4调整信号延迟模块3的延迟参数的原理具体为:在接收到携带目标CE值的检测信号后,根据预设的CE值与延迟参数对应关系(表征不同CE值对应的闪存颗粒各自适用的信号延迟模块3的延迟参数),确定与检测信号中携带的目标CE值对应的目标延迟参数,然后按照目标延迟参数调整信号延迟模块3的延迟参数,以使闪存控制器内部链路的延迟值适用于当前操作的闪存颗粒,保证读写准确性。Based on this, the delay parameter setting module 4 adjusts the delay parameter principle of the signal delay module 3 specifically as follows: after receiving the detection signal carrying the target CE value, according to the preset CE value and the delay parameter correspondence (representing that different CE values correspond to The delay parameters of the respective applicable signal delay modules 3 of the flash memory particles), determine the target delay parameters corresponding to the target CE value carried in the detection signal, and then adjust the delay parameters of the signal delay module 3 according to the target delay parameters, so that the flash memory controller The delay value of the internal link is applicable to the currently operating flash memory particles to ensure read and write accuracy.
作为一种可选的实施例,颗粒切换检测模块2还用于在检测到数据驱动模块1切换至目标闪存颗粒进行操作之后,在生成检测信号之前,生成触发信号;As an optional embodiment, the particle switching detection module 2 is also used to generate a trigger signal after detecting that the data drive module 1 switches to the target flash memory particle for operation and before generating the detection signal;
则延迟参数设置模块4还用于检测是否接收到触发信号;若是,则进入在接收到检测信号后调参的步骤;若否,则不进入在接收到检测信号后调参的步骤。Then the delay parameter setting module 4 is also used to detect whether a trigger signal is received; if so, enter the step of adjusting parameters after receiving the detection signal; if not, then do not enter the step of adjusting parameters after receiving the detection signal.
进一步地,本申请的颗粒切换检测模块2在检测到数据驱动模块1切换至目标闪存颗粒进行操作之后,先发送触发信号至延迟参数设置模块4,再发送检测信号至延迟参数设置模块4,目的是先通知延迟参数设置模块4即 将进入调参过程,然后再将表征当前操作的闪存颗粒切换为目标闪存颗粒的检测信号发送给延迟参数设置模块4,以由延迟参数设置模块4基于接收的检测信号进入调参过程,从而保证调参准确性。Further, after the particle switching detection module 2 of the present application detects that the data drive module 1 switches to the target flash memory particle for operation, it first sends a trigger signal to the delay parameter setting module 4, and then sends a detection signal to the delay parameter setting module 4. It is to first notify the delay parameter setting module 4 that it is about to enter the parameter adjustment process, and then send the detection signal that the flash memory particle representing the current operation is switched to the target flash memory particle to the delay parameter setting module 4, so that the detection signal received by the delay parameter setting module 4 The signal enters the parameter adjustment process to ensure the accuracy of parameter adjustment.
作为一种可选的实施例,数据驱动模块1还用于在从多个闪存颗粒中选择目标闪存颗粒时,生成表征当前操作的闪存颗粒切换为目标闪存颗粒的切换信号至颗粒切换检测模块2;As an optional embodiment, the data drive module 1 is also used to generate a switching signal representing that the currently operating flash memory particle is switched to the target flash memory particle to the particle switching detection module 2 when selecting a target flash memory particle from a plurality of flash memory particles ;
则颗粒切换检测模块2具体用于基于切换信号确定数据驱动模块1切换至目标闪存颗粒进行操作。The particle switching detection module 2 is specifically configured to determine based on the switching signal that the data driving module 1 switches to the target flash memory particle for operation.
具体地,颗粒切换检测模块2除了上述与数据驱动模块1和多个闪存颗粒的CE端之间的多条使能链路连接,通过检测与目标闪存颗粒连接的使能链路上开始传输CE有效信号来确定数据驱动模块1切换至目标闪存颗粒进行操作之外,还有另外确定数据驱动模块1切换至目标闪存颗粒进行操作的方式:Specifically, the particle switching detection module 2, in addition to the above-mentioned connection with multiple enabling links between the data drive module 1 and the CE terminals of multiple flash memory particles, starts to transmit CE by detecting the enabling link connected to the target flash memory particle. In addition to determining that the data driver module 1 is switched to the target flash memory particle for operation by a valid signal, there is another way to determine that the data driver module 1 is switched to the target flash memory particle for operation:
数据驱动模块1在从多个闪存颗粒中选择目标闪存颗粒时,还生成表征当前操作的闪存颗粒切换为目标闪存颗粒的切换信号至颗粒切换检测模块2。颗粒切换检测模块2在接收到切换信号后,便可直接基于切换信号确定数据驱动模块1切换至目标闪存颗粒进行操作。When the data driving module 1 selects a target flash memory particle from multiple flash memory particles, it also generates a switching signal indicating that the currently operating flash memory particle is switched to the target flash memory particle to the particle switching detection module 2 . After the particle switching detection module 2 receives the switching signal, it can directly determine based on the switching signal that the data driving module 1 switches to the target flash memory particle for operation.
作为一种可选的实施例,延迟参数设置模块4内部设有用于存储多个延迟参数表的参数寄存器;其中,多个延迟参数表用于一一记录多个闪存颗粒所适用的延迟参数;As an optional embodiment, the delay parameter setting module 4 is internally provided with a parameter register for storing a plurality of delay parameter tables; wherein, a plurality of delay parameter tables are used to record the applicable delay parameters of a plurality of flash memory particles one by one;
延迟参数设置模块4具体用于在接收到检测信号后,根据预设的闪存颗粒与延迟参数表对应关系确定与目标闪存颗粒对应的目标延迟参数表,并按照目标延迟参数表中记录的延迟参数调整信号延迟模块3的延迟参数。The delay parameter setting module 4 is specifically used to determine the target delay parameter table corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter table after receiving the detection signal, and according to the delay parameter recorded in the target delay parameter table Adjust the delay parameters of the signal delay module 3.
具体地,本申请的延迟参数设置模块4内部设有参数寄存器,参数寄存器中存储有多个延迟参数表,每个延迟参数表用于记录一个闪存颗粒所适用的延迟参数。Specifically, the delay parameter setting module 4 of the present application is provided with a parameter register inside, and a plurality of delay parameter tables are stored in the parameter register, and each delay parameter table is used to record a delay parameter applicable to a flash memory particle.
基于此,延迟参数设置模块4调整信号延迟模块3的延迟参数的原理具体为:在接收到检测信号后,基于检测信号确定数据驱动模块1当前操作的闪存颗粒切换为目标闪存颗粒,并根据预设的闪存颗粒与延迟参数表对应 关系(表征不同闪存颗粒各自适用的信号延迟模块3的延迟参数),确定与目标闪存颗粒对应的目标延迟参数表,然后按照目标延迟参数表中记录的延迟参数调整信号延迟模块3的延迟参数,以使闪存控制器内部链路的延迟值适用于当前操作的目标闪存颗粒,保证读写准确性。Based on this, the delay parameter setting module 4 adjusts the delay parameter principle of the signal delay module 3 specifically as follows: after receiving the detection signal, it is determined based on the detection signal that the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle, and according to the predetermined The corresponding relationship between the flash memory particles and the delay parameter table (characterize the delay parameters of the signal delay module 3 applicable to different flash memory particles), determine the target delay parameter table corresponding to the target flash memory particle, and then follow the delay parameters recorded in the target delay parameter table Adjust the delay parameters of the signal delay module 3, so that the delay value of the internal link of the flash memory controller is suitable for the target flash memory particles currently operating, so as to ensure the accuracy of reading and writing.
请参照图6,图6为本发明实施例提供的一种闪存控制器的具体结构示意图。Please refer to FIG. 6 , which is a schematic structural diagram of a flash memory controller provided by an embodiment of the present invention.
作为一种可选的实施例,读写链路包括DQS输入/输出链路、DQ输入/输出链路及DBI输入/输出链路;每个延迟参数表记录的延迟参数均包括DQS信号的输入/输出延迟参数、DQ信号的输入/输出延迟参数及DBI信号的输入/输出延迟参数;As an optional embodiment, the read-write link includes a DQS input/output link, a DQ input/output link, and a DBI input/output link; the delay parameters recorded in each delay parameter table include the input of the DQS signal /Output delay parameter, input/output delay parameter of DQ signal and input/output delay parameter of DBI signal;
信号延迟模块3包括: Signal delay module 3 includes:
一一设于多个读写链路上的多个信号延迟元件;- a plurality of signal delay elements arranged on a plurality of read-write links;
延迟参数设置模块4具体用于按照目标延迟参数表中记录的多个延迟参数一一对应调整多个信号延迟元件的延迟参数。The delay parameter setting module 4 is specifically configured to adjust the delay parameters of multiple signal delay elements according to the multiple delay parameters recorded in the target delay parameter table.
具体地,本申请的数据驱动模块1和多个闪存颗粒之间的读写链路包括DQS输入链路、DQS输出链路、DQ输入链路、DQ输出链路(DQ信号为8比特信号,表示为DQ0-7,则DQ输入链路共有8条输入链路,每条输入链路输入一个比特的数据;DQ输出链路共有8条输出链路,每条输出链路输出一个比特的数据)、DBI输入链路及DBI输出链路。则如图7所示,每个延迟参数表记录的延迟参数均包括DQS信号的输入延迟参数(input delay parameter)、DQS信号的输出延迟参数(output delay parameter)、DQ0-7信号的输入延迟参数、DQ0-7信号的输出延迟参数、DBI信号的输入延迟参数DBI信号的输出延迟参数。也就是说,在每个延迟参数表内,每条读写链路对应一个延迟参数。Specifically, the read-write link between the data drive module 1 of the present application and a plurality of flash memory particles includes a DQS input link, a DQS output link, a DQ input link, and a DQ output link (the DQ signal is an 8-bit signal, Expressed as DQ0-7, the DQ input link has a total of 8 input links, and each input link inputs one bit of data; the DQ output link has a total of 8 output links, and each output link outputs one bit of data ), DBI input link and DBI output link. As shown in Figure 7, the delay parameters recorded in each delay parameter table include the input delay parameter (input delay parameter) of the DQS signal, the output delay parameter (output delay parameter) of the DQS signal, and the input delay parameter of the DQ0-7 signal , DQ0-7 signal output delay parameters, DBI signal input delay parameters DBI signal output delay parameters. That is to say, in each delay parameter table, each read-write link corresponds to a delay parameter.
基于此,信号延迟模块3包括一一设于多个读写链路上的多个信号延迟元件(delay line),则延迟参数设置模块4调整信号延迟模块3的延迟参数的原理具体为:在接收到检测信号后,基于检测信号确定数据驱动模块1当前操作的闪存颗粒切换为目标闪存颗粒,并根据预设的闪存颗粒与延迟参数表对应关系确定与目标闪存颗粒对应的目标延迟参数表,然后按照目标延 迟参数表中记录的多个延迟参数一一对应调整多个信号延迟元件的延迟参数(具体是向信号延迟元件delay line中写入延迟参数值实现延迟调整),以使闪存控制器内部链路的延迟值适用于当前操作的目标闪存颗粒,保证读写准确性。Based on this, the signal delay module 3 includes a plurality of signal delay elements (delay lines) that are arranged on multiple read-write links one by one, then the delay parameter setting module 4 adjusts the principle of the delay parameter of the signal delay module 3 specifically as follows: After receiving the detection signal, it is determined based on the detection signal that the flash memory particle currently operated by the data drive module 1 is switched to the target flash memory particle, and the target delay parameter table corresponding to the target flash memory particle is determined according to the preset corresponding relationship between the flash memory particle and the delay parameter table, Then adjust the delay parameters of multiple signal delay elements one by one according to the multiple delay parameters recorded in the target delay parameter table (specifically, write the delay parameter value to the signal delay element delay line to realize delay adjustment), so that the flash memory control The delay value of the internal link of the device is applicable to the target flash memory particles currently operating to ensure the accuracy of reading and writing.
请参照图8,图8为本发明实施例提供的一种延迟调整方法的流程图。Please refer to FIG. 8 , which is a flowchart of a delay adjustment method provided by an embodiment of the present invention.
该延迟调整方法应用于与多个闪存颗粒连接的闪存控制器,包括:This delay adjustment method is applied to a flash controller connected to multiple flash particles, including:
步骤S1:根据当前颗粒操作需求从多个闪存颗粒中选择目标闪存颗粒,以对目标闪存颗粒进行读写操作。Step S1: Select a target flash memory particle from multiple flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle.
步骤S2:在检测到切换至目标闪存颗粒进行操作时,根据预设的闪存颗粒与延迟参数对应关系确定与目标闪存颗粒对应的目标延迟参数。Step S2: When switching to the target flash memory particle for operation is detected, determine the target delay parameter corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter.
步骤S3:按照目标延迟参数调整目标闪存颗粒对应的目标读写链路上的延迟参数,以延迟传输目标读写链路上的读写操作信号。Step S3: Adjust the delay parameter on the target read-write link corresponding to the target flash memory particle according to the target delay parameter, so as to delay the transmission of the read-write operation signal on the target read-write link.
本实施例的原理介绍请参考上述闪存控制器的实施例,本申请在此不再赘述。For the principle introduction of this embodiment, please refer to the above embodiment of the flash memory controller, and the present application will not repeat it here.
作为一种可选的实施例,闪存控制器分别与多个闪存颗粒的CE端连接;闪存控制器内部设有用于记录上一次操作的闪存颗粒对应的CE值的CE寄存器;As an optional embodiment, the flash memory controller is respectively connected to the CE terminals of a plurality of flash memory particles; the flash memory controller is internally provided with a CE register for recording the CE value corresponding to the flash memory particle of the last operation;
则切换至目标闪存颗粒进行操作的检测过程,包括:Then switch to the detection process of the target flash memory particle for operation, including:
从与多个闪存颗粒的CE端一一连接的多条使能链路中确定当前传输有CE有效信号的目标使能链路;Determining a target enabling link that currently transmits a CE valid signal from a plurality of enabling links connected one by one to the CE ends of a plurality of flash memory particles;
根据预设的使能链路与CE值对应关系确定与目标使能链路对应的目标CE值;Determine the target CE value corresponding to the target enabled link according to the preset corresponding relationship between the enabled link and the CE value;
若目标CE值与CE寄存器当前存储的CE值不一致,则确定切换至与目标使能链路连接的闪存颗粒进行操作,并基于目标CE值更新CE寄存器;If the target CE value is inconsistent with the CE value currently stored in the CE register, it is determined to switch to the flash memory particle connected to the target enabling link for operation, and update the CE register based on the target CE value;
且根据预设的闪存颗粒与延迟参数对应关系确定与目标闪存颗粒对应的目标延迟参数,包括:And determine the target delay parameter corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter, including:
根据预设的CE值与延迟参数对应关系确定与目标CE值对应的目标延迟参数。The target delay parameter corresponding to the target CE value is determined according to the preset corresponding relationship between the CE value and the delay parameter.
如图9所示,总结了如何检测操作的闪存颗粒是否发生切换,其具体检测原理可参考上述闪存控制器的实施例,本申请在此不再赘述。As shown in FIG. 9 , how to detect whether the operating flash memory particles are switched is summarized. The specific detection principle can refer to the above-mentioned embodiment of the flash memory controller, and the present application will not repeat them here.
本申请还提供了一种存储设备,包括多个闪存颗粒及上述任一种闪存控制器。The present application also provides a storage device, including a plurality of flash memory particles and any one of the above flash memory controllers.
本申请提供的存储设备的介绍请参考上述闪存控制器的实施例,本申请在此不再赘述。For the introduction of the storage device provided in this application, please refer to the above-mentioned embodiment of the flash memory controller, and this application will not repeat it here.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其他实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily 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 invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

  1. 一种闪存控制器,其特征在于,包括:A kind of flash controller, is characterized in that, comprises:
    分别与多个闪存颗粒连接的数据驱动模块,用于根据当前颗粒操作需求从多个所述闪存颗粒中选择目标闪存颗粒,以对所述目标闪存颗粒进行读写操作;A data drive module respectively connected to a plurality of flash memory particles, used to select a target flash memory particle from a plurality of said flash memory particles according to the current particle operation requirements, so as to perform read and write operations on said target flash memory particle;
    与所述数据驱动模块连接的颗粒切换检测模块,用于在检测到所述数据驱动模块切换至所述目标闪存颗粒进行操作时,生成表征当前操作的闪存颗粒切换为所述目标闪存颗粒的检测信号;A particle switching detection module connected to the data drive module, used to generate a detection that the flash memory particle representing the current operation is switched to the target flash memory particle when it detects that the data drive module is switched to the target flash memory particle for operation Signal;
    设于所述数据驱动模块和多个所述闪存颗粒之间的读写链路上的信号延迟模块,用于按照当前所设置的延迟参数将所述数据驱动模块与所述目标闪存颗粒之间的读写操作信号进行延迟传输;The signal delay module arranged on the read-write link between the data drive module and the plurality of flash memory particles is used to transmit the data between the data drive module and the target flash memory particle according to the delay parameter currently set. Read and write operation signals for delayed transmission;
    分别与所述颗粒切换检测模块和所述信号延迟模块连接的延迟参数设置模块,用于在接收到所述检测信号后,根据预设的闪存颗粒与延迟参数对应关系确定与所述目标闪存颗粒对应的目标延迟参数,并按照所述目标延迟参数调整所述信号延迟模块的延迟参数。A delay parameter setting module respectively connected to the particle switching detection module and the signal delay module, used to determine the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter after receiving the detection signal corresponding target delay parameters, and adjust the delay parameters of the signal delay module according to the target delay parameters.
  2. 如权利要求1所述的闪存控制器,其特征在于,所述数据驱动模块分别与多个所述闪存颗粒的CE端连接;The flash memory controller according to claim 1, wherein the data driver module is respectively connected to CE terminals of a plurality of the flash memory particles;
    所述数据驱动模块具体用于根据当前颗粒操作需求从多个所述闪存颗粒中确定预读写操作的目标闪存颗粒,并向所述目标闪存颗粒的CE端发送CE有效信号,以使所述目标闪存颗粒进入工作状态。The data drive module is specifically configured to determine a target flash memory particle for pre-reading and writing operations from a plurality of flash memory particles according to the current particle operation requirements, and send a CE valid signal to the CE end of the target flash memory particle, so that the The target flash memory particle enters the working state.
  3. 如权利要求2所述的闪存控制器,其特征在于,所述颗粒切换检测模块分别与所述数据驱动模块和多个所述闪存颗粒的CE端之间的多条使能链路连接;The flash memory controller according to claim 2, wherein the particle switching detection module is respectively connected to multiple enabling links between the data drive module and the CE ends of a plurality of the flash memory particles;
    所述颗粒切换检测模块具体用于在检测到与所述目标闪存颗粒连接的使能链路上开始传输所述CE有效信号时,确定所述数据驱动模块切换至所述目标闪存颗粒进行操作。The particle switching detection module is specifically configured to determine that the data drive module switches to the target flash memory particle for operation when detecting that the CE valid signal is started to be transmitted on the enabling link connected to the target flash memory particle.
  4. 如权利要求3所述的闪存控制器,其特征在于,所述颗粒切换检测模块内部设有用于记录所述数据驱动模块上一次操作的闪存颗粒对应的CE值的CE寄存器;The flash memory controller according to claim 3, wherein the particle switching detection module is internally provided with a CE register for recording the corresponding CE value of the flash memory particle last operated by the data drive module;
    所述颗粒切换检测模块具体用于从多条所述使能链路中确定当前传输有所述CE有效信号的目标使能链路,并根据预设的使能链路与CE值对应关系确定与所述目标使能链路对应的目标CE值,若所述目标CE值与所述CE寄存器当前存储的CE值不一致,则确定所述数据驱动模块切换至与所述目标使能链路连接的闪存颗粒进行操作,并基于所述目标CE值更新所述CE寄存器。The granular switching detection module is specifically configured to determine the target enabled link that currently transmits the CE valid signal from among the plurality of enabled links, and determine according to the preset corresponding relationship between the enabled link and the CE value. The target CE value corresponding to the target enabling link, if the target CE value is inconsistent with the CE value currently stored in the CE register, it is determined that the data driver module is switched to connect to the target enabling link The flash memory particles are operated, and the CE register is updated based on the target CE value.
  5. 如权利要求4所述的闪存控制器,其特征在于,所述检测信号为携带所述目标CE值的信号;The flash memory controller according to claim 4, wherein the detection signal is a signal carrying the target CE value;
    则所述延迟参数设置模块具体用于在接收到所述检测信号后,根据预设的CE值与延迟参数对应关系确定与所述目标CE值对应的目标延迟参数,并按照所述目标延迟参数调整所述信号延迟模块的延迟参数。Then the delay parameter setting module is specifically used to determine the target delay parameter corresponding to the target CE value according to the preset corresponding relationship between the CE value and the delay parameter after receiving the detection signal, and according to the target delay parameter Adjust the delay parameters of the signal delay module.
  6. 如权利要求1所述的闪存控制器,其特征在于,所述颗粒切换检测模块还用于在检测到所述数据驱动模块切换至所述目标闪存颗粒进行操作之后,在生成所述检测信号之前,生成触发信号;The flash memory controller according to claim 1, wherein the particle switching detection module is further configured to detect that the data drive module switches to the target flash memory particle for operation and before generating the detection signal , to generate a trigger signal;
    则所述延迟参数设置模块还用于检测是否接收到所述触发信号;若是,则进入在接收到所述检测信号后调参的步骤;若否,则不进入在接收到所述检测信号后调参的步骤。Then the delay parameter setting module is also used to detect whether the trigger signal is received; if so, enter the step of parameter adjustment after receiving the detection signal; if not, do not enter after receiving the detection signal Steps for parameter tuning.
  7. 如权利要求1所述的闪存控制器,其特征在于,所述数据驱动模块还用于在从多个所述闪存颗粒中选择目标闪存颗粒时,生成表征当前操作的闪存颗粒切换为所述目标闪存颗粒的切换信号至所述颗粒切换检测模块;The flash memory controller according to claim 1, wherein the data drive module is further configured to generate a flash memory particle representing the current operation and switch to the target flash memory particle when selecting a target flash memory particle from a plurality of the flash memory particles The switching signal of the flash memory particles is sent to the particle switching detection module;
    则所述颗粒切换检测模块具体用于基于所述切换信号确定所述数据驱动模块切换至所述目标闪存颗粒进行操作。The particle switching detection module is specifically configured to determine that the data drive module switches to the target flash memory particle based on the switching signal to operate.
  8. 如权利要求1-7任一项所述的闪存控制器,其特征在于,所述延迟参数设置模块内部设有用于存储多个延迟参数表的参数寄存器;其中,多个所述延迟参数表用于一一记录多个所述闪存颗粒所适用的延迟参数;The flash memory controller according to any one of claims 1-7, wherein the delay parameter setting module is internally provided with parameter registers for storing a plurality of delay parameter tables; wherein, a plurality of delay parameter tables are used for Record the delay parameters applicable to a plurality of flash memory particles one by one;
    所述延迟参数设置模块具体用于在接收到所述检测信号后,根据预设的闪存颗粒与延迟参数表对应关系确定与所述目标闪存颗粒对应的目标延 迟参数表,并按照所述目标延迟参数表中记录的延迟参数调整所述信号延迟模块的延迟参数。The delay parameter setting module is specifically configured to, after receiving the detection signal, determine a target delay parameter table corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter table, and The delay parameters recorded in the parameter table adjust the delay parameters of the signal delay module.
  9. 如权利要求8所述的闪存控制器,其特征在于,所述读写链路包括DQS输入/输出链路、DQ输入/输出链路及DBI输入/输出链路;每个所述延迟参数表记录的延迟参数均包括DQS信号的输入/输出延迟参数、DQ信号的输入/输出延迟参数及DBI信号的输入/输出延迟参数;The flash memory controller according to claim 8, wherein said read-write link comprises a DQS input/output link, a DQ input/output link and a DBI input/output link; each said delay parameter table The recorded delay parameters include the input/output delay parameters of the DQS signal, the input/output delay parameters of the DQ signal and the input/output delay parameters of the DBI signal;
    所述信号延迟模块包括:The signal delay module includes:
    一一设于多个所述读写链路上的多个信号延迟元件;- a plurality of signal delay elements arranged on a plurality of said read-write links;
    所述延迟参数设置模块具体用于按照所述目标延迟参数表中记录的多个延迟参数一一对应调整多个所述信号延迟元件的延迟参数。The delay parameter setting module is specifically configured to adjust the delay parameters of the plurality of signal delay elements in a one-to-one correspondence according to the plurality of delay parameters recorded in the target delay parameter table.
  10. 一种延迟调整方法,其特征在于,应用于与多个闪存颗粒连接的闪存控制器,包括:A delay adjustment method, characterized in that it is applied to a flash memory controller connected to a plurality of flash memory particles, including:
    根据当前颗粒操作需求从多个所述闪存颗粒中选择目标闪存颗粒,以对所述目标闪存颗粒进行读写操作;Selecting a target flash memory particle from a plurality of the flash memory particles according to the current particle operation requirements, so as to perform read and write operations on the target flash memory particle;
    在检测到切换至所述目标闪存颗粒进行操作时,根据预设的闪存颗粒与延迟参数对应关系确定与所述目标闪存颗粒对应的目标延迟参数;When switching to the target flash memory particle for operation is detected, the target delay parameter corresponding to the target flash memory particle is determined according to the preset corresponding relationship between the flash memory particle and the delay parameter;
    按照所述目标延迟参数调整所述目标闪存颗粒对应的目标读写链路上的延迟参数,以延迟传输所述目标读写链路上的读写操作信号。Adjusting the delay parameter on the target read-write link corresponding to the target flash memory particle according to the target delay parameter, so as to delay transmission of the read-write operation signal on the target read-write link.
  11. 如权利要求10所述的延迟调整方法,其特征在于,所述闪存控制器分别与多个所述闪存颗粒的CE端连接;所述闪存控制器内部设有用于记录上一次操作的闪存颗粒对应的CE值的CE寄存器;The delay adjustment method according to claim 10, wherein the flash memory controller is respectively connected to the CE terminals of a plurality of the flash memory particles; the flash memory controller is internally provided with a corresponding flash memory particle for recording the last operation. The CE register of the CE value;
    则切换至所述目标闪存颗粒进行操作的检测过程,包括:Then switch to the detection process of the target flash memory particles for operation, including:
    从与多个所述闪存颗粒的CE端一一连接的多条使能链路中确定当前传输有CE有效信号的目标使能链路;Determining a target enabling link that currently transmits a CE valid signal from a plurality of enabling links connected one by one to the CE ends of a plurality of said flash memory particles;
    根据预设的使能链路与CE值对应关系确定与所述目标使能链路对应的目标CE值;determining a target CE value corresponding to the target enabled link according to a preset corresponding relationship between enabled links and CE values;
    若所述目标CE值与所述CE寄存器当前存储的CE值不一致,则确定切换至与所述目标使能链路连接的闪存颗粒进行操作,并基于所述目标CE值更新所述CE寄存器;If the target CE value is inconsistent with the CE value currently stored in the CE register, determine to switch to the flash memory particle connected to the target enabling link for operation, and update the CE register based on the target CE value;
    且根据预设的闪存颗粒与延迟参数对应关系确定与所述目标闪存颗粒对应的目标延迟参数,包括:And determine the target delay parameter corresponding to the target flash memory particle according to the preset corresponding relationship between the flash memory particle and the delay parameter, including:
    根据预设的CE值与延迟参数对应关系确定与所述目标CE值对应的目标延迟参数。The target delay parameter corresponding to the target CE value is determined according to the preset corresponding relationship between the CE value and the delay parameter.
  12. 一种存储设备,其特征在于,包括多个闪存颗粒及如权利要求1-9任一项所述的闪存控制器。A storage device, characterized by comprising a plurality of flash memory particles and the flash memory controller according to any one of claims 1-9.
PCT/CN2022/135130 2021-12-24 2022-11-29 Flash memory controller, delay adjustment method and storage device WO2023116366A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111604831.6 2021-12-24
CN202111604831.6A CN114327267B (en) 2021-12-24 2021-12-24 Flash memory controller, delay adjustment method and storage device

Publications (1)

Publication Number Publication Date
WO2023116366A1 true WO2023116366A1 (en) 2023-06-29

Family

ID=81012089

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/135130 WO2023116366A1 (en) 2021-12-24 2022-11-29 Flash memory controller, delay adjustment method and storage device

Country Status (2)

Country Link
CN (1) CN114327267B (en)
WO (1) WO2023116366A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327267B (en) * 2021-12-24 2023-08-22 深圳大普微电子科技有限公司 Flash memory controller, delay adjustment method and storage device
CN117033113B (en) * 2023-08-07 2024-03-19 上海奎芯集成电路设计有限公司 Control circuit and method for signal delay

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366793A (en) * 2012-03-28 2013-10-23 飞思卡尔半导体公司 Timing sequence control in synchronous memory data transmission
CN106537365A (en) * 2014-05-30 2017-03-22 桑迪士克科技有限责任公司 Methods and systems for staggered memory operations
US20170115891A1 (en) * 2015-10-27 2017-04-27 Sandisk Enterprise Ip Llc Read operation delay
CN111192611A (en) * 2018-11-15 2020-05-22 爱思开海力士有限公司 Semiconductor device with a plurality of transistors
CN114327267A (en) * 2021-12-24 2022-04-12 深圳大普微电子科技有限公司 Flash memory controller, delay adjustment method and storage device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664532B2 (en) * 2006-06-02 2010-02-16 Nokia Corporation Radio transmission scheduling according to multiradio control in a radio modem
WO2011112697A1 (en) * 2010-03-10 2011-09-15 Beckman Coulter, Inc. Generating pulse parameters in a particle analyzer
US9952133B2 (en) * 2015-10-08 2018-04-24 Kinetic River Corp. Particle analysis and sorting apparatus and methods
CN206211976U (en) * 2016-11-23 2017-05-31 成都信息工程大学 A kind of digital DLL controls circuit of SECO
CN106374916B (en) * 2016-11-23 2023-08-18 深圳市富芯通科技有限公司 Timing control all-digital DLL control circuit and NAND FLash controller control method
CN106776391A (en) * 2016-12-13 2017-05-31 成都信息工程大学 The control method and device of a kind of NAND Flash controllers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366793A (en) * 2012-03-28 2013-10-23 飞思卡尔半导体公司 Timing sequence control in synchronous memory data transmission
CN106537365A (en) * 2014-05-30 2017-03-22 桑迪士克科技有限责任公司 Methods and systems for staggered memory operations
US20170115891A1 (en) * 2015-10-27 2017-04-27 Sandisk Enterprise Ip Llc Read operation delay
CN111192611A (en) * 2018-11-15 2020-05-22 爱思开海力士有限公司 Semiconductor device with a plurality of transistors
CN114327267A (en) * 2021-12-24 2022-04-12 深圳大普微电子科技有限公司 Flash memory controller, delay adjustment method and storage device

Also Published As

Publication number Publication date
CN114327267A (en) 2022-04-12
CN114327267B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
WO2023116366A1 (en) Flash memory controller, delay adjustment method and storage device
US11430494B2 (en) DQS position adjustment method, controller and network device
US11195571B2 (en) Memory device and method with data input
US10229743B1 (en) Memory device read training method
US9779039B2 (en) Impedance adjustment in a memory device
KR101626084B1 (en) Multi-chip memory system and data transfer method thereof
US10930329B2 (en) Storage device adjusting a timing of a data signal and a data strobe signal
US20120042148A1 (en) Line termination methods and apparatus
US20060069948A1 (en) Error detecting memory module and method
US20200381075A1 (en) Nonvolatile memory device, storage device including nonvolatile memory devices, and method of training data input and output lines between controller and nonvolatile memory devices
TWI534607B (en) Memory control circuit unit, data transmitting method and memory storage apparatus
WO2020154989A1 (en) Method for adjusting duty cycle, controller chip, and flash memory
CN101079326A (en) Semiconductor memory device testing on/off state of on-die-termination circuit during data read mode, and test method of the state of on-die-termination circuit
CN112820344B (en) Margin detection method and device of data signal and storage equipment
KR20200055805A (en) Memory device using multiple latency sets and method of operation thereof
CN101620880B (en) Memory controller, PCB, computer system and memory adjusting method
CN107516536B (en) Memory interface, control circuit unit, memory device and clock generation method
US20200412352A1 (en) Memory interface system for duty-cycle error detection and correction
KR20210040707A (en) A memory device and a memory system including thereof
US11145343B1 (en) Method for controlling multi-cycle write leveling process in memory system
US10566037B1 (en) Automated voltage and timing margin measurement for NAND flash interface
CN108628774B (en) Memory control circuit unit, memory storage device and signal receiving method
TW202105396A (en) Memory interface circuit, memory storage device and configuration status checking method
CN112309444B (en) Memory interface circuit, memory storage device and setting state detection method
CN110993005B (en) Circuit structure, chip, training method and training device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22909681

Country of ref document: EP

Kind code of ref document: A1