WO2017016081A1 - Character boundary determination method and apparatus, storage medium - Google Patents

Character boundary determination method and apparatus, storage medium Download PDF

Info

Publication number
WO2017016081A1
WO2017016081A1 PCT/CN2015/092815 CN2015092815W WO2017016081A1 WO 2017016081 A1 WO2017016081 A1 WO 2017016081A1 CN 2015092815 W CN2015092815 W CN 2015092815W WO 2017016081 A1 WO2017016081 A1 WO 2017016081A1
Authority
WO
WIPO (PCT)
Prior art keywords
parallel data
character boundary
state
parameter information
decoding
Prior art date
Application number
PCT/CN2015/092815
Other languages
French (fr)
Chinese (zh)
Inventor
郝鹏
杨丽宁
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2017016081A1 publication Critical patent/WO2017016081A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M9/00Parallel/series conversion or vice versa
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4552Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/457Network directories; Name-to-address mapping containing identifiers of data entities on a computer, e.g. file names

Definitions

  • the present invention relates to the field of communications, and in particular, to a character boundary determining method, apparatus, and computer storage medium.
  • IEEE1284 is replaced by a USB interface
  • PATA is replaced by SATA
  • PCI is replaced by PCI-Express.
  • the SerDes technology originally used for fiber-optic communication became the mainstream for high-speed serial interfaces.
  • the serial interface mainly uses differential signal transmission technology, which has the characteristics of low power consumption, strong anti-interference and high speed.
  • the transmitting end is transmitted based on a certain encoding, for example: 8b/10b encoding, 64b/66b encoding, 4b/5b encoding, and the like.
  • a certain encoding for example: 8b/10b encoding, 64b/66b encoding, 4b/5b encoding, and the like.
  • embodiments of the present invention provide a character boundary determination method, apparatus, and computer storage medium, which have good flexibility and versatility; hardware processing is simple, and implementation complexity is small.
  • An embodiment of the present invention provides a method for determining a character boundary, where the method includes:
  • first parameter information of the second parallel data and detecting a state of a character boundary of the first parallel data according to the first parameter information, wherein the first parameter information can represent decoding of the second parallel data happening;
  • phase adjustment is performed on the first parallel data according to a preset rule.
  • the method further includes:
  • the first parallel data is phase-adjusted according to a preset rule.
  • the phase adjustment of the first parallel data according to a preset rule includes:
  • the phase of the first parallel data is shifted by one bit.
  • the method further includes:
  • the phase of the first parallel data is kept unchanged when it is detected that the character boundary is in the second state.
  • the first parameter information includes a decoding error count value
  • the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
  • An embodiment of the present invention provides a character boundary determining apparatus, where the apparatus includes:
  • a deserialization module configured to perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase
  • a decoding module configured to decode the first parallel data to obtain decoded second parallel data
  • a feedback decision module configured to acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent the The decoding of the second parallel data;
  • the character boundary adjustment module is configured to perform phase adjustment on the first parallel data according to a preset rule when detecting that the character boundary is in the first state.
  • the feedback decision module is further configured to perform statistics on the time of detecting the state of the character boundary
  • the character boundary adjustment module is further configured to perform phase adjustment on the first parallel data according to a preset rule when the time limit is exceeded when used.
  • the character boundary adjustment module is configured to shift a phase of the first parallel data by one bit.
  • the character boundary adjustment module is further configured to keep the phase of the first parallel data unchanged when detecting that the character boundary is in the second state.
  • the first parameter information includes a decoding error count value
  • the feedback decision module is configured to determine that a character boundary of the first parallel data is in a first state when the decoding error count value is greater than a preset error count threshold.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing character boundary determination method.
  • the technical solution of the embodiment of the present invention includes: performing deserialization on the acquired serial data to obtain first parallel data of a fixed phase; and decoding the first parallel data to obtain decoded second parallel data.
  • the number information can represent a decoding condition of the second parallel data; when it is detected that the character boundary is in the first state, phase adjustment is performed on the first parallel data according to a preset rule.
  • Embodiments of the present invention are a general character boundary determination technique. Compared with the prior art, the embodiment of the present invention has the following advantages: it can be applied to all data serial transmission systems based on various codes, and has good flexibility and versatility; the hardware processing is simple, and the implementation complexity is small.
  • FIG. 1 is a schematic flow chart of a first embodiment of a character boundary determining method provided by the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for determining a character boundary provided by the present invention
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for determining a character boundary provided by the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of a character boundary determining apparatus provided by the present invention.
  • FIG. 5 is a block diagram of a state machine jump according to an embodiment of the present invention.
  • a first embodiment of a method for determining a character boundary is provided by the present invention. As shown in FIG. 1, the method includes:
  • Step 101 Perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase
  • Step 102 Decode the first parallel data to obtain decoded second parallel data.
  • Step 103 Acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can Characterizing a decoding situation of the second parallel data;
  • the first parameter letter includes a decoding error count value
  • the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
  • the continuous decoding correct statistical counter is used to count the correct number of consecutive decodings in the second parallel data, and the continuous decoding correct statistical counter encounters one or more decoding errors in the parallel data stream. Cleared, otherwise incremented by one. When counting to the continuous correct threshold, it is cleared.
  • the continuous correct threshold is set by software.
  • the decoding error statistic counter increments by one every time one or more decoding errors in the parallel data stream are encountered, and when the consecutive decoding correct statistic counter is equal to the continuous correct threshold, The decoding error statistics counter is decremented by one, and the overflow protection is added when adding one minus one. The decoding error statistics counter is cleared when it is detected that the character boundary is in the first state.
  • Step 104 When it is detected that the character boundary is in the first state, perform phase adjustment on the first parallel data according to a preset rule.
  • phase adjustment of the first parallel data according to a preset rule includes:
  • the phase of the first parallel data is shifted by one bit.
  • the method may further include: decoding the phase-adjusted third parallel data to obtain the decoded fourth parallel data;
  • the method further includes:
  • the first parallel data is phase-adjusted according to a preset rule.
  • the method further includes:
  • the phase of the first parallel data is kept unchanged when it is detected that the character boundary is in the second state.
  • the first parameter letter includes decoding a correct count value
  • the continuous decoding correct statistical counter is used to count the correct number of consecutive decodings in the second parallel data, and the continuous decoding correct statistical counter encounters one or more decoding errors in the parallel data stream. Cleared, otherwise incremented by one. When counting to the continuous correct threshold, it is cleared.
  • the continuous correct threshold is set by software.
  • the decoding correct statistical counter is used to obtain the decoded correct count value, and the decoding correct statistical counter is decremented by one every time one or more decoding errors in the parallel data stream are encountered, and when the continuous decoding correct statistical counter is equal to the continuous correct threshold, The counter is incremented by one, plus one minus one to do overflow protection. The counter is cleared when it is determined that the character boundary of the first parallel data is in the second state.
  • the first parameter letter includes decoding a correct count value and a specific character count value
  • a specific character statistics counter can be used to obtain a specific character count value, and a specific character in the data stream can be counted, and the specific character can be from a software level configuration. For one character or more characters in parallel, as long as there is a correct specific character, the specific character statistical counter is incremented by one and subjected to addition overflow protection. When it is determined that the character boundary of the first parallel data is in the first state, the statistical result is cleared.
  • a second embodiment of a method for determining a character boundary is provided by the present invention. As shown in FIG. 2, the method includes:
  • Step 201 Perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase
  • Step 202 Decode the first parallel data to obtain decoded second parallel data.
  • Step 203 Acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent the second parallel Decoding of data;
  • the first parameter letter includes a decoding error count value
  • the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
  • Step 204 Perform phase adjustment on the first parallel data according to a preset rule when detecting that the character boundary is in the first state.
  • phase adjustment of the first parallel data according to a preset rule includes:
  • the phase of the first parallel data is shifted by one bit.
  • Step 205 Perform statistics on the time of detecting the state of the character boundary
  • Step 206 Perform phase adjustment on the first parallel data according to a preset rule when the time limit is exceeded.
  • Step 205 in this embodiment is not limited to being performed after step 204, for example, step 205 and step 203 may be performed simultaneously.
  • a third embodiment of a method for determining a character boundary is provided by the present invention. As shown in FIG. 3, the method includes:
  • Step 301 Perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase
  • Step 302 Decode the first parallel data to obtain decoded second parallel data.
  • Step 303 Acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent the second parallel Decoding of data;
  • the first parameter information includes a decoding error count value
  • the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
  • Step 304 When it is detected that the character boundary is in the first state, perform phase adjustment on the first parallel data according to a preset rule.
  • phase adjustment of the first parallel data according to a preset rule includes:
  • the phase of the first parallel data is shifted by one bit.
  • Step 305 when it is detected that the character boundary is in the second state, keep the phase of the first parallel data unchanged.
  • the first parameter information includes decoding a correct count value
  • the method may further include: comparing the second parallel data with a preset specific character set,
  • steps 304 and 305 are not limited in this embodiment.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing character boundary determination method.
  • the present invention provides a first embodiment of a character boundary determining apparatus. As shown in FIG. 4, the apparatus includes:
  • the deserialization module 401 is configured to perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase
  • the decoding module 402 is configured to decode the first parallel data to obtain the decoded second parallel data.
  • the feedback decision module 403 is configured to acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent Decoding the second parallel data;
  • the first parameter letter includes a decoding error count value
  • the feedback decision module 403 is configured to determine that the character boundary of the first parallel data is in the first state when the decoding error count value is greater than a preset error count threshold.
  • the character boundary adjustment module 404 is configured to, when detecting that the character boundary is in the first state, The first parallel data is phase adjusted according to a preset rule.
  • the character boundary adjustment module 404 is specifically configured to shift the phase of the first parallel data by one bit.
  • the feedback decision module 403 is further configured to perform statistics on the time of detecting the state of the character boundary
  • the character boundary adjustment module 404 is further configured to perform phase adjustment on the first parallel data according to a preset rule when the time limit is exceeded.
  • the character boundary adjustment module 404 is further configured to keep the phase of the first parallel data unchanged when it is detected that the character boundary is in the second state.
  • a character boundary determining apparatus provided by the present invention may be disposed in a receiving end of a high speed serial interface.
  • the apparatus includes a deserialization module 401, a decoding module 402, a feedback decision module 403, and a character boundary adjustment module 404.
  • the feedback decision module 403 and the character boundary adjustment module 404 are the focus of embodiments of the present invention.
  • the deserialization module 401 de-serializes the input serial data through a certain phase, and the de-separated data may stay at any one phase.
  • the character boundary adjustment module 404 performs boundary adjustment on the decomposed data according to the input of the feedback decision module 403 to ensure the correctness of the data phase.
  • the decoding module 402 decodes the bit-shifted parallel data, and the decoded data is sent to the subsequent link.
  • the data used for the decision in the feedback decision module 403 is the feedback from the output of the decoding module 402.
  • a plurality of information statistics are performed on the decoded data, mainly including a specific character count value, a decoding error count value, and a decoding correct count value, thereby determining whether the current character boundary is correct, when needed
  • the character boundary adjustment module 404 performs adjustment; when the bit phase adjustment is not needed, the character boundary adjustment The character boundary phase of the entire module 404 remains unchanged.
  • the character boundary adjustment module 404 receives the control signal sent by the feedback decision module 403, determines whether a character boundary needs to be performed, and the progress of each adjustment is a single-bit phase. When a shift is required, a bit phase adjustment is completed, otherwise the current bit phase output is maintained. .
  • the feedback decision module 403 performs statistics on the decoded data and the decoded information to determine whether the current character boundary is correct.
  • the feedback decision module 403 counts: a specific character count value, a decoding error count value, and a decoded correct count value.
  • a specific character count counter is used to obtain a specific character count value, and statistics are performed on a specific character in the data stream (the specific character can be from a software level configuration), and the result is sent after the decision feedback module 403 issues a character boundary adjustment control signal. Cleared, for one or more characters in parallel, as long as there is a correct specific character, the specific character statistics counter is incremented by one and the addition overflow protection is performed.
  • the continuous decoding correct statistical counter to count the number of consecutive decodings in the decoded data stream, the counter is cleared every time one or more decoding errors in the parallel data stream are encountered, otherwise it is incremented by one, when counting to the consecutive correct threshold, Then clear, the continuous correct threshold is set by the software.
  • the decoding error statistics counter is used to obtain a decoding error count value, which is incremented by one every time one or more decoding errors in the parallel data stream are encountered.
  • the continuous decoding correct statistical counter is equal to the continuous correct threshold, the counter is self-initiated. Subtract one, add one minus one to do overflow protection.
  • the state machine inside the feedback decision module 403 jumps, the counter is cleared.
  • the decoding correct statistical counter is used to obtain the decoded correct count value. When the statistical counter encounters one or more decoding errors in the parallel data stream, it is decremented by one. When the continuous decoding correct statistical counter is equal to the continuous correct threshold, the counter is self-decremented. Add one, add one minus one to do overflow protection. When the state machine inside the feedback decision module 403 jumps, the counter is cleared.
  • the time when the state machine inside the feedback decision module 403 is in each state is performed by using a timer. Statistics, when the state machine jumps, it is automatically cleared, otherwise it is incremented by one and overflow protection is performed.
  • the feedback decision module 403 is internally provided with a state machine. Referring to FIG. 5, there are three states: a boundary adjustment state, a synchronization determination state, and a synchronization state.
  • Boundary adjustment state The initial state in which the character boundary adjustment is performed. This state unconditionally jumps to the synchronous judgment state.
  • the decoding error statistics counter is continuously monitored in the synchronization state. When the counter value of the counter exceeds the error count threshold set by the software, the state jumps to the boundary adjustment state, indicating that too many errors lead to out-of-synchronization.
  • a boundary adjustment control signal is output to the character boundary adjustment module 404 at the boundary adjustment state.
  • the premise applicable to the embodiment of the present invention is that the transmitting end encodes the parallel data and serially transmits the encoded data.
  • the embodiment of the present invention aims to automatically search for the character boundary in the serial data according to the characteristics of the encoding and the character boundary in different application scenarios, thereby determining the correct character boundary.
  • the embodiment of the present invention proposes a character boundary determining technique based on the feedback result feedback decision. This technology is applicable to all high-speed serial transmission systems based on various encoded data, with sufficient flexibility and versatility.
  • the embodiments of the present invention have the following beneficial effects: 1. It can be applied to all data serial transmission systems based on various codes; 2.
  • the hardware processing is simple, and the implementation complexity is small; For specific application scenarios, you can configure specific characters and have great flexibility.
  • the deserialization module 401, the decoding module 402, the feedback decision module 403, and the character boundary adjustment module 404 may be configured by a central processing unit (CPU) or a digital signal processor (DSP). Or a microprocessor (MPU, Micro Processor Unit), or a Field Programmable Gate Array (FPGA).
  • CPU central processing unit
  • DSP digital signal processor
  • MPU Microprocessor
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • the embodiment of the present invention is a general character boundary determining technology, which performs deserialization on the acquired serial data to obtain first parallel data of a fixed phase; and decodes the first parallel data to obtain a decoded second parallel.
  • Data acquiring first parameter information of the second parallel data, and detecting a state of a character boundary of the first parallel data according to the first parameter information, wherein the first parameter information can represent the second parallel data
  • the decoding condition when it is detected that the character boundary is in the first state, the phase adjustment is performed on the first parallel data according to a preset rule.
  • the embodiment of the invention can be applied to all data serial transmission systems based on various codes, and has good flexibility and versatility; the hardware processing is simple and the implementation complexity is small.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Error Detection And Correction (AREA)

Abstract

Disclosed are a character boundary determination method and apparatus. The method comprises: deserialising acquired serial data to obtain first parallel data with a fixed phase; decoding the first parallel data to obtain decoded second parallel data; acquiring first parameter information about the second parallel data and detecting a state of a character boundary of the first parallel data according to the first parameter information, wherein the first parameter information can represent a decoding situation of the second parallel data; and when it is detected that the character boundary is at a first state, adjusting the phase of the first parallel data according to a pre-set rule. Also disclosed is a computer storage medium.

Description

字符边界确定方法、装置和存储介质Character boundary determination method, device and storage medium 技术领域Technical field
本发明涉及通信领域,尤其涉及一种字符边界确定方法、装置和计算机存储介质。The present invention relates to the field of communications, and in particular, to a character boundary determining method, apparatus, and computer storage medium.
背景技术Background technique
随着对信息流量需求的不断增长,电子行业技术特别是传输接口不断发展,IEEE1284被USB接口取代,PATA被SATA取代,PCI被PCI-Express所取代。目前,传统并行接口的速度已经达到一个瓶颈,取而代之的是速度更快的串行接口。原本用于光纤通信的SerDes技术成为了为高速串行接口的主流。串行接口主要应用差分信号传输技术,具有功耗低、抗干扰强、速度快的特点。As the demand for information traffic continues to grow, the electronics industry technology, especially the transmission interface, continues to evolve. IEEE1284 is replaced by a USB interface, PATA is replaced by SATA, and PCI is replaced by PCI-Express. At present, the speed of the traditional parallel interface has reached a bottleneck, replaced by a faster serial interface. The SerDes technology originally used for fiber-optic communication became the mainstream for high-speed serial interfaces. The serial interface mainly uses differential signal transmission technology, which has the characteristics of low power consumption, strong anti-interference and high speed.
在高速串行接口中,发送端均是基于某种编码进行传输的,例如:8b/10b编码,64b/66b编码,4b/5b编码等。编码后的数据经过并串转换后字符边界会丢失,接收端必须搜寻正确的字符边界,才能恢复出发送端发送的数据。In the high-speed serial interface, the transmitting end is transmitted based on a certain encoding, for example: 8b/10b encoding, 64b/66b encoding, 4b/5b encoding, and the like. After the encoded data is subjected to parallel and serial conversion, the character boundary will be lost, and the receiving end must search for the correct character boundary to recover the data sent by the transmitting end.
通常,高速串行接口在不同的应用中,对字符边界的定义也有所不同。现有技术中针对不同的应用要使用不同的方式对字符边界进行确定,不仅灵活性和通用性差,而且实现复杂度高。In general, high-speed serial interfaces have different definitions of character boundaries in different applications. In the prior art, character boundaries are determined in different ways for different applications, which is not only poor in flexibility and versatility, but also high in implementation complexity.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种字符边界确定方法、装置和计算机存储介质,具有很好的灵活性和通用性;硬件处理简单,实现复杂度小。 In order to solve the existing technical problems, embodiments of the present invention provide a character boundary determination method, apparatus, and computer storage medium, which have good flexibility and versatility; hardware processing is simple, and implementation complexity is small.
本发明实施例提供一种字符边界确定方法,所述方法包括:An embodiment of the present invention provides a method for determining a character boundary, where the method includes:
对获取的串行数据进行解串,得到固定相位的第一并行数据;De-serializing the acquired serial data to obtain first parallel data of a fixed phase;
对所述第一并行数据进行解码,得到解码后的第二并行数据;Decoding the first parallel data to obtain decoded second parallel data;
获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;Obtaining first parameter information of the second parallel data, and detecting a state of a character boundary of the first parallel data according to the first parameter information, wherein the first parameter information can represent decoding of the second parallel data Happening;
当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。When it is detected that the character boundary is in the first state, phase adjustment is performed on the first parallel data according to a preset rule.
其中,所述方法还包括:The method further includes:
对检测字符边界的状态的用时进行统计;Counting the time of detecting the state of the character boundary;
当用时超过时长门限时,对所述第一并行数据按预设的规则进行相位调整。When the time limit is exceeded, the first parallel data is phase-adjusted according to a preset rule.
其中,所述对所述第一并行数据按预设的规则进行相位调整,包括:The phase adjustment of the first parallel data according to a preset rule includes:
将所述第一并行数据的相位移位一个比特。The phase of the first parallel data is shifted by one bit.
其中,所述方法还包括:The method further includes:
当检测到字符边界处于第二状态时,保持所述第一并行数据的相位不变。The phase of the first parallel data is kept unchanged when it is detected that the character boundary is in the second state.
其中,所述第一参数信包括解码错误计数值;The first parameter information includes a decoding error count value;
所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括:The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并行数据的字符边界处于第一状态。When the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
本发明实施例提供一种字符边界确定装置,所述装置包括:An embodiment of the present invention provides a character boundary determining apparatus, where the apparatus includes:
解串模块,配置为对获取的串行数据进行解串,得到固定相位的第一并行数据; a deserialization module configured to perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase;
解码模块,配置为对所述第一并行数据进行解码,得到解码后的第二并行数据;a decoding module, configured to decode the first parallel data to obtain decoded second parallel data;
反馈判决模块,配置为获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;a feedback decision module, configured to acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent the The decoding of the second parallel data;
字符边界调整模块,配置为当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。The character boundary adjustment module is configured to perform phase adjustment on the first parallel data according to a preset rule when detecting that the character boundary is in the first state.
其中,所述反馈判决模块,还配置为对检测字符边界的状态的用时进行统计;The feedback decision module is further configured to perform statistics on the time of detecting the state of the character boundary;
所述字符边界调整模块,还配置为当用时超过时长门限时,对所述第一并行数据按预设的规则进行相位调整。The character boundary adjustment module is further configured to perform phase adjustment on the first parallel data according to a preset rule when the time limit is exceeded when used.
其中,所述字符边界调整模块,配置为将所述第一并行数据的相位移位一个比特。The character boundary adjustment module is configured to shift a phase of the first parallel data by one bit.
其中,所述字符边界调整模块,还配置为当检测到字符边界处于第二状态时,保持所述第一并行数据的相位不变。The character boundary adjustment module is further configured to keep the phase of the first parallel data unchanged when detecting that the character boundary is in the second state.
其中,所述第一参数信包括解码错误计数值;The first parameter information includes a decoding error count value;
所述反馈判决模块,配置为当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并行数据的字符边界处于第一状态。The feedback decision module is configured to determine that a character boundary of the first parallel data is in a first state when the decoding error count value is greater than a preset error count threshold.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的字符边界确定方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing character boundary determination method.
由上可知,本发明实施例的技术方案包括:对获取的串行数据进行解串,得到固定相位的第一并行数据;对所述第一并行数据进行解码,得到解码后的第二并行数据;获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参 数信息能够表征所述第二并行数据的解码情况;当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。It can be seen that the technical solution of the embodiment of the present invention includes: performing deserialization on the acquired serial data to obtain first parallel data of a fixed phase; and decoding the first parallel data to obtain decoded second parallel data. Obtaining first parameter information of the second parallel data, and detecting a state of a character boundary of the first parallel data according to the first parameter information, the first parameter The number information can represent a decoding condition of the second parallel data; when it is detected that the character boundary is in the first state, phase adjustment is performed on the first parallel data according to a preset rule.
本发明实施例是一种通用的字符边界确定技术。与现有技术相比,本发明实施例具有以下优点:能够适用于所有基于各种编码的数据串行传输系统,具有很好的灵活性和通用性;硬件处理简单,实现复杂度小。Embodiments of the present invention are a general character boundary determination technique. Compared with the prior art, the embodiment of the present invention has the following advantages: it can be applied to all data serial transmission systems based on various codes, and has good flexibility and versatility; the hardware processing is simple, and the implementation complexity is small.
附图说明DRAWINGS
图1是本发明提供的一种字符边界确定方法的第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a character boundary determining method provided by the present invention;
图2是本发明提供的一种字符边界确定方法的第二实施例的流程示意图;2 is a schematic flow chart of a second embodiment of a method for determining a character boundary provided by the present invention;
图3是本发明提供的一种字符边界确定方法的第三实施例的流程示意图;3 is a schematic flow chart of a third embodiment of a method for determining a character boundary provided by the present invention;
图4是本发明提供的一种字符边界确定装置的实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a character boundary determining apparatus provided by the present invention;
图5是本发明实施例提供的状态机跳转框图。FIG. 5 is a block diagram of a state machine jump according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明提供的一种字符边界确定方法的第一实施例,如图1所示,所述方法包括:A first embodiment of a method for determining a character boundary is provided by the present invention. As shown in FIG. 1, the method includes:
步骤101、对获取的串行数据进行解串,得到固定相位的第一并行数据;Step 101: Perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase;
步骤102、对所述第一并行数据进行解码,得到解码后的第二并行数据;Step 102: Decode the first parallel data to obtain decoded second parallel data.
步骤103、获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够 表征所述第二并行数据的解码情况;Step 103: Acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can Characterizing a decoding situation of the second parallel data;
这里,所述第一参数信包括解码错误计数值;Here, the first parameter letter includes a decoding error count value;
所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括:The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并行数据的字符边界处于第一状态。When the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
具体的,在实际应用中,使用连续解码正确统计计数器统计所述第二并行数据的中连续解码正确的个数,该连续解码正确统计计数器每遇到并行数据流中一个或多个解码错误则清零,否则自加一,当计数到连续正确门限时,则清零,该连续正确门限由软件可设置。Specifically, in a practical application, the continuous decoding correct statistical counter is used to count the correct number of consecutive decodings in the second parallel data, and the continuous decoding correct statistical counter encounters one or more decoding errors in the parallel data stream. Cleared, otherwise incremented by one. When counting to the continuous correct threshold, it is cleared. The continuous correct threshold is set by software.
采用解码错误统计计数器来获取解码错误计数值,所述解码错误统计计数器每遇到并行数据流中一个或多个解码错误时,则自加一,当连续解码正确统计计数器等于连续正确门限时,该解码错误统计计数器自减一,加一减一时做溢出保护。当检测到字符边界处于第一状态时,该解码错误统计计数器清零。Using a decoding error statistic counter to obtain a decoding error count value, the decoding error statistic counter increments by one every time one or more decoding errors in the parallel data stream are encountered, and when the consecutive decoding correct statistic counter is equal to the continuous correct threshold, The decoding error statistics counter is decremented by one, and the overflow protection is added when adding one minus one. The decoding error statistics counter is cleared when it is detected that the character boundary is in the first state.
步骤104、当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。Step 104: When it is detected that the character boundary is in the first state, perform phase adjustment on the first parallel data according to a preset rule.
这里,所述对所述第一并行数据按预设的规则进行相位调整,包括:Here, the phase adjustment of the first parallel data according to a preset rule includes:
将所述第一并行数据的相位移位一个比特。The phase of the first parallel data is shifted by one bit.
不难理解是,在实际应用中,所述方法还可以包括:对相位调整后的第三并行数据进行解码,得到解码后的第四并行数据;It is not difficult to understand that, in practical applications, the method may further include: decoding the phase-adjusted third parallel data to obtain the decoded fourth parallel data;
获取所述第四并行数据的第二参数信息,并根据所述第二参数信息检测所述第三并行数据的字符边界的状态,所述第二参数信息能够表征所述第四并行数据的解码情况。这样可以根据数据情况,不断对字符边界进行调整,从而确保字符边界的正确。 Acquiring second parameter information of the fourth parallel data, and detecting a state of a character boundary of the third parallel data according to the second parameter information, wherein the second parameter information can represent decoding of the fourth parallel data Happening. In this way, according to the data situation, the character boundaries are constantly adjusted to ensure the correct character boundaries.
在一实施例中,所述方法还包括:In an embodiment, the method further includes:
对检测字符边界的状态的用时进行统计;Counting the time of detecting the state of the character boundary;
当用时超过时长门限时,对所述第一并行数据按预设的规则进行相位调整。When the time limit is exceeded, the first parallel data is phase-adjusted according to a preset rule.
在一实施例中,所述方法还包括:In an embodiment, the method further includes:
当检测到字符边界处于第二状态时,保持所述第一并行数据的相位不变。The phase of the first parallel data is kept unchanged when it is detected that the character boundary is in the second state.
这里,所述第一参数信包括解码正确计数值;Here, the first parameter letter includes decoding a correct count value;
所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括:The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
当所述解码正确计数值大于预设的正确计数门限时,确定所述第一并行数据的字符边界处于第二状态。When the decoded correct count value is greater than a preset correct count threshold, it is determined that the character boundary of the first parallel data is in the second state.
具体的,在实际应用中,使用连续解码正确统计计数器统计所述第二并行数据的中连续解码正确的个数,该连续解码正确统计计数器每遇到并行数据流中一个或多个解码错误则清零,否则自加一,当计数到连续正确门限时,则清零,该连续正确门限由软件可设置。Specifically, in a practical application, the continuous decoding correct statistical counter is used to count the correct number of consecutive decodings in the second parallel data, and the continuous decoding correct statistical counter encounters one or more decoding errors in the parallel data stream. Cleared, otherwise incremented by one. When counting to the continuous correct threshold, it is cleared. The continuous correct threshold is set by software.
采用解码正确统计计数器来获取解码正确计数值,所述解码正确统计计数器每遇到并行数据流中一个或多个解码错误时,则自减一,当连续解码正确统计计数器等于连续正确门限时,该计数器自加一,加一减一时做溢出保护。当确定所述第一并行数据的字符边界处于第二状态时,该计数器清零。The decoding correct statistical counter is used to obtain the decoded correct count value, and the decoding correct statistical counter is decremented by one every time one or more decoding errors in the parallel data stream are encountered, and when the continuous decoding correct statistical counter is equal to the continuous correct threshold, The counter is incremented by one, plus one minus one to do overflow protection. The counter is cleared when it is determined that the character boundary of the first parallel data is in the second state.
在一实施例中,所述第一参数信包括解码正确计数值和特定字符计数值;In an embodiment, the first parameter letter includes decoding a correct count value and a specific character count value;
所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括: The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
当所述解码正确计数值大于预设的正确计数门限且所述特定字符计数值大于预设的特定字符门限值时,确定所述第一并行数据的字符边界处于第二状态。When the decoded correct count value is greater than a preset correct count threshold and the specific character count value is greater than a preset specific character threshold, it is determined that the character boundary of the first parallel data is in the second state.
实际应用中,可以采用特定字符统计计数器来获取特定字符计数值,对数据流中的特定字符进行统计,该特定字符可以来自于软件层面的配置。对于并行一个字符或多个字符中,只要有一个正确的特定字符,则该特定字符统计计数器加一,并进行加法溢出保护。当确定所述第一并行数据的字符边界处于第一状态时,统计结果清零。In practical applications, a specific character statistics counter can be used to obtain a specific character count value, and a specific character in the data stream can be counted, and the specific character can be from a software level configuration. For one character or more characters in parallel, as long as there is a correct specific character, the specific character statistical counter is incremented by one and subjected to addition overflow protection. When it is determined that the character boundary of the first parallel data is in the first state, the statistical result is cleared.
本发明提供的一种字符边界确定方法的第二实施例,如图2所示,所述方法包括:A second embodiment of a method for determining a character boundary is provided by the present invention. As shown in FIG. 2, the method includes:
步骤201、对获取的串行数据进行解串,得到固定相位的第一并行数据;Step 201: Perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase;
步骤202、对所述第一并行数据进行解码,得到解码后的第二并行数据;Step 202: Decode the first parallel data to obtain decoded second parallel data.
步骤203、获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;Step 203: Acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent the second parallel Decoding of data;
这里,所述第一参数信包括解码错误计数值;Here, the first parameter letter includes a decoding error count value;
所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括:The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并行数据的字符边界处于第一状态。When the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
步骤204、当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。Step 204: Perform phase adjustment on the first parallel data according to a preset rule when detecting that the character boundary is in the first state.
这里,所述对所述第一并行数据按预设的规则进行相位调整,包括:Here, the phase adjustment of the first parallel data according to a preset rule includes:
将所述第一并行数据的相位移位一个比特。The phase of the first parallel data is shifted by one bit.
步骤205,对检测字符边界的状态的用时进行统计; Step 205: Perform statistics on the time of detecting the state of the character boundary;
步骤206、当用时超过时长门限时,对所述第一并行数据按预设的规则进行相位调整。Step 206: Perform phase adjustment on the first parallel data according to a preset rule when the time limit is exceeded.
本实施例中步骤205不限于在步骤204后执行,例如步骤205和步骤203可以同时进行。Step 205 in this embodiment is not limited to being performed after step 204, for example, step 205 and step 203 may be performed simultaneously.
本发明提供的一种字符边界确定方法的第三实施例,如图3所示,所述方法包括:A third embodiment of a method for determining a character boundary is provided by the present invention. As shown in FIG. 3, the method includes:
步骤301、对获取的串行数据进行解串,得到固定相位的第一并行数据;Step 301: Perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase;
步骤302、对所述第一并行数据进行解码,得到解码后的第二并行数据;Step 302: Decode the first parallel data to obtain decoded second parallel data.
步骤303、获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;Step 303: Acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent the second parallel Decoding of data;
这里,所述第一参数信息包括解码错误计数值;Here, the first parameter information includes a decoding error count value;
所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括:The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并行数据的字符边界处于第一状态。When the decoding error count value is greater than a preset error count threshold, it is determined that the character boundary of the first parallel data is in the first state.
步骤304、当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。Step 304: When it is detected that the character boundary is in the first state, perform phase adjustment on the first parallel data according to a preset rule.
这里,所述对所述第一并行数据按预设的规则进行相位调整,包括:Here, the phase adjustment of the first parallel data according to a preset rule includes:
将所述第一并行数据的相位移位一个比特。The phase of the first parallel data is shifted by one bit.
步骤305,当检测到字符边界处于第二状态时,保持所述第一并行数据的相位不变。 Step 305, when it is detected that the character boundary is in the second state, keep the phase of the first parallel data unchanged.
这里,所述第一参数信息包括解码正确计数值;Here, the first parameter information includes decoding a correct count value;
所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括: The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
当所述解码正确计数值大于预设的正确计数门限时,确定所述第一并行数据的字符边界处于第二状态。When the decoded correct count value is greater than a preset correct count threshold, it is determined that the character boundary of the first parallel data is in the second state.
在实际应用中,所述方法还可以包括:将所述第二并行数据与预设的特定字符集合进行对比,In an actual application, the method may further include: comparing the second parallel data with a preset specific character set,
对所述第二并行数据中的特定字符进行统计,得到特定字符计数值;Statistics are performed on specific characters in the second parallel data to obtain a specific character count value;
当所述解码正确计数值大于预设的正确计数门限时,且当所述特定字符计数值大于预设的特定字符计数门限时,确定所述第一并行数据的字符边界处于第二状态。Determining that the character boundary of the first parallel data is in the second state when the decoded correct count value is greater than a preset correct count threshold, and when the specific character count value is greater than a preset specific character count threshold.
本实施例中并不对步骤304和步骤305的执行顺序进行限定。The order of execution of steps 304 and 305 is not limited in this embodiment.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的字符边界确定方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing character boundary determination method.
本发明提供的一种字符边界确定装置的第一实施例,如图4所示,所述装置包括:The present invention provides a first embodiment of a character boundary determining apparatus. As shown in FIG. 4, the apparatus includes:
解串模块401,配置为对获取的串行数据进行解串,得到固定相位的第一并行数据;The deserialization module 401 is configured to perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase;
解码模块402,配置为对所述第一并行数据进行解码,得到解码后的第二并行数据;The decoding module 402 is configured to decode the first parallel data to obtain the decoded second parallel data.
反馈判决模块403,配置为获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;The feedback decision module 403 is configured to acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent Decoding the second parallel data;
这里,所述第一参数信包括解码错误计数值;Here, the first parameter letter includes a decoding error count value;
所述反馈判决模块403,具体配置为当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并行数据的字符边界处于第一状态。The feedback decision module 403 is configured to determine that the character boundary of the first parallel data is in the first state when the decoding error count value is greater than a preset error count threshold.
字符边界调整模块404,配置为当检测到字符边界处于第一状态时,对 所述第一并行数据按预设的规则进行相位调整。The character boundary adjustment module 404 is configured to, when detecting that the character boundary is in the first state, The first parallel data is phase adjusted according to a preset rule.
这里,所述字符边界调整模块404,具体配置为将所述第一并行数据的相位移位一个比特。Here, the character boundary adjustment module 404 is specifically configured to shift the phase of the first parallel data by one bit.
在一实施例中,所述反馈判决模块403,还配置为对检测字符边界的状态的用时进行统计;In an embodiment, the feedback decision module 403 is further configured to perform statistics on the time of detecting the state of the character boundary;
所述字符边界调整模块404,还配置为当用时超过时长门限时,对所述第一并行数据按预设的规则进行相位调整。The character boundary adjustment module 404 is further configured to perform phase adjustment on the first parallel data according to a preset rule when the time limit is exceeded.
在一实施例中,所述字符边界调整模块404,还配置为当检测到字符边界处于第二状态时,保持所述第一并行数据的相位不变。In an embodiment, the character boundary adjustment module 404 is further configured to keep the phase of the first parallel data unchanged when it is detected that the character boundary is in the second state.
下面结合图4和图5对本发明提供的一种字符边界确定装置的第二实施例进行介绍,本实施例中提供的一种字符边界确定装置可以设置于高速串行接口的接收端中。所述装置包括解串模块401、解码模块402、反馈判决模块403和字符边界调整模块404。其中,所述反馈判决模块403和所述字符边界调整模块404是本发明实施例的重点。A second embodiment of a character boundary determining apparatus provided by the present invention is described below with reference to FIG. 4 and FIG. 5. A character boundary determining apparatus provided in this embodiment may be disposed in a receiving end of a high speed serial interface. The apparatus includes a deserialization module 401, a decoding module 402, a feedback decision module 403, and a character boundary adjustment module 404. The feedback decision module 403 and the character boundary adjustment module 404 are the focus of embodiments of the present invention.
所述解串模块401对输入的串行数据经过某个相位固定解串,解串后的数据有可能停留在任意一个相位。The deserialization module 401 de-serializes the input serial data through a certain phase, and the de-separated data may stay at any one phase.
所述字符边界调整模块404根据反馈判决模块403的输入,对解串后的数据进行边界调整,来保证数据相位的正确性。The character boundary adjustment module 404 performs boundary adjustment on the decomposed data according to the input of the feedback decision module 403 to ensure the correctness of the data phase.
所述解码模块402对比特移位后的并行数据进行解码,解码后的数据送给后续链路。The decoding module 402 decodes the bit-shifted parallel data, and the decoded data is sent to the subsequent link.
所述反馈判决模块403中判决用的数据是来自于解码模块402输出的反馈。根据不同的编码标准以及应用场景的协议,对解码后的数据进行多种信息统计,主要包括特定字符计数值、解码错误计数值、解码正确计数值,从而判决当前的字符边界是否正确,当需要进行字符边界调整时,在字符边界调整模块404进行调整;当不需要比特相位调整时,字符边界调 整模块404的字符边界相位保持不变。The data used for the decision in the feedback decision module 403 is the feedback from the output of the decoding module 402. According to different coding standards and protocols of the application scenario, a plurality of information statistics are performed on the decoded data, mainly including a specific character count value, a decoding error count value, and a decoding correct count value, thereby determining whether the current character boundary is correct, when needed When the character boundary adjustment is performed, the character boundary adjustment module 404 performs adjustment; when the bit phase adjustment is not needed, the character boundary adjustment The character boundary phase of the entire module 404 remains unchanged.
字符边界调整模块404接收反馈判决模块403发出的控制信号,决定是否需要进行字符边界,每次调整的进度为单比特的相位,当需要移位时完成一个比特相位调整,否则保持当前比特相位输出。The character boundary adjustment module 404 receives the control signal sent by the feedback decision module 403, determines whether a character boundary needs to be performed, and the progress of each adjustment is a single-bit phase. When a shift is required, a bit phase adjustment is completed, otherwise the current bit phase output is maintained. .
反馈判决模块403对解码后的数据及解码信息进行统计,判断当前字符边界是否正确。The feedback decision module 403 performs statistics on the decoded data and the decoded information to determine whether the current character boundary is correct.
反馈判决模块403统计的信息主要有三种:特定字符计数值、解码错误计数值、解码正确计数值。There are three main types of information that the feedback decision module 403 counts: a specific character count value, a decoding error count value, and a decoded correct count value.
采用特定字符统计计数器来获取特定字符计数值,对数据流中的特定字符(该特定字符可以来自于软件层面的配置)进行统计,在判决反馈模块403每次发出字符边界调整控制信号后统计结果清零,对于并行一个字符或多个字符中,只要有一个正确的特定字符,则该特定字符统计计数器加一,并进行加法溢出保护。A specific character count counter is used to obtain a specific character count value, and statistics are performed on a specific character in the data stream (the specific character can be from a software level configuration), and the result is sent after the decision feedback module 403 issues a character boundary adjustment control signal. Cleared, for one or more characters in parallel, as long as there is a correct specific character, the specific character statistics counter is incremented by one and the addition overflow protection is performed.
使用连续解码正确统计计数器统计解码数据流中连续解码正确的个数,该计数器每遇到并行数据流中一个或多个解码错误则清零,否则自加一,当计数到连续正确门限时,则清零,该连续正确门限由软件可设置。Using the continuous decoding correct statistical counter to count the number of consecutive decodings in the decoded data stream, the counter is cleared every time one or more decoding errors in the parallel data stream are encountered, otherwise it is incremented by one, when counting to the consecutive correct threshold, Then clear, the continuous correct threshold is set by the software.
采用解码错误统计计数器来获取解码错误计数值,该统计计数器每遇到并行数据流中一个或多个解码错误时,则自加一,当连续解码正确统计计数器等于连续正确门限时,该计数器自减一,加一减一时做溢出保护。反馈判决模块403内部的状态机跳转时,该计数器清零。The decoding error statistics counter is used to obtain a decoding error count value, which is incremented by one every time one or more decoding errors in the parallel data stream are encountered. When the continuous decoding correct statistical counter is equal to the continuous correct threshold, the counter is self-initiated. Subtract one, add one minus one to do overflow protection. When the state machine inside the feedback decision module 403 jumps, the counter is cleared.
采用解码正确统计计数器来获取解码正确计数值,该统计计数器每遇到并行数据流中一个或多个解码错误时,则自减一,当连续解码正确统计计数器等于连续正确门限时,该计数器自加一,加一减一时做溢出保护。反馈判决模块403内部的状态机跳转时,该计数器清零。The decoding correct statistical counter is used to obtain the decoded correct count value. When the statistical counter encounters one or more decoding errors in the parallel data stream, it is decremented by one. When the continuous decoding correct statistical counter is equal to the continuous correct threshold, the counter is self-decremented. Add one, add one minus one to do overflow protection. When the state machine inside the feedback decision module 403 jumps, the counter is cleared.
采用定时器对反馈判决模块403内部的状态机处于各状态的时间进行 统计,当状态机跳转时,自动清零,否则自加一,并进行溢出保护。The time when the state machine inside the feedback decision module 403 is in each state is performed by using a timer. Statistics, when the state machine jumps, it is automatically cleared, otherwise it is incremented by one and overflow protection is performed.
反馈判决模块403内部设置有一个状态机,参见图5所示,共三个状态:边界调整状态、同步判断状态、同步状态。The feedback decision module 403 is internally provided with a state machine. Referring to FIG. 5, there are three states: a boundary adjustment state, a synchronization determination state, and a synchronization state.
边界调整状态:即初始状态,在该状态执行字符边界调整的动作。该状态无条件跳转至同步判断状态。Boundary adjustment state: The initial state in which the character boundary adjustment is performed. This state unconditionally jumps to the synchronous judgment state.
在同步判断状态:当解码错误统计计数器的计数值超过软件配置的错误计数门限或定时器计数值超过软件设置的定时器门限,则认为当前字符边界调整错误,这时状态机跳转至边界调整状态。In the synchronization judgment state: when the count value of the decoding error statistics counter exceeds the software configured error count threshold or the timer count value exceeds the software set timer threshold, the current character boundary adjustment error is considered, and the state machine jumps to the boundary adjustment. status.
当特定字符统计计数器的计数值超过软件设置的特定字符门限且解码正确统计计数器的计数值超过软件设置的正确计数门限时,则跳转至同步状态,表示当前的字符边界是正确的。When the count value of the specific character statistic counter exceeds the specific character threshold set by the software and the count value of the decoded correct statistic counter exceeds the correct count threshold set by the software, the jump to the sync state indicates that the current character boundary is correct.
在同步状态继续对解码错误统计计数器进行监测,当该计数器的计数值超过软件设置的错误计数门限时,则跳转至边界调整状态,表示错误过多导致失步。The decoding error statistics counter is continuously monitored in the synchronization state. When the counter value of the counter exceeds the error count threshold set by the software, the state jumps to the boundary adjustment state, indicating that too many errors lead to out-of-synchronization.
在边界调整状态给字符边界调整模块404输出一个边界调整控制信号。A boundary adjustment control signal is output to the character boundary adjustment module 404 at the boundary adjustment state.
本发明实施例适用的前提是发送端对并行数据进行编码,对编码后的数据进行串行传输。本发明实施例旨在接收端根据编码的特点和不同应用场景下的字符边界,自动对串行数据中的字符边界进行搜索,进而确定正确字符边界。The premise applicable to the embodiment of the present invention is that the transmitting end encodes the parallel data and serially transmits the encoded data. The embodiment of the present invention aims to automatically search for the character boundary in the serial data according to the characteristics of the encoding and the character boundary in different application scenarios, thereby determining the correct character boundary.
在高速串行接口中,发送端并串转换后字符边界丢失,接收端不可避免需要恢复字符边界,本发明实施例提出了一种基于解码结果反馈判决的字符边界确定技术。该技术可适用于所有基于各种编码后的数据高速串行传输系统,具有足够的灵活性和通用性。In the high-speed serial interface, the character boundary is lost after the parallel conversion of the transmitting end, and the receiving end inevitably needs to restore the character boundary. The embodiment of the present invention proposes a character boundary determining technique based on the feedback result feedback decision. This technology is applicable to all high-speed serial transmission systems based on various encoded data, with sufficient flexibility and versatility.
综上所述,本发明实施例具有以下有益效果:1、能够适用于所有基于各种编码的数据串行传输系统;2、硬件处理简单,实现复杂度小;3、针 对具体的应用场景,配置相关的特定字符即可,具有很强的灵活性。In summary, the embodiments of the present invention have the following beneficial effects: 1. It can be applied to all data serial transmission systems based on various codes; 2. The hardware processing is simple, and the implementation complexity is small; For specific application scenarios, you can configure specific characters and have great flexibility.
在实际应用中,所述解串模块401、解码模块402、反馈判决模块403和字符边界调整模块404均可由中央处理单元(CPU,Central Processing Unit)、或数字信号处理(DSP,Digital Signal Processor)、或微处理器(MPU,Micro Processor Unit)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等来实现。In an actual application, the deserialization module 401, the decoding module 402, the feedback decision module 403, and the character boundary adjustment module 404 may be configured by a central processing unit (CPU) or a digital signal processor (DSP). Or a microprocessor (MPU, Micro Processor Unit), or a Field Programmable Gate Array (FPGA).
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on the computer or other programmable device to produce the computer The implemented processing, such as instructions executed on a computer or other programmable device, provides steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例是一种通用的字符边界确定技术,对获取的串行数据进行解串,得到固定相位的第一并行数据;对所述第一并行数据进行解码,得到解码后的第二并行数据;获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。本发明实施例能够适用于所有基于各种编码的数据串行传输系统,具有很好的灵活性和通用性;硬件处理简单,实现复杂度小。 The embodiment of the present invention is a general character boundary determining technology, which performs deserialization on the acquired serial data to obtain first parallel data of a fixed phase; and decodes the first parallel data to obtain a decoded second parallel. Data; acquiring first parameter information of the second parallel data, and detecting a state of a character boundary of the first parallel data according to the first parameter information, wherein the first parameter information can represent the second parallel data The decoding condition; when it is detected that the character boundary is in the first state, the phase adjustment is performed on the first parallel data according to a preset rule. The embodiment of the invention can be applied to all data serial transmission systems based on various codes, and has good flexibility and versatility; the hardware processing is simple and the implementation complexity is small.

Claims (11)

  1. 一种字符边界确定方法,所述方法包括:A character boundary determining method, the method comprising:
    对获取的串行数据进行解串,得到固定相位的第一并行数据;De-serializing the acquired serial data to obtain first parallel data of a fixed phase;
    对所述第一并行数据进行解码,得到解码后的第二并行数据;Decoding the first parallel data to obtain decoded second parallel data;
    获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;Obtaining first parameter information of the second parallel data, and detecting a state of a character boundary of the first parallel data according to the first parameter information, wherein the first parameter information can represent decoding of the second parallel data Happening;
    当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。When it is detected that the character boundary is in the first state, phase adjustment is performed on the first parallel data according to a preset rule.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    对检测字符边界的状态的用时进行统计;Counting the time of detecting the state of the character boundary;
    当用时超过时长门限时,对所述第一并行数据按预设的规则进行相位调整。When the time limit is exceeded, the first parallel data is phase-adjusted according to a preset rule.
  3. 根据权利要求1所述的方法,其中,所述对所述第一并行数据按预设的规则进行相位调整,包括:The method of claim 1, wherein the phase adjustment of the first parallel data according to a preset rule comprises:
    将所述第一并行数据的相位移位一个比特。The phase of the first parallel data is shifted by one bit.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    当检测到字符边界处于第二状态时,保持所述第一并行数据的相位不变。The phase of the first parallel data is kept unchanged when it is detected that the character boundary is in the second state.
  5. 根据权利要求1所述的方法,其中,所述第一参数信息包括解码错误计数值;The method of claim 1, wherein the first parameter information comprises a decoding error count value;
    所述根据所述第一参数信息检测所述第一并行数据的字符边界的状态,包括:The detecting a state of a character boundary of the first parallel data according to the first parameter information includes:
    当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并 行数据的字符边界处于第一状态。Determining the first one when the decoding error count value is greater than a preset error count threshold The character boundary of the line data is in the first state.
  6. 一种字符边界确定装置,所述装置包括:A character boundary determining device, the device comprising:
    解串模块,配置为对获取的串行数据进行解串,得到固定相位的第一并行数据;a deserialization module configured to perform deserialization on the acquired serial data to obtain first parallel data of a fixed phase;
    解码模块,配置为对所述第一并行数据进行解码,得到解码后的第二并行数据;a decoding module, configured to decode the first parallel data to obtain decoded second parallel data;
    反馈判决模块,配置为获取所述第二并行数据的第一参数信息,并根据所述第一参数信息检测所述第一并行数据的字符边界的状态,所述第一参数信息能够表征所述第二并行数据的解码情况;a feedback decision module, configured to acquire first parameter information of the second parallel data, and detect a state of a character boundary of the first parallel data according to the first parameter information, where the first parameter information can represent the The decoding of the second parallel data;
    字符边界调整模块,配置为当检测到字符边界处于第一状态时,对所述第一并行数据按预设的规则进行相位调整。The character boundary adjustment module is configured to perform phase adjustment on the first parallel data according to a preset rule when detecting that the character boundary is in the first state.
  7. 根据权利要求6所述的装置,其中,The apparatus according to claim 6, wherein
    所述反馈判决模块,还配置为对检测字符边界的状态的用时进行统计;The feedback decision module is further configured to perform statistics on the time of detecting the state of the character boundary;
    所述字符边界调整模块,还配置为当用时超过时长门限时,对所述第一并行数据按预设的规则进行相位调整。The character boundary adjustment module is further configured to perform phase adjustment on the first parallel data according to a preset rule when the time limit is exceeded when used.
  8. 根据权利要求6所述的装置,其中,The apparatus according to claim 6, wherein
    所述字符边界调整模块,配置为将所述第一并行数据的相位移位一个比特。The character boundary adjustment module is configured to shift a phase of the first parallel data by one bit.
  9. 根据权利要求6所述的装置,其中,The apparatus according to claim 6, wherein
    所述字符边界调整模块,还配置为当检测到字符边界处于第二状态时,保持所述第一并行数据的相位不变。The character boundary adjustment module is further configured to keep the phase of the first parallel data unchanged when it is detected that the character boundary is in the second state.
  10. 根据权利要求6所述的装置,其中,所述第一参数信息包括解码错误计数值;The apparatus of claim 6, wherein the first parameter information comprises a decoding error count value;
    所述反馈判决模块,配置为当所述解码错误计数值大于预设的错误计数门限时,确定所述第一并行数据的字符边界处于第一状态。 The feedback decision module is configured to determine that a character boundary of the first parallel data is in a first state when the decoding error count value is greater than a preset error count threshold.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至5任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 5.
PCT/CN2015/092815 2015-07-29 2015-10-26 Character boundary determination method and apparatus, storage medium WO2017016081A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510455817.2 2015-07-29
CN201510455817.2A CN106412139A (en) 2015-07-29 2015-07-29 Character boundary determination method and apparatus

Publications (1)

Publication Number Publication Date
WO2017016081A1 true WO2017016081A1 (en) 2017-02-02

Family

ID=57885145

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092815 WO2017016081A1 (en) 2015-07-29 2015-10-26 Character boundary determination method and apparatus, storage medium

Country Status (2)

Country Link
CN (1) CN106412139A (en)
WO (1) WO2017016081A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546229A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Serializer and Deserializer (Serdes) rate matching method and device
CN104333388A (en) * 2014-12-01 2015-02-04 山东华芯半导体有限公司 Serial communication protocol controller, character re-aligning circuit and 8b/10b decoder

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814976B (en) * 2010-04-08 2012-10-17 北京恒光创新科技股份有限公司 Multi-type network data transmission method and device
EP2547032B1 (en) * 2011-07-12 2018-05-23 ADVA Optical Networking SE Method for data package processing at very high data rates and in extremely bad transfer conditions

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546229A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Serializer and Deserializer (Serdes) rate matching method and device
CN104333388A (en) * 2014-12-01 2015-02-04 山东华芯半导体有限公司 Serial communication protocol controller, character re-aligning circuit and 8b/10b decoder

Also Published As

Publication number Publication date
CN106412139A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN108777606B (en) Decoding method, apparatus and readable storage medium
CN105187070B (en) A kind of manchester encoded signals coding/decoding method and device
US10511406B1 (en) Power saving in a twisted wire pair communication network
JP5426326B2 (en) Data receiving apparatus, data receiving method, and program
JP2018501706A5 (en)
WO2013001631A1 (en) Transmission device, transmission circuit, transmission system, and method for controlling transmission device
US20170155458A1 (en) Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium
JP5266164B2 (en) Data receiver
CN104052577A (en) Signal transmission processing method and device and video data transmission method and system
CN104753538B (en) Manchester encoded signals coding/decoding method and device
CN104158624A (en) Redundancy two-out-of-two decoding control device for BTM (Balise Transmission Module) system and redundancy two-out-of-two decoding method
JP2016515787A5 (en)
US10505672B2 (en) FEC decoding apparatus and method
WO2016095569A1 (en) Method and apparatus for reducing false detection rate, and storage medium
EP2908475B1 (en) Limitation of bit stuffing in a communication frame of an electronic signal
JP5263986B2 (en) SERIAL RECEIVING DEVICE, CONTROL METHOD AND PROGRAM FOR SERIAL RECEIVING DEVICE
KR101874537B1 (en) Method and Apparatus for Parallel Decoding of Polar Codes
JP2009164833A (en) Data processing apparatus and method, and program
WO2017016081A1 (en) Character boundary determination method and apparatus, storage medium
IL259732A (en) Serial data multiplexing
CN110620635A (en) Decoding method, apparatus and readable storage medium
CN102939721B (en) Method and apparatus for adjusting a symbol decision threshold at a receiver in a communication network
KR102108380B1 (en) Interface circuit operating to recover transmitted data error
CN108322298B (en) UART out-of-synchronization recovery method, equipment and system
WO2016000372A1 (en) Sequence detection method and device, and computer storage medium

Legal Events

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

Ref document number: 15899433

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15899433

Country of ref document: EP

Kind code of ref document: A1