[go: up one dir, main page]

CN109274460A - Multi-bit parallel structure serial cancellation decoding method and device - Google Patents

Multi-bit parallel structure serial cancellation decoding method and device Download PDF

Info

Publication number
CN109274460A
CN109274460A CN201811076350.0A CN201811076350A CN109274460A CN 109274460 A CN109274460 A CN 109274460A CN 201811076350 A CN201811076350 A CN 201811076350A CN 109274460 A CN109274460 A CN 109274460A
Authority
CN
China
Prior art keywords
data
preset
result data
decoded
enable signal
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.)
Granted
Application number
CN201811076350.0A
Other languages
Chinese (zh)
Other versions
CN109274460B (en
Inventor
牛凯
边鑫
董超
戴金晟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201811076350.0A priority Critical patent/CN109274460B/en
Publication of CN109274460A publication Critical patent/CN109274460A/en
Application granted granted Critical
Publication of CN109274460B publication Critical patent/CN109274460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • H04L1/0054Maximum-likelihood or sequential decoding, e.g. Viterbi, Fano, ZJ algorithms
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/13Linear codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0057Block codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Theoretical Computer Science (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The embodiment of the invention provides a kind of multi-bit parallel structures serially to offset interpretation method and device, f operation and g operation are carried out respectively to the data in data to decode frame, obtain corresponding operation result data, according to the first default enable signal and the second default enable signal, segmented result data are determined from operation result data, according to default acceleration computation rule and segmented result data, obtain target data, using target data as the corresponding decoding data of data to decode frame, and judge whether currently available decoding data reaches the code length for stating data to decode frame, if not, enable signal is preset according to updating target data first, and continue according to the first default enable signal and the second default enable signal, segmented result data are determined from operation result data.Based on above-mentioned processing, the merging of the calculate node of part stage is realized using default acceleration computation rule, and then can reduce the time delay of decoding.

Description

一种多比特并行结构串行抵消译码方法和装置Multi-bit parallel structure serial cancellation decoding method and device

技术领域Technical field

本发明涉及通信技术领域,特别是涉及一种多比特并行结构串行抵消译码方法和装置。The present invention relates to the field of communications technologies, and in particular, to a multi-bit parallel structure serial cancellation decoding method and apparatus.

背景技术Background technique

极化码是一种可以达到信道容量的构造性的信道编码方法,根据极化码对原始数据进行编码,可以得到编码后的数据帧(可以称为待译码数据帧)。相应的,可以根据串行抵消(Successive Cancellation,SC)译码方法,对待译码数据帧进行译码,得到译码数据。The polarization code is a constructive channel coding method that can achieve the channel capacity. The original data is encoded according to the polarization code, and the encoded data frame (which may be referred to as a data frame to be decoded) can be obtained. Correspondingly, the data frame to be decoded can be decoded according to a Successive Cancellation (SC) decoding method to obtain decoded data.

参见图1,图1为现有技术中串行抵消译码方法的示意图,其中,i=0,1,2...7表示待译码数据帧中的比特似然比数据,即,待译码数据帧的码长为8,j=0,1,2...7,表示不同的时钟周期输出的译码数据。整个译码过程由不同阶段的计算节点完成,图中包括阶段1、阶段2和阶段3的计算节点。空心圆点表示计算节点进行f运算,实心圆点表示计算节点进行g运算,g运算的又可以分为g-运算和g+运算。f运算的公式为:f(A,B)=sgn[A]×sgn[B]·min[|A|,|B|],g运算的公式为:g(A,B)=(-1)MA+B,A和B表示待译码数据帧中的两个比特似然比数据,M为1表示g-运算,M为0表示g+运算,sgn表示符号函数,min表示取最小值函数。t、t+1、t+2、...t+14表示不同的时钟周期。可见,第t+3个时钟周期的g运算的输入包括第t+2个时钟周期的译码数据以根据确定g运算的运算方式;第t+4个时钟周期的g运算的输入包括第t+2个时钟周期的译码数据与第t+3个时钟周期的译码数据的和,以确定g运算的运算方式。Referring to FIG. 1, FIG. 1 is a schematic diagram of a prior art serial cancellation decoding method, where i=0,1,2...7 represents the bit likelihood ratio data in the data frame to be decoded, that is, the code length of the data frame to be decoded is 8, j = 0, 1, 2...7, which represent decoded data outputted in different clock cycles. The entire decoding process is completed by compute nodes at different stages, including the compute nodes of Phase 1, Phase 2, and Phase 3. The hollow dot indicates that the calculation node performs the f operation, the solid dot indicates that the calculation node performs the g operation, and the g operation can be further divided into the g-operation and the g+ operation. The formula for f operation is: f(A, B)=sgn[A]×sgn[B]·min[|A|,|B|], and the formula for g operation is: g(A, B)=(-1 M A+B, A and B represent two bit likelihood ratio data in the data frame to be decoded, M is 1 for g-operation, M is 0 for g+ operation, sgn is for symbol function, min is for minimum value function. t, t+1, t+2, ... t+14 represent different clock cycles. It can be seen that the input of the g operation of the t+3 clock cycles includes the decoded data of the t+2 clock cycles. Based on Determine the operation mode of the g operation; the input of the g operation of the t+4 clock cycles includes the decoded data of the t+2 clock cycles Decoded data with t+3 clock cycles And to determine the operation of the g operation.

可见,每个计算节点在一个时钟周期只能得到一种运算的结果,且只有在计算出较前的时钟周期对应的译码数据后,才可以根据计算得到的译码数据确定较后的时钟周期的g运算的运算方式,进而导致整个译码过程的时延较长。It can be seen that each computing node can only obtain the result of one operation in one clock cycle, and only after calculating the decoding data corresponding to the previous clock cycle, can the determined clock be determined according to the calculated decoding data. The operation of the g operation of the cycle, which in turn leads to a longer delay in the entire decoding process.

发明内容Summary of the invention

本发明实施例的目的在于提供一种多比特并行结构串行抵消译码方法和装置,可以降低译码过程的时延。具体技术方案如下:An object of the embodiments of the present invention is to provide a multi-bit parallel structure serial cancellation decoding method and apparatus, which can reduce the delay of the decoding process. The specific technical solutions are as follows:

第一方面,为了达到上述目的,本发明实施例公开了一种多比特并行结构串行抵消译码方法,所述方法包括:In a first aspect, in order to achieve the above object, an embodiment of the present invention discloses a multi-bit parallel structure serial cancellation decoding method, where the method includes:

获取待译码数据帧,对所述待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据;Obtaining a data frame to be decoded, performing f operation and g operation on the data in the data frame to be decoded, respectively, to obtain corresponding operation result data;

根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据;Determining candidate result data from the operation result data according to the first preset enable signal and the second preset enable signal;

根据预设加速计算规则和所述备选结果数据,得到目标数据,其中,所述预设加速计算规则为对预设数量个计算节点的运算方式化简得到的;And obtaining, according to the preset acceleration calculation rule and the candidate result data, the target acceleration data, wherein the preset acceleration calculation rule is obtained by simplifying operation manners of a preset number of calculation nodes;

将所述目标数据作为所述待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到所述待译码数据帧的码长;Determining, by using the target data, the decoded data corresponding to the data frame to be decoded, and determining whether the currently obtained decoded data reaches the code length of the data frame to be decoded;

如果否,根据所述目标数据更新所述第一预设使能信号,并执行根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据步骤。If not, updating the first preset enable signal according to the target data, and performing determining, according to the first preset enable signal and the second preset enable signal, the candidate result data from the operation result data step.

可选的,所述根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据,包括:Optionally, the determining, according to the first preset enable signal and the second preset enable signal, the candidate result data from the operation result data, including:

如果第二预设使能信号当前为低电平,则将f运算对应的运算结果数据确定为备选结果数据;If the second preset enable signal is currently low, determining the operation result data corresponding to the f operation as the candidate result data;

如果所述第二预设使能信号当前为高电平,则根据第一预设使能信号,从g运算对应的运算结果数据中,确定备选结果数据。If the second preset enable signal is currently at a high level, the candidate result data is determined from the operation result data corresponding to the g operation according to the first preset enable signal.

可选的,所述根据预设加速计算规则和所述备选结果数据,得到目标数据,包括:Optionally, the obtaining the target data according to the preset acceleration calculation rule and the candidate result data, including:

根据预设加速计算规则,对所述备选结果数据进行计算,得到加速计算结果数据;Calculating the candidate result data according to a preset acceleration calculation rule to obtain accelerated calculation result data;

对所述加速计算结果数据和预设校正数据进行与运算,得到目标数据。Performing an AND operation on the acceleration calculation result data and the preset correction data to obtain target data.

可选的,所述根据所述目标数据更新所述第一预设使能信号,包括:Optionally, the updating the first preset enable signal according to the target data includes:

对所述目标数据求部分和,得到求部分和结果数据;Partially summing the target data to obtain a partial and result data;

将所述求部分和结果数据,作为所述第一预设使能信号当前的信号值。And determining the partial and result data as the current signal value of the first preset enable signal.

可选的,所述第二预设使能信号为根据所述待译码数据帧的码长,以及预设周期算法确定的。Optionally, the second preset enable signal is determined according to a code length of the data frame to be decoded and a preset period algorithm.

第二方面,为了达到上述目的,本发明实施例公开了一种多比特并行结构串行抵消译码装置,所述装置包括:In a second aspect, in order to achieve the above object, an embodiment of the present invention discloses a multi-bit parallel structure serial cancellation decoding apparatus, where the apparatus includes:

计算模块,用于获取待译码数据帧,对所述待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据;a calculation module, configured to acquire a data frame to be decoded, perform f operation and g operation on the data in the data frame to be decoded, respectively, to obtain corresponding operation result data;

确定模块,用于根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据;a determining module, configured to determine candidate result data from the operation result data according to the first preset enable signal and the second preset enable signal;

获取模块,用于根据预设加速计算规则和所述备选结果数据,得到目标数据,其中,所述预设加速计算规则为对预设数量个计算节点的运算方式化简得到的;An obtaining module, configured to obtain target data according to the preset acceleration calculation rule and the candidate result data, wherein the preset acceleration calculation rule is obtained by simplifying operation manners of a preset number of calculation nodes;

判断模块,用于将所述目标数据作为所述待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到所述待译码数据帧的码长;a determining module, configured to use the target data as the decoded data corresponding to the data frame to be decoded, and determine whether the currently obtained decoded data reaches a code length of the data frame to be decoded;

处理模块,用于如果否,根据所述目标数据更新所述第一预设使能信号,并执行根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据步骤。a processing module, if not, updating the first preset enable signal according to the target data, and executing the first preset enable signal and the second preset enable signal from the operation result data Determine the alternative result data steps.

可选的,所述确定模块,具体用于如果第二预设使能信号当前为低电平,则将f运算对应的运算结果数据确定为备选结果数据;Optionally, the determining module is specifically configured to: if the second preset enable signal is currently low, determine the operation result data corresponding to the f operation as the candidate result data;

如果所述第二预设使能信号当前为高电平,则根据第一预设使能信号,从g运算对应的运算结果数据中,确定备选结果数据。If the second preset enable signal is currently at a high level, the candidate result data is determined from the operation result data corresponding to the g operation according to the first preset enable signal.

可选的,所述获取模块,具体用于根据预设加速计算规则,对所述备选结果数据进行计算,得到加速计算结果数据;Optionally, the acquiring module is specifically configured to calculate, according to a preset acceleration calculation rule, the candidate result data, to obtain accelerated calculation result data;

对所述加速计算结果数据和预设校正数据进行与运算,得到目标数据。Performing an AND operation on the acceleration calculation result data and the preset correction data to obtain target data.

可选的,所述处理模块,具体用于对所述目标数据求部分和,得到求部分和结果数据;Optionally, the processing module is specifically configured to obtain a partial sum of the target data, to obtain a partial part and result data;

将所述求部分和结果数据,作为所述第一预设使能信号当前的信号值。And determining the partial and result data as the current signal value of the first preset enable signal.

可选的,所述第二预设使能信号为根据所述待译码数据帧的码长,以及预设周期算法确定的。Optionally, the second preset enable signal is determined according to a code length of the data frame to be decoded and a preset period algorithm.

在本发明实施的又一方面,为了达到上述目的,本发明实施例公开了一种终端,包括处理器、通信接口、存储器和通信总线,其中,所述处理器,所述通信接口,所述存储器通过所述通信总线完成相互间的通信;In still another aspect of the present invention, in order to achieve the above object, an embodiment of the present invention discloses a terminal, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, the The memory completes communication with each other through the communication bus;

所述存储器,用于存放计算机程序;The memory is configured to store a computer program;

所述处理器,用于执行所述存储器上所存放的程序时,实现上述任一所述的方法步骤。The processor, when used to execute a program stored on the memory, implements any of the method steps described above.

在本发明实施的又一方面,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述任一所述的方法步骤。In still another aspect of the present invention, a computer readable storage medium is provided, wherein the computer readable storage medium stores instructions that, when run on a computer, cause the computer to perform the method of any of the above step.

在本发明实施的又一方面,本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一所述的方法步骤。In yet another aspect of the present invention, an embodiment of the present invention further provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of any of the above.

本发明实施例提供的一种多比特并行结构串行抵消译码方法和装置,可以获取待译码数据帧,对待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据,根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据,根据预设加速计算规则和备选结果数据,得到目标数据,其中,预设加速计算规则对预设数量个计算节点的运算方式化简得到的,将目标数据作为待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到述待译码数据帧的码长,如果否,根据目标数据更新第一预设使能信号,并继续根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据。基于上述处理,利用预设加速计算规则实现了部分阶段的计算节点的合并,进而可以减少译码的时延。The multi-bit parallel structure serial cancellation decoding method and device provided by the embodiment of the present invention can obtain a data frame to be decoded, and perform f operation and g operation on the data in the data frame to be decoded, respectively, to obtain a corresponding operation result. Data, according to the first preset enable signal and the second preset enable signal, determining candidate result data from the operation result data, and obtaining target data according to the preset acceleration calculation rule and the candidate result data, wherein, the preset The acceleration calculation rule is obtained by simplifying the operation mode of the preset number of calculation nodes, using the target data as the decoding data corresponding to the data frame to be decoded, and determining whether the currently obtained decoded data reaches the data frame to be decoded. The code length, if not, updates the first preset enable signal according to the target data, and continues to determine the candidate result data from the operation result data according to the first preset enable signal and the second preset enable signal. Based on the above processing, the merging of the computing nodes in the partial stages is realized by using the preset acceleration calculation rule, thereby reducing the delay of decoding.

当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。Of course, any product or method embodying the present invention necessarily does not necessarily require all of the advantages described above to be achieved at the same time.

附图说明DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.

图1为现有技术中串行抵消译码方法的示意图;1 is a schematic diagram of a prior art serial cancellation decoding method;

图2为本发明实施例提供的一种多比特并行结构串行抵消译码方法的流程图;2 is a flowchart of a multi-bit parallel structure serial cancellation decoding method according to an embodiment of the present invention;

图3为本发明实施例提供的基于本发明方法的码长为8的译码器的电路图;3 is a circuit diagram of a decoder having a code length of 8 based on the method of the present invention according to an embodiment of the present invention;

图4为本发明实施例提供的一种PE模块的结构图;4 is a structural diagram of a PE module according to an embodiment of the present invention;

图5为本发明实施例提供的一种PSF模块的结构图;FIG. 5 is a structural diagram of a PSF module according to an embodiment of the present invention;

图6为本发明实施例提供的一种逻辑树的结构图;FIG. 6 is a structural diagram of a logic tree according to an embodiment of the present invention;

图7为本发明实施例提供的一种逻辑树的结构图;FIG. 7 is a structural diagram of a logic tree according to an embodiment of the present invention;

图8为本发明实施例提供的译码时延对比图;FIG. 8 is a comparison diagram of decoding delays according to an embodiment of the present invention; FIG.

图9为本发明实施例提供的一种多比特并行结构串行抵消译码装置的结构图;FIG. 9 is a structural diagram of a multi-bit parallel structure serial cancellation decoding apparatus according to an embodiment of the present invention;

图10为本发明实施例提供的一种电子设备的结构图。FIG. 10 is a structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

利用现在技术进行译码时,只有在计算出较前的时钟周期对应的译码数据后,才可以根据计算得到的译码数据确定较后的时钟周期的g运算的具体运算方式,进而导致整个译码过程的时延较长。When decoding is performed by the current technology, only after the decoded data corresponding to the previous clock cycle is calculated, the specific operation mode of the g operation of the subsequent clock cycle can be determined according to the calculated decoded data, thereby causing the whole The decoding process has a long delay.

为了解决上述问题,本发明实施例提供了一种多比特并行结构串行抵消译码方法和装置,可以对待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据,根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据,根据预设加速计算规则和备选结果数据,得到目标数据,将目标数据作为待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到述待译码数据帧的码长,如果否,根据目标数据更新第一预设使能信号,并继续根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据。基于上述处理,利用预设加速计算规则实现了部分阶段的计算节点的合并,进而可以减少译码的时延。In order to solve the above problem, an embodiment of the present invention provides a multi-bit parallel structure serial cancellation decoding method and apparatus, which can perform f operation and g operation on data in a data frame to be decoded, and obtain corresponding operation result data. Determining the candidate result data from the operation result data according to the first preset enable signal and the second preset enable signal, and obtaining the target data according to the preset acceleration calculation rule and the candidate result data, and using the target data as the to-be-translated Decoding data corresponding to the code data frame, and determining whether the currently obtained decoded data reaches the code length of the data frame to be decoded, and if not, updating the first preset enable signal according to the target data, and continuing according to the first pre- The enable signal and the second preset enable signal are set, and the candidate result data is determined from the operation result data. Based on the above processing, the merging of the computing nodes in the partial stages is realized by using the preset acceleration calculation rule, thereby reducing the delay of decoding.

参见图2,图2为本发明实施例提供的一种多比特并行结构串行抵消译码方法的流程图,实施例以方法应用于电子设备为例进行说明,该电子设备可以用于对待译码数据帧进行译码,该方法可以包括以下处理步骤。Referring to FIG. 2, FIG. 2 is a flowchart of a multi-bit parallel structure serial cancellation decoding method according to an embodiment of the present invention. The embodiment is described by using an electronic device as an example, and the electronic device can be used for translating The code data frame is decoded, and the method may include the following processing steps.

S201:获取待译码数据帧,对待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据。S201: Acquire a data frame to be decoded, and perform f operation and g operation on the data in the data frame to be decoded, respectively, to obtain corresponding operation result data.

其中,待译码数据帧中的数据通常为比特似然比数据。The data in the data frame to be decoded is usually bit likelihood ratio data.

一帧待译码数据帧通常包含2N个比特似然比数据(N为正整数),即,待译码数据帧的码长为2N。例如,一帧待译码数据帧可以包含8个比特似然比数据,或者,一帧待译码数据帧可以包括16个比特似然比数据。A frame of data to be decoded typically contains 2 N bit likelihood ratio data (N is a positive integer), that is, the code length of the data frame to be decoded is 2 N . For example, a frame of data to be decoded may contain 8 bit likelihood ratio data, or a frame of data to be decoded may include 16 bit likelihood ratio data.

在发明实施例中,电子设备可以获取待译码数据帧,针对每一帧待译码数据帧,电子设备可以分别对该待译码数据帧中的比特似然比数据进行f运算、g+运算和g-运算,并存储对应的运算结果数据,以便进行后续处理。In an embodiment of the invention, the electronic device may acquire a data frame to be decoded, and for each frame of the data frame to be decoded, the electronic device may respectively perform f operation and g+ operation on the bit likelihood ratio data in the data frame to be decoded. And g- operations, and store the corresponding operation result data for subsequent processing.

具体的,针对比特似然比数据,f运算可以参考公式(1):Specifically, for the bit likelihood ratio data, the f operation can refer to formula (1):

g运算可以参考公式(2):g operation can refer to formula (2):

其中,表示一对比特似然比数据,N表示一帧待译码数据帧的码长,i=0,1,2...N-1。如果为0,则公式(2)表示g+运算,如果为1,则公式(2)表示g-运算。among them, with Representing a pair of bit likelihood ratio data, N represents the code length of a frame of data frame to be decoded, i=0, 1, 2...N-1. in case Is 0, then formula (2) represents the g+ operation, if When 1, the formula (2) represents the g-operation.

具体的,比特似然比数据可以根据公式(3)得到:Specifically, the bit likelihood ratio data can be obtained according to formula (3):

其中,表示待译码数据帧,N表示接收到的一帧待译码数据帧的码长,表示译码数据的估计值,表示译码数据被判定为0的概率,表示译码数据被判定为1的概率。among them, Representing a data frame to be decoded, and N is a code length of a received data frame to be decoded. Representing an estimate of the decoded data, Indicates the probability that the decoded data is judged to be 0. Indicates the probability that the decoded data is judged to be 1.

参见图3,图3为本发明实施例提供的基于本发明方法的码长为8的译码器的电路图。本实施例以一帧待译码数据帧的码长为8为例进行说明。图3中,y0、y1…y7表示一帧待译码数据帧中的8个比特似然比数据,电子设备可以通过PE模块对每两个比特似然比数据进行f运行、g+运算和g-运算,并将计算结果分别存储在对应的D触发器中。Referring to FIG. 3, FIG. 3 is a circuit diagram of a decoder with a code length of 8 according to the method of the present invention. In this embodiment, the code length of a frame to be decoded is 8 as an example. In FIG. 3, y 0 , y 1 ... y 7 represent 8 bit likelihood ratio data in a frame of a data frame to be decoded, and the electronic device can perform f operation on every two bit likelihood ratio data through the PE module, g+ The operation and the g-operation are performed, and the calculation results are respectively stored in the corresponding D flip-flops.

其中,PE模块包括符号运算装置、绝对值运算转置和多比特全加器,以实现对一组比特似然比数据同时进行f运算、g+运算和g-运算。The PE module includes a symbol operation device, an absolute value operation transposition, and a multi-bit full adder to simultaneously perform an f operation, a g+ operation, and a g-operation on a set of bit likelihood ratio data.

参见图4,图4为本发明实施例提供的一种PE模块的结构图,表示一组比特似然比数据,CLK表示时钟信号,g-mux表示使能信号。表示对进行f运算的运算结果数据,表示对进行g+运算的运算结果数据,表示对进行g-运算的运算结果数据。Referring to FIG. 4, FIG. 4 is a structural diagram of a PE module according to an embodiment of the present invention. Represents a set of bit likelihood ratio data, CLK represents the clock signal, and g-mux represents the enable signal. Express The result data of the f operation, Express The result data of the g+ operation, Express The operation result data of the g-operation is performed.

S202:根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据。S202: Determine candidate result data from the operation result data according to the first preset enable signal and the second preset enable signal.

其中,第一预设使能信号和第二预设使能信号可以由技术人员根据经验进行设置。参见图3,第一预设使能信号和第二预设使能信号用于控制PE模块输出至阶段2的数据。The first preset enable signal and the second preset enable signal may be set by a technician according to experience. Referring to FIG. 3, the first preset enable signal and the second preset enable signal are used to control the data output by the PE module to phase 2.

在发明实施例中,当达到下一个时钟周期时,电子设备根据第一预设使能信号(即图3中第一级多路复用器的使能信号)和第二预设使能信号(即图3中第二级的多路复用器使能信号),从PE模块的运算结果数据中确定需要输入至阶段2的数据(即备选结果数据)。其中,图3中第一级多路复用器为距离PE模块较近的多路复用器,图3中第二级多路复用器为距离PE模块较远的多路复用器。In an embodiment of the invention, when the next clock cycle is reached, the electronic device according to the first preset enable signal (ie, the enable signal of the first stage multiplexer in FIG. 3) and the second preset enable signal (ie, the multiplexer enable signal of the second stage in FIG. 3), the data that needs to be input to phase 2 (ie, the candidate result data) is determined from the operation result data of the PE module. Wherein, the first stage multiplexer in FIG. 3 is a multiplexer closer to the PE module, and the second stage multiplexer in FIG. 3 is a multiplexer farther from the PE module.

可选的,电子设备可以采取以下步骤,从运算结果数据中确定备选结果数据。Optionally, the electronic device may take the following steps to determine candidate result data from the operation result data.

步骤一,如果第二预设使能信号当前为低电平,则将f运算对应的运算结果数据确定为备选结果数据。Step 1: If the second preset enable signal is currently low, the operation result data corresponding to the f operation is determined as the candidate result data.

在发明实施例中,电子设备可以获取当前时钟周期对应的第一预设使能信号和第二预设使能信号的信号值。如果第二预设使能信号的当前为低电平,电子设备可以将f运算对应的运算结果数据确定为备选结果数据。In an embodiment of the invention, the electronic device may acquire the signal values of the first preset enable signal and the second preset enable signal corresponding to the current clock cycle. If the current preset signal is low, the electronic device may determine the operation result data corresponding to the f operation as the candidate result data.

参见图3,当电子设备判定第二预设使能信号当前的信号值为0时,电子设备可以将PE模块进行f运算得到的运算结果数据,作为备选结果数据,并将备选结果数据输入至阶段2。Referring to FIG. 3, when the electronic device determines that the current signal value of the second preset enable signal is 0, the electronic device may perform the operation result data obtained by the f operation of the PE module as the candidate result data, and select the result data. Enter to stage 2.

步骤二,如果第二预设使能信号当前为高电平,则根据第一预设使能信号,从g运算对应的运算结果数据中,确定备选结果数据。Step 2: If the second preset enable signal is currently at a high level, the candidate result data is determined from the operation result data corresponding to the g operation according to the first preset enable signal.

在发明实施例中,当电子设备判定第二预设使能信号当前为高电平时,电子设备则可以根据第一预设使能信号,从g运算对应的运算结果数据中,确定备选结果数据。In an embodiment of the invention, when the electronic device determines that the second preset enable signal is currently at a high level, the electronic device may determine an alternative result from the operation result data corresponding to the g operation according to the first preset enable signal. data.

例如,参见图3,当电子设备判定第二预设使能信号当前为1时,电子设备可以确定第一预设使能信号当前的信号值,如果第一预设使能信号当前为0,电子设备可以将PE模块进行g+运算得到的运算结果数据,作为备选结果数据,并将备选结果数据输入至阶段2。For example, referring to FIG. 3, when the electronic device determines that the second preset enable signal is currently 1, the electronic device may determine a current signal value of the first preset enable signal, if the first preset enable signal is currently 0, The electronic device can perform the operation result data obtained by the g+ operation of the PE module as the alternative result data, and input the alternative result data to the stage 2.

如果第一预设使能信号当前为1,电子设备可以将PE模块进行g-运算得到的运算结果数据,作为备选结果数据,并将备选结果数据输入至阶段2。If the first preset enable signal is currently 1, the electronic device may perform the operation result data obtained by the g-operation of the PE module as the alternative result data, and input the alternative result data to the phase 2.

S203:根据预设加速计算规则和备选结果数据,得到目标数据。S203: Obtain target data according to preset acceleration calculation rules and candidate result data.

其中,预设加速计算规则为对预设数量个计算节点的运算方式化简得到的。The preset acceleration calculation rule is obtained by simplifying the operation manner of the preset number of calculation nodes.

图3中,加速器模块为根据预设加速计算规则得到的电路结构,相对于现有技术,加速器模块为对阶段2和阶段3的计算节点进行合并得到的。In FIG. 3, the accelerator module is a circuit structure obtained according to a preset acceleration calculation rule, and the accelerator module is obtained by combining the calculation nodes of phase 2 and phase 3 with respect to the prior art.

根据图1可以得到公式(4)。According to Fig. 1, the formula (4) can be obtained.

其中,f和g分别表示f运算和g运算,h表示判决函数,表示第i个比特似然比数据,i=0,1,2,3。Where f and g represent the f operation and the g operation, respectively, and h represents the decision function. Indicates the i-th bit likelihood ratio data, i=0, 1, 2, 3.

根据布尔函数对公式(4)进行简化,得到:Simplify equation (4) according to a Boolean function to get:

λ1和λ2表示加速器模块中多路复用器的输出结果。λ 1 and λ 2 represent the output of the multiplexer in the accelerator module.

根据公式(5)、公式(6)和公式(7),可以对现有技术中阶段2和阶段3的计算节点进行合并,使其在同一时钟周期内完成计算。According to formula (5), formula (6) and formula (7), the calculation nodes of phase 2 and phase 3 in the prior art can be combined to complete the calculation in the same clock cycle.

具体的,利用公式(8)对比特似然比数据进行判决。Specifically, the bit likelihood ratio data is determined using equation (8).

其中,表示译码数据的估计值,表示比特似然比数据。将判决结果输出比特全加器或全减器,并输出至多路复用器。四路判决信号通过三个异或门输出即可得到其输出与前两个异或输出的信号做异或运算,与后两个异或运算的结果通过多路复用器选择输出后两个比特也是经过两级异或运算输出 among them, Representing an estimate of the decoded data, Represents bit likelihood ratio data. The decision result is output to a bit full adder or a full reducer and output to the multiplexer. Four way decision signals pass through three exclusive OR gate outputs You can get The output is XORed with the signals of the first two XOR outputs, and the result of the last two XOR operations is selected by the multiplexer. The last two bits are also output through two-stage XOR operation. with

在发明实施例中,电子设备根据据预设加速计算规则和备选结果数据,可以得到目标数据。例如,图3中,在第二个时钟周期,电子设备通过加速器模块,可以输出4个比特的目标数据。In the embodiment of the invention, the electronic device can obtain the target data according to the preset acceleration calculation rule and the candidate result data. For example, in FIG. 3, in the second clock cycle, the electronic device can output 4 bits of target data through the accelerator module.

需要说明的是,本实施例中仅对后两个阶段的计算节点进行合并,在实际操作过程中,可以根据业务需要选择合并的计算节点的阶段数。例如,一帧待译码数据帧的码长为16,相应的,现有技术的译码过程由4个阶段的计算节点完成,此时,可以对后两个阶段的计算节点进行合并,也可以对后三个阶段的计算节点进行合并。如果合并的阶段数可以用m表示,则一个时钟周期加速器模块输出的目标数据包括2m个比特。It should be noted that, in this embodiment, only the computing nodes in the last two phases are merged. In the actual operation, the number of phases of the merged computing nodes may be selected according to service requirements. For example, the code length of a frame of data to be decoded is 16, and correspondingly, the decoding process of the prior art is completed by four stages of computing nodes. At this time, the computing nodes of the latter two stages can be merged. The compute nodes of the last three phases can be merged. If the number of merged stages can be represented by m, the target data output by one clock cycle accelerator module includes 2 m bits.

可选的,针对通过极化编码得到的待译码数据帧,电子设备获取目标数据的步骤可以包括以下处理步骤。Optionally, for the data frame to be decoded obtained by the polarization coding, the step of acquiring the target data by the electronic device may include the following processing steps.

步骤一,根据预设加速计算规则,对备选结果数据进行计算,得到加速计算结果数据。In step one, according to the preset acceleration calculation rule, the candidate result data is calculated, and the accelerated calculation result data is obtained.

在发明实施例中,电子设备根据据预设加速计算规则,对备选结果数据进行计算,将得到的数据作为加速计算结果数据。In the embodiment of the invention, the electronic device calculates the candidate result data according to the preset acceleration calculation rule, and uses the obtained data as the acceleration calculation result data.

针对图3中的电路结构,电子设备可以将第一个时钟周期得到的备选结果数据,输入至加速器模块,加速器模块则可以根据据预设加速计算规则(即公式(6)、公式(7)和公式(8)),得到加速计算结果数据。For the circuit structure in FIG. 3, the electronic device can input the candidate result data obtained in the first clock cycle to the accelerator module, and the accelerator module can accelerate the calculation rule according to the preset (ie, formula (6), formula (7) ) and formula (8)), get accelerated calculation result data.

步骤二,对加速计算结果数据和预设校正数据进行与运算,得到目标数据。In step two, the acceleration calculation result data and the preset correction data are ANDed to obtain target data.

其中,预设校正数据可以由技术人员根据经验进行设置。具体的,预设校正数据可以包括信息位数据和冻结位数据,通常,信息位数据为1,冻结位数据为0。Among them, the preset correction data can be set by the technician according to experience. Specifically, the preset correction data may include information bit data and frozen bit data. Generally, the information bit data is 1, and the frozen bit data is 0.

在发明实施例中,电子设备可以对加速计算结果数据和预设校正数据进行与运算,得到目标数据。In an embodiment of the invention, the electronic device may perform an AND operation on the acceleration calculation result data and the preset correction data to obtain target data.

例如,电子设备得到的加速计算结果数据为0101,4个比特的加速计算结果数据对应的预设校正数据为1011。电子设备可以将4个比特的加速计算结果数据0101分别和对应的预设校正数据1011进行与运算,可以得到0001,将0001作为0101对应的目标数据。For example, the acceleration calculation result data obtained by the electronic device is 0101, and the preset correction data corresponding to the acceleration calculation result data of 4 bits is 1011. The electronic device can perform the AND operation on the 4-bit acceleration calculation result data 0101 and the corresponding preset correction data 1011, respectively, to obtain 0001, and 0001 as the target data corresponding to 0101.

S204:将目标数据作为待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到待译码数据帧的码长,如果否,执行S205。S204: The target data is used as the decoding data corresponding to the data frame to be decoded, and it is determined whether the currently obtained decoded data reaches the code length of the data frame to be decoded. If not, S205 is performed.

在发明实施例中,电子设备可以将得到的目标数据作为待译码数据帧对应的译码数据。在每次得到目标数据后,电子设备可以判断当前得到的所有目标数据是否达到待译码数据帧的码长。In an embodiment of the invention, the electronic device may use the obtained target data as the decoded data corresponding to the data frame to be decoded. After each time the target data is obtained, the electronic device can determine whether all the target data currently obtained reaches the code length of the data frame to be decoded.

例如,图3中,一帧待译码数据帧包含8个比特似然比数据,在第二个时钟周期,电子设备可以得到4个比特的目标数据,此时,电子设备得到的目标数据并未达到待译码数据帧的码长,电子设备可以执行步骤S205。For example, in FIG. 3, a frame of data to be decoded includes 8 bit likelihood ratio data, and in the second clock cycle, the electronic device can obtain 4 bits of target data. At this time, the target data obtained by the electronic device is If the code length of the data frame to be decoded is not reached, the electronic device may perform step S205.

S205:根据目标数据更新第一预设使能信号,并执行步骤S202。S205: Update the first preset enable signal according to the target data, and execute step S202.

在发明实施例中,当电子设备判定当前得到的所有目标数据未达到待译码数据帧的码长时,电子设备可以根据目标数据更新第一预设使能信号,进而可以继续根据根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据,以再次得到目标数据,直到得到的目标数据达到待译码数据帧的码长。其中,第一预设使能信号和第二预设使能信号的初始信号均为低电平。In the embodiment of the present invention, when the electronic device determines that all the target data currently obtained does not reach the code length of the data frame to be decoded, the electronic device may update the first preset enable signal according to the target data, and further may continue according to the first The preset enable signal and the second preset enable signal determine the candidate result data from the operation result data to obtain the target data again until the obtained target data reaches the code length of the data frame to be decoded. The initial signals of the first preset enable signal and the second preset enable signal are both low.

例如,图3中,在第三个时钟周期,电子设备再次利用加速器模块,得到4个比特的目标数据,此时,电子设备共得到8个比特的目标数据,达到待译码数据帧的码长。电子设备可以将得到的8个比特的目标数据,作为待译码数据帧对应的译码数据。For example, in FIG. 3, in the third clock cycle, the electronic device uses the accelerator module again to obtain 4 bits of target data. At this time, the electronic device obtains 8 bits of target data to reach the code of the data frame to be decoded. long. The electronic device can use the obtained target data of 8 bits as the decoded data corresponding to the data frame to be decoded.

可见,现有技术中,对于码长为8的待译码数据帧,需要14个时钟周期完成译码,而基于本实施例的方法,仅需要3个时钟周期即可完成译码。同理得到,对于码长为N的待译码数据帧,现有技术需要2(N-1)个时钟周期完成译码,而基于本实施例的方法,仅需要N/2-1个时钟周期即可完成译码,可以减小译码的时延。It can be seen that, in the prior art, for a data frame to be decoded with a code length of 8, it takes 14 clock cycles to complete decoding, and based on the method of the embodiment, only 3 clock cycles are required to complete the decoding. Similarly, for a data frame to be decoded with a code length of N, the prior art requires 2 (N-1) clock cycles to complete decoding, and based on the method of the embodiment, only N/2-1 clocks are required. The decoding can be completed in the cycle, and the delay of decoding can be reduced.

可选的,电子设备更新第一预设使能信号的方法可以包括以下处理步骤。Optionally, the method for the electronic device to update the first preset enable signal may include the following processing steps.

对目标数据求部分和,得到求部分和结果数据;将求部分和结果数据,作为第一预设使能信号当前的信号值。Partial sum is obtained for the target data, and the partial and result data are obtained; the partial and result data are obtained as the current signal value of the first preset enable signal.

在发明实施例中,电子设备可以对得到的目标数据求部分和,得到求部分和结果数据。然后,电子设备可以将求部分和结果数据作为对应的第一预设使能信号当前的信号值。In an embodiment of the invention, the electronic device can obtain a partial sum of the obtained target data to obtain a partial and result data. Then, the electronic device can use the partial and result data as the current signal value of the corresponding first preset enable signal.

例如,电子设备中可以设置有求部分和PSF模块,以对目标数据求部分和。求部分和模块的电路图可以参见图5。For example, the electronic device may be provided with a request portion and a PSF module to obtain a partial sum of the target data. See Figure 5 for a circuit diagram of the parts and modules.

其中,表示部分和反馈模块的输出信号,表示部分和反馈模块的输入信号,clk表示时钟信号,loop-mux和psf-mux表示部分和反馈模块的两级多路复用器使能信号。among them, Indicates the output signals of the partial and feedback modules, The input signal representing the partial and feedback modules, clk represents the clock signal, loop-mux and psf-mux represent the two-stage multiplexer enable signal of the partial and feedback modules.

图3中,在第二个时钟周期可以得到目标数据电子设备可以根据PSF模块,得到作为求部分和结果数据,并将作为4个PE模块对应的第一预设使能信号。In Figure 3, target data is available in the second clock cycle. with Electronic equipment can be obtained according to the PSF module with As part and result data, and with The first preset enable signal corresponding to the four PE modules.

另外,第二预设使能信号可以为根据待译码数据帧的码长,以及预设周期算法确定的。In addition, the second preset enable signal may be determined according to a code length of a data frame to be decoded and a preset period algorithm.

其中,预设周期算法可以由技术人员根据经验进行设置,具体的,预设周期算法可以用逻辑树表示。The preset period algorithm may be set by a technician according to experience. Specifically, the preset period algorithm may be represented by a logic tree.

在发明实施例中,电子设备在获取待译码数据帧后,可以根据待译码数据帧的码长,以及预设周期算法,确定第二预设使能信号。In an embodiment of the invention, after acquiring the data frame to be decoded, the electronic device may determine the second preset enable signal according to the code length of the data frame to be decoded and the preset period algorithm.

参见图6,图6为实施例提供的与现有技术对应的逻辑树。Referring to FIG. 6, FIG. 6 is a logic tree corresponding to the prior art provided by the embodiment.

该逻辑树对应的待译码数据帧包含16个比特似然比数据,即待译码数据帧的码长为16。因此,整个译码过程可以分为4个阶段。图中,对于码长为N的待译码数据帧,逻辑树的层数为log2N,也即译码过程的阶段数。空心圆点表示f运算,实心圆点表示g运算。每一计算节点下的数字表示该计算节点保持当前运算所需要的时钟周期的数目,虚线中的计算节点保持当前运算所需要的时钟周期数可以用N.21-r-1表示,r表示当前计算节点所处的阶段。右边子树的根节点保持当前运算所需要的时钟周期数为N-log2N。根据节点保持当前运算所需要的时钟周期的数目,可以确定第二预设使能信号。The data frame to be decoded corresponding to the logical tree contains 16 bit likelihood ratio data, that is, the code length of the data frame to be decoded is 16. Therefore, the entire decoding process can be divided into four stages. In the figure, for a data frame to be decoded with a code length of N, the number of layers of the logical tree is log 2 N, that is, the number of stages of the decoding process. Hollow dots represent the f operation, and solid dots represent the g operation. The number under each compute node indicates the number of clock cycles required by the compute node to maintain the current operation. The number of clock cycles required by the compute node in the dashed line to maintain the current operation can be represented by N.2 1-r -1, where r is The stage at which the current compute node is located. The root node of the right subtree maintains the number of clock cycles required for the current operation as N-log 2 N. The second preset enable signal can be determined based on the number of clock cycles required for the node to maintain the current operation.

可以看出,一个计算节点的两个子节点中,右边的子节点保持当前运算所需要的时钟周期数,等于该计算节点保持当前运算所需要的时钟周期数减去左边子节点保持当前运算所需要的时钟周期数。即右边的子节点保持当前运算所需要的时钟周期数可以用表示,表示该子节点的父节点保持当前运算所需要的时钟周期数,α(r,c-1)表示左边子节点保持当前运算所需要的时钟周期数,c表示右边子节点在逻辑树的当前阶段中从左到右的序号,逻辑树中计算节点的个数也即整个译码所需的时钟周期。It can be seen that among the two child nodes of a computing node, the right child node maintains the number of clock cycles required for the current operation, which is equal to the number of clock cycles required by the computing node to maintain the current operation minus the left child node needs to maintain the current operation. The number of clock cycles. That is, the number of clock cycles required for the current child node to maintain the current operation can be used. Said that Indicates the number of clock cycles required by the parent node of the child node to maintain the current operation, α(r, c-1) represents the number of clock cycles required for the left child node to maintain the current operation, and c represents the right child node at the current stage of the logic tree. The number from left to right, the number of nodes in the logical tree is the clock cycle required for the entire decoding.

基于本发明实施例的方法,可以对现有技术中的逻辑树进行合并,得到如图7所示的逻辑树。Based on the method of the embodiment of the present invention, the logic trees in the prior art can be merged to obtain a logic tree as shown in FIG. 7.

其中,实心圆点表示PE模块,空心圆点表示加速器模块,可见,对于码长为16的待译码数据帧,本实施例的方法仅需要7个时钟周期即可完成译码。The solid dot indicates the PE module, and the hollow dot indicates the accelerator module. It can be seen that for the data frame to be decoded with a code length of 16, the method of the embodiment only needs 7 clock cycles to complete the decoding.

参见图8,图8为本实施例提供的译码时延对比示意图。Referring to FIG. 8, FIG. 8 is a schematic diagram of comparison of decoding delays according to the embodiment.

图8包括传统树形SC译码器的译码时延、超前计算SC译码器的译码时延、2b-SC译码器的译码时延以及本基于本发明方法的译码器的译码时延。可以看出,基于本发明的方法,能够减小译码时延。Figure 8 includes the decoding delay of a conventional tree SC decoder, the decoding delay of the SC decoder, the decoding delay of the 2b-SC decoder, and the decoder of the method according to the present invention. Decoding delay. It can be seen that the decoding delay can be reduced based on the method of the present invention.

基于本发明实施例的多比特并行结构串行抵消译码方法,对待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据,根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据,根据预设加速计算规则和备选结果数据,得到目标数据,将目标数据作为待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到述待译码数据帧的码长,如果否,根据目标数据更新第一预设使能信号,并继续根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据。基于上述处理,利用预设加速计算规则实现了部分阶段的计算节点的合并,进而可以减少译码的时延。According to the multi-bit parallel structure serial cancellation decoding method of the embodiment of the present invention, the data in the data frame to be decoded is subjected to f operation and g operation, respectively, to obtain corresponding operation result data, according to the first preset enable signal and the first The second preset enable signal determines the candidate result data from the operation result data, obtains the target data according to the preset acceleration calculation rule and the candidate result data, and uses the target data as the decoded data corresponding to the data frame to be decoded, and Determining whether the currently obtained decoded data reaches the code length of the data frame to be decoded, and if not, updating the first preset enable signal according to the target data, and continuing to perform according to the first preset enable signal and the second preset The energy signal determines the candidate result data from the operation result data. Based on the above processing, the merging of the computing nodes in the partial stages is realized by using the preset acceleration calculation rule, thereby reducing the delay of decoding.

与图2的方法实施例相对应,参见图9,图9为本发明实施例提供的一种多比特并行结构串行抵消译码装置,所述装置包括:Corresponding to the method embodiment of FIG. 2, referring to FIG. 9, FIG. 9 is a multi-bit parallel structure serial cancellation decoding apparatus according to an embodiment of the present invention, where the apparatus includes:

计算模块901,用于获取待译码数据帧,对所述待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据;The calculation module 901 is configured to obtain a data frame to be decoded, perform f operation and g operation on the data in the data frame to be decoded, respectively, to obtain corresponding operation result data;

确定模块902,用于根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据;The determining module 902 is configured to determine candidate result data from the operation result data according to the first preset enable signal and the second preset enable signal;

获取模块903,用于根据预设加速计算规则和所述备选结果数据,得到目标数据,其中,所述预设加速计算规则为对预设数量个计算节点的运算方式化简得到的;The obtaining module 903 is configured to obtain the target data according to the preset acceleration calculation rule and the candidate result data, where the preset acceleration calculation rule is obtained by simplifying the operation manner of the preset number of calculation nodes;

判断模块904,用于将所述目标数据作为所述待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到所述待译码数据帧的码长;The determining module 904 is configured to use the target data as the decoded data corresponding to the data frame to be decoded, and determine whether the currently obtained decoded data reaches the code length of the data frame to be decoded;

处理模块905,用于如果否,根据所述目标数据更新所述第一预设使能信号,并执行根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据步骤。The processing module 905 is configured to: if not, update the first preset enable signal according to the target data, and perform the operation result data according to the first preset enable signal and the second preset enable signal. Determine the alternative result data steps.

可选的,所述确定模块902,具体用于如果第二预设使能信号当前为低电平,则将f运算对应的运算结果数据确定为备选结果数据;Optionally, the determining module 902 is specifically configured to determine the operation result data corresponding to the f operation as the candidate result data if the second preset enable signal is currently at a low level;

如果所述第二预设使能信号当前为高电平,则根据第一预设使能信号,从g运算对应的运算结果数据中,确定备选结果数据。If the second preset enable signal is currently at a high level, the candidate result data is determined from the operation result data corresponding to the g operation according to the first preset enable signal.

可选的,所述获取模块903,具体用于根据预设加速计算规则,对所述备选结果数据进行计算,得到加速计算结果数据;Optionally, the obtaining module 903 is specifically configured to calculate, according to a preset acceleration calculation rule, the candidate result data, to obtain accelerated calculation result data;

对所述加速计算结果数据和预设校正数据进行与运算,得到目标数据。Performing an AND operation on the acceleration calculation result data and the preset correction data to obtain target data.

可选的,所述处理模块905,具体用于对所述目标数据求部分和,得到求部分和结果数据;Optionally, the processing module 905 is specifically configured to obtain a partial sum of the target data, to obtain a partial part and result data;

将所述求部分和结果数据,作为所述第一预设使能信号当前的信号值。And determining the partial and result data as the current signal value of the first preset enable signal.

可选的,所述第二预设使能信号为根据所述待译码数据帧的码长,以及预设周期算法确定的。Optionally, the second preset enable signal is determined according to a code length of the data frame to be decoded and a preset period algorithm.

基于本发明实施例的多比特并行结构串行抵消译码装置,对待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据,根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据,根据预设加速计算规则和备选结果数据,得到目标数据,将目标数据作为待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到述待译码数据帧的码长,如果否,根据目标数据更新第一预设使能信号,并继续根据第一预设使能信号和第二预设使能信号,从运算结果数据中确定备选结果数据。基于上述处理,利用预设加速计算规则实现了部分阶段的计算节点的合并,进而可以减少译码的时延。The multi-bit parallel structure serial cancellation decoding apparatus according to the embodiment of the present invention performs f operation and g operation on the data in the data frame to be decoded, respectively, to obtain corresponding operation result data, according to the first preset enable signal and the first The second preset enable signal determines the candidate result data from the operation result data, obtains the target data according to the preset acceleration calculation rule and the candidate result data, and uses the target data as the decoded data corresponding to the data frame to be decoded, and Determining whether the currently obtained decoded data reaches the code length of the data frame to be decoded, and if not, updating the first preset enable signal according to the target data, and continuing to perform according to the first preset enable signal and the second preset The energy signal determines the candidate result data from the operation result data. Based on the above processing, the merging of the computing nodes in the partial stages is realized by using the preset acceleration calculation rule, thereby reducing the delay of decoding.

本发明实施例还提供了一种电子设备,如图10所示,包括处理器1001、通信接口1002、存储器1003和通信总线1004,其中,处理器1001,通信接口1002,存储器1003通过通信总线1004完成相互间的通信,The embodiment of the present invention further provides an electronic device, as shown in FIG. 10, including a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004. The processor 1001, the communication interface 1002, and the memory 1003 pass through the communication bus 1004. Complete communication with each other,

存储器1003,用于存放计算机程序;a memory 1003, configured to store a computer program;

处理器1001,用于执行存储器1003上所存放的程序时,实现如下步骤:The processor 1001 is configured to perform the following steps when executing the program stored on the memory 1003:

获取待译码数据帧,对所述待译码数据帧中的数据分别进行f运算和g运算,得到对应的运算结果数据;Obtaining a data frame to be decoded, performing f operation and g operation on the data in the data frame to be decoded, respectively, to obtain corresponding operation result data;

根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据;Determining candidate result data from the operation result data according to the first preset enable signal and the second preset enable signal;

根据预设加速计算规则和所述备选结果数据,得到目标数据,其中,所述预设加速计算规则为对预设数量个计算节点的运算方式化简得到的;And obtaining, according to the preset acceleration calculation rule and the candidate result data, the target acceleration data, wherein the preset acceleration calculation rule is obtained by simplifying operation manners of a preset number of calculation nodes;

将所述目标数据作为所述待译码数据帧对应的译码数据,并判断当前得到的译码数据是否达到所述待译码数据帧的码长;Determining, by using the target data, the decoded data corresponding to the data frame to be decoded, and determining whether the currently obtained decoded data reaches the code length of the data frame to be decoded;

如果否,根据所述目标数据更新所述第一预设使能信号,并执行根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据步骤。If not, updating the first preset enable signal according to the target data, and performing determining, according to the first preset enable signal and the second preset enable signal, the candidate result data from the operation result data step.

可选的,所述根据第一预设使能信号和第二预设使能信号,从所述运算结果数据中确定备选结果数据,包括:Optionally, the determining, according to the first preset enable signal and the second preset enable signal, the candidate result data from the operation result data, including:

如果第二预设使能信号当前为低电平,则将f运算对应的运算结果数据确定为备选结果数据;If the second preset enable signal is currently low, determining the operation result data corresponding to the f operation as the candidate result data;

如果所述第二预设使能信号当前为高电平,则根据第一预设使能信号,从g运算对应的运算结果数据中,确定备选结果数据。If the second preset enable signal is currently at a high level, the candidate result data is determined from the operation result data corresponding to the g operation according to the first preset enable signal.

可选的,所述根据预设加速计算规则和所述备选结果数据,得到目标数据,包括:Optionally, the obtaining the target data according to the preset acceleration calculation rule and the candidate result data, including:

根据预设加速计算规则,对所述备选结果数据进行计算,得到加速计算结果数据;Calculating the candidate result data according to a preset acceleration calculation rule to obtain accelerated calculation result data;

对所述加速计算结果数据和预设校正数据进行与运算,得到目标数据。Performing an AND operation on the acceleration calculation result data and the preset correction data to obtain target data.

可选的,所述根据所述目标数据更新所述第一预设使能信号,包括:Optionally, the updating the first preset enable signal according to the target data includes:

对所述目标数据求部分和,得到求部分和结果数据;Partially summing the target data to obtain a partial and result data;

将所述求部分和结果数据,作为所述第一预设使能信号当前的信号值。And determining the partial and result data as the current signal value of the first preset enable signal.

可选的,所述第二预设使能信号为根据所述待译码数据帧的码长,以及预设周期算法确定的。Optionally, the second preset enable signal is determined according to a code length of the data frame to be decoded and a preset period algorithm.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral PomponentInterconnect,简称PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,简称EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Pomponent Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Ne twork Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Applica tion SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Ne twork processor, NP for short), or a digital signal processor (DSP). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质及计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer readable storage medium, and the computer program product embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A serial cancellation decoding method for a multi-bit parallel structure is characterized by comprising the following steps:
acquiring a data frame to be decoded, and respectively performing f operation and g operation on data in the data frame to be decoded to obtain corresponding operation result data;
determining alternative result data from the operation result data according to a first preset enable signal and a second preset enable signal;
obtaining target data according to a preset accelerated computing rule and the alternative result data, wherein the preset accelerated computing rule is obtained by simplifying the operation mode of a preset number of computing nodes;
the target data is used as decoding data corresponding to the data frame to be decoded, and whether the currently obtained decoding data reaches the code length of the data frame to be decoded is judged;
if not, updating the first preset enabling signal according to the target data, and executing a step of determining alternative result data from the operation result data according to the first preset enabling signal and the second preset enabling signal.
2. The method of claim 1, wherein determining alternative result data from the operation result data according to a first preset enable signal and a second preset enable signal comprises:
if the second preset enabling signal is at a low level currently, determining operation result data corresponding to the f operation as alternative result data;
and if the second preset enabling signal is at a high level currently, determining alternative result data from the operation result data corresponding to the g operation according to the first preset enabling signal.
3. The method according to claim 1, wherein obtaining target data according to a preset accelerated computing rule and the candidate result data comprises:
calculating the alternative result data according to a preset accelerated calculation rule to obtain accelerated calculation result data;
and performing AND operation on the accelerated calculation result data and preset correction data to obtain target data.
4. The method of claim 1, wherein the updating the first preset enable signal according to the target data comprises:
partial summation is carried out on the target data to obtain partial summation result data;
and taking the summation result data as the current signal value of the first preset enabling signal.
5. The method of claim 1, wherein the second preset enable signal is determined according to a code length of the data frame to be decoded and a preset period algorithm.
6. An apparatus for serial cancellation decoding with a multi-bit parallel structure, the apparatus comprising:
the calculation module is used for acquiring a data frame to be decoded, and respectively performing f operation and g operation on data in the data frame to be decoded to obtain corresponding operation result data;
the determining module is used for determining alternative result data from the operation result data according to a first preset enabling signal and a second preset enabling signal;
the acquisition module is used for acquiring target data according to a preset accelerated computing rule and the alternative result data, wherein the preset accelerated computing rule is obtained by simplifying the operation mode of a preset number of computing nodes;
the judging module is used for taking the target data as decoding data corresponding to the data frame to be decoded and judging whether the currently obtained decoding data reaches the code length of the data frame to be decoded;
and the processing module is used for updating the first preset enabling signal according to the target data and executing the step of determining alternative result data from the operation result data according to the first preset enabling signal and the second preset enabling signal if the target data is not updated.
7. The apparatus according to claim 6, wherein the determining module is specifically configured to determine, if the second preset enable signal is currently at a low level, the operation result data corresponding to the f-operation as the candidate result data;
and if the second preset enabling signal is at a high level currently, determining alternative result data from the operation result data corresponding to the g operation according to the first preset enabling signal.
8. The apparatus according to claim 6, wherein the obtaining module is specifically configured to calculate the candidate result data according to a preset accelerated calculation rule to obtain accelerated calculation result data;
and performing AND operation on the accelerated calculation result data and preset correction data to obtain target data.
9. The apparatus according to claim 6, wherein the processing module is specifically configured to perform partial summation on the target data to obtain partial summation result data;
and taking the summation result data as the current signal value of the first preset enabling signal.
10. The apparatus of claim 6, wherein the second preset enable signal is determined according to a code length of the data frame to be decoded and a preset period algorithm.
CN201811076350.0A 2018-09-14 2018-09-14 Multi-bit parallel structure serial offset decoding method and device Active CN109274460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811076350.0A CN109274460B (en) 2018-09-14 2018-09-14 Multi-bit parallel structure serial offset decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811076350.0A CN109274460B (en) 2018-09-14 2018-09-14 Multi-bit parallel structure serial offset decoding method and device

Publications (2)

Publication Number Publication Date
CN109274460A true CN109274460A (en) 2019-01-25
CN109274460B CN109274460B (en) 2021-01-08

Family

ID=65188434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811076350.0A Active CN109274460B (en) 2018-09-14 2018-09-14 Multi-bit parallel structure serial offset decoding method and device

Country Status (1)

Country Link
CN (1) CN109274460B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110492974A (en) * 2019-08-19 2019-11-22 北京邮电大学 A kind of parallel polarization code coding method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122966A (en) * 2011-04-15 2011-07-13 北京邮电大学 Channel-polarization-based encoder for staggered structure duplication code, and encoding and decoding methods thereof
CN103023618A (en) * 2013-01-11 2013-04-03 北京邮电大学 Random code length polar encoding method
CN104038234A (en) * 2013-03-07 2014-09-10 华为技术有限公司 Decoding method of polar code and decoder
CN104124979A (en) * 2013-04-27 2014-10-29 华为技术有限公司 Polar code decoding method and decoding device
US20160013810A1 (en) * 2014-07-10 2016-01-14 The Royal Institution For The Advancement Of Learning / Mcgill University Flexible polar encoders and decoders
CN105356891A (en) * 2015-11-26 2016-02-24 中国地质大学(武汉) Polarity decoding batch processing method with high resource utilization rate
CN106788453A (en) * 2016-11-11 2017-05-31 山东科技大学 A kind of parallel polarization code coding method and device
CN108365921A (en) * 2017-09-30 2018-08-03 华为技术有限公司 Ploar coding methods and code device, interpretation method and code translator

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122966A (en) * 2011-04-15 2011-07-13 北京邮电大学 Channel-polarization-based encoder for staggered structure duplication code, and encoding and decoding methods thereof
CN103023618A (en) * 2013-01-11 2013-04-03 北京邮电大学 Random code length polar encoding method
CN104038234A (en) * 2013-03-07 2014-09-10 华为技术有限公司 Decoding method of polar code and decoder
EP2953307A1 (en) * 2013-03-07 2015-12-09 Huawei Technologies Co., Ltd. Polar code decoding method and decoder
CN104124979A (en) * 2013-04-27 2014-10-29 华为技术有限公司 Polar code decoding method and decoding device
US20160013810A1 (en) * 2014-07-10 2016-01-14 The Royal Institution For The Advancement Of Learning / Mcgill University Flexible polar encoders and decoders
CN105356891A (en) * 2015-11-26 2016-02-24 中国地质大学(武汉) Polarity decoding batch processing method with high resource utilization rate
CN106788453A (en) * 2016-11-11 2017-05-31 山东科技大学 A kind of parallel polarization code coding method and device
CN108365921A (en) * 2017-09-30 2018-08-03 华为技术有限公司 Ploar coding methods and code device, interpretation method and code translator

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SEUNGHUN OH, HANHO LEE: ""parallel architecure for concatenated polar-crc codes"", 《IEEE》 *
WU YUNFEI, DAI JINCHENG,NIU KAI,DONG CHAO, XIN BIAN: ""Hardware Design and Implementation of Sparse Code Multiple Access"", 《IEEE》 *
XIN BIAN,JINCHENG DAI, KAI NIU,ZHIQIANG HE: ""a low-latency SC polar decoder based on the swquential logic optimization"", 《IEEE》 *
黄胜武: ""Polar Code译码算法的研究与实现"", 《中国优秀硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110492974A (en) * 2019-08-19 2019-11-22 北京邮电大学 A kind of parallel polarization code coding method and device

Also Published As

Publication number Publication date
CN109274460B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
JP7278477B2 (en) Decryption network construction method, speech recognition method, device, equipment and storage medium
Zhang et al. Reduced-latency SC polar decoder architectures
Yuan et al. LLR-based successive-cancellation list decoder for polar codes with multibit decision
KR20060068168A (en) Low complexity LDPC decoding device and method
JP7635396B2 (en) Text generation method, apparatus, electronic device and computer-readable medium
US11275568B2 (en) Generating a synchronous digital circuit from a source code construct defining a function call
CN112200713A (en) Business data processing method, device and equipment in federated learning
US20150113027A1 (en) Method for determining a logarithmic functional unit
US10554226B2 (en) Method for controlling a check node of a NB-LDPC decoder and corresponding check node
KR102607761B1 (en) Method and apparatus for generating a decoding position control signal for decoding using polar codes
CN110679090B (en) Reduced delay error correction decoding
CN109274460B (en) Multi-bit parallel structure serial offset decoding method and device
CN110166060B (en) High-throughput pipeline type polarization code BP decoder and implementation method thereof
US10009041B2 (en) BCH decorder in which folded multiplier is equipped
CN116192159A (en) LDPC coding and decoding method and system equipment medium based on FPGA
Bian et al. A low-latency SC polar decoder based on the sequential logic optimization
CN112821896B (en) Polarization code decoder based on preprocessing and simplified storage, decoding method, electronic equipment and computer readable storage medium
TWI818581B (en) Decoding method and apparatus for polar codes
CN110752893B (en) Approximate decoding method and device for belief propagation of polarization code
CN116781214B (en) Decoding module generation method, device and readable storage medium
JP7437593B2 (en) Computing device and computing method
JP2014045480A (en) High speed add-compare-select circuit
TWI600284B (en) Digital value finder and digital value finding method
CN113872613A (en) Method and device for calculating g function in polar code decoding, electronic equipment and medium
CN115549699A (en) Decoding method and device, electronic equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant