CN118072776B - Data transmission method, device, host and storage medium - Google Patents
Data transmission method, device, host and storage medium Download PDFInfo
- Publication number
- CN118072776B CN118072776B CN202410465951.XA CN202410465951A CN118072776B CN 118072776 B CN118072776 B CN 118072776B CN 202410465951 A CN202410465951 A CN 202410465951A CN 118072776 B CN118072776 B CN 118072776B
- Authority
- CN
- China
- Prior art keywords
- delay
- data
- identifier
- clock signal
- zeroth
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/22—Read-write [R-W] timing or clocking circuits; Read-write [R-W] control signal generators or management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/06—Arrangements for sorting, selecting, merging, or comparing data on individual record carriers
- G06F7/08—Sorting, i.e. grouping record carriers in numerical or other ordered sequence according to the classification of at least some of the information they carry
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
本公开提供一种数据传输方法、装置、主机及存储介质,其中,所述数据传输方法包括:执行多次数据处理操作,并基于各次数据处理操作的执行结果,记录各次数据处理操作使用的延时码的标识;所述标识包括在数据处理操作执行成功时,标识数据处理操作使用的延时码为可用的第零标识,以及,在数据处理操作执行失败时,标识数据处理操作使用的延时码为不可用的第一标识;在确定记录的标识中存在多个连续的第零标识时,从多个连续的第零标识中选择第零标识,并将选择的第零标识对应的延时码作为目标延时码;使用所述目标延时码,执行所述数据处理操作。采用上述技术方案,能够提高数据传输处理过程中的稳定性。
The present disclosure provides a data transmission method, device, host and storage medium, wherein the data transmission method includes: performing multiple data processing operations, and based on the execution results of each data processing operation, recording the identifier of the delay code used in each data processing operation; the identifier includes a zeroth identifier that identifies the delay code used in the data processing operation as available when the data processing operation is successfully executed, and a first identifier that identifies the delay code used in the data processing operation as unavailable when the data processing operation fails to execute; when it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, the zeroth identifier is selected from the multiple consecutive zeroth identifiers, and the delay code corresponding to the selected zeroth identifier is used as the target delay code; the data processing operation is executed using the target delay code. The above technical solution can improve the stability of the data transmission process.
Description
技术领域Technical Field
本说明书实施例涉及通信技术领域,尤其涉及一种数据传输方法、装置、主机及存储介质。The embodiments of the present specification relate to the field of communication technology, and in particular, to a data transmission method, device, host, and storage medium.
背景技术Background Art
随着电子信息技术的高速发展,多媒体数据不断增长,提供更大的存储容量的存储系统变得尤为重要。其中,嵌入式存储器具有高度集成、体积小、低功耗、低成本等特点,被广泛应用于例如移动设备和消费电子产品等各种存储场景中;嵌入式存储器可以包括嵌入式多媒体控制器(eMMC)和安全数字卡(SD)等。With the rapid development of electronic information technology, multimedia data continues to grow, and storage systems that provide larger storage capacity have become particularly important. Among them, embedded memory has the characteristics of high integration, small size, low power consumption, and low cost, and is widely used in various storage scenarios such as mobile devices and consumer electronics; embedded memory can include embedded multimedia controllers (eMMC) and secure digital cards (SD).
对于嵌入式存储器,在数据传输的处理过程中,通常采用时钟信号对数据信号进行采样,在此过程中,时钟信号的稳定性决定数据传输的处理质量。For embedded memory, during the data transmission process, a clock signal is usually used to sample the data signal. During this process, the stability of the clock signal determines the processing quality of the data transmission.
然而,由于工艺偏差的影响,即使同一嵌入式存储器也会因为工作环境的变化(例如工作环境的温度、工作电压等的变化)而对时钟信号产生影响,从而导致无法对数据信号进行采样。However, due to the influence of process deviation, even the same embedded memory may be affected by changes in the working environment (such as changes in the temperature and working voltage of the working environment), which may affect the clock signal and thus make it impossible to sample the data signal.
在此背景下,如何提供技术方案,以提高数据传输处理过程中的稳定性,成为了本领域技术人员亟需解决的技术问题。In this context, how to provide a technical solution to improve the stability of data transmission processing has become a technical problem that technical personnel in this field need to solve urgently.
发明内容Summary of the invention
针对上述技术问题,本公开提供一种数据传输方法、装置、主机及存储介质,能够提高数据传输处理过程中的稳定性。In response to the above technical problems, the present disclosure provides a data transmission method, device, host and storage medium, which can improve the stability of data transmission processing.
本公开提供一种数据传输方法,包括:The present disclosure provides a data transmission method, comprising:
执行多次数据处理操作,并基于各次数据处理操作的执行结果,记录各次数据处理操作使用的延时码的标识;所述标识包括在数据处理操作执行成功时,标识数据处理操作使用的延时码为可用的第零标识,以及,在数据处理操作执行失败时,标识数据处理操作使用的延时码为不可用的第一标识;Execute multiple data processing operations, and based on the execution results of each data processing operation, record the identifier of the delay code used in each data processing operation; the identifier includes a zeroth identifier that identifies the delay code used in the data processing operation as available when the data processing operation is successfully executed, and a first identifier that identifies the delay code used in the data processing operation as unavailable when the data processing operation fails to execute;
在确定记录的标识中存在多个连续的第零标识时,从多个连续的第零标识中选择第零标识,并将选择的第零标识对应的延时码作为目标延时码;When it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, the zeroth identifier is selected from the multiple consecutive zeroth identifiers, and the delay code corresponding to the selected zeroth identifier is used as the target delay code;
使用所述目标延时码,执行所述数据处理操作。The data processing operation is performed using the target delay code.
可选地,所述数据传输方法还包括:Optionally, the data transmission method further includes:
根据执行各次数据处理操作的顺序,对记录的第零标识和第一标识进行排序处理,得到标识序列表;According to the order of executing each data processing operation, the zeroth identifier and the first identifier of the record are sorted to obtain an identifier sequence table;
所述在确定记录的标识中存在多个连续的第零标识时,从多个连续的第零标识中选择第零标识,并将选择的第零标识对应的延时码作为目标延时码,包括:When it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, selecting the zeroth identifier from the multiple consecutive zeroth identifiers, and using the delay code corresponding to the selected zeroth identifier as the target delay code, includes:
确定所述标识序列表中存在连续的第零标识的区域;Determine an area in the identifier sequence table where there are continuous zeroth identifiers;
从确定的区域中选取第零标识,并按序记录所选取的第零标识,得到对应的选取窗口;Selecting the zeroth marker from the determined area, and recording the selected zeroth marker in sequence to obtain a corresponding selection window;
将位于所述选取窗口预设位置的第零标识对应的延时码作为执行各次数据处理操作时的目标延时码。The delay code corresponding to the zeroth mark located at the preset position of the selection window is used as the target delay code when executing each data processing operation.
可选地,所述选取窗口为多个;Optionally, there are multiple selection windows;
所述将位于所述选取窗口预设位置的第零标识对应的延时码作为执行各次数据处理操作时的目标延时码,包括:The method of using the delay code corresponding to the zeroth mark located at the preset position of the selection window as the target delay code when performing each data processing operation includes:
从多个所述选取窗口中选取包含所述第零标识的数量最多的选取窗口,作为目标窗口;Selecting a selected window containing the largest number of zeroth identifiers from the plurality of selected windows as a target window;
将位于所述目标窗口预设位置的第零标识对应的延时码作为所述目标延时码。The delay code corresponding to the zeroth marker located at the preset position of the target window is used as the target delay code.
可选地,在执行所述确定所述标识序列表中存在连续的第零标识的区域的步骤之前,还包括:Optionally, before executing the step of determining the area where there are continuous zeroth identifiers in the identifier sequence table, the method further includes:
判断所述标识序列表中包含的第零标识和第一标识的总数与执行数据处理操作的次数是否相同,并在确定相同时,执行所述确定所述标识序列表中至少存在连续的第零标识的区域的步骤;否则,继续记录后续数据处理操作所使用的延时码的标识。Determine whether the total number of the zeroth identifier and the first identifier contained in the identifier sequence table is the same as the number of times the data processing operation is performed, and if it is determined to be the same, perform the step of determining an area in the identifier sequence table where at least a continuous zeroth identifier exists; otherwise, continue to record the identifier of the delay code used for subsequent data processing operations.
可选地,所述数据处理操作包括数据写操作;Optionally, the data processing operation includes a data write operation;
所述标识序列表包括在数据写操作执行成功时对应的第零标识,以及在数据写操作执行失败时对应的第一标识。The identifier sequence table includes a zeroth identifier corresponding to when the data write operation is successfully executed, and a first identifier corresponding to when the data write operation fails to execute.
可选地,所述数据处理操作包括数据读操作;Optionally, the data processing operation includes a data read operation;
所述标识序列表包括在数据读操作执行成功时对应的第零标识,以及在数据读操作执行失败时对应的第一标识。The identifier sequence table includes a zeroth identifier corresponding to when the data read operation is successfully executed, and a first identifier corresponding to when the data read operation fails to execute.
可选地,所述数据处理操作包括数据写操作;Optionally, the data processing operation includes a data write operation;
所述执行多次数据处理操作,并基于各次数据处理操作的执行结果,记录各次数据处理操作使用的延时码的标识,包括:The performing of multiple data processing operations and recording the identification of the delay code used in each data processing operation based on the execution result of each data processing operation includes:
根据多个延时码对应的延时时长,对时钟信号进行多次延时处理,其中,一次数据写操作使用一个延时码对应的延时时长对时钟信号进行一次延时处理,各个延时码对应的延时时长不同;According to the delay time lengths corresponding to the multiple delay codes, the clock signal is delayed multiple times, wherein a data write operation uses a delay time length corresponding to a delay code to perform a delay process on the clock signal once, and the delay time lengths corresponding to the delay codes are different;
在时钟信号的各次延时处理下执行数据写操作后,获取各次数据写操作对应的校验信息,所述校验信息用于判断数据写操作能否成功执行;After executing the data write operation under each delay processing of the clock signal, obtaining verification information corresponding to each data write operation, wherein the verification information is used to determine whether the data write operation can be successfully executed;
根据各次数据写操作对应的校验信息,记录各次数据写操作使用的延时码的标识。According to the verification information corresponding to each data writing operation, the identifier of the delay code used in each data writing operation is recorded.
可选地,所述根据各次数据写操作对应的校验信息,记录各次数据写操作使用的延时码的标识,包括:Optionally, recording the identifier of the delay code used in each data write operation according to the verification information corresponding to each data write operation includes:
对于任一次数据写操作,在确定数据写操作对应的校验信息与预设校验信息相同时,将数据写操作所使用的延时码的标识记录为第零标识,以及,在确定数据写操作对应的校验信息与预设校验信息不同时,将数据写操作所使用的延时码的标识记录为第一标识。For any data write operation, when it is determined that the verification information corresponding to the data write operation is the same as the preset verification information, the identifier of the delay code used for the data write operation is recorded as the zeroth identifier, and when it is determined that the verification information corresponding to the data write operation is different from the preset verification information, the identifier of the delay code used for the data write operation is recorded as the first identifier.
可选地,所述使用所述目标延时码,执行所述数据处理操作,包括:Optionally, the using the target delay code to perform the data processing operation includes:
根据所述目标延时码对应的延时时长,对所述时钟信号进行延时处理,以执行数据写操作。The clock signal is delayed according to the delay duration corresponding to the target delay code to perform a data write operation.
可选地,所述数据处理操作包括数据读操作;Optionally, the data processing operation includes a data read operation;
所述执行多次数据处理操作,并基于各次数据处理操作的执行结果,记录各次数据处理操作使用的延时码的标识,包括:The performing of multiple data processing operations and recording the identification of the delay code used in each data processing operation based on the execution result of each data processing operation includes:
确定执行多次数据读操作的传输模式类型;Determine the type of transfer mode for performing multiple data read operations;
根据多个延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行多次延时处理,其中,一次数据读操作使用一个延时码对应的延时时长对与所述传输模式类型相对应的时钟信号进行一次延时处理,各延时码对应的延时时长不同;According to the delay durations corresponding to the multiple delay codes, the clock signal corresponding to the transmission mode type is subjected to multiple delay processing, wherein a data read operation uses a delay duration corresponding to a delay code to perform one delay processing on the clock signal corresponding to the transmission mode type, and the delay durations corresponding to the delay codes are different;
在对与所述传输模式类型相对应的时钟信号的各次延时处理下执行数据读操作后,获取各次数据读操作对应的读取结果,所述读取结果用于判断处于所述传输模式类型时,数据读操作是否成功执行;After performing a data read operation under each delay processing of the clock signal corresponding to the transmission mode type, obtaining a read result corresponding to each data read operation, wherein the read result is used to determine whether the data read operation is successfully performed when in the transmission mode type;
根据各次数据读操作对应的读取结果,记录各次数据读操作使用的延时码的标识。According to the reading result corresponding to each data read operation, the identifier of the delay code used in each data read operation is recorded.
可选地,所述数据读操作包括读取第一存储器存储的数据;Optionally, the data reading operation includes reading data stored in the first memory;
所述确定执行多次数据读操作的传输模式类型,包括:The determining of the transmission mode type for performing multiple data read operations includes:
根据读取所述第一存储器存储的数据的数据传输速率,确定执行数据读操作的传输模式类型。The type of transmission mode for performing a data read operation is determined according to a data transmission rate for reading data stored in the first memory.
可选地,所述根据读取所述第一存储器存储的数据的数据传输速率,确定执行数据读操作的传输模式类型,包括:Optionally, determining the type of transmission mode for performing a data read operation according to a data transmission rate of reading data stored in the first memory includes:
在读取所述第一存储器存储的数据的数据传输速率与设定速率相同时,确定所述传输模式类型为第一传输模式;When the data transmission rate of reading the data stored in the first memory is the same as the set rate, determining that the transmission mode type is the first transmission mode;
在读取所述第一存储器存储的数据的数据传输速率与设定速率不同时,确定所述传输模式类型为第二传输模式。When the data transmission rate of reading the data stored in the first memory is different from the set rate, the transmission mode type is determined to be the second transmission mode.
可选地,在确定传输模式类型为第一传输模式时,确定所述第一传输模式对应的时钟信号为同步时钟信号,所述同步时钟信号来自于提供读取数据的一方;Optionally, when determining that the transmission mode type is the first transmission mode, determining that a clock signal corresponding to the first transmission mode is a synchronous clock signal, the synchronous clock signal comes from a party providing read data;
所述根据多个延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行多次延时处理,包括:The method of performing multiple delay processing on the clock signal corresponding to the transmission mode type according to the delay durations corresponding to the multiple delay codes includes:
根据多个延时码对应的延时时长,对所述同步时钟信号进行多次延时处理,其中,一次数据读操作使用一个延时码对应的延时时长对所述同步时钟信号进行一次延时处理,各个延时码对应的延时时长不同。The synchronous clock signal is delayed multiple times according to the delay time lengths corresponding to the multiple delay codes, wherein a data read operation uses a delay time length corresponding to a delay code to perform a delay process on the synchronous clock signal, and the delay time lengths corresponding to the different delay codes are different.
可选地,在确定传输模式类型为第二传输模式时,确定所述第二传输模式对应的时钟信号为初始时钟信号,所述初始时钟信号为获取的原始时钟信号;Optionally, when determining that the transmission mode type is the second transmission mode, determining that a clock signal corresponding to the second transmission mode is an initial clock signal, the initial clock signal is an acquired original clock signal;
所述根据多个延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行多次延时处理,包括:The method of performing multiple delay processing on the clock signal corresponding to the transmission mode type according to the delay durations corresponding to the multiple delay codes includes:
根据多个延时码对应的延时时长,对所述初始时钟信号进行多次延时处理,其中,一次数据读操作使用一个延时码对应的延时时长对所述初始时钟信号进行一次延时处理,各个延时码对应的延时时长不同。The initial clock signal is delayed multiple times according to the delay durations corresponding to the multiple delay codes, wherein a data read operation uses a delay duration corresponding to a delay code to perform a delay processing on the initial clock signal once, and the delay durations corresponding to the different delay codes are different.
可选地,所述在与所述传输模式类型相对应的时钟信号的各次延时处理下执行数据读操作后,获取各次数据读操作对应的读取结果,包括:Optionally, after performing the data read operation under each delay processing of the clock signal corresponding to the transmission mode type, obtaining a read result corresponding to each data read operation includes:
对于任一次数据读操作,For any data read operation,
判断在读取所述第一存储器存储的数据时,是否支持发送预设的第一采样指令;Determining whether sending a preset first sampling instruction is supported when reading data stored in the first memory;
若支持,根据预设的第一采样指令,在所述传输模式类型相对应的时钟信号的延时处理下执行数据读操作,以获取与第一采样指令相关的数据读操作的读取结果;If supported, according to a preset first sampling instruction, a data read operation is performed under a delay processing of a clock signal corresponding to the transmission mode type to obtain a read result of the data read operation related to the first sampling instruction;
否则,根据预设的第二采样指令,在所述传输模式类型相对应的时钟信号的延时处理下执行数据读操作,以获取与第二采样指令相关的数据读操作的读取结果。Otherwise, according to the preset second sampling instruction, a data read operation is performed under the delay processing of the clock signal corresponding to the transmission mode type to obtain a read result of the data read operation related to the second sampling instruction.
可选地,所述数据读操作为读取第二存储器存储的数据;Optionally, the data reading operation is reading data stored in the second memory;
所述确定执行多次数据读操作的传输模式类型,包括:The determining of the transmission mode type for performing multiple data read operations includes:
在确定读取所述第二存储器存储的数据时,确定所述传输模式类型为第三传输模式。When determining to read the data stored in the second memory, the transmission mode type is determined to be a third transmission mode.
可选地,在确定传输模式类型为第三传输模式时,确定所述第三传输模式对应的时钟信号为初始时钟信号,所述初始时钟信号为获取的原始时钟信号;Optionally, when determining that the transmission mode type is the third transmission mode, determining that a clock signal corresponding to the third transmission mode is an initial clock signal, the initial clock signal is an acquired original clock signal;
所述根据多个延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行多次延时处理,包括:The method of performing multiple delay processing on the clock signal corresponding to the transmission mode type according to the delay durations corresponding to the multiple delay codes includes:
根据多个延时码对应的延时时长,对初始时钟信号进行多次延时处理,其中,一次数据读操作使用一个延时码对应的延时时长对所述初始时钟信号进行一次延时处理,各个延时码对应的延时时长不同。The initial clock signal is delayed multiple times according to the delay time lengths corresponding to the multiple delay codes, wherein a data read operation uses a delay time length corresponding to a delay code to perform a delay process on the initial clock signal, and the delay time lengths corresponding to the different delay codes are different.
可选地,所述对与所述传输模式类型相对应的时钟信号的各次延时处理下执行数据读操作后,获取各次数据读操作对应的读取结果,包括:Optionally, after performing a data read operation under each delay processing of the clock signal corresponding to the transmission mode type, obtaining a read result corresponding to each data read operation includes:
对于任一次数据读操作,For any data read operation,
判断在第三传输模式读取所述第二存储器存储的数据时,是否支持发送预设的第三采样指令;Determining whether sending a preset third sampling instruction is supported when reading data stored in the second memory in a third transmission mode;
若支持,根据所述预设的第三采样指令,在初始时钟信号的延时处理下执行数据读操作,以获取与所述第三采样指令相关的数据读操作的读取结果;If supported, performing a data read operation under the delay processing of the initial clock signal according to the preset third sampling instruction to obtain a read result of the data read operation related to the third sampling instruction;
否则,根据预设的第四采样指令,在初始时钟信号的延时处理下执行数据读操作,以获取与所述第四采样指令相关的数据读操作的读取结果。Otherwise, according to the preset fourth sampling instruction, a data read operation is performed under the delay processing of the initial clock signal to obtain a read result of the data read operation related to the fourth sampling instruction.
可选地,所述根据各次数据读操作对应的读取结果,记录各次数据读操作使用的延时码的标识,包括:Optionally, recording the identifier of the delay code used in each data read operation according to the read result corresponding to each data read operation includes:
对于任一次数据读操作,在确定读取结果与预设读取结果相同时,将执行数据读操作所使用的延时码记录为第零标识,以及,在确定读取结果与预设读取结果不同时,将执行数据读操作所使用的延时码记录为第一标识。For any data read operation, when it is determined that the read result is the same as the preset read result, the delay code used to perform the data read operation is recorded as the zeroth identifier, and when it is determined that the read result is different from the preset read result, the delay code used to perform the data read operation is recorded as the first identifier.
可选地,所述使用所述目标延时码,执行所述数据处理操作,包括:Optionally, the using the target delay code to perform the data processing operation includes:
根据所述目标延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行延时处理,以执行数据读操作。According to the delay duration corresponding to the target delay code, a clock signal corresponding to the transmission mode type is delayed to perform a data read operation.
相应的,本公开还提供一种数据传输装置,包括:Accordingly, the present disclosure also provides a data transmission device, including:
第一处理单元,被配置为执行多次数据处理操作,并基于各次数据处理操作的执行结果,记录各次数据处理操作使用的延时码的标识;所述标识包括在数据处理操作执行成功时,标识数据处理操作使用的延时码为可用的第零标识,以及在数据处理操作执行失败时,标识数据处理操作使用的延时码为不可用的第一标识;以及根据标识选择信号,将选择的第零标识对应的延时码作为目标延时码,执行所述数据处理操作;The first processing unit is configured to execute multiple data processing operations, and based on the execution results of each data processing operation, record the identifier of the delay code used in each data processing operation; the identifier includes a zeroth identifier that identifies the delay code used in the data processing operation as available when the data processing operation is successfully executed, and a first identifier that identifies the delay code used in the data processing operation as unavailable when the data processing operation fails to execute; and according to the identifier selection signal, the delay code corresponding to the selected zeroth identifier is used as the target delay code to execute the data processing operation;
第二处理单元,被配置为在确定记录的标识中存在多个连续的第零标识时,从多个连续的第零标识中选择第零标识,并生成对应的标识选择信号,所述标识选择信号包括与选择的第零标识对应的延时码。The second processing unit is configured to select a zeroth identifier from the multiple consecutive zeroth identifiers when it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, and generate a corresponding identifier selection signal, wherein the identifier selection signal includes a delay code corresponding to the selected zeroth identifier.
可选地,所述数据处理操作包括数据写操作;Optionally, the data processing operation includes a data write operation;
所述第一处理单元包括:The first processing unit comprises:
第一延时模块,被配置为根据多个延时码对应的延时时长,对时钟信号进行多次延时处理,其中,一次数据写操作使用一个延时码对应的延时时长对时钟信号进行一次延时处理,各个延时码对应的延时时长不同;A first delay module is configured to perform multiple delay processing on the clock signal according to the delay durations corresponding to the multiple delay codes, wherein one data write operation uses a delay duration corresponding to one delay code to perform one delay processing on the clock signal, and the delay durations corresponding to the different delay codes are different;
第一处理模块,被配置为在时钟信号的各次延时处理下执行数据写操作后,获取各次数据写操作对应的校验信息,所述校验信息用于判断数据写操作能否成功执行;以及根据各次数据写操作对应的校验信息,记录各次数据写操作使用的延时码的标识。The first processing module is configured to obtain verification information corresponding to each data write operation after executing the data write operation under each delay processing of the clock signal, and the verification information is used to determine whether the data write operation can be successfully executed; and according to the verification information corresponding to each data write operation, record the identifier of the delay code used for each data write operation.
可选地,所述第一延时模块包括:多个第一延时器、第一逻辑运算器和第一选择器,其中:Optionally, the first delay module includes: a plurality of first delay devices, a first logic operator and a first selector, wherein:
多个所述第一延时器依次连接,其中,多个所述第一延时器中的第一个第一延时器的第一端适于输入时钟信号、多个所述第一延时器中的最后一个第一延时器的输出端与所述第一逻辑运算器的第一端连接、多个所述第一延时器中的各第一延时器的第二端与所述第一选择器的第二端连接;A plurality of the first delay devices are connected in sequence, wherein a first end of a first delay device among the plurality of the first delay devices is suitable for inputting a clock signal, an output end of a last first delay device among the plurality of the first delay devices is connected to a first end of the first logic operator, and a second end of each first delay device among the plurality of the first delay devices is connected to a second end of the first selector;
所述第一选择器的第一端适于输入第一控制信号,并根据所述第一控制信号,生成对应的第一选择信号,所述第一选择信号用于控制选择执行数据写操作时开启延时功能的第一延时器的数量;The first end of the first selector is adapted to input a first control signal, and generate a corresponding first selection signal according to the first control signal, wherein the first selection signal is used to control the number of first delay devices with a delay function enabled when selecting to perform a data write operation;
所述第一逻辑运算器的第二端适于输入第二控制信号,其输出端适于输出经延时处理后的时钟信号至所述第一处理模块,其中,所述第二控制信号用于控制经延时处理后的时钟信号的输出时机。The second end of the first logic operator is suitable for inputting a second control signal, and the output end thereof is suitable for outputting a clock signal after delay processing to the first processing module, wherein the second control signal is used to control the output timing of the clock signal after delay processing.
可选地,各所述第一延时器对应的延时时长相同。Optionally, the delay durations corresponding to the first delay devices are the same.
可选地,所述第一处理单元还包括:模式选择模块,与所述第一延时模块耦接,被配置为响应于模式选择信号,控制所述第一延时模块的工作状态。Optionally, the first processing unit further includes: a mode selection module, coupled to the first delay module, and configured to control a working state of the first delay module in response to a mode selection signal.
可选地,所述数据处理操作包括数据读操作;Optionally, the data processing operation includes a data read operation;
所述第一处理单元包括:The first processing unit comprises:
第二处理模块,被配置为确定执行多次数据读操作的传输模式类型;以及在对与所述传输模式类型相对应的时钟信号的各次延时处理下执行数据读操作后,获取各次数据读操作对应的读取结果,所述读取结果用于判断处于所述传输模式类型时,数据读操作是否成功执行,且根据各次数据读操作对应的读取结果,记录各次数据读操作使用的延时码的标识;a second processing module, configured to determine a transmission mode type for performing multiple data read operations; and after performing a data read operation under each delay processing of a clock signal corresponding to the transmission mode type, obtain a reading result corresponding to each data read operation, wherein the reading result is used to determine whether the data read operation is successfully performed when in the transmission mode type, and record an identifier of a delay code used for each data read operation according to the reading result corresponding to each data read operation;
第二延时模块,根据多个延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行多次延时处理,其中,一次数据读操作使用一个延时码对应的延时时长对与所述传输模式类型相对应的时钟信号进行一次延时处理,各延时码对应的延时时长不同。The second delay module performs multiple delay processing on the clock signal corresponding to the transmission mode type according to the delay lengths corresponding to the multiple delay codes, wherein a data read operation uses a delay length corresponding to a delay code to perform a delay processing on the clock signal corresponding to the transmission mode type, and the delay lengths corresponding to the delay codes are different.
可选地,所述第二延时模块包括多个第二延时器、第二逻辑运算器和第二选择器,其中:Optionally, the second delay module includes a plurality of second delay devices, a second logic operator and a second selector, wherein:
多个所述第二延时器依次连接,其中,多个所述第二延时器中的第一个第二延时器的第一端适于输入与所述传输模式类型相对应的时钟信号、多个所述第二延时器中的最后一个第二延时器的输出端与所述第二逻辑运算器的第一端连接、多个所述第二延时器中的各第二延时器的第二端与所述第二选择器的第二端连接;A plurality of second delay devices are connected in sequence, wherein a first end of a first second delay device among the plurality of second delay devices is suitable for inputting a clock signal corresponding to the transmission mode type, an output end of a last second delay device among the plurality of second delay devices is connected to a first end of the second logic operator, and a second end of each second delay device among the plurality of second delay devices is connected to a second end of the second selector;
所述第二选择器的第一端适于输入第三控制信号,并根据所述第三控制信号,生成对应的第二选择信号,所述第二选择信号用于控制选择执行数据读操作时开启延时功能的第二延时器的数量;The first end of the second selector is adapted to input a third control signal, and generate a corresponding second selection signal according to the third control signal, wherein the second selection signal is used to control the number of second delay devices with a delay function enabled when selecting to perform a data read operation;
所述第二逻辑运算器的第二端适于输入第四控制信号,其输出端适于输出经延时处理后的与所述传输模式类型相对应的时钟信号至所述第二处理模块,其中,所述第四控制信号用于控制经延时处理后的与所述传输模式类型相对应的时钟信号的输出时机。The second end of the second logic operator is suitable for inputting a fourth control signal, and the output end thereof is suitable for outputting a clock signal corresponding to the transmission mode type after delay processing to the second processing module, wherein the fourth control signal is used to control the output timing of the clock signal corresponding to the transmission mode type after delay processing.
本公开还提供一种主机,包括:至少一个处理器和至少一个存储器,所述存储器存储一条或多条计算机可执行指令,所述处理器调用所述一条或多条计算机可执行指令,以执行如前述任一示例所述的数据传输方法。The present disclosure also provides a host, comprising: at least one processor and at least one memory, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the data transmission method as described in any of the aforementioned examples.
本公开还提供一种主机存储介质,所述存储介质存储一条或多条计算机可执行指令,所述一条或多条计算机可执行指令被执行时实现如前述任一示例所述的数据传输方法。The present disclosure also provides a host storage medium, wherein the storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, the data transmission method as described in any of the above examples is implemented.
采用本公开提供的数据传输方案,基于各次数据处理操作的执行结果,能够记录在数据处理操作执行成功时,标识所使用的延时码为可用的第零标识,以及在数据处理操作执行失败时,标识所使用的延时码为不可用的第一标识,进而在确定记录的标识中存在多个连续的第零标识时,可以从中选择第零标识,并将选择的第零标识对应的延时码作为目标延时码,进而基于目标延时码,能够执行数据处理操作。由于目标延时码是从多个连续且可用的第零标识中确定的,即目标延时码是从多个连续执行成功的数据处理操作所使用的延时码中确定的,其中,第零标识用于在数据处理操作执行成功时,对所使用的延时码进行标识并标识为可用,即使受到环境因素影响,导致目标延时码发生变化,目标延时码仍可用,因而能够提高数据处理过程中的稳定性。By adopting the data transmission scheme provided by the present disclosure, based on the execution results of each data processing operation, it is possible to record that when the data processing operation is successfully executed, the delay code used for the identification is an available zeroth identification, and when the data processing operation fails to be executed, the delay code used for the identification is an unavailable first identification, and then when it is determined that there are multiple continuous zeroth identifications in the recorded identifications, the zeroth identification can be selected from them, and the delay code corresponding to the selected zeroth identification is used as the target delay code, and then based on the target delay code, the data processing operation can be executed. Since the target delay code is determined from multiple continuous and available zeroth identifications, that is, the target delay code is determined from the delay codes used for multiple consecutively executed data processing operations, wherein the zeroth identification is used to identify the delay code used and identify it as available when the data processing operation is successfully executed, even if the target delay code is affected by environmental factors and causes the target delay code to change, the target delay code is still available, thereby improving the stability of the data processing process.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
图1示出了一种数据采样的原理示意图;FIG1 shows a schematic diagram of a principle of data sampling;
图2示出了另一种数据采样的原理示意图;FIG2 shows another schematic diagram of the principle of data sampling;
图3示出了本公开示例中一种数据传输方法的流程图;FIG3 shows a flow chart of a data transmission method in an example of the present disclosure;
图4示出了本公开示例中一种用于确定目标延时码的流程图;FIG4 shows a flow chart for determining a target delay code in an example of the present disclosure;
图5示出了本公开示例中一应用场景中用于确定目标延时码的流程图;FIG5 shows a flow chart for determining a target delay code in an application scenario in an example of the present disclosure;
图6示出了本公开示例中一种用于确定目标延时码的过程示意图;FIG6 shows a schematic diagram of a process for determining a target delay code in an example of the present disclosure;
图7示出了本公开示例中一种用于记录数据写操作使用的延时码的标识的流程图;FIG7 shows a flow chart of an identification of a delay code used for recording a data write operation in an example of the present disclosure;
图8示出了本公开示例中一应用场景中用于确定数据写操作的目标延时码的流程图;FIG8 shows a flow chart for determining a target delay code for a data write operation in an application scenario in an example of the present disclosure;
图9示出了本公开示例中一种用于记录数据读操作使用的延时码的标识的流程图;FIG9 shows a flow chart of an identification of a delay code used for recording a data read operation in an example of the present disclosure;
图10示出了本公开示例中一种用于获取数据读操作对应的读取结果的流程图;FIG10 shows a flow chart for obtaining a read result corresponding to a data read operation in an example of the present disclosure;
图11示出了本公开示例中一应用场景中用于确定数据读操作的目标延时码的流程图;FIG11 shows a flow chart for determining a target delay code for a data read operation in an application scenario in an example of the present disclosure;
图12示出了本公开示例中另一种用于获取数据读操作对应的读取结果的流程图;FIG12 shows another flowchart for obtaining a read result corresponding to a data read operation in an example of the present disclosure;
图13示出了本公开示例中另一应用场景中用于确定数据读操作的目标延时码的流程图;FIG13 shows a flow chart for determining a target delay code for a data read operation in another application scenario in the present disclosure;
图14示出了本公开示例中一种数据传输装置的结构示意图;FIG14 shows a schematic structural diagram of a data transmission device in an example of the present disclosure;
图15示出了本公开示例中一种第一处理单元的具体结构示意图。FIG. 15 shows a schematic diagram of a specific structure of a first processing unit in an example of the present disclosure.
具体实施方式DETAILED DESCRIPTION
如背景技术所述,在工作环境出现变化(如温度升高、工作电压出现微小变化)时,均会对时钟信号产生影响,可能导致无法对数据信号进行采样。As described in the background art, when the working environment changes (such as temperature increase, slight change in working voltage), the clock signal will be affected, which may make it impossible to sample the data signal.
为使本领域技术人员更好地理解现有方案,以下结合一种数据处理场景进行示例说明。In order to enable those skilled in the art to better understand the existing solution, an example is provided below in combination with a data processing scenario.
参照图1所示的一种数据采样的原理示意图,如图1所示,分别示出了随时间变化的Clock(时钟信号)对应的波形图和Data(数据信号)对应的波形图。Referring to a schematic diagram of a data sampling principle shown in FIG. 1 , as shown in FIG. 1 , a waveform diagram corresponding to a Clock (clock signal) and a waveform diagram corresponding to a Data (data signal) varying with time are respectively shown.
由图1可知,当Clock由低电平跳转至高电平时,可以对Data进行采样,以获取采样结果。As shown in FIG1 , when the Clock jumps from a low level to a high level, the Data can be sampled to obtain a sampling result.
例如,在t2时刻,Clock由低电平跳转至高电平,而Data此时处于高电平,可以获取到对应的有效数据;而在t4时刻,Clock由低电平跳转至高电平,而Data此时处于低电平,获取到的数据为无效数据。For example, at time t2, Clock jumps from low level to high level, and Data is at high level at this time, so the corresponding valid data can be obtained; at time t4, Clock jumps from low level to high level, and Data is at low level at this time, so the obtained data is invalid data.
而在实际的数据采样过程中,随着温度变化或者其它环境因素的影响,Clock的波形将发生变化,使得Clock处于由低电平跳转至高电平的时刻,也无法对Data进行采样。In the actual data sampling process, as the temperature changes or other environmental factors affect, the waveform of the Clock will change, making it impossible to sample the Data when the Clock jumps from a low level to a high level.
作为示例,参照图2所示的另一种数据采样的原理示意图,如图2所示,受到环境因素的干扰,Clock的波形发生变化,例如,Clock和Data由低电平跳转至高电平的时刻相同。As an example, referring to another schematic diagram of data sampling principle shown in FIG2 , as shown in FIG2 , affected by environmental factors, the waveform of the Clock changes, for example, the moments when the Clock and Data jump from a low level to a high level are the same.
然而,在图2示意的t1、t2、t3、t4和t5时刻,Data处于低电平和高电平跳转状态,并不能确定Data是处于低电平,还是高电平,进而无法根据Clock获取采样结果。However, at the moments t1, t2, t3, t4 and t5 shown in FIG2 , Data is in a low level and high level transition state, and it is not possible to determine whether Data is in a low level or a high level, and thus the sampling result cannot be obtained according to Clock.
为解决上述技术问题,本公开提供一种数据传输方案,基于各次数据处理操作的执行结果,能够记录在数据处理操作执行成功时,标识所使用的延时码可用的第零标识,以及在数据处理操作执行失败时,标识所使用的延时码为不可用的第一标识,进而在确定记录的标识中存在多个连续的第零标识时,可以从中选择第零标识,并将选择的第零标识对应的延时码作为目标延时码,进而基于目标延时码,能够执行数据处理操作。In order to solve the above technical problems, the present disclosure provides a data transmission scheme, which can record, based on the execution results of each data processing operation, the zeroth identifier that indicates that the delay code used is available when the data processing operation is successfully executed, and the first identifier that indicates that the delay code used is unavailable when the data processing operation fails to be executed. When it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, the zeroth identifier can be selected from them, and the delay code corresponding to the selected zeroth identifier can be used as the target delay code. Based on the target delay code, the data processing operation can be executed.
采用上述方案,目标延时码是从多个连续且可用的第零标识中确定的,即目标延时码是从多个连续执行成功的数据处理操作所使用的延时码中确定的,其中,第零标识用于在数据处理操作执行成功时,对所使用的延时码进行标识并标识为可用,即使受到环境因素影响,导致目标延时码发生变化,目标延时码仍可用,因而能够提高数据处理过程中的稳定性。With the above scheme, the target delay code is determined from a plurality of consecutive and available zeroth identifiers, that is, the target delay code is determined from the delay codes used for a plurality of consecutively successfully executed data processing operations, wherein the zeroth identifier is used to identify the delay code used and mark it as available when the data processing operation is successfully executed, and even if the target delay code changes due to environmental factors, the target delay code is still available, thereby improving the stability of the data processing process.
为使本领域技术人员更好地理解本公开示例的发明构思、工作原理及优点,以下对本公开实施例中的数据传输方案进行示例描述。In order to enable those skilled in the art to better understand the inventive concept, working principle and advantages of the examples of the present disclosure, the data transmission scheme in the embodiments of the present disclosure is described as an example below.
参见图3所示的本公开示例中一种数据传输方法的流程图,在一些示例中,如图3所示,可以执行如下步骤:Referring to the flowchart of a data transmission method in an example of the present disclosure shown in FIG3 , in some examples, as shown in FIG3 , the following steps may be performed:
S11,执行多次数据处理操作,并基于各次数据处理操作的执行结果,记录各次数据处理操作使用的延时码的标识。S11, executing multiple data processing operations, and based on the execution results of each data processing operation, recording the identifier of the delay code used in each data processing operation.
具体而言,在执行数据处理操作的过程中,通过使用延时码,能够进行延时处理,进而可以获取各次数据处理操作经延时处理后的执行结果,根据获取到的执行结果,可以确定各次数据处理操作使用的延时码的标识。Specifically, in the process of executing data processing operations, delay processing can be performed by using delay codes, and then the execution results of each data processing operation after delay processing can be obtained. According to the obtained execution results, the identifier of the delay code used for each data processing operation can be determined.
在一些示例中,可以基于数据处理操作是否执行成功,确定各次数据处理操作使用的延时码的标识。In some examples, the identifier of the delay code used for each data processing operation may be determined based on whether the data processing operation is successfully executed.
例如,标识可以包括在数据处理操作执行成功时,标识数据处理操作使用的延时码为可用的第零标识,以及,在数据处理操作执行失败时,标识数据处理操作使用的延时码为不可用的第一标识。For example, the identifier may include a zeroth identifier that identifies the delay code used by the data processing operation as available when the data processing operation is successfully executed, and a first identifier that identifies the delay code used by the data processing operation as unavailable when the data processing operation fails to execute.
其中,本公开示例中的“成功”可以是指执行数据处理操作,能够获取与设定结果相同的执行结果;本公开示例中的“失败”可以是指执行数据处理操作,不能获取执行结果,或者获取的执行结果与设定结果不同。Among them, "success" in the example of the present disclosure may refer to executing a data processing operation and being able to obtain an execution result that is the same as the set result; "failure" in the example of the present disclosure may refer to executing a data processing operation and being unable to obtain an execution result, or the obtained execution result is different from the set result.
在一些可选示例中,数据处理操作可以包括数据写操作和数据读操作,其中,数据写操作可以是指将数据写入至具有存储功能的存储器,数据读操作可以是指从具有存储功能的存储器中读取数据。In some optional examples, the data processing operation may include a data write operation and a data read operation, wherein the data write operation may refer to writing data to a memory with a storage function, and the data read operation may refer to reading data from a memory with a storage function.
在一些可选示例中,在执行数据处理操作时,各延时码对应的延时时长不同。In some optional examples, when performing data processing operations, the delay durations corresponding to the delay codes are different.
S12,在确定记录的标识中存在多个连续的第零标识时,从多个连续的第零标识中选择第零标识,并将选择的第零标识对应的延时码作为目标延时码。S12, when it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, select the zeroth identifier from the multiple consecutive zeroth identifiers, and use the delay code corresponding to the selected zeroth identifier as the target delay code.
具体而言,第零标识可以表示任一数据处理操作使用的延时码可用,当存在多个连续的第零标识时,说明在此段连续区间内,第零标识对应的延时码受环境因素(例如,温度、干扰信号、电压波动等因素)的影响较小,即使环境因素发生变化,数据处理操作仍能够执行成功,进而在将多个连续的第零标识中的其中一个第零标识对应的延时码作为目标延时码时,能够提高目标延时码的稳定性。Specifically, the zeroth identifier can indicate that the delay code used in any data processing operation is available. When there are multiple consecutive zeroth identifiers, it means that within this continuous interval, the delay code corresponding to the zeroth identifier is less affected by environmental factors (for example, temperature, interference signals, voltage fluctuations, etc.). Even if the environmental factors change, the data processing operation can still be executed successfully. Therefore, when the delay code corresponding to one of the multiple consecutive zeroth identifiers is used as the target delay code, the stability of the target delay code can be improved.
在一些可选示例中,当确定存在多个连续的第零标识时,可以将处于预设位置的第零标识对应的延时码作为目标延时码。In some optional examples, when it is determined that there are multiple consecutive zeroth identifiers, the delay code corresponding to the zeroth identifier at a preset position may be used as the target delay code.
作为示例,预设位置可以是指多个连续的第零标识对应区间的中间位置。As an example, the preset position may refer to the middle position of a plurality of consecutive intervals corresponding to the zeroth markers.
S13,使用所述目标延时码,执行所述数据处理操作。S13, using the target delay code, executing the data processing operation.
具体而言,采用步骤S11和S12,能够得到受环境因素影响较小的目标延时码,进而可以使用该目标延时码,执行后续数据处理操作,以提高数据处理过程中的稳定性。Specifically, by adopting steps S11 and S12, a target delay code that is less affected by environmental factors can be obtained, and then the target delay code can be used to perform subsequent data processing operations to improve the stability of the data processing process.
在一些可选示例中,可以使用目标延时码,执行后续数据写操作。In some optional examples, a target delay code may be used to perform subsequent data write operations.
在一些可选示例中,可以使用目标延时码,执行后续数据读操作。In some optional examples, a target delay code may be used to perform subsequent data read operations.
采用上述示例中的数据传输方式,由于目标延时码是从多个连续且可用的第零标识中确定的,而第零标识可以表示任一数据处理操作使用的延时码可用,即使受到环境因素影响,导致目标延时码发生变化,目标延时码的变化较小,目标延时码仍可用,因而能够提高数据处理过程中的稳定性。Using the data transmission method in the above example, since the target delay code is determined from multiple consecutive and available zeroth identifiers, and the zeroth identifier can indicate that the delay code used by any data processing operation is available, even if it is affected by environmental factors and causes the target delay code to change, the change in the target delay code is small and the target delay code is still available, thereby improving the stability of the data processing process.
为使本领域技术人员更好的理解和实施本公开示例中的数据传输方案,以下结合附图并通过示例进行描述。In order to enable those skilled in the art to better understand and implement the data transmission scheme in the examples of the present disclosure, the following description is made with reference to the accompanying drawings and by way of examples.
在一些实施方式中,当根据数据处理操作是否执行成功,记录用于标识数据处理操作使用的延时码为可用的第零标识和用于标识数据处理操作使用的延时码为不可用的第一标识后,可以采用多种方式,将其中至少一个第零标识对应的延时码作为目标延时码。In some embodiments, after recording the zeroth identifier used to identify the delay code used for the data processing operation as available and the first identifier used to identify the delay code used for the data processing operation as unavailable based on whether the data processing operation is executed successfully, a variety of methods can be used to use the delay code corresponding to at least one of the zeroth identifiers as the target delay code.
在一些示例中,在执行各次数据处理操作时,所使用的延时码不同,进而在确定数据处理操作执行成功时,记录的第零标识对应的延时码不同。而目标延时码是由第零标识对应的延时码确定的,因此执行数据处理操作顺序,影响第零标识在记录的标识中的位置,进而影响目标延时码的选取精度。In some examples, when executing each data processing operation, the delay code used is different, and then when determining that the data processing operation is successfully executed, the delay code corresponding to the zeroth identifier recorded is different. The target delay code is determined by the delay code corresponding to the zeroth identifier, so the order of executing the data processing operation affects the position of the zeroth identifier in the recorded identifier, and thus affects the selection accuracy of the target delay code.
作为可选示例,可以根据执行数据处理操作的顺序,记录第零标识和第一标识。As an optional example, the zeroth identifier and the first identifier may be recorded according to the order in which the data processing operation is performed.
例如,可以根据执行各次数据处理操作的顺序,对记录的第零标识和第一标识进行排序处理,得到标识序列表。For example, the zeroth identifier and the first identifier of the record may be sorted according to the order in which each data processing operation is performed to obtain an identifier sequence list.
通过根据各次数据处理操作的顺序,能够得到具有按序排列的第零标识和第一标识的标识序列表,提高数据处理操作顺序与标识的一致性,进而能够提高得到的目标延时码的精确性。By following the order of each data processing operation, an identifier sequence table with the zeroth identifier and the first identifier arranged in sequence can be obtained, thereby improving the consistency between the data processing operation order and the identifier, and further improving the accuracy of the obtained target delay code.
在此应用场景中,作为示例,参照图4所示的本公开示例中一种用于确定目标延时码的流程图,在一些示例中,如图4所示,可以执行如下步骤:In this application scenario, as an example, referring to a flowchart for determining a target delay code in an example of the present disclosure shown in FIG. 4 , in some examples, as shown in FIG. 4 , the following steps may be performed:
S21,确定所述标识序列表中存在连续的第零标识的区域。S21, determining an area in the identifier sequence table where there are continuous zeroth identifiers.
具体而言,在执行各数据处理操作时,均会产生与执行结果对应的标识,进而在执行多次数据处理操作时,可以获取多个标识。在按照各次数据处理操作的顺序,将第零标识和第一标识进行排序处理时,可以通过判断是否存在连续的多个第零标识,确定标识序列表中存在第零标识的区域。Specifically, when each data processing operation is executed, an identifier corresponding to the execution result is generated, and multiple identifiers can be obtained when multiple data processing operations are executed. When the zeroth identifier and the first identifier are sorted according to the order of each data processing operation, the area in the identifier sequence table where the zeroth identifier exists can be determined by judging whether there are multiple consecutive zeroth identifiers.
S22,从确定的区域中选取第零标识,并按序记录所选取的第零标识,得到对应的选取窗口。S22, selecting the zeroth marker from the determined area, and recording the selected zeroth marker in sequence to obtain a corresponding selection window.
具体而言,当确定标识序列表中存在连续的第零标识的区域,可以提取这个区域内的所有的第零标识,并按照各第零标识在标识序列表中的位置,依序记录第零标识,从而可以得到包括按序排列的第零标识的选取窗口。Specifically, when it is determined that there is an area with continuous zeroth identifiers in the identifier sequence list, all zeroth identifiers in this area can be extracted, and the zeroth identifiers can be recorded in sequence according to the position of each zeroth identifier in the identifier sequence list, so that a selection window including the zeroth identifiers arranged in sequence can be obtained.
S23,将位于所述选取窗口预设位置的第零标识对应的延时码作为执行各次数据处理操作时的目标延时码。S23, using the delay code corresponding to the zeroth marker located at the preset position of the selection window as the target delay code when executing each data processing operation.
具体而言,采用步骤S21和S22,能够获取包括第零标识的选取窗口,从而可以将位于选取窗口预设位置的第零标识对应的标识码作为目标延时码。Specifically, by adopting steps S21 and S22, a selection window including the zeroth identifier can be obtained, so that the identifier code corresponding to the zeroth identifier located at a preset position of the selection window can be used as the target delay code.
在一些示例中,选取窗口预设位置的第零标识可以是指选取窗口的中间位置的第零标识。In some examples, the zeroth marker of the preset position of the selection window may refer to the zeroth marker of the middle position of the selection window.
在一些其它示例中,选取窗口预设位置的第零标识可以选取窗口任意位置的第零标识,本公开示例对此不做限制。In some other examples, the zeroth marker at a preset position of the window may be selected as the zeroth marker at any position of the window, and the examples disclosed herein are not limited to this.
采用上述示例的方案,通过将位于选取窗口预设位置的第零标识对应的延时码作为执行各次数据处理操作时的目标延时码,在环境因素发生变化,即使第零标识对应的延时码发生变化(例如延时码对应的延时时长增大或者减小),发生变化的第零标识对应的延时码的延时时长仍处于选取窗口中,在使用与选取的第零标识所对应的目标延时码时,能够成功执行数据处理操作,进一步提高数据处理过程中的稳定性。By adopting the scheme of the above example, by using the delay code corresponding to the zeroth identifier located at the preset position of the selection window as the target delay code when executing each data processing operation, when environmental factors change, even if the delay code corresponding to the zeroth identifier changes (for example, the delay duration corresponding to the delay code increases or decreases), the delay duration of the delay code corresponding to the changed zeroth identifier is still within the selection window. When using the target delay code corresponding to the selected zeroth identifier, the data processing operation can be successfully executed, further improving the stability of the data processing process.
需要说明的是,在一些示例中,若标识序列表中不存在第零标识,可以检查执行数据处理操作的设备或者设备间的连接线路,也可以通过降低执行数据处理操作的数据传输频率,在此执行数据处理操作。It should be noted that, in some examples, if there is no zeroth identifier in the identifier sequence table, the device performing the data processing operation or the connection line between the devices can be checked, or the data processing operation can be performed here by reducing the data transmission frequency for performing the data processing operation.
在一些实施方式中,在执行多次数据处理操作,并按照图4所示的方式,形成的选取窗口可能只有一个,也可能有多个选取窗口,因而可以根据选取窗口的数量,采用不同的方式,将其中至少一个第零标识对应的延时码作为目标延时码。In some embodiments, after performing multiple data processing operations and in the manner shown in FIG. 4 , there may be only one selection window or multiple selection windows formed. Therefore, according to the number of selection windows, different methods can be used to use the delay code corresponding to at least one of the zeroth identifiers as the target delay code.
例如,在得到一个选取窗口时,可以直接将位于选取窗口预设位置(例如中间位置)的第零标识的延时码作为目标延时码。For example, when a selection window is obtained, the delay code with the zeroth mark located at a preset position (eg, the middle position) of the selection window can be directly used as the target delay code.
而存在多个选取窗口时,可以从包含第零标识数量最多的选取窗口中选取目标标识码。When there are multiple selection windows, the target identification code can be selected from the selection window containing the largest number of zeroth identifications.
作为一示例,参见图5所示的本公开示例中一应用场景中用于确定目标延时码的流程图,如图5所示,可以包括如下步骤:As an example, referring to the flowchart for determining the target delay code in an application scenario in the example of the present disclosure shown in FIG5 , as shown in FIG5 , the following steps may be included:
S31,从多个所述选取窗口中选取包含所述第零标识的数量最多的选取窗口,作为目标窗口。S31, selecting a selected window containing the largest number of zeroth identifiers from the multiple selected windows as a target window.
具体而言,选取窗口中包含的第零标识的数量越多,说明这个选取窗口中第零标识对应的延时码受环境因素的影响越小,各第零标识对应的延时码具有较大的变化裕量,即使因环境因素发生变化,第零标识对应的延时码发生变化(例如延时码对应的延时时长增大或者减小),在将其作为目标延时码时,仍能够成功执行数据处理操作。Specifically, the more zeroth identifiers included in the selection window, the less the delay code corresponding to the zeroth identifier in the selection window is affected by environmental factors, and the delay codes corresponding to each zeroth identifier have a larger variation margin. Even if the delay code corresponding to the zeroth identifier changes due to changes in environmental factors (for example, the delay duration corresponding to the delay code increases or decreases), the data processing operation can still be successfully performed when it is used as the target delay code.
S32,将位于所述目标窗口预设位置的第零标识对应的延时码作为所述目标延时码。S32, taking the delay code corresponding to the zeroth marker located at the preset position of the target window as the target delay code.
在一些示例中,可以将位于目标窗口中间位置的第零标识对应的延时码作为所述目标延时码。In some examples, the delay code corresponding to the zeroth marker located in the middle of the target window may be used as the target delay code.
通过将位于目标窗口中心位置的第零标识的延时码作为目标延时码,使得目标延时码具有更大的变化裕量,能够进一步提高数据处理过程中的稳定性。By using the delay code with the zeroth marker located at the center of the target window as the target delay code, the target delay code has a larger variation margin, which can further improve the stability in the data processing process.
需要说明的是,当目标窗口存在偶数个第零标识时,可以将位于中间位置的其中任意一个第一标识对应的延时码作为目标延时码。例如,可以将位于中间位置的第一个第一标识对应的延时码作为目标延时码。It should be noted that when there are an even number of zeroth identifiers in the target window, the delay code corresponding to any first identifier in the middle position can be used as the target delay code. For example, the delay code corresponding to the first first identifier in the middle position can be used as the target delay code.
在一些示例中,可以将位于目标窗口任意位置的第零标识对应的延时码作为所述目标延时码。In some examples, the delay code corresponding to the zeroth marker located at any position in the target window may be used as the target delay code.
为便于理解通过选取窗口获取目标延时码的过程,以下通过示例进行说明。To facilitate understanding of the process of obtaining the target delay code by selecting a window, an example is provided below.
参见图6所示的一种用于确定目标延时码的过程示意图,如图6所示,示意出了根据执行64次数据处理操作的顺序,形成的标识序列表:1,1,1,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0。Refer to the schematic diagram of a process for determining the target delay code shown in Figure 6. As shown in Figure 6, the identification sequence table formed according to the order of executing 64 data processing operations is schematically illustrated: 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0.
通过判断标识序列表中至少存在连续的第零标识,并按照执行数据处理操作的顺序,能够得到5个选取窗口,分别为:[0,0,0]、[0,0,0,0,0,0,0,0,0,0]、[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]、[0]、[0,0,0,0]。By judging that there is at least continuous zeroth identifier in the identifier sequence table, and according to the order of executing the data processing operations, 5 selection windows can be obtained, namely: [0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0], [0, 0, 0, 0].
通过比较这5个选取窗口中包含的第零标识的数量,能够得到目标窗口:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],并且目标窗口可以包括25个第零标识“0”,故可以目标窗口第13位(即图6中虚线框示意的第零标识“0”)的第零标识“0”对应的延时码作为目标延时码。By comparing the number of zeroth identifiers contained in these five selection windows, we can obtain the target window: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], and the target window can include 25 zeroth identifiers “0”, so the delay code corresponding to the zeroth identifier “0” of the 13th bit of the target window (i.e., the zeroth identifier “0” indicated by the dotted box in Figure 6) can be used as the target delay code.
需要说明的是,第一,图6中示意的标识序列表中包含的第零标识和第一标识的个数进行示例说明,可以根据所执行的数据处理操作确定;第二,第零标识“0”和第一标识“1”的符号为示例说明,是用来说明可以采用不同的符号来标识执行结果,不能理解为对本发明的限制,例如,可以采用符号“A”表示第零标识、符号“B”表示第一标识,本公开对此不做限制;第三,标识序列表、选取窗口和目标窗口的表现形式也为示例说明,只是用于说明采用本公开示例中的方案,能够记录第零标识和第一标识,不能理解为对本发明的限制。It should be noted that, first, the number of zeroth identifiers and first identifiers contained in the identifier sequence table shown in Figure 6 is for example description and can be determined according to the data processing operation performed; second, the symbols of the zeroth identifier "0" and the first identifier "1" are for example description, which are used to illustrate that different symbols can be used to identify the execution results, and cannot be understood as a limitation on the present invention. For example, the symbol "A" can be used to represent the zeroth identifier and the symbol "B" can be used to represent the first identifier, and the present disclosure does not impose any restrictions on this; third, the expression forms of the identifier sequence table, the selection window and the target window are also for example description, which are only used to illustrate that the scheme in the example of the present disclosure can record the zeroth identifier and the first identifier, and cannot be understood as a limitation on the present invention.
在本公开一些示例中,是通过将包含第零标识的数量最多的选取窗口作为选取目标延时码的目标窗口,第零标识的数量直接影响最终选取的目标延时码,而第零标识的数量又与执行数据处理操作的次数相关,因此在确定至少存在连续的第零标识的区域的步骤之前,还可以判断标识序列表中包含的第零标识和第一标识的总数与执行数据处理操作的次数是否相同。In some examples of the present disclosure, the selection window containing the largest number of zeroth identifiers is used as the target window for selecting the target delay code. The number of zeroth identifiers directly affects the target delay code finally selected, and the number of zeroth identifiers is related to the number of times the data processing operation is performed. Therefore, before the step of determining the area where at least continuous zeroth identifiers exist, it can also be determined whether the total number of zeroth identifiers and first identifiers contained in the identifier sequence table is the same as the number of times the data processing operation is performed.
例如,在确定标识序列表中包含的第零标识和第一标识的总数与执行数据处理操作的次数相同时,执行确定标识序列表中至少存在连续的第零标识的区域的步骤。For example, when it is determined that the total number of zeroth identifiers and first identifiers included in the identifier sequence list is the same as the number of times the data processing operation is performed, the step of determining a region in the identifier sequence list where at least continuous zeroth identifiers exist is performed.
还例如,在确定标识序列表中包含的第零标识和第一标识的总数与执行数据处理操作的次数不同时,继续记录后续数据处理操作所使用的延时码的标识。For another example, when it is determined that the total number of the zeroth identifier and the first identifier included in the identifier sequence table is different from the number of times the data processing operation is performed, the identifier of the delay code used for the subsequent data processing operation continues to be recorded.
通过在判断标识序列表中包含的第零标识和第一标识的总数与执行数据处理操作的次数相同时,执行确定标识序列表中至少存在连续的第零标识的区域,能够记录执行所有的数据处理操作所对应的标识,进而能够提高各选取窗口内包含的第零标识的精度,提高获取到的目标延时码的精准度。By determining that the total number of zeroth identifiers and first identifiers contained in the identifier sequence table is the same as the number of times the data processing operation is performed, an area in the identifier sequence table in which at least continuous zeroth identifiers exist can be determined. This can record the identifiers corresponding to all the data processing operations performed, thereby improving the accuracy of the zeroth identifier contained in each selection window and the accuracy of the target delay code obtained.
在另一些示例中,在记录用于标识数据处理操作使用的延时码为可用的第零标识和用于标识数据处理操作使用的延时码为不可用的第一标识后,可以选择其中任意一个第零标识码对应延时码作为目标延时码,本公开示例对获取目标延时码的方式不做限制。In other examples, after recording the zeroth identifier for identifying the delay code used for data processing operations as available and the first identifier for identifying the delay code used for data processing operations as unavailable, the delay code corresponding to any one of the zeroth identifier codes can be selected as the target delay code, and the examples disclosed herein do not limit the method for obtaining the target delay code.
在本公开一些示例中,基于数据传输方向,可以将数据处理操作分为数据写操作和数据读操作。当确定数据处理操作的类型时,可以采用上述示例中的方案,得到与数据写操作相对应的标识序列表和目标延时码,以及与数据读操作相对应的标识序列表和目标延时码。In some examples of the present disclosure, based on the data transmission direction, the data processing operation can be divided into a data write operation and a data read operation. When determining the type of the data processing operation, the scheme in the above example can be used to obtain the identification sequence table and the target delay code corresponding to the data write operation, and the identification sequence table and the target delay code corresponding to the data read operation.
作为一可选示例,数据处理操作可以包括数据写操作。As an optional example, the data processing operation may include a data writing operation.
在此情况下,标识序列表可以包括在数据读操作执行成功时对应的第零标识,以及在数据写操作执行失败时对应的第一标识。In this case, the identifier sequence table may include the zeroth identifier corresponding to when the data read operation is successfully executed, and the first identifier corresponding to when the data write operation fails to execute.
位于选取窗口预设位置的第零标识对应的延时码可以作为执行各次数据写操作时的目标延时码。The delay code corresponding to the zeroth marker located at the preset position of the selection window can be used as the target delay code when executing each data write operation.
作为一可选示例,数据处理操作可以包括数据读操作。As an optional example, the data processing operation may include a data read operation.
在此情况下,标识序列表可以包括在数据读操作执行成功时对应的第零标识,以及在数据读写操作执行失败时对应的第一标识。In this case, the identifier sequence table may include a zeroth identifier corresponding to when the data read operation is successfully executed, and a first identifier corresponding to when the data read and write operation fails to be executed.
位于选取窗口预设位置的第零标识对应的延时码可以作为执行各次数据读操作时的目标延时码。The delay code corresponding to the zeroth marker located at the preset position of the selection window can be used as the target delay code when executing each data read operation.
在本公开一些示例中,基于数据处理操作的类型,可以采用不同的方案,记录各次数据处理操作使用的延时码的标识。In some examples of the present disclosure, different schemes may be used to record the identifier of the delay code used for each data processing operation based on the type of data processing operation.
作为一示例,数据处理操作可以包括数据写操作。As an example, a data processing operation may include a data write operation.
相应的,参照图7所示的本公开示例中一种用于记录数据写操作使用的延时码的标识的流程图,如图7所示,可以执行如下步骤:Accordingly, referring to a flowchart of an example of the present disclosure for recording an identification of a delay code used in a data write operation as shown in FIG. 7 , as shown in FIG. 7 , the following steps may be performed:
S41,根据多个延时码对应的延时时长,对时钟信号进行多次延时处理。S41, performing multiple delay processing on the clock signal according to the delay durations corresponding to the multiple delay codes.
在一些示例中,一次数据写操作使用一个延时码对应的延时时长对时钟信号进行一次延时处理,即执行数据写操作的次数与对时钟信号进行延时处理的次数可以相同。In some examples, a data write operation uses a delay time length corresponding to a delay code to perform a delay process on the clock signal, that is, the number of times the data write operation is performed may be the same as the number of times the clock signal is delayed.
在一些示例中,各个延时码对应的延时时长可以不同,以对各次数据写操作进行不同时长的延时处理。In some examples, the delay lengths corresponding to the delay codes may be different, so as to perform delay processing of different lengths on each data write operation.
在一些可选示例中,可以通过调节接入至时钟信号传输路径上的具有延时功能的器件的数量,使得各次数据写操作具有不同的延时时长。In some optional examples, the number of devices with delay functions connected to the clock signal transmission path can be adjusted so that each data write operation has a different delay length.
S42,在时钟信号的各次延时处理下执行数据写操作后,获取各次数据写操作对应的校验信息。S42, after executing the data write operation under each delay processing of the clock signal, obtaining verification information corresponding to each data write operation.
具体而言,在对时钟信号进行延时后,能够执行数据写操作,将数据写入至具有存储功能的存储器中,并能够获取用于判断数据写操作能否成功执行的校验信息。Specifically, after the clock signal is delayed, a data write operation can be performed to write the data into a memory with a storage function, and verification information for determining whether the data write operation can be successfully performed can be obtained.
在一些示例中,对于不同类型的存储器,获取到的校验信息的类型可以相同。In some examples, for different types of memories, the type of verification information obtained may be the same.
例如,当存储器为嵌入式多媒体控制器eMMC或安全数字卡SD时,各次数据写操作对应的校验信息均可以是循环冗余校验(Cyclic Redundancy Check,CRC)信息。For example, when the memory is an embedded multimedia controller eMMC or a secure digital card SD, the check information corresponding to each data write operation may be cyclic redundancy check (CRC) information.
在一些示例中,对于不同类型的存储器,获取到的校验信息的类型可以不同。In some examples, the type of verification information obtained may be different for different types of memories.
需要说明的是,上述方案描述的校验信息的类型进行示例说明,是用于表示在对不同类型的存储器执行输入写操作时,能够采用与之对应的校验信息进行校验,以判断数据写操作是否执行成功,不能理解为对本发明的限制。It should be noted that the type of verification information described in the above scheme is for illustrative purposes only, and is used to indicate that when performing input write operations on different types of memories, corresponding verification information can be used for verification to determine whether the data write operation is successful, and it should not be understood as a limitation on the present invention.
S43,根据各次数据写操作对应的校验信息,记录各次数据写操作使用的延时码的标识。S43, recording the identifier of the delay code used in each data writing operation according to the verification information corresponding to each data writing operation.
具体而言,可以根据各次数据写操作对应的校验信息,确定各次数据写操作的执行结果(例如,数据写操作执行成功,或者数据写操作执行失败),进而可以确定各次数据写操作使用的延时码的标识。Specifically, the execution result of each data write operation (for example, the data write operation is executed successfully, or the data write operation is executed unsuccessfully) can be determined according to the verification information corresponding to each data write operation, and then the identifier of the delay code used for each data write operation can be determined.
例如,在根据各次数据写操作对应的校验信息,确定数据写操作执行成功,可以将数据写操作使用的延时码的标识记录为第零标识“0”;或者在根据各次数据写操作对应的校验信息,确定数据写操作执行失败时,可以将数据写操作使用的延时码的标识记录为第一标识“1”。For example, when it is determined that the data write operation is successful based on the verification information corresponding to each data write operation, the identifier of the delay code used for the data write operation can be recorded as the zeroth identifier "0"; or when it is determined that the data write operation fails based on the verification information corresponding to each data write operation, the identifier of the delay code used for the data write operation can be recorded as the first identifier "1".
通过使得一次数据写操作使用一个延时码对应的延时时长对时钟信号进行一次延时处理,并使各个延时码对应的延时时长不同,能够更加真实地模拟数据写操作的实际环境,提高获取到的各数据写操作对应的校验信息的准确性。By using a delay time corresponding to a delay code to delay the clock signal for a data write operation, and making the delay time corresponding to each delay code different, the actual environment of the data write operation can be simulated more realistically, and the accuracy of the verification information corresponding to each data write operation obtained can be improved.
在一些示例中,可以根据数据写操作对应的校验信息与预设校验信息间的相对关系,确定并记录各次数据写操作使用的延时码的标识。In some examples, the identifier of the delay code used in each data write operation may be determined and recorded according to the relative relationship between the verification information corresponding to the data write operation and the preset verification information.
例如,对于任一次数据写操作,在确定数据写操作对应的校验信息与预设校验信息相同时,将数据写操作所使用的延时码的标识记录为第零标识“0”。For example, for any data writing operation, when it is determined that the verification information corresponding to the data writing operation is the same as the preset verification information, the identifier of the delay code used for the data writing operation is recorded as the zeroth identifier "0".
又例如,对于任一次数据写操作,在确定数据写操作对应的校验信息与预设校验信息不同时,将数据写操作所使用的延时码的标识记录为第一标识“1”。For another example, for any data write operation, when it is determined that the verification information corresponding to the data write operation is different from the preset verification information, the identifier of the delay code used for the data write operation is recorded as the first identifier "1".
在一些示例中,预设校验信息可以根据各类型存储器的通信协议确定。In some examples, the preset verification information may be determined according to the communication protocol of each type of memory.
例如,当存储器为嵌入式多媒体控制器eMMC时,预设校验信息可以是“010”,当经解析处理后的数据写操作对应的校验信息为“010”,将数据写操作所使用的延时码的标识记录为第零标识“0”;否则,将数据写操作所使用的延时码的标识记录为第一标识“1”。For example, when the memory is an embedded multimedia controller eMMC, the preset verification information can be "010". When the verification information corresponding to the data write operation after parsing is "010", the identifier of the delay code used for the data write operation is recorded as the zeroth identifier "0"; otherwise, the identifier of the delay code used for the data write operation is recorded as the first identifier "1".
例如,当存储器为安全数字卡SD时,预设校验信息可以是“010”,当经解析处理后的数据写操作对应的校验信息为“010”,将数据写操作所使用的延时码的标识记录为第零标识“0”;否则,将数据写操作所使用的延时码的标识记录为第一标识“1”。For example, when the memory is a secure digital card SD, the preset verification information can be "010". When the verification information corresponding to the data write operation after parsing is "010", the identifier of the delay code used for the data write operation is recorded as the zeroth identifier "0"; otherwise, the identifier of the delay code used for the data write operation is recorded as the first identifier "1".
通过采用根据数据写操作对应的校验信息与预设校验信息间的相对关系,能够确定并记录各次数据写操作使用的延时码的标识的过程,无需通过人工处理,因而能够提高记录延时码的标识的效率及准确性。By adopting the relative relationship between the verification information corresponding to the data writing operation and the preset verification information, the process of determining and recording the delay code identification used for each data writing operation can be carried out without manual processing, thereby improving the efficiency and accuracy of recording the delay code identification.
采用上述方案,通过根据执行各次数据写操作的顺序,能够对记录的第零标识和第一标识进行排序处理,进而能够确定仅包含第零标识的选取窗口。根据选取窗口所包含的第零标识的数量,能够确定用于选取目标延时码的目标窗口,并将位于目标窗口预设位置的第零标识对应的延时码作为目标延时码,进而可以根据目标延时码对应的延时时长,对所述时钟信号进行延时处理,以执行数据写操作。By adopting the above scheme, the recorded zeroth identifier and the first identifier can be sorted according to the order of executing each data write operation, and then the selection window containing only the zeroth identifier can be determined. According to the number of zeroth identifiers contained in the selection window, the target window for selecting the target delay code can be determined, and the delay code corresponding to the zeroth identifier located at the preset position of the target window is used as the target delay code, and then the clock signal can be delayed according to the delay time length corresponding to the target delay code to perform the data write operation.
在一些示例中,当记录各次数据写操作使用的延时码的标识时,可以选取可用的标识作为执行数据写操作的目标延时码。In some examples, when the identifiers of the delay codes used for each data write operation are recorded, an available identifier may be selected as a target delay code for executing the data write operation.
作为示例,可以执行如下步骤,以确定用于作为执行数据写操作的目标延时码。As an example, the following steps may be performed to determine a target delay code for performing a data write operation.
A1)根据各次数据写操作的顺序,得到具有按序排列的第零标识和第一标识的写入标识序列表。A1) According to the sequence of each data writing operation, a write mark sequence table having a zeroth mark and a first mark arranged in sequence is obtained.
A2)确定写入标识序列表中至少存在连续的第零标识的区域。A2) Determine an area in the write mark sequence table where at least a continuous zeroth mark exists.
A3)从确定的区域中选取第零标识,并按序记录第零标识,得到对应的选取窗口。A3) Select the zeroth marker from the determined area, and record the zeroth marker in sequence to obtain the corresponding selection window.
A4)将位于选取窗口预设位置的第零标识对应的延时码作为执行各次数据写操作时的目标延时码。A4) The delay code corresponding to the zeroth mark located at the preset position of the selection window is used as the target delay code when executing each data writing operation.
其在,在一些示例中,当执行步骤A3),得到多个选取窗口时,A4)可以包括:In some examples, when executing step A3) to obtain multiple selection windows, A4) may include:
A41)从多个选取窗口中选取包含第零标识的数量最多的选取窗口,作为目标窗口。A41) Selecting the selection window with the largest number of zero-th identifiers from multiple selection windows as the target window.
A42)将位于目标窗口预设位置的第零标识对应的延时码作为目标延时码。A42) The delay code corresponding to the zeroth mark located at the preset position of the target window is used as the target delay code.
在一些示例中,可以将位于目标窗口中间位置的第零标识对应的延时码作为目标延时码。In some examples, the delay code corresponding to the zeroth marker located in the middle of the target window may be used as the target delay code.
在一些可选示例中,在执行步骤A2)之前,还可以执行判断写入标识序列表中包含的第零标识和第一标识的总数与执行数据写操作的次数是否相同,并在确定写入标识序列表中包含的第零标识和第一标识的总数与执行数据写操作的次数相同时,执行步骤A2);否则,继续记录后续数据写操作所使用的延时码的标识。In some optional examples, before executing step A2), it can also be determined whether the total number of the zeroth identifier and the first identifier contained in the write identifier sequence table is the same as the number of data write operations performed, and when it is determined that the total number of the zeroth identifier and the first identifier contained in the write identifier sequence table is the same as the number of data write operations performed, step A2 is executed); otherwise, continue to record the identifier of the delay code used for subsequent data write operations.
采用上述方式,可以获取数据写操作对应的目标延时码,进而可以根据目标延时码对应的延时时长,执行数据写操作。By adopting the above method, the target delay code corresponding to the data write operation can be obtained, and then the data write operation can be performed according to the delay duration corresponding to the target delay code.
为便于理解和实施确定数据写操作所使用的目标延时码的方案,以下结合附图,通过示例进行说明。To facilitate understanding and implementation of the solution for determining the target delay code used for a data write operation, the following is an explanation by way of examples with reference to the accompanying drawings.
参照图8所示本公开示例中一应用场景中用于确定数据写操作的目标延时码的流程图,如图8所示,可以执行如下步骤:Referring to the flowchart for determining the target delay code for a data write operation in an application scenario in an example of the present disclosure shown in FIG8 , as shown in FIG8 , the following steps may be performed:
S51,根据多个延时码对应的延时时长,对时钟信号进行多次延时处理。S51, performing multiple delay processing on the clock signal according to the delay durations corresponding to the multiple delay codes.
S52,在时钟信号的各次延时处理下执行数据写操作后,获取各次数据写操作对应的校验信息。S52, after executing the data write operation under each delay processing of the clock signal, obtaining verification information corresponding to each data write operation.
S53,数据写操作对应的校验信息与设定的校验信息是否相同,若是,执行步骤S54;若否,执行步骤S55。S53, whether the verification information corresponding to the data write operation is the same as the set verification information, if so, execute step S54; if not, execute step S55.
S54,记录数据写操作使用的延时码的标识为可用的第零标识。S54, recording the identifier of the delay code used in the data write operation as the available zeroth identifier.
S55,记录数据写操作使用的延时码的标识为不可用的第一标识。S55, recording the identifier of the delay code used in the data write operation as an unavailable first identifier.
S56,根据执行各次数据写操作的顺序,对记录的第零标识和第一标识进行排序处理,得到写入标识序列表。S56, sorting the zeroth identifier and the first identifier of the record according to the order of executing each data write operation to obtain a write identifier sequence table.
S57,写入标识序列表中的标识总数与执行数据写操作的次数是否相同,若是,执行步骤S58;若否,继续执行步骤S52。S57, whether the total number of identifiers written into the identifier sequence table is the same as the number of times the data write operation is performed, if so, execute step S58; if not, continue to execute step S52.
其中,标识总数包括第一标识和第零标识的数量。The total number of identifiers includes the number of first identifiers and zeroth identifiers.
S58,确定写入标识序列表中存在连续的第零标识的区域。S58, determining an area in the write mark sequence table where there are continuous zeroth marks.
S59,从确定的区域中选取第零标识,并按序记录所选取的第零标识,得到对应的选取窗口。S59, selecting the zeroth marker from the determined area, and recording the selected zeroth marker in sequence to obtain a corresponding selection window.
S60,选取包含第零标识的数量最多的选取窗口,作为目标窗口。S60, selecting a selection window containing the largest number of zeroth identifiers as a target window.
S61,将位于目标窗口中间的第零标识对应的延时码作为目标延时码.S61, the delay code corresponding to the zeroth mark in the middle of the target window is used as the target delay code.
S62,根据目标延时码对应的延时时长,对时钟信号进行延时,以执行后续数据写操作。S62, delaying the clock signal according to the delay duration corresponding to the target delay code to perform a subsequent data write operation.
其中,步骤S51至S62的具体实现方式可以参见前述示例。The specific implementation of steps S51 to S62 may refer to the above examples.
需要说明的是,上述示例是以具有多个选取窗口为例进行说明,若只包括一个选取窗口,可以直接将选取窗口中间位置的第零标识对应的延时码作为目标延时码。It should be noted that the above example is based on a case where multiple selection windows are provided. If only one selection window is included, the delay code corresponding to the zeroth marker in the middle of the selection window can be directly used as the target delay code.
采用上述示例中的方案,能够选取用于执行后续数据写操作的目标延时码,使得数据能够稳定的写入中具有存储功能的存储器中,例如,将输入写入至第一存储器和第二存储器中。By adopting the scheme in the above example, a target delay code for performing subsequent data write operations can be selected so that data can be stably written into a memory with storage function, for example, writing input into a first memory and a second memory.
在一些示例中,当数据处理操作包括数据读操作时,在执行数据读操作的过程中,对于不同类型或者不同通信协议的存储器,在确定对应的目标延时码时,可以执行不同的操作。In some examples, when the data processing operation includes a data read operation, during the data read operation, different operations may be performed when determining the corresponding target delay code for memories of different types or different communication protocols.
作为示例,参照图9所示的本公开示例中一种用于记录数据读操作使用的延时码的标识的流程图,如图9所示,可以执行如下步骤:As an example, referring to a flowchart of an example of the present disclosure for recording an identification of a delay code used in a data read operation as shown in FIG. 9 , as shown in FIG. 9 , the following steps may be performed:
S71,确定执行多次数据读操作的传输模式类型。S71, determining a transmission mode type for performing multiple data read operations.
具体而言,对不同类型的存储器执行数据读操作时,采用的传输模式类型可以不同,因此需要确定执行各次数据读操作的传输模式类型,以确定与传输模式类型相适配的处理方案。Specifically, when performing data read operations on different types of memories, different types of transmission modes may be used. Therefore, it is necessary to determine the transmission mode type for each data read operation to determine a processing solution that is compatible with the transmission mode type.
在一些示例中,可以根据执行枚举流程时,存储器对操作命令的反馈,确定执行当前数据读操作的存储器的类型。In some examples, the type of memory that performs the current data read operation can be determined based on the feedback of the memory to the operation command when the enumeration process is executed.
S72,根据多个延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行多次延时处理。S72, performing multiple delay processing on the clock signal corresponding to the transmission mode type according to the delay durations corresponding to the multiple delay codes.
具体而言,在执行数据读操作时,传输模式类型不同,执行延时处理的时钟信号也不同,因此可以根据传输模式类型,确定需执行延时处理的时钟信号。Specifically, when performing a data read operation, the clock signal for performing delay processing is different depending on the type of transmission mode. Therefore, the clock signal for performing delay processing may be determined according to the type of transmission mode.
在一些示例中,一次数据读操作使用一个延时码对应的延时时长对与所述传输模式类型相对应的时钟信号进行一次延时处理,即执行数据读操作的次数与对与传输模式类型相对应的时钟信号进行延时处理的次数相同。In some examples, a data read operation uses a delay duration corresponding to a delay code to perform a delay processing on a clock signal corresponding to the transmission mode type, that is, the number of data read operations performed is the same as the number of times the clock signal corresponding to the transmission mode type is delayed.
在一些示例中,各个延时码对应的延时时长可以不同,以对各次数据读操作进行不同时长的延时处理。In some examples, the delay lengths corresponding to the delay codes may be different, so as to perform delay processing of different lengths on each data read operation.
在一些可选示例中,可以通过调节接入信号传输路径上的具有延时功能的器件的数量,使得各次数据读操作具有不同的延时时长。In some optional examples, the number of devices with delay function on the access signal transmission path can be adjusted so that each data read operation has a different delay length.
S73,在对与所述传输模式类型相对应的时钟信号的各次延时处理下执行数据读操作后,获取各次数据读操作对应的读取结果。S73, after performing data read operations under each delay processing of the clock signal corresponding to the transmission mode type, obtaining a read result corresponding to each data read operation.
具体而言,在对与传输模式类型相对应的时钟信号进行延时后,能够执行数据读操作,从具有存储功能的存储器中读出数据,并能够获取用于判断处于当前传输模式类型时,数据读操作是否成功执行的读取结果。Specifically, after delaying the clock signal corresponding to the transmission mode type, a data read operation can be performed to read data from a memory with a storage function, and a reading result can be obtained to determine whether the data read operation is successfully executed when in the current transmission mode type.
在一些示例中,对于不同类型的存储器,获取到的读取结果的类型不同。In some examples, for different types of memories, different types of read results are obtained.
例如,当存储器为嵌入式多媒体控制器eMMC时,各次数据读操作对应的读取结果可以是与eMMC相关的协议规定的调谐序列(tuning pattern);或者读取结果可以是多媒体控制器eMMC中寄存器(例如寄存器EXT_CSD)存储的值。For example, when the memory is an embedded multimedia controller eMMC, the reading result corresponding to each data read operation may be a tuning pattern specified by a protocol related to the eMMC; or the reading result may be a value stored in a register (eg, register EXT_CSD) in the multimedia controller eMMC.
例如,当存储器为安全数字卡SD时,各次数据读操作对应的读取结果可以是与安全数字卡SD相关的协议规定的调谐序列;或者可以是安全数字卡SD中寄存器(例如寄存器CID)存储的值。For example, when the memory is a secure digital card SD, the reading result corresponding to each data read operation may be a tuning sequence specified by a protocol related to the secure digital card SD; or may be a value stored in a register (eg, register CID) in the secure digital card SD.
需要说明的是,第一,上述方案描述的读取结果的类型进行示例说明,是用于表示在对不同类型的存储器执行输入读操作时,能够采用与之对应的读取结果进行校验,以判断数据读操作是否执行成功,不能理解为对本发明的限制;第二,对于不同类型的存储器,在执行数据读操作时,其对应的调谐序列的具体内容不同,调谐序列的具体内容根据具体协议确定。It should be noted that, first, the type of reading result described in the above scheme is for illustrative purposes only, and is used to indicate that when performing an input read operation on different types of memories, the corresponding reading results can be used for verification to determine whether the data read operation is successful, and it should not be understood as a limitation on the present invention; second, for different types of memories, when performing a data read operation, the specific content of the corresponding tuning sequence is different, and the specific content of the tuning sequence is determined according to the specific protocol.
S74,根据各次数据读操作对应的读取结果,记录各次数据读操作使用的延时码的标识。S74, recording the identifier of the delay code used in each data read operation according to the read result corresponding to each data read operation.
具体而言,可以根据各次数据读操作对应的读取结果,确定各次数据读操作的执行结果(例如,数据读操作执行成功,或者数据读操作执行失败)进而可以确定各次数据读操作使用的延时码的标识。Specifically, the execution result of each data read operation (for example, the data read operation is executed successfully, or the data read operation is executed failed) can be determined according to the reading result corresponding to each data read operation, and then the identifier of the delay code used for each data read operation can be determined.
例如,在根据各次数据读操作对应的读取结果,确定数据读操作执行成功,可以将数据读操作使用的延时码的标识记录为第零标识“0”;或者在根据各次数据读操作对应的校验信息,确定数据读操作执行失败时,可以将数据读操作使用的延时码的标识记录为第一标识“1”。For example, when it is determined that the data read operation is successful based on the reading results corresponding to each data read operation, the identifier of the delay code used for the data read operation can be recorded as the zeroth identifier "0"; or when it is determined that the data read operation fails based on the verification information corresponding to each data read operation, the identifier of the delay code used for the data read operation can be recorded as the first identifier "1".
通过使得一次数据读操作使用一个延时码对应的延时时长对与传输模式类型相对应的时钟信号进行一次延时处理,并使各个延时码对应的延时时长不同,能够更加真实地模拟数据读操作的实际环境,提高获取到的各数据读操作对应的读取结果的准确性,进而提高各次数据读操作使用的延时码的标识的精度。By making a data read operation use a delay time corresponding to a delay code to perform a delay processing on the clock signal corresponding to the transmission mode type, and making the delay time corresponding to each delay code different, it is possible to more realistically simulate the actual environment of the data read operation, improve the accuracy of the reading results corresponding to each data read operation, and thereby improve the accuracy of the identification of the delay code used in each data read operation.
在一些实施方式中,可以根据执行数据读操作的存储器的类型,确定执行各次数据读操作的传输模式类型。In some implementations, the type of transmission mode for performing each data read operation may be determined according to the type of memory that performs the data read operation.
作为示例,数据读操作可以包括读取第一存储器存储的数据。As an example, the data read operation may include reading data stored in the first memory.
在此应用场景中,可以根据读取所述第一存储器存储的数据的数据传输速率,确定执行数据读操作的传输模式类型。In this application scenario, the type of transmission mode for performing the data read operation may be determined according to the data transmission rate of reading the data stored in the first memory.
作为示例,在读取所述第一存储器存储的数据的数据传输速率与设定速率相同时,确定所述传输模式类型为第一传输模式。As an example, when a data transmission rate of reading data stored in the first memory is the same as a set rate, the transmission mode type is determined to be the first transmission mode.
在读取所述第一存储器存储的数据的数据传输速率与设定速率不同时,确定所述传输模式类型为第二传输模式。When the data transmission rate of reading the data stored in the first memory is different from the set rate, the transmission mode type is determined to be the second transmission mode.
例如,若第一存储器为嵌入式多媒体控制器eMMC时,当确定执行数据读操作时的数据传输速率是400MB/s时,可以确定传输模式类型为第一传输模式HS400;在确定执行数据读操作时的数据传输速率不是400MB/s时,可以确定传输模式类型为第二传输模式,例如,HS200。For example, if the first memory is an embedded multimedia controller eMMC, when it is determined that the data transmission rate when performing a data read operation is 400MB/s, the transmission mode type can be determined to be the first transmission mode HS400; when it is determined that the data transmission rate when performing a data read operation is not 400MB/s, the transmission mode type can be determined to be the second transmission mode, for example, HS200.
在一些示例中,当确定传输模式的具体类型时,可以确定进行延时处理的时钟信号,进而可以执行延时处理操作。In some examples, when the specific type of the transmission mode is determined, a clock signal for delay processing can be determined, and then a delay processing operation can be performed.
作为一示例,在确定传输模式类型为第一传输模式时,确定第一传输模式对应的信号为同步时钟信号,其中,同步时钟信号可以来自于提供读取数据的一方。As an example, when the transmission mode type is determined to be the first transmission mode, it is determined that the signal corresponding to the first transmission mode is a synchronous clock signal, wherein the synchronous clock signal may come from a party providing read data.
例如,若第一传输模式为HS400,则同步时钟信号可以是来自于嵌入式多媒体控制器eMMC的数据锁存信号(Data Strobe,DS)。For example, if the first transmission mode is HS400, the synchronization clock signal may be a data latch signal (Data Strobe, DS) from an embedded multimedia controller eMMC.
相应的,执行延时处理可以包括:根据多个延时码对应的延时时长,对同步时钟信号进行多次延时处理。Correspondingly, executing the delay processing may include: performing multiple delay processing on the synchronous clock signal according to the delay durations corresponding to the multiple delay codes.
在一些示例中,一次数据读操作使用一个延时码对应的延时时长对所述同步时钟信号进行一次延时处理,即执行数据读操作的次数与对同步时钟信号进行延时处理的次数相同。In some examples, a data read operation uses a delay time corresponding to a delay code to perform a delay process on the synchronous clock signal, that is, the number of times the data read operation is performed is the same as the number of times the synchronous clock signal is delayed.
在一些示例中,各个延时码对应的延时时长可以不同,以对各次数据读操作所使用的同步时钟信号进行不同时长的延时处理。In some examples, the delay durations corresponding to the delay codes may be different, so as to perform delay processing of different durations on the synchronous clock signal used in each data read operation.
作为一示例,在确定传输模式类型为第二传输模式时,确定第二传输模式对应的信号为初始时钟信号,其中,初始时钟信号可以为获取的原始时钟信号。As an example, when it is determined that the transmission mode type is the second transmission mode, it is determined that the signal corresponding to the second transmission mode is an initial clock signal, wherein the initial clock signal may be an acquired original clock signal.
例如,若第二传输模式为HS200,则初始时钟信号可以是对嵌入式多媒体控制器eMMC执行写操作时获取的原始时钟信号。For example, if the second transmission mode is HS200, the initial clock signal may be an original clock signal obtained when a write operation is performed on the embedded multimedia controller eMMC.
相应的,执行延时处理可以包括:根据多个延时码对应的延时时长,对初始时钟信号进行多次延时处理。Correspondingly, executing the delay processing may include: performing multiple delay processing on the initial clock signal according to the delay durations corresponding to the multiple delay codes.
在一些示例中,一次数据读操作使用一个延时码对应的延时时长对初始时钟信号进行一次延时处理,即执行数据读操作的次数与对初始时钟信号进行延时处理的次数相同。In some examples, a data read operation uses a delay time corresponding to a delay code to perform a delay process on the initial clock signal, that is, the number of times the data read operation is performed is the same as the number of times the delay process is performed on the initial clock signal.
在一些示例中,各个延时码对应的延时时长可以不同,以对各次数据读操作所使用的初始时钟信号进行不同时长的延时处理。In some examples, the delay lengths corresponding to the delay codes may be different, so as to perform delay processing of different lengths on the initial clock signal used in each data read operation.
在一些实施方式中,在对与传输模式类型相对应的时钟信号执行延时处理后,可以执行数据读操作。In some implementations, after performing a delay process on a clock signal corresponding to the transmission mode type, a data read operation may be performed.
在一些示例中,在执行数据读操作的过程中,可以采用不同的采样指令,以获取数据读操作对应的读取结果。In some examples, during the process of executing the data read operation, different sampling instructions may be used to obtain the read result corresponding to the data read operation.
作为示例,参见图10所示的本公开示例中一种用于获取数据读操作对应的读取结果的流程图,在一些示例中,如图10所示,可以执行如下步骤:As an example, referring to a flowchart for obtaining a read result corresponding to a data read operation in an example of the present disclosure shown in FIG. 10 , in some examples, as shown in FIG. 10 , the following steps may be performed:
S81,对于任一次数据读操作,判断在读取所述第一存储器存储的数据时,是否支持发送预设的第一采样指令,若是(若支持),执行步骤S82;否则,执行S83。S81, for any data read operation, determine whether sending a preset first sampling instruction is supported when reading the data stored in the first memory, if so (if supported), execute step S82; otherwise, execute S83.
具体而言,在不同的传输模式下,可以采用不同的读取方式,以读取第一存储器存储的数据。因此在执行任一次数据读操作时,可以判断处于第一传输模式或第二传输模式,是否能够通过预设的第一采样指令,读取第一存储器存储的数据。Specifically, in different transmission modes, different reading methods can be used to read the data stored in the first memory. Therefore, when performing any data reading operation, it can be determined whether the data stored in the first memory can be read through the preset first sampling instruction in the first transmission mode or the second transmission mode.
S82,根据预设的第一采样指令,在所述传输模式类型相对应的时钟信号的延时处理下执行数据读操作,以获取与第一采样指令相关的数据读操作的读取结果;S82, according to a preset first sampling instruction, performing a data read operation under a delay processing of a clock signal corresponding to the transmission mode type to obtain a read result of the data read operation related to the first sampling instruction;
具体而言,在确定处于第一传输模式,能够根据预设的第一采样指令,读取第一存储器存储的数据,则可以向第一存储器发送预设的第一采样指令,进而可以在对同步时钟信号进行延时后,根据预设的第一采样指令,读取第一存储器存储的数据,从而获取与第一采样指令相关的数据读操作的读取结果。Specifically, when it is determined that the first transmission mode is in place and the data stored in the first memory can be read according to the preset first sampling instruction, the preset first sampling instruction can be sent to the first memory, and then after delaying the synchronous clock signal, the data stored in the first memory can be read according to the preset first sampling instruction, thereby obtaining the reading result of the data read operation related to the first sampling instruction.
在确定处于第二传输模式,能够根据预设的第一采样指令,读取第一存储器存储的数据,则可以向第一存储器发送预设的第一采样指令,进而可以在对初始时钟信号进行延时后,根据预设的第一采样指令,读取第一存储器存储的数据,从而获取与第一采样指令相关的数据读操作的读取结果。When it is determined that the second transmission mode is in place and the data stored in the first memory can be read according to the preset first sampling instruction, the preset first sampling instruction can be sent to the first memory, and then after delaying the initial clock signal, the data stored in the first memory can be read according to the preset first sampling instruction, thereby obtaining the reading result of the data read operation related to the first sampling instruction.
S83,根据预设的第二采样指令,在所述传输模式类型相对应的时钟信号的延时处理下执行数据读操,以获取与第二采样指令相关的数据读操作的读取结果。S83, according to the preset second sampling instruction, executing a data read operation under the delay processing of the clock signal corresponding to the transmission mode type to obtain a reading result of the data read operation related to the second sampling instruction.
具体而言,在确定处于第一传输模式,不能根据预设的第一采样指令,读取第一存储器存储的数据时,则可以向第一存储器发送预设的第二采样指令,进而可以在对同步时钟信号进行延时后,根据预设的第二采样指令,读取第一存储器存储的数据,从而获取与第二采样指令相关的数据读操作的读取结果。Specifically, when it is determined that the first transmission mode is in place and the data stored in the first memory cannot be read according to the preset first sampling instruction, a preset second sampling instruction can be sent to the first memory, and then after delaying the synchronous clock signal, the data stored in the first memory can be read according to the preset second sampling instruction, thereby obtaining the reading result of the data read operation related to the second sampling instruction.
在确定处于第二传输模式,不能根据预设的第一采样指令,读取第一存储器存储的数据,则可以向第一存储器发送预设的第二采样指令,进而可以在对初始时钟信号进行延时后,根据预设的第二采样指令,读取第一存储器存储的数据,从而获取与第二采样指令相关的数据读操作的读取结果。When it is determined that the second transmission mode is in effect and the data stored in the first memory cannot be read according to the preset first sampling instruction, a preset second sampling instruction can be sent to the first memory, and then after delaying the initial clock signal, the data stored in the first memory can be read according to the preset second sampling instruction, thereby obtaining a read result of the data read operation related to the second sampling instruction.
在一些示例中,第一采样指令和第二采样指令的类型可以根据存储器的类型进行确定。In some examples, the types of the first sampling instruction and the second sampling instruction may be determined according to the type of the memory.
例如,若存储器包括嵌入式多媒体控制器eMMC,则第一采样指令可以是指CMD21,第二采样指令可以为其它通用读数据指令,例如CMD8。For example, if the memory includes an embedded multimedia controller eMMC, the first sampling instruction may be CMD21, and the second sampling instruction may be other general data read instructions, such as CMD8.
采用上述判断过程,能够在任一次数据读操作处于第一传输模式或第二传输模式时,采用不同的采样指令(例如第一采样指令和第二采样指令)获取与采样指令相关的数据读操作的读取结果,从而可以适用不同的传输场景,提高数据读操作的普适性。By adopting the above judgment process, when any data read operation is in the first transmission mode or the second transmission mode, different sampling instructions (such as the first sampling instruction and the second sampling instruction) can be used to obtain the reading result of the data read operation related to the sampling instruction, thereby being applicable to different transmission scenarios and improving the universality of the data read operation.
在一些示例中,当确定传输模式类型,并根据预设的第一采样指令或第二采样指令,获取与第一采样指令相关的数据读操作的读取结果或与第二采样指令相关的数据读操作的读取结果后,可以通过将读取结果与预设读取结果进行比较,从而可以确定各次数据读操作使用的延时码的具体标识。In some examples, after determining the transmission mode type and obtaining the read result of the data read operation related to the first sampling instruction or the read result of the data read operation related to the second sampling instruction according to the preset first sampling instruction or the second sampling instruction, the read result can be compared with the preset read result to determine the specific identifier of the delay code used for each data read operation.
在一些示例中,可以根据数据读操作对应的读取结果与预设读取结果间的相对关系,确定并记录各次数据读操作使用的延时码的标识。In some examples, the identifier of the delay code used in each data read operation may be determined and recorded according to the relative relationship between the read result corresponding to the data read operation and the preset read result.
例如,对于任一次数据读操作,在确定数据读操作对应的读取结果与预设读取结果相同时,将数据读操作所使用的延时码的标识记录为第零标识“0”。For example, for any data read operation, when it is determined that the read result corresponding to the data read operation is the same as the preset read result, the identifier of the delay code used by the data read operation is recorded as the zeroth identifier "0".
又例如,对于任一次数据读操作,在确定数据读操作对应的读取结果与预设读取结果不同时,将数据读操作所使用的延时码的标识记录为第一标识“1”。For another example, for any data read operation, when it is determined that the read result corresponding to the data read operation is different from the preset read result, the identifier of the delay code used by the data read operation is recorded as the first identifier "1".
在一些示例中,读取结果可以根据各类型存储器的通信协议确定。In some examples, the read result may be determined according to a communication protocol of each type of memory.
例如,当存储器为嵌入式多媒体控制器eMMC时,在采用第一采样指令读取eMMC存储的数据时,预设读取结果可以是调谐序列。For example, when the memory is an embedded multimedia controller eMMC, when the first sampling instruction is used to read data stored in the eMMC, the preset reading result may be a tuning sequence.
当经解析处理后,数据读操作对应的读取结果为调谐序列时,可以将执行数据读操作所使用的延时码的标识记录为第零标识“0”;否则,将执行数据写操作所使用的延时码的标识记录为第一标识“1”。When the reading result corresponding to the data read operation is a tuning sequence after analysis, the identifier of the delay code used to perform the data read operation can be recorded as the zeroth identifier "0"; otherwise, the identifier of the delay code used to perform the data write operation can be recorded as the first identifier "1".
例如,当存储器为嵌入式多媒体控制器eMMC时,在采用第二采样指令读取eMMC存储的数据时,预设读取结果可以多媒体控制器eMMC中寄存器中存储的值。For example, when the memory is an embedded multimedia controller eMMC, when the second sampling instruction is used to read data stored in the eMMC, the preset reading result may be a value stored in a register in the multimedia controller eMMC.
当经解析处理后,确定数据读操作对应的读取结果为寄存器中存储的值时,可以将执行数据读操作所使用的延时码的标识记录为第零标识“0”;否则,将执行数据写操作所使用的延时码的标识记录为第一标识“1”。When, after analysis and processing, it is determined that the read result corresponding to the data read operation is the value stored in the register, the identifier of the delay code used to perform the data read operation can be recorded as the zeroth identifier "0"; otherwise, the identifier of the delay code used to perform the data write operation can be recorded as the first identifier "1".
在一些示例中,当记录各次数据读操作使用的延时码的标识时,可以选取可用的标识作为执行数据读操作的目标延时码。In some examples, when the identifiers of the delay codes used for each data read operation are recorded, an available identifier may be selected as a target delay code for executing the data read operation.
作为示例,可以执行如下步骤,以确定用于作为执行数据读操作的目标延时码。As an example, the following steps may be performed to determine a target delay code for performing a data read operation.
B1)根据各次数据读操作的顺序,得到具有按序排列的第零标识和第一标识的读取标识序列表。B1) According to the order of each data read operation, a read identifier sequence table having a zeroth identifier and a first identifier arranged in sequence is obtained.
B2)确定读取标识序列表中至少存在连续的第零标识的区域。B2) Determine an area in the read identifier sequence table where at least a continuous zeroth identifier exists.
B3)从确定的区域中选取第零标识,并按序记录第零标识,得到对应的选取窗口。B3) Select the zeroth marker from the determined area, and record the zeroth marker in sequence to obtain the corresponding selection window.
B4)将位于选取窗口预设位置的第零标识对应的延时码作为执行各次数据读操作时的目标延时码。B4) The delay code corresponding to the zeroth mark located at the preset position of the selection window is used as the target delay code when executing each data read operation.
其在,在一些示例中,当执行步骤B3),得到多个选取窗口时,B4)可以包括:In some examples, when performing step B3) to obtain multiple selection windows, B4) may include:
B41)从多个选取窗口中选取包含第零标识的数量最多的选取窗口,作为目标窗口。B41) Select the selection window containing the largest number of zeroth identifiers from multiple selection windows as the target window.
B42)将位于目标窗口预设位置的第零标识对应的延时码作为目标延时码。B42) The delay code corresponding to the zeroth mark located at the preset position of the target window is used as the target delay code.
在一些示例中,可以将位于目标窗口中间位置的第零标识对应的延时码作为目标延时码。In some examples, the delay code corresponding to the zeroth marker located in the middle of the target window may be used as the target delay code.
在一些可选示例中,在执行步骤B2)之前,还可以执行判断读取标识序列表中包含的第零标识和第一标识的总数与执行数据读操作的次数是否相同,并在确定读取标识序列表中包含的第零标识和第一标识的总数与执行数据读操作的次数相同时,执行步骤B2);否则,继续记录后续数据读操作所使用的延时码的标识。In some optional examples, before executing step B2), it can also be determined whether the total number of the zeroth identifier and the first identifier contained in the read identifier sequence table is the same as the number of times the data read operation is performed, and when it is determined that the total number of the zeroth identifier and the first identifier contained in the read identifier sequence table is the same as the number of times the data read operation is performed, step B2 is executed); otherwise, continue to record the identifier of the delay code used for subsequent data read operations.
采用上述方式,可以获取数据读操作对应的目标延时码,进而可以根据目标延时码对应的延时时长,执行数据读操作。By adopting the above method, the target delay code corresponding to the data read operation can be obtained, and then the data read operation can be performed according to the delay duration corresponding to the target delay code.
为便于理解和实施确定对第一存储器执行数据读操作所使用的目标延时码的方案,以下结合附图,通过示例进行说明。To facilitate understanding and implementation of the solution for determining the target delay code used for performing a data read operation on the first memory, the following is a description through examples in conjunction with the accompanying drawings.
参照图11所示本公开示例中一应用场景中用于确定数据写操作的目标延时码的流程图,如图11所示,可以执行如下步骤:Referring to the flowchart for determining the target delay code for a data write operation in an application scenario in an example of the present disclosure shown in FIG11 , as shown in FIG11 , the following steps may be performed:
S91,执行数据读操作时的数据传输速率与设定速率是否相同;若是,执行步骤S92;若否,执行步骤S94。S91, whether the data transmission rate when executing the data read operation is the same as the set rate; if so, execute step S92; if not, execute step S94.
S92,确定传输模式类型为第一传输模式。S92: Determine that the transmission mode type is the first transmission mode.
在一些示例中,第一传输模式可以是指HS400。In some examples, the first transmission mode may refer to HS400.
S93,根据多个延时码对应的延时时长,对同步时钟信号进行多次延时处理。S93, performing multiple delay processing on the synchronous clock signal according to the delay durations corresponding to the multiple delay codes.
S94,确定传输模式类型为第二传输模式。S94: Determine that the transmission mode type is the second transmission mode.
在一些示例中,第二传输模式可以是指HS200,或者兼容MMC模式、高度SDR(SingleData Rate,单倍数据速率)模式和高速DDR( Double Data Rate,双倍数据速率)模式。In some examples, the second transmission mode may refer to HS200, or be compatible with MMC mode, high SDR (Single Data Rate) mode, and high speed DDR (Double Data Rate) mode.
S95,根据多个延时码对应的延时时长,对初始时钟信号进行多次延时处理。S95, performing multiple delay processing on the initial clock signal according to the delay durations corresponding to the multiple delay codes.
S96,对于任一次数据读操作,判断读取第一存储器存储的数据时,是否支持发送预设的第一采样指令,若是,执行步骤97;若否,执行步骤S98。S96, for any data read operation, determine whether the preset first sampling instruction is supported when reading the data stored in the first memory, if so, execute step 97; if not, execute step S98.
作为示例,可以在第一传输模式下,读取第一存储器存储的数据,以判断在执行数据读操作时,是否支持发送预设的第一采样指令。As an example, data stored in the first memory may be read in the first transmission mode to determine whether sending a preset first sampling instruction is supported when performing a data read operation.
作为示例,可以在第二传输模式下,读取第一存储器存储的数据,以判断在执行数据读操作时,是否支持发送预设的第一采样指令。As an example, data stored in the first memory may be read in the second transmission mode to determine whether sending a preset first sampling instruction is supported when performing a data read operation.
S97,发送第一采样指令,并在延时处理下执行数据读操作,获取与第一采样指令相关读取结果。S97, sending a first sampling instruction, and performing a data read operation under delay processing to obtain a read result related to the first sampling instruction.
作为示例,可以在第一传输模式下,向第一存储器发送第一采样指令,进而在对同步时钟信号进行延时处理后,执行数据读操作时,可以获取与第一采样指令相关读取结果。As an example, in the first transmission mode, a first sampling instruction may be sent to the first memory, and then after delaying the synchronous clock signal, when a data read operation is performed, a read result related to the first sampling instruction may be obtained.
作为示例,可以在第二传输模式下,向第一存储器发送第一采样指令,进而在对同步时钟信号进行延时处理后,执行数据读操作时,可以获取与第一采样指令相关读取结果。As an example, in the second transmission mode, a first sampling instruction may be sent to the first memory, and then after delaying the synchronous clock signal, when a data read operation is performed, a read result related to the first sampling instruction may be obtained.
S98,发送第二采样指令,并在延时处理下执行数据读操作,获取与第二采样指令相关的读取结果。S98, sending a second sampling instruction, and performing a data read operation under delay processing to obtain a read result related to the second sampling instruction.
作为示例,可以在第一传输模式下,向第一存储器发送第二采样指令,进而在对同步时钟信号进行延时处理后,执行数据读操作时,可以获取与第二采样指令相关读取结果。As an example, in the first transmission mode, a second sampling instruction may be sent to the first memory, and then after delaying the synchronous clock signal, a reading result related to the second sampling instruction may be obtained when a data read operation is performed.
作为示例,可以在第二传输模式下,向第一存储器发送第二采样指令,进而在对同步时钟信号进行延时处理后,执行数据读操作时,可以获取与第二采样指令相关读取结果。As an example, in the second transmission mode, a second sampling instruction may be sent to the first memory, and then after delaying the synchronous clock signal, when a data read operation is performed, a read result related to the second sampling instruction may be obtained.
S99,对于任一次数据读操作,读取结果与预设读取结果是否相同,若是,执行步骤S100;若否,执行步骤S101。S99, for any data read operation, whether the read result is the same as the preset read result, if so, execute step S100; if not, execute step S101.
作为示例,可以在第一传输模式下,判断执行数据读操作时,获取到的与第一采样指令相关读取结果与预设读取结果是否相同;或者在第一传输模式下,判断执行数据读操作时,获取到的与第二采样指令相关读取结果与预设读取结果是否相同。As an example, in the first transmission mode, it can be determined whether a read result associated with the first sampling instruction obtained when a data read operation is performed is the same as a preset read result; or in the first transmission mode, it can be determined whether a read result associated with the second sampling instruction obtained when a data read operation is performed is the same as a preset read result.
作为示例,可以在第二传输模式下,判断执行数据读操作时,获取到的与第一采样指令相关读取结果与预设读取结果是否相同;或者在第二传输模式下,判断执行数据读操作时,获取到的与第二采样指令相关读取结果与预设读取结果是否相同。As an example, in the second transmission mode, it can be determined whether the read result associated with the first sampling instruction obtained when performing a data read operation is the same as the preset read result; or in the second transmission mode, it can be determined whether the read result associated with the second sampling instruction obtained when performing a data read operation is the same as the preset read result.
S100,记录数据读操作使用的延时码的标识为可用的第零标识。S100, recording the identifier of the delay code used in the data read operation as the available zeroth identifier.
作为示例,可以记录处于第一传输模式下执行数据读操作使用的延时码对应的可用的第零标识。As an example, the available zeroth identifier corresponding to the delay code used to perform the data read operation in the first transmission mode may be recorded.
作为示例,可以记录处于第二传输模式下执行数据读操作使用的延时码对应的可用的第零标识。As an example, the available zeroth identifier corresponding to the delay code used to perform the data read operation in the second transmission mode may be recorded.
S101,记录数据读操作使用的延时码的标识为不可用的第一标识。S101, recording an identifier of a delay code used in a data read operation as a first identifier that is unavailable.
作为示例,可以记录处于第一传输模式下执行数据读操作使用的延时码对应的不可用的第一标识。As an example, an unavailable first identifier corresponding to a delay code used to perform a data read operation in the first transmission mode may be recorded.
作为示例,可以记录处于第二传输模式下执行数据读操作使用的延时码的对应不可用的第一标识。As an example, a first unavailable identifier corresponding to a delay code used for performing a data read operation in the second transmission mode may be recorded.
S102,根据执行各次数据读操作的顺序,对记录的第零标识和第一标识进行排序处理,得到读取标识序列表。S102, sorting the zeroth identifier and the first identifier of the record according to the order of executing each data read operation to obtain a read identifier sequence table.
作为示例,可以记录处于第一传输模式下执行数据读操作对应的读取标识序列表。As an example, a read identification sequence table corresponding to a data read operation performed in the first transmission mode may be recorded.
作为示例,可以记录处于第二传输模式下执行数据读操作对应的读取标识序列表。As an example, a read identification sequence table corresponding to the data read operation performed in the second transmission mode may be recorded.
S103,读取标识序列表中的标识总数与执行数据读操作的次数是否相同,若是,执行步骤S104;若否,继续执行步骤S97,或者继续执行步骤S98。S103, read whether the total number of identifiers in the identifier sequence table is the same as the number of times the data read operation is performed, if so, execute step S104; if not, continue to execute step S97, or continue to execute step S98.
作为示例,若按照第一采样指令,获取读取标识序列表,在确定读取标识序列表中的标识总数与执行数据读操作的次数不同时,执行步骤S97。As an example, if the read identifier sequence table is obtained according to the first sampling instruction, when it is determined that the total number of identifiers in the read identifier sequence table is different from the number of times the data read operation is performed, step S97 is executed.
作为示例,若按照第二采样指令,获取读取标识序列表,在确定读取标识序列表中的标识总数与执行数据读操作的次数不同时,执行步骤S98。As an example, if the read identifier sequence table is obtained according to the second sampling instruction, when it is determined that the total number of identifiers in the read identifier sequence table is different from the number of times the data read operation is performed, step S98 is executed.
其中,标识总数包括第一标识和第零标识的数量。The total number of identifiers includes the number of first identifiers and zeroth identifiers.
S104,确定读取标识序列表中存在连续的第零标识的区域。S104, determining an area in the read identifier sequence table where there are continuous zeroth identifiers.
S105,从确定的区域中选取第零标识,并按序记录所选取的第零标识,得到对应的选取窗口。S105, selecting the zeroth marker from the determined area, and recording the selected zeroth marker in sequence to obtain a corresponding selection window.
S106,选取包含第零标识的数量最多的选取窗口,作为目标窗口。S106, selecting a selection window containing the largest number of zeroth identifiers as a target window.
S107,将位于目标窗口中间的第零标识对应的延时码作为目标延时码.S107, the delay code corresponding to the zeroth mark located in the middle of the target window is used as the target delay code.
S108,根据目标延时码对应的延时时长,对时钟信号进行延时,以执行后续数据读操作。S108, delaying the clock signal according to the delay time corresponding to the target delay code to perform a subsequent data read operation.
其中,步骤S91至S108的具体实现方式可以参见前述示例。The specific implementation of steps S91 to S108 can refer to the above examples.
需要说明的是,上述示例是以具有多个选取窗口为例进行说明,若只包括一个选取窗口,可以直接将选取窗口中间位置的第零标识对应的延时码作为目标延时码。It should be noted that the above example is based on a case where multiple selection windows are provided. If only one selection window is included, the delay code corresponding to the zeroth marker in the middle of the selection window can be directly used as the target delay code.
采用上述示例中的方案,在能够选取用于执行后续数据读操作的目标延时码,使得能够稳定的从具有存储功能的存储器中读取数据,例如从第一存储器中读取数据。By adopting the solution in the above example, a target delay code for performing a subsequent data read operation can be selected, so that data can be stably read from a memory having a storage function, for example, data can be read from the first memory.
作为另一示例,数据读操作可以包括读取第二存储器存储的数据的操作。As another example, the data read operation may include an operation of reading data stored in the second memory.
其中,第二存储器和第一存储器为不同类型的存储器,二者按照不同的通信协议进行数据的写入和读取进程。The second memory and the first memory are memories of different types, and they perform data writing and reading processes according to different communication protocols.
在此应用场景中,在确定执行读取第二存储器存储的数据的操作时,可以确定所述传输模式类型为第三传输模式。In this application scenario, when determining to perform an operation of reading data stored in the second memory, it can be determined that the transmission mode type is the third transmission mode.
在一些示例中,当确定传输模式的具体类型时,可以确定进行延时处理的具体时钟信号,进而可以执行延时处理。In some examples, when the specific type of the transmission mode is determined, the specific clock signal for delay processing can be determined, and then the delay processing can be performed.
作为一示例,在确定传输模式类型为第三传输模式时,确定第三传输模式对应的时钟信号为初始时钟信号,其中,所述初始时钟信号为获取的原始时钟信号。As an example, when it is determined that the transmission mode type is the third transmission mode, it is determined that the clock signal corresponding to the third transmission mode is the initial clock signal, wherein the initial clock signal is the acquired original clock signal.
例如,若第三传输模式为SDR104时,初始时钟信号可以是对安全数字卡SD执行写操作时获取的原始时钟信号。For example, if the third transmission mode is SDR104, the initial clock signal may be an original clock signal obtained when a write operation is performed on the secure digital card SD.
相应的,执行延时处理可以包括:根据多个延时码对应的延时时长,对所述初始时钟信号进行多次延时处理。Correspondingly, executing the delay processing may include: performing multiple delay processing on the initial clock signal according to the delay durations corresponding to the multiple delay codes.
在一些示例中,一次数据读操作使用一个延时码对应的延时时长对初始时钟信号进行一次延时处理,即执行数据读操作的次数与对初始时钟信号进行延时处理的次数相同。In some examples, a data read operation uses a delay time corresponding to a delay code to perform a delay process on the initial clock signal, that is, the number of times the data read operation is performed is the same as the number of times the delay process is performed on the initial clock signal.
在一些示例中,各个延时码对应的延时时长可以不同,以对各次数据读操作所使用的初始时钟信号进行不同时长的延时处理。In some examples, the delay lengths corresponding to the delay codes may be different, so as to perform delay processing of different lengths on the initial clock signal used in each data read operation.
在一些实施方式中,在对与传输模式类型相对应的时钟信号执行延时处理后,可以执行数据读操作。In some implementations, after performing a delay process on a clock signal corresponding to the transmission mode type, a data read operation may be performed.
在一些示例中,在执行数据读操作的过程中,可以采用不同的采样指令,以获取数据读操作对应的读取结果。In some examples, during the process of executing the data read operation, different sampling instructions may be used to obtain the read result corresponding to the data read operation.
作为示例,参见图12所示的本公开示例中另一种用于获取数据读操作对应的读取结果的流程图,在一些示例中,如图12所示,可以执行如下步骤:As an example, referring to another flowchart for obtaining a read result corresponding to a data read operation in an example of the present disclosure shown in FIG. 12 , in some examples, as shown in FIG. 12 , the following steps may be performed:
S111,对于任一次数据读操作,判断在处于第三传输模式,读取第二存储器存储的数据时,是否支持发送预设的第三采样指令,若是(若支持),执行步骤S112;否则,执行S113。S111, for any data read operation, determine whether it supports sending a preset third sampling instruction when reading data stored in the second memory in the third transmission mode, if so (if supported), execute step S112; otherwise, execute S113.
具体而言,在不同的传输模式下,可以采用不同的读取方式,以读取第二存储器存储的数据。因此在执行任一次数据读操作时,可以判断处于第三传输模式,是否能够通过预设的第三采样指令,读取第二存储器存储的数据。Specifically, in different transmission modes, different reading methods can be used to read the data stored in the second memory. Therefore, when performing any data reading operation, it can be determined whether the data stored in the second memory can be read through the preset third sampling instruction in the third transmission mode.
S112,根据所述预设的第三采样指令,在初始时钟信号的延时处理下执行数据读操作,执行数据读操作,以获取与第三采样指令相关数据读操作的读取结果;S112, according to the preset third sampling instruction, performing a data read operation under the delay processing of the initial clock signal, performing the data read operation to obtain a read result of the data read operation related to the third sampling instruction;
具体而言,在确定处于第三传输模式,能够根据预设的第三采样指令,读取第二存储器存储的数据,则可以向第二存储器发送预设的第三采样指令,进而可以在对初始时钟信号进行延时后,根据预设的第三采样指令,读取第二存储器存储的数据,从而获取与第三采样指令相关的数据读操作的读取结果。Specifically, when it is determined that the third transmission mode is in place and the data stored in the second memory can be read according to the preset third sampling instruction, the preset third sampling instruction can be sent to the second memory, and then after delaying the initial clock signal, the data stored in the second memory can be read according to the preset third sampling instruction, thereby obtaining the reading result of the data read operation related to the third sampling instruction.
S113,根据预设的第四采样指令,在初始时钟信号的延时处理下执行数据读操作,以获取与所述第四采样指令相关的数据读操作的读取结果。S113, according to the preset fourth sampling instruction, performing a data read operation under the delay processing of the initial clock signal to obtain a read result of the data read operation related to the fourth sampling instruction.
具体而言,在确定处于第三传输模式,不能根据预设的第三采样指令,读取第二存储器存储的数据时,则可以向第二存储器发送预设的第四采样指令,进而可以在对初始时钟信号进行延时后,根据预设的第四采样指令,读取第四存储器存储的数据,从而获取与第四采样指令相关的数据读操作的读取结果。Specifically, when it is determined that the third transmission mode is in place and the data stored in the second memory cannot be read according to the preset third sampling instruction, a preset fourth sampling instruction can be sent to the second memory, and then after delaying the initial clock signal, the data stored in the fourth memory can be read according to the preset fourth sampling instruction, thereby obtaining the reading result of the data read operation related to the fourth sampling instruction.
在一些示例中,第三采样指令和第四采样指令的类型可以根据存储器的类型进行确定。In some examples, the types of the third sampling instruction and the fourth sampling instruction may be determined according to the type of the memory.
例如,若存储器包括安全数字卡SD,则第三采样指令可以是指CMD19,第四采样指令可以为其它通用读数据指令,例如CMD8。For example, if the memory includes a secure digital card SD, the third sampling instruction may refer to CMD19, and the fourth sampling instruction may be other general data read instructions, such as CMD8.
采用上述判断过程,能够在任一次数据读操作处于第三传输模式时,采用不同的采样指令(例如第三采样指令和第四采样指令)获取与采样指令相关的数据读操作的读取结果,从而可以适用不同的传输场景,提高数据读操作的普适性。By adopting the above judgment process, when any data read operation is in the third transmission mode, different sampling instructions (such as the third sampling instruction and the fourth sampling instruction) can be used to obtain the reading result of the data read operation related to the sampling instruction, thereby being applicable to different transmission scenarios and improving the universality of the data read operation.
在一些示例中,当确定传输模式类型,并根据预设的第三采样指令或第四采样指令,获取与第三采样指令相关的数据读操作的读取结果或与第四采样指令相关的数据读操作的读取结果后,可以通过将读取结果与预设读取结果进行比较,从而可以确定各次数据读操作使用的延时码的具体标识。In some examples, after determining the transmission mode type and obtaining the read result of the data read operation related to the third sampling instruction or the read result of the data read operation related to the fourth sampling instruction according to the preset third sampling instruction or the fourth sampling instruction, the read result can be compared with the preset read result to determine the specific identifier of the delay code used for each data read operation.
在一些示例中,可以根据数据读操作对应的读取结果与预设读取结果间的相对关系,确定并记录各次数据读操作使用的延时码的标识。In some examples, the identifier of the delay code used in each data read operation may be determined and recorded according to the relative relationship between the read result corresponding to the data read operation and the preset read result.
例如,对于任一次数据读操作,在确定数据读操作对应的读取结果与预设读取结果相同时,将数据读操作所使用的延时码的标识记录为第零标识“0”。For example, for any data read operation, when it is determined that the read result corresponding to the data read operation is the same as the preset read result, the identifier of the delay code used by the data read operation is recorded as the zeroth identifier "0".
又例如,对于任一次数据读操作,在确定数据读操作对应的读取结果与预设读取结果不同时,将数据读操作所使用的延时码的标识记录为第一标识“1”。For another example, for any data read operation, when it is determined that the read result corresponding to the data read operation is different from the preset read result, the identifier of the delay code used by the data read operation is recorded as the first identifier "1".
在一些示例中,读取结果可以根据各类型存储器的通信协议确定。In some examples, the read result may be determined according to a communication protocol of each type of memory.
例如,当存储器为安全数字卡SD时,在采用第三采样指令读取安全数字卡SD存储的数据时,预设读取结果可以是调谐序列。For example, when the memory is a secure digital card SD, when the third sampling instruction is used to read data stored in the secure digital card SD, the preset reading result may be a tuning sequence.
经解析处理后,数据读操作对应的读取结果为调谐序列时,可以将执行数据读操作所使用的延时码的标识记录为第零标识“0”;否则,将执行数据读操作所使用的延时码的标识记录为第一标识“1”。After analysis, when the reading result corresponding to the data read operation is a tuning sequence, the identifier of the delay code used to perform the data read operation can be recorded as the zeroth identifier "0"; otherwise, the identifier of the delay code used to perform the data read operation can be recorded as the first identifier "1".
又例如,在采用第四采样指令读取安全数字卡SD存储的数据时,预设读取结果可以是安全数字卡SD中存储器(例如寄存器CID)中存储的值。For another example, when the fourth sampling instruction is used to read data stored in the secure digital card SD, the preset reading result may be a value stored in a memory (eg, register CID) in the secure digital card SD.
经解析处理后,数据读操作对应的读取结果为存储器中存储的值时,可以将执行数据读操作所使用的延时码的标识记录为第零标识“0”;否则,将执行数据读操作所使用的延时码的标识记录为第一标识“1”。After analysis and processing, when the read result corresponding to the data read operation is the value stored in the memory, the identifier of the delay code used to perform the data read operation can be recorded as the zeroth identifier "0"; otherwise, the identifier of the delay code used to perform the data read operation can be recorded as the first identifier "1".
在一些示例中,当记录各次数据读操作使用的延时码的标识时,可以选取可用的标识作为执行数据读操作的目标延时码。In some examples, when the identifiers of the delay codes used for each data read operation are recorded, an available identifier may be selected as a target delay code for executing the data read operation.
在一些可选示例中,可以参照前述在对第一存储器执行数据读操作时,选取目标延时码的描述,在此不再展开描述。In some optional examples, reference may be made to the aforementioned description of selecting a target delay code when performing a data read operation on the first memory, and the description is not expanded here.
为便于理解和实施确定对第二存储器执行数据读操作所使用的目标延时码的方案,以下结合附图,通过示例进行说明。To facilitate understanding and implementation of the solution for determining the target delay code used for performing a data read operation on the second memory, the following is a description through examples in conjunction with the accompanying drawings.
参照图13所示本公开示例中另一应用场景中用于确定数据读操作的目标延时码的流程图,如图13所示,可以执行如下步骤:Referring to the flowchart for determining the target delay code for a data read operation in another application scenario in the present disclosure example shown in FIG. 13 , as shown in FIG. 13 , the following steps may be performed:
S121,确定传输模式类型为第三传输模式。S121, determining that the transmission mode type is the third transmission mode.
在一些示例中,第三传输模式可以是SDR104和SDR50等。In some examples, the third transmission mode may be SDR104, SDR50, and the like.
S122,根据多个延时码对应的延时时长,对初始时钟信号进行多次延时处理。S122, performing multiple delay processing on the initial clock signal according to the delay durations corresponding to the multiple delay codes.
S123,对于任一次数据读操作,判断读取第二存储器存储的数据时,是否支持发送预设的第三采样指令,若是,执行步骤S124;若否,执行步骤S125。S123, for any data read operation, determine whether the preset third sampling instruction is supported when reading the data stored in the second memory, if so, execute step S124; if not, execute step S125.
S124,发送第三采样指令,并在延时处理下执行数据读操作,获取与第三采样指令相关读取结果。S124, sending a third sampling instruction, and performing a data read operation under delay processing to obtain a read result related to the third sampling instruction.
作为示例,可以在第三传输模式下,向第二存储器发送第一采样指令,以获取在对初始时钟信号进行延时处理后,执行数据读操作时,与第三采样指令相关读取结果。As an example, in the third transmission mode, the first sampling instruction may be sent to the second memory to obtain a reading result associated with the third sampling instruction when a data read operation is performed after delaying the initial clock signal.
S125,发送第四采样指令,并在延时处理下执行数据读操作,获取与第四采样指令相关的读取结果。S125, sending a fourth sampling instruction, and performing a data read operation under delay processing to obtain a read result related to the fourth sampling instruction.
作为示例,可以在第三传输模式下,向第二存储器发送第四采样指令,以获取在对初始时钟信号进行延时处理后,执行数据读操作时,与第四采样指令相关读取结果。As an example, in the third transmission mode, a fourth sampling instruction may be sent to the second memory to obtain a reading result associated with the fourth sampling instruction when a data read operation is performed after delaying the initial clock signal.
S126,对于任一次数据读操作,读取结果与预设读取结果是否相同,若是,执行步骤S127;若否,执行步骤S128。S126, for any data read operation, whether the read result is the same as the preset read result, if so, execute step S127; if not, execute step S128.
作为示例,在第三传输模式下,判断执行数据读操作时,获取到的与第三采样指令相关读取结果与预设读取结果是否相同;或者在第三传输模式下,判断执行数据读操作时,获取到的与第四采样指令相关读取结果与预设读取结果是否相同。As an example, in the third transmission mode, it is determined whether the read result associated with the third sampling instruction obtained when performing a data read operation is the same as the preset read result; or in the third transmission mode, it is determined whether the read result associated with the fourth sampling instruction obtained when performing a data read operation is the same as the preset read result.
S127,记录数据读操作使用的延时码的标识为可用的第零标识。S127, recording the identifier of the delay code used in the data read operation as the available zeroth identifier.
S128,记录数据读操作使用的延时码的标识为不可用的第一标识。S128, recording the identifier of the delay code used in the data read operation as an unavailable first identifier.
S129,根据执行各次数据读操作的顺序,对记录的第零标识和第一标识进行排序处理,得到读取标识序列表。S129, sorting the zeroth identifier and the first identifier of the record according to the order of executing each data read operation to obtain a read identifier sequence table.
S130,读取标识序列表中的标识总数与执行数据读操作的次数是否相同,若是,执行步骤S131;若否,继续执行步骤S124,或者继续执行步骤S125。S130, read whether the total number of identifiers in the identifier sequence table is the same as the number of times the data read operation is performed, if so, execute step S131; if not, continue to execute step S124, or continue to execute step S125.
作为示例,若按照第三采样指令,获取读取标识序列表,在确定读取标识序列表中的标识总数与执行数据读操作的次数不同时,执行步骤S124。As an example, if the read identifier sequence table is obtained according to the third sampling instruction, when it is determined that the total number of identifiers in the read identifier sequence table is different from the number of times the data read operation is performed, step S124 is executed.
作为示例,若按照第四采样指令,获取读取标识序列表,在确定读取标识序列表中的标识总数与执行数据读操作的次数不同时,执行步骤S125。As an example, if the read identifier sequence table is obtained according to the fourth sampling instruction, when it is determined that the total number of identifiers in the read identifier sequence table is different from the number of times the data read operation is performed, step S125 is executed.
其中,标识总数包括第一标识和第零标识的数量。The total number of identifiers includes the number of first identifiers and zeroth identifiers.
S131,确定标识序列表中存在连续的第零标识的区域。S131, determining the area where there are continuous zeroth identifiers in the identifier sequence table.
S132,从确定的区域中选取第零标识,并按序记录所选取的第零标识,得到对应的选取窗口。S132, selecting the zeroth marker from the determined area, and recording the selected zeroth marker in sequence to obtain a corresponding selection window.
S133,选取包含第零标识的数量最多的选取窗口,作为目标窗口。S133, selecting a selection window containing the largest number of zeroth identifiers as a target window.
S134,将位于目标窗口中间的第零标识对应的延时码作为目标延时码.S134, the delay code corresponding to the zeroth mark located in the middle of the target window is used as the target delay code.
S135,根据目标延时码对应的延时时长,对时钟信号进行延时,以执行后续数据读操作。S135, delaying the clock signal according to the delay time corresponding to the target delay code to perform a subsequent data read operation.
其中,步骤S121至S135的具体实现方式可以参见前述示例。The specific implementation of steps S121 to S135 may refer to the above examples.
需要说明的是,上述示例是以具有多个选取窗口为例进行说明,若只包括一个选取窗口,可以直接将选取窗口中间位置的第零标识对应的延时码作为目标延时码。It should be noted that the above example is based on a case where multiple selection windows are provided. If only one selection window is included, the delay code corresponding to the zeroth marker in the middle of the selection window can be directly used as the target delay code.
采用上述示例中的方案,在能够选取用于执行后续数据读操作的目标延时码,使得能够稳定从具有存储功能的存储器中读取数据,例如从第二存储器中读取数据。By adopting the solution in the above example, a target delay code for performing a subsequent data read operation can be selected, so that data can be stably read from a memory having a storage function, for example, data can be read from the second memory.
需要说明的是,上述示例中以第一存储器和第二存储器为例说明在执行数据读操作的方案仅为示例说明,是用来说明可以根据存储器的类型,采用不同的方式,获取用于执行数据读操作的目标延时码,不能理解为对本发明的限制。在一些示例中,还可以包括更多类型的存储器。It should be noted that the above examples using the first memory and the second memory as examples to illustrate the scheme for performing a data read operation are only examples for illustrating that a target delay code for performing a data read operation can be obtained in different ways according to the type of memory, and should not be construed as a limitation of the present invention. In some examples, more types of memories may also be included.
采用上述示例中的方案,执行多次延时处理,可以从多个连续的第零标识时中,选取用于执行数据写操作或数据读操作的目标延时码,能够提高数据写操作或数据读操作过程中数据传输的稳定性。By adopting the scheme in the above example and performing multiple delay processing, a target delay code for performing a data write operation or a data read operation can be selected from multiple consecutive zeroth identification times, thereby improving the stability of data transmission during the data write operation or the data read operation.
在具体实施中,在u-boot环境中,采用本公开示例中的数据传输方法,进行应用测试后,可以在-40℃至125℃的温度区间内,稳定的写入和读取数据。In a specific implementation, in a u-boot environment, the data transmission method in the disclosed example is used, and after application testing, data can be stably written and read within a temperature range of -40°C to 125°C.
本公开示例还提供了与上述数据传输方法对应的数据传输装置,以下参照附图,通过示例进行介绍。The disclosed example also provides a data transmission device corresponding to the above data transmission method, which is introduced below by way of example with reference to the accompanying drawings.
参见图14所示的本公开示例中一种数据传输装置的结构示意图,在一些示例中,如图14所示,数据传输装置100可以包括:第一处理单元110和第二处理单元120,其中:Referring to FIG. 14 , a schematic diagram of a data transmission device in an example of the present disclosure, in some examples, as shown in FIG. 14 , the data transmission device 100 may include: a first processing unit 110 and a second processing unit 120, wherein:
所述第一处理单元110,被配置为执行多次数据处理操作,并基于各次数据处理操作的执行结果,记录各次数据处理操作使用的延时码的标识;所述标识包括在数据处理操作执行成功时,标识数据处理操作使用的延时码为可用的第零标识,以及在数据处理操作执行失败时,标识数据处理操作使用的延时码为不可用的第一标识;以及根据标识选择信号,将选择的第零标识对应的延时码作为目标延时码,执行所述数据处理操作;The first processing unit 110 is configured to perform multiple data processing operations, and based on the execution results of each data processing operation, record the identifier of the delay code used in each data processing operation; the identifier includes a zeroth identifier that identifies the delay code used in the data processing operation as available when the data processing operation is successfully executed, and a first identifier that identifies the delay code used in the data processing operation as unavailable when the data processing operation fails to execute; and according to the identifier selection signal, the delay code corresponding to the selected zeroth identifier is used as the target delay code to execute the data processing operation;
所述第二处理单元120,被配置为在确定记录的标识中存在多个连续的第零标识时,从多个连续的第零标识中选择第零标识,并生成对应的标识选择信号,所述标识选择信号包括与选择的第零标识对应的延时码。The second processing unit 120 is configured to select a zeroth identifier from multiple consecutive zeroth identifiers when it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, and generate a corresponding identifier selection signal, wherein the identifier selection signal includes a delay code corresponding to the selected zeroth identifier.
采用上述示例中的数据传输装置100,基于各次数据处理操作的执行结果,第一处理单元110能够记录在数据处理操作执行成功时,标识所使用的延时码可用的第零标识,以及在数据处理操作执行失败时,标识所使用的延时码为不可用的第一标识,进而第二处理单元120可以在确定记录的标识中存在多个连续的第零标识时,可以从中选择第零标识,并将选择的第零标识对应的延时码作为目标延时码,并生成对应的标识选择信号,由于标识选择信号可以包括与选择的第零标识对应的延时码,因而可以将选择的第零标识对应的延时码作为目标延时码,以执行数据处理操作。Using the data transmission device 100 in the above example, based on the execution results of each data processing operation, the first processing unit 110 can record the zeroth identifier that indicates the delay code used is available when the data processing operation is successfully executed, and the first identifier that indicates the delay code used is unavailable when the data processing operation fails to execute. Then, when it is determined that there are multiple consecutive zeroth identifiers in the recorded identifiers, the second processing unit 120 can select the zeroth identifier from them, and use the delay code corresponding to the selected zeroth identifier as the target delay code, and generate a corresponding identifier selection signal. Since the identifier selection signal can include the delay code corresponding to the selected zeroth identifier, the delay code corresponding to the selected zeroth identifier can be used as the target delay code to execute the data processing operation.
采用上述数据传输装置100,由于目标延时码是从多个连续且可用的第零标识中确定的,即目标延时码是从多个连续执行成功的数据处理操作所使用的延时码中确定的,其中,第零标识用于在数据处理操作执行成功时,对所使用的延时码进行标识并标识为可用,即使受到环境因素影响,导致目标延时码发生变化,目标延时码仍可用,因而能够提高数据处理过程中的稳定性。When using the above-mentioned data transmission device 100, since the target delay code is determined from multiple consecutive and available zeroth identifiers, that is, the target delay code is determined from the delay codes used for multiple consecutive and successful data processing operations, wherein the zeroth identifier is used to identify the used delay code and mark it as available when the data processing operation is successfully executed, even if the target delay code changes due to environmental factors, the target delay code is still available, thereby improving the stability of the data processing process.
在本公开一些示例中,基于数据传输方向,可以将数据处理操作分为数据写操作和数据读操作,而在执行相应的数据处理操作时,可以采用不同的执行逻辑。In some examples of the present disclosure, data processing operations may be divided into data write operations and data read operations based on a data transmission direction, and different execution logics may be used when executing corresponding data processing operations.
在一些示例中,数据处理操作可以包括数据写操作。In some examples, the data processing operations may include data write operations.
在此应用场景下,参照图15所示的本公开示例中一种第一处理单元的具体结构示意图,如图15所示,第一处理单元110可以包括:第一延时模块111和第一处理模块112,其中:In this application scenario, referring to a specific structural diagram of a first processing unit in an example of the present disclosure shown in FIG. 15 , as shown in FIG. 15 , the first processing unit 110 may include: a first delay module 111 and a first processing module 112, wherein:
所述第一延时模块111,被配置为根据多个延时码对应的延时时长,对时钟信号进行多次延时处理,其中,一次数据写操作使用一个延时码对应的延时时长对时钟信号进行一次延时处理,各个延时码对应的延时时长不同;The first delay module 111 is configured to perform multiple delay processing on the clock signal according to the delay durations corresponding to the multiple delay codes, wherein one data write operation uses a delay duration corresponding to one delay code to perform one delay processing on the clock signal, and the delay durations corresponding to the different delay codes are different;
所第一处理模块112,被配置为在时钟信号的各次延时处理下执行数据写操作后,获取各次数据写操作对应的校验信息,所述校验信息用于判断数据写操作能否成功执行;以及根据各次数据写操作对应的校验信息,记录各次数据写操作使用的延时码的标识。The first processing module 112 is configured to obtain verification information corresponding to each data write operation after executing the data write operation under each delay processing of the clock signal, and the verification information is used to determine whether the data write operation can be successfully executed; and according to the verification information corresponding to each data write operation, record the identifier of the delay code used for each data write operation.
具体而言,第一延时模块111可以根据延时码对应的延时时长,时钟信号进行延时处理,进而可以进行数据写操作,而对于任一次数据写操作,均可以获取与之对应的校验信号,由于校验信息可以用于判断数据写操作能否成功执行,因而第一处理模块112可以根据各次数据写操作对应的校验信息,记录各次数据写操作使用的延时码的标识。Specifically, the first delay module 111 can perform delay processing on the clock signal according to the delay length corresponding to the delay code, and then perform data writing operations. For any data writing operation, a corresponding verification signal can be obtained. Since the verification information can be used to determine whether the data writing operation can be successfully executed, the first processing module 112 can record the identifier of the delay code used for each data writing operation according to the verification information corresponding to each data writing operation.
在一些示例中,第一处理模块112可以在确定数据写操作对应的校验信息与预设校验信息相同时,将数据写操作所使用的延时码的标识记录为第零标识“0”。In some examples, the first processing module 112 may record the identifier of the delay code used for the data write operation as the zeroth identifier “0” when determining that the verification information corresponding to the data write operation is the same as the preset verification information.
在一些示例中,第一处理模块112可以在确定数据写操作对应的校验信息与预设校验信息不同时,将数据写操作所使用的延时码的标识记录为第一标识“1”。In some examples, the first processing module 112 may record the identifier of the delay code used for the data write operation as the first identifier “1” when determining that the verification information corresponding to the data write operation is different from the preset verification information.
在一些可选示例中,可以采用具有不同结构的延时模块,以实现对时钟信号的延时处理。In some optional examples, delay modules with different structures may be used to implement delay processing of the clock signal.
作为示例,继续参照图15,第一延时模块111可以包括多个第一延时器(例如图15示意的第一延时器Dl0、Dl1、…、Dln,其中,n为大于1的整数)、第一逻辑运算器Lg1和第一选择器SC1,其中:As an example, referring to FIG. 15 , the first delay module 111 may include a plurality of first delay devices (for example, the first delay devices D10, D11, …, D1n shown in FIG. 15 , where n is an integer greater than 1), a first logic operator Lg1 and a first selector SC1, where:
多个第一延时器依次连接,例如,第一延时器Dl0、Dl1、…、Dln间可以采用串联连接的方式,其中:A plurality of first delay devices are connected in sequence. For example, the first delay devices D10, D11, ..., D1n may be connected in series, wherein:
多个所述第一延时器中的第一个第一延时器Dl0的第一端可以输入时钟信号dl_in、多个所述第一延时器中的最后一个第一延时器Dln的输出端可以与所述第一逻辑运算器Lg1的第一端连接、多个所述第一延时器中的各第一延时器的第二端与所述第一选择器SC1的第二端连接。The first end of the first delay device Dl0 among the multiple first delay devices can input the clock signal dl_in, the output end of the last first delay device Dln among the multiple first delay devices can be connected to the first end of the first logic operator Lg1, and the second end of each first delay device among the multiple first delay devices is connected to the second end of the first selector SC1.
作为示例,第一延时器Dl0的第二端可以与第一选择器SC1的第二端连接、第一延时器Dl1的第二端可以与第一选择器SC1的第二端连接、…、第一延时器Dln的第二端可以与第一选择器SC1的第二端连接。As an example, the second end of the first delay Dl0 can be connected to the second end of the first selector SC1, the second end of the first delay Dl1 can be connected to the second end of the first selector SC1, ..., the second end of the first delay Dln can be connected to the second end of the first selector SC1.
接着参见图15,第一选择器SC1的第一端可以输入第一控制信号dl_sel,并根据所述第一控制信号dl_sel,生成对应的第一选择信号,所述第一选择信号用于控制选择执行数据写操作时开启延时功能的第一延时器的数量。Next, referring to FIG. 15 , the first end of the first selector SC1 can input the first control signal dl_sel, and generate a corresponding first selection signal according to the first control signal dl_sel, wherein the first selection signal is used to control the number of first delay devices that enable the delay function when performing a data write operation.
具体而言,时钟信号可以经各第一延时器传输至第一处理模块112,此时各第一延时器仅起到数据传输的作用。响应于第一控制信号,第一选择器SC1可以选择开启第一延时器Dl0至Dln中的至少一个第一延时器的延时功能,从而可以改变对时钟信号dl_in的延时时长。Specifically, the clock signal can be transmitted to the first processing module 112 via each first delay device, and at this time, each first delay device only plays the role of data transmission. In response to the first control signal, the first selector SC1 can select to turn on the delay function of at least one of the first delay devices D10 to D1n, thereby changing the delay time length of the clock signal dl_in.
例如,响应于第一控制信号dl_sel,第一选择器SC1可以生成第一选择信号del0,从而可以开启第一延时器Dl0的延时功能;响应于第一控制信号dl_sel,第一选择器SC1可以生成第一选择信号deln,从而可以开启所有第一延时器Dl0的延时功能。For example, in response to the first control signal dl_sel, the first selector SC1 can generate the first selection signal del0, thereby turning on the delay function of the first delay device Dl0; in response to the first control signal dl_sel, the first selector SC1 can generate the first selection signal deln, thereby turning on the delay function of all first delay devices Dl0.
在一些可选示例中,第一控制信号dl_sel可以从第一处理模块获取,也可以从其它具有逻辑处理能力的器件获取,例如,从中央处理器获取。本公开示例对第一控制信号的来源不做任何限制。In some optional examples, the first control signal dl_sel may be obtained from the first processing module, or may be obtained from other devices with logic processing capabilities, for example, from a central processing unit. The examples disclosed herein do not impose any restrictions on the source of the first control signal.
第一逻辑运算器Lg1的第二端可以输入第二控制信号dl_update,其输出端适于输出经延时处理后的时钟信号至第一处理模块112,其中,第二控制信号dl_update可以用于控制经延时处理后的时钟信号的输出时机。The second end of the first logic operator Lg1 can input the second control signal dl_update, and the output end thereof is suitable for outputting the clock signal after delay processing to the first processing module 112, wherein the second control signal dl_update can be used to control the output timing of the clock signal after delay processing.
例如,通过第二控制信号,在确定执行一次延时处理后,输出对应的时钟信号至第一处理模块。For example, through the second control signal, after determining to perform a delay process, the corresponding clock signal is output to the first processing module.
也即,通过设置第二控制信号的状态(例如,第二控制信号对应的电平为低电平),在对时钟信号进行延时处理的过程中,关闭第一逻辑运算器的输出通道;而在确定完成对时钟信号的延时处理后,通过设置第二控制信号的状态(例如,第二控制信号对应的电平为高电平),开启第一逻辑运算器的输出通道,以将经延时处理后的时钟信号传输至第一处理模块,以实现正常的数据写操作。That is, by setting the state of the second control signal (for example, the level corresponding to the second control signal is a low level), the output channel of the first logic operator is closed during the delay processing of the clock signal; and after determining that the delay processing of the clock signal is completed, by setting the state of the second control signal (for example, the level corresponding to the second control signal is a high level), the output channel of the first logic operator is opened to transmit the clock signal after the delay processing to the first processing module to realize normal data writing operation.
在一些示例中,第一逻辑运算器可以包括与逻辑门。在一些示例中,第二控制信号可以从第一处理模块获取,也可以从其它具有逻辑处理能力的器件获取,例如,从中央处理器获取。本公开示例对第二控制信号的来源不做任何限制。In some examples, the first logic operator may include an AND logic gate. In some examples, the second control signal may be obtained from the first processing module, or may be obtained from other devices with logic processing capabilities, such as a central processing unit. The examples disclosed herein do not impose any restrictions on the source of the second control signal.
在一些可选示例中,对于一些传输速率较低的应用场景中,时钟信号的频率较小,受环境因素影响较小,可以直接根据时钟信号,执行数据写操作。In some optional examples, for some application scenarios with lower transmission rates, the frequency of the clock signal is relatively low and is less affected by environmental factors, so data write operations can be performed directly based on the clock signal.
基于此,继续参照图15,第一处理单元110还可以包括模式选择模块113,其中,模式选择模块113可以与所述第一延时模块111耦接(例如,模式选择模块113可以与第一延时器dl0连接),被配置为响应于模式选择信号pass_en,控制所述第一延时模块111的工作状态。Based on this, continuing to refer to Figure 15, the first processing unit 110 can also include a mode selection module 113, wherein the mode selection module 113 can be coupled to the first delay module 111 (for example, the mode selection module 113 can be connected to the first delay device dl0), and is configured to control the working state of the first delay module 111 in response to the mode selection signal pass_en.
更具体而言,通过模式选择信号pass_en,能够控制是否采用第一延时模块111对时钟信号dl_in进行延时处理。More specifically, the mode selection signal pass_en can be used to control whether to use the first delay module 111 to perform delay processing on the clock signal dl_in.
例如,模式选择信号pass_en为高电平“1”时,无需对时钟信号dl_in进行延时处理;又例如,模式选择信号pass_en为低电平“0”时,可以通过第一控制信号dl_sel,选择开启延时功能的第一延时器的数量,以对时钟信号dl_in进行不同时长的延时处理。For example, when the mode selection signal pass_en is a high level "1", there is no need to delay the clock signal dl_in; for another example, when the mode selection signal pass_en is a low level "0", the number of first delay devices that enable the delay function can be selected through the first control signal dl_sel to perform delay processing of different lengths on the clock signal dl_in.
需要说明的是,当第一处理单元还包括模式选择模块时,模式选择模块起到延时作用,但模式选择模块对应的延时时长远小于各第一延时器的延时时长,故在一些示例中,可以忽略模式选择模块的延时时长。It should be noted that when the first processing unit also includes a mode selection module, the mode selection module plays a delay role, but the delay duration corresponding to the mode selection module is much smaller than the delay duration of each first delay device, so in some examples, the delay duration of the mode selection module can be ignored.
在一些可选示例中,各所述第一延时器对应的延时时长相同。也即将不同数量的具有延时功能的第一延时器接入至延时路径时,对应的延时时长可以有序递增。In some optional examples, the delay durations corresponding to the first delay devices are the same, that is, when different numbers of first delay devices with delay functions are connected to the delay path, the corresponding delay durations may increase in order.
在一些其它可选示例中,各所述第一延时器对应的延时时长可以相同。In some other optional examples, the delay durations corresponding to the first delay devices may be the same.
在一些示例中,经过对时钟信号进行延时后,可以执行数据写操作,进而可以获取目标延时码,其中,获取用于执行数据写操作的目标延时码的方式可以参见前述示例,在此不在展开描述。In some examples, after delaying the clock signal, a data write operation can be performed, and then a target delay code can be obtained. The method for obtaining the target delay code for performing the data write operation can be referred to the above example and will not be described in detail here.
在一些示例中,数据处理操作可以包括数据读操作。In some examples, the data processing operation may include a data read operation.
在一些实施方式中,当数据处理操作包括数据读操作时,在执行数据读操作的过程中,对于不同类型或者不同通信协议的存储器,在确定对应的目标延时码时,可以执行不同的操作。In some implementations, when the data processing operation includes a data read operation, during the data read operation, different operations may be performed for memories of different types or different communication protocols when determining the corresponding target delay code.
在此应用场景下,第一处理单元可以包括:In this application scenario, the first processing unit may include:
第二处理模块,被配置为确定执行多次数据读操作的传输模式类型;以及在对与所述传输模式类型相对应的时钟信号的各次延时处理下执行数据读操作后,获取各次数据读操作对应的读取结果,所述读取结果用于判断处于所述传输模式类型时,数据读操作是否成功执行,且根据各次数据读操作对应的读取结果,记录各次数据读操作使用的延时码的标识;a second processing module, configured to determine a transmission mode type for performing multiple data read operations; and after performing a data read operation under each delay processing of a clock signal corresponding to the transmission mode type, obtain a reading result corresponding to each data read operation, wherein the reading result is used to determine whether the data read operation is successfully performed when in the transmission mode type, and record an identifier of a delay code used for each data read operation according to the reading result corresponding to each data read operation;
第二延时模块,根据多个延时码对应的延时时长,对与所述传输模式类型相对应的时钟信号进行多次延时处理,其中,一次数据读操作使用一个延时码对应的延时时长对与所述传输模式类型相对应的时钟信号进行一次延时处理,各延时码对应的延时时长不同。The second delay module performs multiple delay processing on the clock signal corresponding to the transmission mode type according to the delay lengths corresponding to the multiple delay codes, wherein a data read operation uses a delay length corresponding to a delay code to perform a delay processing on the clock signal corresponding to the transmission mode type, and the delay lengths corresponding to the delay codes are different.
具体而言,第二处理模块可以确定执行多次数据读操作的传输模式类型,而不同传输模式类型,其对应的时钟信号的类型不同,因此第二延时模块可以根据各延时码对应的延时时长,对与传输模式类型相对应的信号进行延时处理,进而可以进行数据读操作。而对于任一次数据读操作,均可以获取与之对应的读取结果,由于读取结果可以用于判断处于当前传输模式类型时,数据读操作是否成功执行,因而第二处理模块可以根据各次数据读操作对应的读取结果,记录各次数据读操作使用的延时码的标识。Specifically, the second processing module can determine the transmission mode type for executing multiple data read operations, and different transmission mode types have different types of corresponding clock signals, so the second delay module can perform delay processing on the signal corresponding to the transmission mode type according to the delay duration corresponding to each delay code, and then perform the data read operation. For any data read operation, the corresponding reading result can be obtained, because the reading result can be used to determine whether the data read operation is successfully executed in the current transmission mode type, so the second processing module can record the identification of the delay code used for each data read operation according to the reading result corresponding to each data read operation.
在一些示例中,第二处理模块可以在确定数据读操作对应的读取结果与预设读取结果相同时,将数据读操作所使用的延时码的标识记录为第零标识“0”。In some examples, the second processing module may record the identifier of the delay code used in the data read operation as the zeroth identifier “0” when determining that the read result corresponding to the data read operation is the same as the preset read result.
在一些示例中,第二处理模块可以在数据读操作对应的读取结果与预设读取结果不同时,将数据读操作所使用的延时码的标识记录为第一标识“1”。In some examples, the second processing module may record the identifier of the delay code used in the data read operation as a first identifier “1” when the read result corresponding to the data read operation is different from the preset read result.
在一些可选示例中,可以采用具有不同结构的延时模块,以实现对时钟信号的延时处理。In some optional examples, delay modules with different structures may be used to implement delay processing of the clock signal.
作为示例,第二延时模块可以包括多个第二延时器、第二逻辑运算器和第一选择器,其中:As an example, the second delay module may include a plurality of second delay devices, a second logic operator and a first selector, wherein:
多个所述第二延时器依次连接,例如,多个第二延时器间可以采用串联连接的方式,其中:The plurality of second delay devices are connected in sequence, for example, the plurality of second delay devices can be connected in series, wherein:
多个所述第二延时器中的第一个第二延时器的第一端适于输入与所述传输模式类型相对应的时钟信号、多个所述第二延时器中的最后一个第二延时器的输出端与所述第二逻辑运算器的第一端连接、多个所述第二延时器中的各第二延时器的第二端与所述第二选择器的第二端连接。The first end of the first second delay device among the multiple second delay devices is suitable for inputting a clock signal corresponding to the transmission mode type, the output end of the last second delay device among the multiple second delay devices is connected to the first end of the second logic operator, and the second end of each second delay device among the multiple second delay devices is connected to the second end of the second selector.
作为示例,各第二延时器与第二选择器间的连接关系可以参见对第一延时模块的描述,在此不再赘述。As an example, the connection relationship between each second delay device and the second selector can refer to the description of the first delay module, which will not be repeated here.
在一些示例中,第二选择器的第一端输入第三控制信号,并根据所述第三控制信号,生成对应的第二选择信号,所述第二选择信号用于控制选择执行数据读操作时开启延时功能的第二延时器的数量。In some examples, a third control signal is input to the first end of the second selector, and a corresponding second selection signal is generated based on the third control signal, wherein the second selection signal is used to control the number of second delay devices that enable a delay function when performing a data read operation.
具体而言,与传输模式类型相对应的时钟信号可以经各第二延时器传输至第二处理模块,此时各第二延时器仅起到数据传输的作用。响应于第二控制信号,第二选择器可以选择开启多个第二延时器中的至少一个第二延时器的延时功能,从而可以改变对与传输模式类型相对应的时钟信号的延时时长。Specifically, the clock signal corresponding to the transmission mode type can be transmitted to the second processing module via each second delay device, and at this time, each second delay device only plays the role of data transmission. In response to the second control signal, the second selector can select to turn on the delay function of at least one second delay device among the plurality of second delay devices, thereby changing the delay time length of the clock signal corresponding to the transmission mode type.
例如,响应于第三控制信号,第二选择器可以生成第二选择信号,以开启第一个第二延时器的延时功能;或者响应于第三控制信号,第二选择器可以生成第二选择信号,以开启所有第二延时器的延时功能。For example, in response to the third control signal, the second selector may generate a second selection signal to enable the delay function of the first second delay device; or in response to the third control signal, the second selector may generate a second selection signal to enable the delay function of all second delay devices.
在一些可选示例中,第三控制信号可以从第二处理模块获取,也可以从其它具有逻辑处理能力的器件获取,例如,从中央处理器获取。本公开示例对第三控制信号的来源不做任何限制。In some optional examples, the third control signal can be obtained from the second processing module, or from other devices with logic processing capabilities, such as a central processing unit. The examples disclosed herein do not impose any restrictions on the source of the third control signal.
所述第二逻辑运算器的第二端可以输入第四控制信号,其输出端可以输出经延时处理后的与所述传输模式类型相对应的时钟信号至所述第二处理模块,其中,第四控制信号可以用于控制经延时处理后的与传输模式类型相对应的时钟信号的输出时机。The second end of the second logic operator can input a fourth control signal, and the output end thereof can output a clock signal corresponding to the transmission mode type after delay processing to the second processing module, wherein the fourth control signal can be used to control the output timing of the clock signal corresponding to the transmission mode type after delay processing.
例如,通过第四控制信号,在确定执行一次延时处理后,输出经延时处理后的与传输模式类型相对应的时钟信号至第二处理模块。For example, through the fourth control signal, after determining to perform a delay process, a clock signal corresponding to the transmission mode type after the delay process is output to the second processing module.
具体而言,通过设置第四控制信号的状态,在与传输模式类型相对应的时钟信号进行延时处理的过程中,关闭第二逻辑运算器的输出通道;而在确定完成对与传输模式类型相对应的时钟信号的延时处理后,通过设置第四控制信号的状态,开启第二逻辑运算器的输出通道,以将经延时处理后的与传输模式类型相对应的时钟信号传输至第二处理模块,以实现正常的读操作。Specifically, by setting the state of the fourth control signal, the output channel of the second logic operator is closed during the delay processing of the clock signal corresponding to the transmission mode type; and after determining that the delay processing of the clock signal corresponding to the transmission mode type is completed, by setting the state of the fourth control signal, the output channel of the second logic operator is opened to transmit the clock signal corresponding to the transmission mode type after the delay processing to the second processing module to realize normal read operation.
在一些示例中,第二逻辑运算器可以包括与逻辑门。在一些示例中,第四控制信号可以从第二处理模块获取,也可以从其它具有逻辑处理能力的器件获取,例如,从中央处理器获取。本公开示例对第四控制信号的来源不做任何限制。In some examples, the second logic operator may include an AND logic gate. In some examples, the fourth control signal may be obtained from the second processing module, or may be obtained from other devices with logic processing capabilities, for example, from a central processing unit. The examples disclosed herein do not impose any restrictions on the source of the fourth control signal.
在一些可选示例中,对于一些传输速率较低的应用场景中,时钟信号的频率较小,受环境因素影响较小,可以直接根据时钟信号,执行数据读操作。In some optional examples, for some application scenarios with lower transmission rates, the frequency of the clock signal is relatively low and is less affected by environmental factors, so data read operations can be performed directly based on the clock signal.
基于此,第二处理单元还可以包括模式选择模块,其中,模式选择模块可以与所述第二延时模块耦接(例如,模式选择模块可以与第一个第二延时器连接),被配置为响应于模式选择信号,控制所述第二延时模块的工作状态。Based on this, the second processing unit may further include a mode selection module, wherein the mode selection module may be coupled to the second delay module (for example, the mode selection module may be connected to the first second delay device), and is configured to control the working state of the second delay module in response to a mode selection signal.
更具体而言,通过模式选择信号,能够控制是否采用第二延时模块对与传输模式类型相对应的时钟信号进行延时处理。More specifically, the mode selection signal can be used to control whether to use the second delay module to perform delay processing on the clock signal corresponding to the transmission mode type.
例如,模式选择信号对应的电平为高电平“1”时,无需对与传输模式类型相对应的时钟信号进行延时处理;又例如,模式选择信号对应的电平为低电平“0”时,可以通过第三控制信号,选择开启延时功能的第二延时器的数量,以对与传输模式类型相对应的时钟信号进行不同时长的延时处理。For example, when the level corresponding to the mode selection signal is a high level "1", there is no need to delay the clock signal corresponding to the transmission mode type; for another example, when the level corresponding to the mode selection signal is a low level "0", the number of second delay devices with the delay function enabled can be selected through a third control signal to perform delay processing of different lengths on the clock signal corresponding to the transmission mode type.
在一些可选示例中,各所述第二延时器对应的延时时长相同。也即将不同数量的具有延时功能的第二延时器接入至延时路径时,对应的延时时长可以有序递增。In some optional examples, the delay durations corresponding to the second delay devices are the same, that is, when different numbers of second delay devices with delay functions are connected to the delay path, the corresponding delay durations can be increased in order.
在一些其它可选示例中,各所述第二延时器对应的延时时长可以相同。In some other optional examples, the delay durations corresponding to the second delay devices may be the same.
在一些示例中,经过对与传输模式类型相对应的时钟信号进行延时后,可以执行数据读操作,进而可以获取目标延时码,其中,获取用于执行数据读操作的目标延时码的方式可以参见前述示例,在此不在展开描述。In some examples, after delaying the clock signal corresponding to the transmission mode type, a data read operation can be performed, and then a target delay code can be obtained. The method for obtaining the target delay code for performing the data read operation can be referred to the aforementioned example and will not be described in detail here.
本公开还提供一种主机,所述主机可以包括至少一个处理器和至少一个存储器,存储器和处理器之间可以通过通信总线进行通信;所述存储器上存储有能在所述处理器上运行的计算机指令,所述处理器调用所述一条或多条计算机可执行指令时,可以执行以上任一实施例所述的数据传输方法,具体可参照上述相关内容,在此不再赘述。The present disclosure also provides a host, which may include at least one processor and at least one memory, and the memory and the processor may communicate via a communication bus; the memory stores computer instructions that can be run on the processor, and when the processor calls the one or more computer executable instructions, the data transmission method described in any of the above embodiments may be executed. For details, please refer to the above-mentioned related content and will not be repeated here.
在具体实施中,所述处理器可以包括中央处理器CPU、现场可编程逻辑门阵列FPGA等。In a specific implementation, the processor may include a central processing unit (CPU), a field programmable gate array (FPGA), etc.
所述存储器可以包括随机存取存储器(Random Access Memory,RAM)、 只读存储器(Read-Only Memory,ROM)、非易失性存储器(Non-Volatile Memory,NVM)等。 在具体实施中,计算机指令可以包括通过使用任何合适的高级、低级、面向对象的、可视化的、编译的和/或解释的编程语言来实现的任何合适类型的代码,例如,源代码、编译代码、解释代码、可执行代码、静态代码、动态代码、加密代码等。The memory may include a random access memory (RAM), a read-only memory (ROM), a non-volatile memory (NVM), etc. In a specific implementation, the computer instructions may include any suitable type of code implemented by using any suitable high-level, low-level, object-oriented, visual, compiled and/or interpreted programming language, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, encrypted code, etc.
本发明还提供了一种存储介质,所述存储介质存储一条或多条计算机可执行指令,所述一条或多条计算机可执行指令被执行时,可以实现上述任一实施例所述的数据传输方法,具体可参照上述相关内容,在此不再赘述。The present invention also provides a storage medium, which stores one or more computer-executable instructions. When the one or more computer-executable instructions are executed, the data transmission method described in any of the above embodiments can be implemented. For details, please refer to the above-mentioned related content and will not be repeated here.
其中,所述计算机可读存储介质可以包括任何合适类型的存储器单元、存储器设备、存储器物品、存储器介质、存储设备、存储物品、存储介质和/或存储单元。例如,存储器、可移除的或不可移除的介质、可擦除或不可擦除介质、可写或可重写介质、数字或模拟介质、硬盘、软盘、光盘只读存储器(CDROM)、可刻录光盘(CD-R)、可重写光盘(CD-RW)、光盘、磁介质、磁光介质、可移动存储卡或磁盘、各种类型的数字通用光盘(DVD)、磁带、盒式磁带等。The computer-readable storage medium may include any suitable type of memory unit, memory device, memory article, memory medium, storage device, storage article, storage medium and/or storage unit, such as memory, removable or non-removable medium, erasable or non-erasable medium, writable or rewritable medium, digital or analog medium, hard disk, floppy disk, compact disk read-only memory (CDROM), compact disk recordable (CD-R), compact disk rewritable (CD-RW), optical disk, magnetic medium, magneto-optical medium, removable memory card or disk, various types of digital versatile disks (DVD), magnetic tape, cassette, etc.
并且,计算机指令可以包括通过使用任何合适的高级、低级、面向对象的、可视化的、编译的和/或解释的编程语言来实现的任何合适类型的代码,例如,源代码、编译代码、解释代码、可执行代码、静态代码、动态代码、加密代码等。Furthermore, the computer instructions may include any suitable type of code implemented using any suitable high-level, low-level, object-oriented, visual, compiled and/or interpreted programming language, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, encrypted code, etc.
虽然本公开示例披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the examples of the present disclosure are disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims (29)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410465951.XA CN118072776B (en) | 2024-04-18 | 2024-04-18 | Data transmission method, device, host and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410465951.XA CN118072776B (en) | 2024-04-18 | 2024-04-18 | Data transmission method, device, host and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118072776A CN118072776A (en) | 2024-05-24 |
| CN118072776B true CN118072776B (en) | 2024-09-20 |
Family
ID=91107590
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410465951.XA Active CN118072776B (en) | 2024-04-18 | 2024-04-18 | Data transmission method, device, host and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118072776B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111009271A (en) * | 2019-11-18 | 2020-04-14 | 广东高云半导体科技股份有限公司 | PSRAM (programmable system random access memory) initialization method, device, equipment and medium based on FPGA (field programmable gate array) |
| CN117240259A (en) * | 2023-08-04 | 2023-12-15 | 龙芯中科技术股份有限公司 | Detection circuit, integrated circuit board and computer equipment |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6954093B2 (en) * | 2003-03-27 | 2005-10-11 | Micronas Gmbh | Clocking scheme and clock system for a monolithic integrated circuit |
| US7543172B2 (en) * | 2004-12-21 | 2009-06-02 | Rambus Inc. | Strobe masking in a signaling system having multiple clock domains |
| CN115602219A (en) * | 2021-07-07 | 2023-01-13 | 长鑫存储技术有限公司(Cn) | Input sampling method, circuit, memory and electronic equipment |
-
2024
- 2024-04-18 CN CN202410465951.XA patent/CN118072776B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111009271A (en) * | 2019-11-18 | 2020-04-14 | 广东高云半导体科技股份有限公司 | PSRAM (programmable system random access memory) initialization method, device, equipment and medium based on FPGA (field programmable gate array) |
| CN117240259A (en) * | 2023-08-04 | 2023-12-15 | 龙芯中科技术股份有限公司 | Detection circuit, integrated circuit board and computer equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118072776A (en) | 2024-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109841239B (en) | Memory device and method of operating the same | |
| US6434660B1 (en) | Emulating one tape protocol of flash memory to a different type protocol of flash memory | |
| CN102132354A (en) | Fast low-power read of data in flash memory | |
| CN101114472B (en) | Method and system for setting an optical drive write speed | |
| KR101087313B1 (en) | How to record data for flash memory | |
| US10761588B2 (en) | Power configuration component including selectable configuration profiles corresponding to operating characteristics of the power configuration component | |
| TW201939287A (en) | Block management method, memory control circuit unit and memory storage apparatus | |
| CN109147862B (en) | NVM test acceleration method and system | |
| CN118072776B (en) | Data transmission method, device, host and storage medium | |
| CN109656846B (en) | Method and device for optimizing available delay parameter interval of electronic terminal and memory | |
| TWI708248B (en) | Memory device and method of adjusting parameter used of memory device | |
| CN115509466B (en) | Data management method and device, electronic equipment and storage medium | |
| KR102697455B1 (en) | A memory device and a memory system including thereof | |
| CN115512757B (en) | Error reproduction and repair method, device, equipment and storage medium | |
| US20070177293A1 (en) | Method for recording data freshness degrees by tape drive | |
| CN116048980A (en) | FPGA prototype verification method and device | |
| JP3927024B2 (en) | Nonvolatile semiconductor memory device | |
| KR20140076128A (en) | Non-Volatile Memory Apparatus and Operating Method Thereof, and Data Processing System Having the Same | |
| US7565476B2 (en) | Memory device | |
| CN101625662B (en) | Downgrade memory apparatus, and method for accessing a downgrade memory | |
| CN111354411A (en) | Semiconductor system with training operation | |
| CN111949198A (en) | Bad block management method and device and storage equipment | |
| CN116880868B (en) | UFS-based card opening method, system, device and medium | |
| KR102247375B1 (en) | Memory programing method and device performing the same | |
| CN116909803A (en) | Automatic calibration method and device for DDR52 transmission mode of host |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 200080 7th floor, No.137 Haining Road, Hongkou District, Shanghai Applicant after: Xinyaohui Technology Co.,Ltd. Address before: Office 1901-1907 and 1914-1924 of Hengqin International Business Center, No. 3000 Huandao East Road, Hengqin New District, Zhuhai City, Guangdong Province, 519031 Applicant before: Xinyaohui Technology Co.,Ltd. Country or region before: China |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: Room 3501-3507, 35th Floor, Building 1, 118 Feihong Road, Hongkou District, Shanghai 200080 Patentee after: Xinyaohui Technology Co.,Ltd. Country or region after: China Address before: 200080 7th floor, No.137 Haining Road, Hongkou District, Shanghai Patentee before: Xinyaohui Technology Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |