Communication device with low density parity check rotator and method thereof

By designing an LDPC rotator circuit with a parallelism degree of P and using registers and shift circuits to perform rotation operations, the problem of inefficiency of traditional rotator circuits is solved, efficient rotation function execution in the LDPC encoding and decoding process is achieved, and communication is improved. Device throughput and efficiency.

CN118575419APending Publication Date: 2024-08-30ACCELERCOMM LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280089638.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-12-20
Filing Date
2022-12-20
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing LDPC rotator circuit is inefficient in the LDPC encoding and decoding process, resulting in reduced throughput, delay and hardware efficiency of the communication device, and the traditional rotator design has stagnation problems, affecting throughput and efficiency.

Method used

A low-density parity check LDPC rotator circuit is designed, which uses a rotation function with a degree of parallelism P, accepts ceil (Z/P) input blocks through the input end, and provides ceil (Z/P) output blocks at the output end. , using registers and shift circuits to perform left and right shift operations, reducing the need for stalled rotators and improving the delay and efficiency of communication devices.

Benefits of technology

By reducing the need for stalled rotators, the delay and efficiency of the communication device are improved, higher throughput and efficiency are achieved, and it is suitable for efficient execution of rotation functions during LDPC encoding and decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575419A
    Figure CN118575419A
Patent Text Reader

Abstract

A communication device includes a low density parity check (LDPC) rotator circuit (1000, 1300, 1500) including a register bank and configured to have a degree of parallelism P of at least 2, and to rotate a data sequence of Z data values by R positions wherein ceil (Z / P) input blocks (1014, 1310, 1507) of P input values are accepted during a first subset of operations, prior to completion, the first subset of operations being performed on the input blocks (1014, 1310, 1507) of the input blocks (1014, 1310, 1507) of the input blocks (1014, 1310, 1507) of the input values of the input blocks (1014, 1310, 1507) of the input values of the input blocks (1014, 1310, 1507). Ceil (Z / P) output blocks (1015, 1315, 1511) are provided during the second subset of operations. When Z is not a multiple of P, the padding input block is provided by mod (Z, P) Z data values and P-mod (Z, P) padding values (1220, 1401). A second register bank is written to a registered value derived before the second subset of operations begins, and the value is not rewritten before accepting the padding input block, and a P output value in an output block is a function of the registered value in the second register bank.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The field of the invention relates to an LDPC rotator circuit for low density parity check (LDPC) encoding and decoding, a communication device, and a method for calculating LDPC rotation in an LDPC encoder or decoder. The field of the invention is applicable to, but not limited to, channel coding for current and future generations of communication standards. Background Art

[0002] LDPC Coding

[0003] As shown in Figure 1, low-density parity check (LDPC) codes can be used to protect data from errors imposed during unreliable transmission or storage. Data is typically represented by a vector containing K data symbols, each of which can take a value in the range of "0" to "M-1", where M is the cardinality of the code. Although the subject of non-binary LDPC codes has been extensively studied, where M typically takes a value in the set {4, 8, 16, ...}, binary LDPC codes with M=2 are typically used in practical applications. Therefore, for simplicity, the remainder of this background discussion assumes that the data vector 102 includes K bits, each of which can take a value of "0" or "1".

[0004] Known LDPC codes operate using two processes, wherein the first process includes LDPC encoding before unreliable transmission or storage, and the second process includes LDPC decoding thereafter. The LDPC encoder 103 and decoder 104 must employ compatible parameterizations, which can be specified by a parity check matrix (PCM) having N' columns, N'-K rows, and filled with binary values ​​"0" and "1".

[0005] LDPC encoding uses PCM H to convert a vector x 102 of K data bits into a vector y 105 of N' coded bits, where N' is greater than K. This is typically accomplished by setting the first K bits in the coded bit vector (called its systematic bits) equal to the K data bits of vector x 102, and then setting the remaining N'-K bits (called parity bits) so that yH=0 in the Galois Field GF(M), where "0" is a syndrome vector containing N'-K 0-valued bits. As understood in the art, "Galois Field" refers to the case where M=2 means that the binary + with arithmetic operations maps to the XOR function. Thus, it can be said that the first K columns in the PCM correspond to the data bits of vector x 102, and the set of all columns corresponds to the N coded bits of vector y 105.

[0006] During unreliable storage or transmission, the vector y 105 of N' coded bits is prone to errors and is typically converted into a vector 106 of N' coded soft bits, which represent how likely each of the N' coded bits of the vector y 105 is to have a value of "0" or "1". Typically, each soft bit is represented using a log-likelihood ratio (LLR), where:

[0007]

[0008] Therefore, for simplicity, the remainder of this background discussion assumes that all soft bits are represented using LLRs.

[0009] LDPC decoding 104 may then use PCM to convert vector 106 of N' encoded LLRs into a vector of K decoded bits 107. Assuming errors introduced during transmission or storage are not too severe, K decoded bits 107 are typically a reproduction of the K data bits of vector x 102 input to encoder 103.

[0010] 3GPP New Radio LDPC Codes

[0011] Referring back to FIG. 1 , a known schematic diagram of LDPC coding and related signal processing functions in the 3rd Generation Partnership Project (3GPP) New Radio (NR) is shown. As shown in FIG. 1 , LDPC codes are adopted in the 3GPP NR standard for fifth generation (5G) mobile communications [1] to protect data from transmission errors. In this application, K data bits of 102 are formed as a concatenation of three independent bit vectors, wherein the first vector contains K′-L information bits 108, the second vector contains L bits introduced by a cyclic redundancy check (CRC) encoder 109 and the third vector contains K-K′ bits introduced by padding bit insertion 110. After LDPC coding 103, rate matching 111 is used to convert the resultant vector 105 of N′ coded bits into E r After an unreliable transmission, down-rate matching 113 is used to convert E rThe vector of rate matched LLRs 114 is converted into a vector of N' encoded LLRs 106, which are input into the LDPC decoder 104. Here, the N' encoded LLRs 106 may also include contributions from LLRs received during a previous transmission in a hybrid automatic repeat request (HARQ) process and stored using an HARQ buffer 115. After LDPC decoding, padding bit removal 116 may be used to remove K-K' padding bits from the vector of K decoded bits 107. A CRC decoder 117 may then be used to check the CRC within the composite vector of K' decoded bits 118 to determine if there are any uncorrected transmission errors. If not, the CRC decoder may remove L CRC bits and output K'-L decoded information bits 119. In either case, the CRC decoder may also output a binary flag 120 to indicate whether the CRC check was successful.

[0012] 3GPP New Radio LDPC codes are specified by PCM derived from two base graphs, called BG1 and BG2. Figures 2 and 3 show known representations of BG1 200 and BG2 300 from 3GPP New Radio, respectively. Each base graph contains a matrix filled with binary values ​​"0" and "1". BG1 200 has n1=n c,1 +n e,1 = 68 columns, divided into n on the left c,1 = 26 core columns 201 and n on the right e,1 = 42 extended columns 202. BG1 200 has m1 = m c,1 +n e,1 = 46 rows, divided into the top m c,1 = 4 core rows 203 and bottom m e,1 =n e,1 = 42 extended rows 204. At the same time, BG2 300 has n2 = n c,2 +n e,2 = 52 columns, divided into n on the left c,2 = 14 core columns 301 and n on the right e,2 =38 extended columns 302. BG2 300 has m2=m c,2 +n e,2 = 42 rows, divided into the top m c,2 = 4 core rows 303 and bottom m e,2 =n e,2 =38 extended rows 304.

[0013] In both base graphs, the submatrix formed by the intersection of core columns 201 and 301 and core rows 203 and 303 is densely populated with binary values ​​“1”. In fact, in each core row 203 in BG1 200, nc,1 = 19 of the 26 core columns 201 have a binary value of "1". c,2 = Up to 10 of the 14 core columns 301 have a binary value of "1" in each core row 303 in BG2 300. The submatrix formed by the intersection of the core columns 201 and 301 and the extension rows 204 and 304 is sparsely filled with binary values ​​"1", except for the first two columns, which are called punctured core columns, and they are densely filled with binary values ​​"1". In fact, in any extension row 204 in BG1 200, n c,1 = No more than 9 of the 26 core columns 201 have a binary value of "1". At the same time, in any extended row 304 in BG2 300, n c,2 = No more than 5 of the 14 core columns 301 have a binary value of "1".

[0014] The submatrix formed by the intersection of the extended columns 202 and 302 and the core rows 203 and 303 is completed by filling the base graphs BG1 200 and BG2 300 with binary values ​​of 0. The square submatrix formed by the intersection of the extended columns 202 and 302 and the extended rows 204 and 304 is mostly filled with binary values ​​"0" except for the elements located on the diagonal from the upper left corner to the lower right corner of the matrix, which use binary values ​​"1" in both base graphs BG1 200 and BG2 300. It should be noted that in both base graphs, some extended rows 204 and 304 are orthogonal to one or two of their adjacent extended rows. Here, if the logical "AND" of two rows (or two columns) is a vector containing only binary values ​​"0", they can be considered to be orthogonal to each other.

[0015] It should be noted that, depending on the effect of rate matching, some of the extended columns 202 and 302 and corresponding extended rows 204 and 304 may be deleted from the base graph at runtime before being used to generate PCM. Here, the extended row 204 and 304 corresponding to a particular extended column 202 and 302 is one that shares a binary value of 1 with it. This deletion reduces the number of extended columns 202 and rows 204 in BG1 200 from n e,1 Reduce to n' e,1 , and the number of expanded columns 302 and rows 304 in BG2 300 is increased from n e,2 Reduce to n' e,2 Therefore, for BG1 200 and BG2 300, the number of columns becomes n'1 = n c,1 +n' e,1 and n'2 = n c,2 +n' e,2 , and for BG1200 and BG2 300 respectively, the number of rows becomes m'1=m c,1 +n'e,1 and m'2=m c,2 +n' e,2 .

[0016] The PCM used for a particular LDPC encoding and decoding process at runtime is obtained by selecting one or the other of the base graphs BG1 200 and BG2 300 and boosting it using a boosting factor Z, for which up to Z is supported in 3GPP New Radio. 最大 =384. Here, each binary element in the base graphs BG1 200 and BG2 300 is replaced by a submatrix having Z x Z dimensions. Therefore, each row or column in the base graphs BG1 200 and BG2 300 corresponds to a set of Z rows (called block rows) or a set of Z columns (called block columns) in the PCM. In addition, the PCM derived from BG1 200 includes N'=n'1Z columns and N'-K=m'1Z rows, while the PCM derived from BG2 300 includes N'=n'2Z columns and N'-K=m'2Z rows. In the case of BG1 200, K=22Z and the first 22 block columns correspond to data bits x 102. At the same time, in the case of BG2 300, K=10Z, where the first 10 block columns correspond to data bits 102. In 3GPP New Radio, the values ​​of K and Z are selected according to a set of rules, which depends on the value of K'.

[0017] Binary elements with value "0" in the base graph are replaced with a Z x Z submatrix filled with binary value "0". In contrast, binary elements with value "1" in the base graph are replaced with a submatrix in which the Z element takes on binary value "1" and the remaining Z x (Z-1) elements take on binary value "0". In the extended block columns, these Z1-valued binary elements are located on a diagonal extending from the upper left corner to the lower right corner of the Z x Z submatrix 401. In contrast, in the core block columns, these Z1-valued binary elements are positioned according to a circular rotation 402 of this diagonal, as shown in FIG4. More specifically, FIG4 illustrates a known matrix interpretation of various exemplary rotations of applying an example lifting factor Z in order to convert between a natural ordering and a rotated ordering of the variables. The diagonal for each 1-valued binary element in the core block column is rotated a different number of positions in the range of "0" to "Z-1", depending on the specific base graph and the value of Z selected at runtime.

[0018] Conventional LDPC decoder implementation

[0019] While many LDPC decoder implementations have been proposed before, this background discussion focuses on a row-parallel hierarchical belief propagation implementation [2], as shown in FIG5 . FIG5 shows a known row-parallel hierarchical belief propagation implementation of an LDPC decoder, in which 3GPP New Radio LDPC codes are applied. In general, this type of implementation can be designed to support an arbitrary number of base graphs, with arbitrary dimensions and a set of supported lifting factors Z at runtime. However, for simplicity, this background discussion considers an implementation specifically designed to provide runtime support for 3GPP New Radio base graphs and all corresponding lifting factors Z. The implementation of [2] 500 includes n c,最大 =max(n c,1 ,n c,2 ) core variable node (VN) memory, an extended VN memory 502, n c,最大 A rotator 505 and a check node (CN) processor, all of which operate under the control of a controller 506. 最大 Each of the core VN memories 503 is connected via nc, 最大 A corresponding one of the rotators 505 is connected to an input-output (IO) port 504 of the CN processor 501. Meanwhile, the extended VN memory 502 is directly connected to the IO port 504 of the CN processor 501. Therefore, the CN processor 501 is connected to a total of n rotators 505 or directly. c,最大 +1 VN memories 502 and 503. VN memories 502 and 503, rotator 505 and CN processor 501 can be designed to employ P degrees of parallelism so that each connection can transmit P number of LLRs at a time. Therefore, different memory configurations are known.

[0020] In the row-parallel architecture considered, each n in PCM c,1 or c,2 The core block columns are mapped to different core VN memories 503, and n' e,1 or n' e,2 The set of extended block columns is mapped to the extended VN memory 502. Here, the extended VN memory 502 includes n' e,1 or n' e,2 sub-memory, each sub-memory is mapped to a different one of the extended block columns. It should be noted that there is only a single binary value "1" in each of the extended block columns 202 and 302 of the base graphs of Figures 2 and 3, respectively. The inventors of the present invention have recognized and appreciated that each sub-memory in the extended VN memory 502 is equally mapped to the m' corresponding to the row of the base graph that accommodates this binary value "1". e,1 or m' e,2One of the extended block rows. The LDPC decoding process is initialized by loading each consecutive Z LLR sets from the vector of N' encoded LLRs 106 into the VN memory or sub-memory corresponding to each consecutive block column in the PCM. It should be noted that the LLRs loaded into the core VN memory 503 corresponding to the first two block columns (called punctured block columns) usually take the value of 0 in the 3GPP New Radio LDPC code. At the same time, the LLRs corresponding to the K-K' padding bits usually take larger positive LLR values.

[0021] Conventional LDPC decoder implementation uses multiple iterations to perform the LDPC decoding process, wherein each iteration completes a pass on the PCM. Each iteration includes the processing performed on each block row of the PCM, wherein the processing order of the block rows in each iteration is determined by a hierarchical belief propagation plan. The processing of each block row of the PCM consists of multiple LDPC decoding functions, wherein each function performs processing on a group of P rows within the block row. Each LDPC decoding function includes a first substep and a second substep. Multiple processes are performed during each substep, and these processes can be distributed over multiple continuous clock cycles.

[0022] More specifically, the LDPC decoding process is accomplished in multiple steps. Each step processes the LLRs associated with P rows within the same block row of PCM, where these rows are typically continuous. Typically, a complete set of rows within a block row is processed during a set of ceil(Z / P) consecutive steps, where each consecutive step typically processes a set of consecutive P rows in sequence. More specifically, in the case where Z is not divisible by P, P rows are processed during each of floor(Z / P) consecutive steps, while mod(Z,P) rows are processed during the remaining steps. Note that the "ceil" function rounds the fraction up to the smallest integer with a larger or equal value. In contrast, the "floor" function rounds the fraction down to the largest integer with a smaller or equal value. Finally, the "mod" function provides the remainder portion of the fraction.

[0023] In addition, the block rows are typically processed in an order specified by a schedule, which may repeat the processing of some or all block rows in multiple iterations. During each step of the LDPC decoding process, a binary value "1" in the core columns 201 and 301 of the corresponding row of the base graph is used to activate the associated rotator 505, core VN memory 503 and CN processor IO port 504 of Figure 5.

[0024] During the first sub-step of each step of the LDPC decoding process, each activated core VN memory (such as core VN memory 503 in FIG. 5 ) is read under the direction of a controller (such as controller 506 in FIG. 5 ) to provide the P LLRs required to complete the processing of P rows of PCM. In addition, each of the activated rotators (such as activated rotator 505 in FIG. 5 ) is configured to rotate these P LLRs to the order required to complete the processing, which is performed under the direction of the controller and according to the rotation used to convert the base images 200 and 300 into PCM. Each activated rotator provides a corresponding set of P LLRs to the input of a corresponding IO port (such as IO port 504 of CN processor 501 in FIG. 5 ). The inventors of the present invention have recognized and appreciated the need to solve the problem of implementing an effective LDPC rotator circuit for a practical communication device using LDPC encoding and / or decoding.

[0025] In addition, during the first sub-step of each step of the LDPC decoding process corresponding to the extended rows 204 and 304 in the base graph, the CN processor 501 is also provided with a set of P LLRs read from the extended VN memory (such as the extended VN memory 502 in Figure 5). More specifically, these LLRs are provided by a specific sub-memory in the extended VN memory mapped to the extended rows 204 and 304. In contrast, the extended VN memory is disabled during the first sub-step of each step of the LDPC decoding process corresponding to the core rows 203 and 303 in the base graph, and as a result, it does not provide any LLRs to the CN processor.

[0026] In the manner described above, in the first sub-step of each step of the LDPC decoding process, the activated subset of the connections to the input of the IO port of the CN processor each provides it with a set of P LLRs. In response, the CN processor performs P sets of calculations in parallel for the P associated rows of PCM. This can be achieved using various algorithms [3], including, for example, sum-product, minimum sum, normalized minimum sum, offset minimum sum, or adjusted minimum sum. The CN processor typically uses internal memory to assist in these calculations, using the results obtained during the previous iteration of processing the P associated rows of PCM. These results are typically overwritten by new results, which can be used to assist in the next iteration of processing the P associated rows of PCM. In the second sub-step of each step of the LDPC decoding process and after all calculations performed by the CN processor are completed, it can use the output from its IO port to provide a set of P LLRs for each of its connections, which are activated in the current step of the LDPC decoding process.

[0027] For example, in the first substep of the LDPC decoding process performed on a set of P rows in PCM, the CN processor can use a min-sum algorithm to combine the P LLRs provided by the input to each of its A activated IO ports. Here, we can use the notation a i,p represents the input LLR, where i is in the range of 1 to A and indicates which of the A activated IO ports the LLR is set on, and p is in the range of 1 to P and indicates which of the P LLRs this LLR is set on that IO port. In the first calculation, the CN processor may perform a calculation corresponding to each input LLR a i,p Calculation of b i,p =a i,p -m i,p , where m i,p is the corresponding internal storage value, which is initialized to "0" at the beginning of the LDPC decoding process and updated in each iteration of the processing of P rows in PCM. After this, the absolute value |b is identified for each value of p i,p |, and the corresponding values ​​of index i are called min1 and min2, respectively. In addition, for each value of p, a symbol sign (b i,p ) and call it sign p , where sign(x) is "+1" if x is not less than "0", and "-1" otherwise.

[0028] In the second sub-step, the CN processor may perform the calculation m 最小1,p =sign(b 最小1,p )x sign p x|b 最小2,p |, corresponding to the input LLR a i,p , for each value of p, with index i equal to at least 1. At the same time, calculate m i,p =sign(b i,p )x sign p x|b 最小1,p |All other input LLRs corresponding to each value of p are performed. Here, m i,p The value of is written into the internal storage value for each combination of i and p so that it can be used during the next iteration of processing of P rows, as described above. Finally, the value corresponding to the input LLR a i,p , the CN processor can perform computation d i,p =b i,p +m i,p , to obtain an output LLR d for each of the P LLRs provided as output on each of the A activated IO ports i,p .

[0029] After this, in the second sub-step, in each step of the LDPC decoding process, each activated rotator is configured to rotate the set of P LLRs it provides into an order suitable for storage in the corresponding activated core VN memory. Similarly, the function of the traditional rotator circuit will be described in the following sections. The inventors of the present invention have recognized and understood another problem described below, which can be solved by the present invention. In addition, in the second sub-step of each step of the LDPC decoding process, the CN processor can also calculate the correction sub-bits corresponding to the P associated rows of PCM. In addition, during the second sub-step of each step of the LDPC decoding process corresponding to the extended row (for example, 204 and 304 in the base diagrams BG1 200 and BG2 300 of Figures 2 and 3), the set of P LLRs provided by the CN processor to the extended VN memory can be written to one of its sub-memories mapped to the extended row.

[0030] After the decoding iterations within the LDPC decoding process are completed, a vector of N' decoded LLRs may be obtained by concatenating the most recently stored Z LLRs in VN memories 502 and 503. The signs of the first K decoded LLRs may then be considered to obtain a vector of K decoded bits 107, where positive LLRs may be converted to a binary value of "0" and negative LLRs may be converted to a binary value of "1".

[0031] In summary, FIG. 5 shows a row-parallel design of an LDPC decoder. Here, the CN processor 501 accepts input LLRs from multiple column memories 503 in each step. This enables processing of each of these columns in the same step, thereby achieving high throughput. In quasi-cyclic LDPC codes similar to 3GPP, the base graph indicates that different cyclic rotation values ​​should be applied to the LLRs read from each block column RAM. This results in the CN processor 501 being connected to each column RAM through a rotator circuit 505, each of which can operate with different rotation values. In order to achieve high throughput, the CN processor 501 can operate P rows in parallel within the Z rows of the block row. This means that the CN processor 501 needs P LLRs from each block column in each step. Therefore, the output of the RAM and the input and output of the rotator will have to transmit P LLRs in each step. For the RAM, this will result in each address containing P LLRs. The rotator must also operate on P LLRs, with the additional challenge that the rotation value may not be aligned with P. In addition, Z may also not be aligned with P. It should be noted that during the processing of different block rows, the column RAM will be read. Each block row can have a different rotation value. This prevents the elements in each column RAM from being arranged in a particular way for a given rotation, requiring the rotator to apply different rotations when operating on different block rows at run time. Similarly, the inventors of the present invention have recognized and appreciated another problem, namely the problem of implementing an efficient LDPC rotator circuit for a practical communication device using LDPC encoding or decoding, which can be solved by the present invention. Summary of the invention

[0032] The present invention provides a circuit for an LDPC rotator and a method for performing LDPC rotation using parallel processing in an LDPC encoder or decoder, for example, which reduces the number of operations. Specifically, examples of the present invention detail an effective mapping between hardware components and algorithm features. Specific exemplary embodiments of the present invention are set forth in the dependent claims. These and other aspects of the present invention will become apparent and are set forth with reference to the exemplary embodiments described below.

[0033] In a first aspect of the present invention, a communication device includes: a low-density parity check (LDPC) rotator circuit having an input terminal and an output terminal, wherein the LDPC rotator circuit is configured to have a parallelism P of at least 2 and is configured to perform a rotation function, which includes a series of operations to rotate a data sequence including a first number Z of data values ​​by a second number R of positions, wherein during a first subset of the series of operations, a series of ceil (Z / P) input blocks are accepted through the input terminal, each input block including P input values, and wherein during a second subset of the series of operations, a series of ceil (Z / P) output blocks are provided through the output terminal, each output block including P output values, wherein the second subset of operations is started before the first subset of operations is completed; wherein the LDPC rotator circuit includes a controller or is operably coupled to the controller, and the controller is arranged to control the rotation function performed by the LDPC rotator circuit. The LDPC rotator circuit includes: a first group of one or more registers, which are written with one or more register values, the one or more register values ​​are derived from one or more input values, the one or more input values ​​are accepted by the input terminal during one or more previous operations, and the first group of one or more registers are operably coupled to a controller; a second group of one or more registers, which are operably coupled to the controller; at least one shift circuit, which is operably coupled to the controller, configured to receive a shifted input value operably coupled to P input values, and apply left and right shifts to provide a shifted output value; and at least one combinational circuit, which is operably coupled to the controller and is operably coupled to the shifted output value, at least one of the first group of one or more registers, and the second group of one or more registers; and configured to provide P output values ​​to the output terminal. A series of floor(Z / P) number of ceil(Z / P) input blocks includes input values ​​provided by a number P of Z data values, and one of the series of ceil(Z / P) input blocks is a fill input block, which includes input values ​​provided by a value mod(Z,P) in the Z data values ​​and a value P-mod(Z,P) in the fill value when Z is not a multiple of P. A second set of one or more registers are written to one or more register values ​​under the direction of the controller, the one or more register values ​​are derived from one or more input values, the one or more input values ​​are accepted by the input terminal before the start of the second subset of the series of operations, and wherein the one or more register values ​​are not rewritten before the input terminal accepts the fill input block, and at least one of the P output values ​​in at least one of the output blocks is a function of at least one register value in the second set of one or more registers. In this way, the need for a stall rotator circuit is alleviated, thereby improving the latency problem, throughput and efficiency of the communication device. In this way, the rotator circuit can efficiently generate output blocks based on simple shift and combination circuits, improving the efficiency of the communication device.

[0034] In an optional example, the degree of parallelism P is common to all rotation functions performed by the LDPC rotation circuit, and the first number Z of data values ​​and the second number R of positions vary between the rotation functions. In this way, the communication device provides runtime flexibility in the Z and R parameters, which enables the desired runtime flexibility in block length, coding rate, and base graph selection in standardized applications of LDPC codes.

[0035] In an optional example, the series of operations includes at least ceil(Z / P)+2 operations, wherein a first subset of the series of operations includes at least ceil(Z / P) operations, and a second subset of the series of operations includes at least ceil(Z / P) operations. In this way, the delay of the rotator circuit is very small, which improves the delay problem, throughput and efficiency of the communication device.

[0036] In an optional example, the first set of one or more registers are written with one or more register values, the register values ​​being derived from one or more input values ​​during at least one operation of the LDPC rotator circuit, and at least one of the P output values ​​in at least one of the output blocks is a function of at least one register value in the first set of one or more registers. In this way, the first set of registers can effectively store input values ​​that are not needed by the current output block but are needed by the next output block.

[0037] In an optional example, the fill input block is configured in one of the following ways:

[0038] P-mod(Z,P) fill values ​​occupy the last P-mod(Z,P) positions in the fill input block, and wherein P-mod(Z,P) fill values ​​are set to zero;

[0039] P-mod(Z,P) fill values ​​occupy the first P-mod(Z,P) positions in the fill input block, and wherein the P-mod(Z,P) fill values ​​are set to zero;

[0040] P-mod(Z,P) padding values ​​occupy the last P-mod(Z,P) positions in the padding input block, and wherein the P-mod(Z,P) padding values ​​are set equal to the first P-mod(Z,P) input value from the input block that immediately follows the padding input block in the series of ceil(Z / P) input blocks;

[0041] the P-mod(Z,P) padding values ​​occupy the last P-mod(Z,P) positions in the padding input block, and the padding input block is the last input block in a series of ceil(Z / P) input blocks, and wherein the P-mod(Z,P) padding values ​​are set equal to the first P-mod(Z,P) input value from the first input block in the series of ceil(Z / P) input blocks;

[0042] The P-mod(Z,P) fill values ​​occupy the first P-mod(Z,P) positions in the fill input block, and where

[0043] The P-mod(Z,P) padding values ​​are set equal to the last P-mod(Z,P) input value from the input block that immediately precedes the padding input block in the series of ceil(Z / P) input blocks;

[0044] The P-mod(Z,P) fill values ​​occupy the first P-mod(Z,P) positions in a fill input block, and the fill input block is the first input block in a series of ceil(Z / P) input blocks, and where the P-mod(Z,P) fill values ​​are set equal to the last P-mod(Z,P) input value from the last input block in the series of ceil(Z / P) input blocks.

[0045] In this manner, the rotator circuit may alleviate the need to stall the rotator circuit when processing fill values, thereby improving latency issues, throughput, and efficiency of the communication device.

[0046] In an optional example, a first input block in a series of ceil(Z / P) input blocks contains a mod(R,Z)+1th data value, which is provided to an input of the LDPC rotator circuit during a first operation in a first subset of operations, and wherein each successive input block is provided to the input of the LDPC rotator circuit during each successive operation in the first subset of operations, wherein during an operation in the first subset of operations, an input block containing a first data value in the data sequence is provided to the input of the LDPC rotator circuit after an operation in which an input block containing a last data value in the data sequence is provided to the input of the LDPC rotator circuit. In this manner, the rotator circuit can alleviate the need to stall the rotator circuit when processing padding values, thereby improving latency issues, throughput, and efficiency of the communication device.

[0047] In an optional example, at least one combinational circuit includes a set of OR gates, and wherein the left shift and right shift applied by at least one shift circuit use zero padding. In this way, the combinational circuit includes only simple logic gates, thereby improving the efficiency of the communication device.

[0048] In an optional example, the second set of one or more registers is also operably coupled to at least one shift circuit and arranged to provide at least one combinational circuit with one or more shifted output values ​​derived from one of: a fill input block; an input block immediately following the fill input block in a series of ceil(Z / P) input blocks; or a first input block in a series of ceil(Z / P) input blocks when the fill input block is the last input block in the series of ceil(Z / P) input blocks. In this way, the rotator circuit can alleviate the need to stall the rotator circuit when processing fill values, thereby improving latency issues, throughput, and efficiency of the communication device.

[0049] In an optional example, the one or more masking circuits are arranged to connect the second set of one or more registers and the at least one shift circuit to the at least one combinational circuit, wherein the one or more masking circuits are configured to determine whether the combinational input value is derived from the shifted output value or the dummy value. In this way, the shifted output value can be effectively disabled from being provided to the combinational circuit when it is not needed.

[0050] In an optional example, the first group of one or more registers includes a register, the second group of one or more registers includes a register, the input value is provided to at least one shift circuit as a shift input value, and wherein the registered values ​​of the first group of one or more registers and the second group of one or more registers are provided by the shift output value, and wherein the combined input value is provided by: the registered value of the second group of one or more registers via one or more masking circuits; and the registered value of the first group of one or more registers; and the shift output value of at least one shift circuit. In this way, the rotation function can be efficiently completed while alleviating the need for stalling the rotator circuit when processing fill values, thereby improving the latency problem, throughput and efficiency of the communication device.

[0051] In an optional example, the first group of one or more registers includes two registers, wherein an input end of a second register in the first group of one or more registers is operably coupled to an output end of a first register in the first group of one or more registers to form a shift register; wherein the second group of one or more registers includes two registers, which are written to an input block containing a mod(R, Z)+1th data value in a series of ceil(Z / P) input blocks, and are written to: an input block in a series of ceil(Z / P) input blocks immediately following an input block containing a mod(R, Z)+1th data value in a series of ceil(Z / P) input blocks; or a first input block in a series of ceil(Z / P) input blocks when the input block containing a mod(R, Z)+1th data value in a series of ceil(Z / P) input blocks is the last input block in the series of ceil(Z / P) input blocks; and wherein the second group of one or more registers is configured not to be overwritten before the end of the second subset of operations. In this way, the rotate function can be completed efficiently while alleviating the need to stall the rotator circuit when processing fill values, and at the same time enabling two consecutive rotate functions to be completed without any pipeline warm-up and tail-off, thereby improving latency issues, throughput and efficiency of the communication device.

[0052] In an optional example, at least one multiplexing circuit is configured to multiplex the register values ​​of the first and second groups of registers and provide a shift input value for at least one shift circuit. In this way, the input required by the combinational circuit can be effectively provided.

[0053] In an optional example, the rotation function performed by the LDPC rotator circuit includes a first rotation function pipelined with a second rotation function, wherein the first operation in the first operation subset of the second rotation function is before the last operation in the second operation subset of the first rotation function, and wherein the first operation in the second operation subset of the second rotation function is immediately after the last operation in the second operation subset of the first rotation function. In this way, two consecutive rotation functions need to be completed without any pipeline warm-up and tail-off, thereby improving the latency problem, throughput and efficiency of the communication device.

[0054] In an alternative example, when performing a rotation function where Z is less than P, the rotation function is performed in a single operation. In this way, the special case described can be handled using a minimum number of operations, thereby improving latency issues, throughput, and efficiency of the communication device.

[0055] In an optional example, when performing a rotation function in which Z is a multiple of P, the series of operations includes at least ceil(Z / P)+1 operations. In this way, the special case described can be handled with a minimum number of operations, thereby improving latency issues, throughput, and efficiency of the communication device.

[0056] In a second aspect of the present invention, a method for calculating LDPC rotations in an LDPC encoder or decoder including a low-density parity check LDPC rotator circuit is described, the rotator circuit having: an input terminal; an output terminal; a first group of one or more registers, which are written with one or more register values, which are derived from one or more input values ​​received by the input terminal during one or more previous operations, the rotator circuit being operably coupled to a controller; a second group of one or more registers, which are operably coupled to the controller; and a parallelism P of at least 2. The method comprises: configuring a rotation function by an LDPC rotator circuit, the rotation function comprising a series of operations to rotate a data sequence comprising a first number Z of data values ​​by a second number R of positions, accepting a series of ceil(Z / P) input blocks through an input terminal during a first subset of the series of operations, each input block comprising P input values, and receiving shifted input values ​​operatively coupled to the P input values, and applying left and right shifts through at least one shift circuit to provide shifted output values; providing a series of ceil(Z / P) output blocks through an output terminal during a second subset of the series of operations, each output block comprising P output values, output by at least one combinational circuit operatively coupled to a controller, and arranged to operatively combine outputs originating from at least one of the following: the controller, the shifted output values, a first set of one or more registers, and a second set of one or more registers, and providing the P output values ​​to the output terminal; wherein the second subset of operations begins before the first subset of operations is completed. The LDPC rotator circuit comprises a controller or is operatively coupled to a controller, the controller being arranged to control the rotation function performed by the LDPC rotator circuit. A series of floor(Z / P) input blocks of ceil(Z / P) number includes input values ​​provided by a number P of Z data values, and one of the series of ceil(Z / P) input blocks is a fill input block, which includes input values ​​provided by a value mod(Z,P) of the Z data values ​​and a value P-mod(Z,P) of the fill value when Z is not a multiple of P. The method also includes: before the start of a second subset of the series of operations, accepting one or more input values ​​through an input terminal, deriving one or more register values ​​from the one or more input values, and writing a second set of one or more registers with the one or more derived register values ​​under the direction of the controller. Before the fill input block is accepted at the input terminal, the derived one or more register values ​​are not overwritten, and at least one of the P output values ​​in at least one of the output blocks is a function of at least one register value in the second set of one or more registers. In this way, the need for a stall rotator circuit is alleviated, thereby improving latency issues, throughput, and efficiency of the communication device. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Additional details, aspects and embodiments of the present invention will be described by way of example only with reference to the accompanying drawings. In the accompanying drawings, similar reference numerals are used to identify identical or functionally similar elements. The elements in the accompanying drawings are shown only for simplicity and clarity and are not necessarily drawn to scale.

[0058] FIG. 1 shows a known schematic diagram of LDPC coding and related signal processing functions in 3GPP New Radio.

[0059] Fig. 2 shows a known representation of a BG1 from 3GPP New Radio.

[0060] Fig. 3 shows a known representation of a BG2 from 3GPP New Radio.

[0061] FIG. 4 shows a known matrix interpretation of various exemplary rotations applying an example lifting factor Z to convert between a natural ordering and a rotated ordering of the variables.

[0062] FIG. 5 shows a known row-parallel hierarchical belief propagation implementation of an LDPC decoder, where 3GPP New Radio LDPC codes are applied.

[0063] Figure 6 A flow chart showing the functionality of a conventional LDPC rotator process.

[0064] Figure 7 A conventional rotator circuit diagram is shown, which suffers from a stall problem.

[0065] Figure 8 The following diagram shows the benign case where R=2, Z=14, P=4 and no additional operation is required, and the case where additional stalling operation is required when R=7, Z=14, P=4. Figure 7 The values ​​of various signals in a traditional rotator.

[0066] Fig. 9 The values ​​of various signals in parallel functions for four instances of a conventional rotator are shown, each signal for a different block column with a different R within a single block row.

[0067] Fig.10 A first example circuit diagram of a first improved rotator according to some examples of the present invention is shown, which can avoid or alleviate the aforementioned stagnation problem.

[0068] Fig.11 Some examples of the present invention are shown. Fig.10 An exemplary flow chart of the functionality of the first improved rotator.

[0069] Fig.12The values ​​of various signals in parallel functions of four instances of the first improved rotator according to some examples of the present invention are shown, each signal for a different block column with a different R within a single block row.

[0070] Fig.13 A second example circuit diagram of a second improved rotator according to some examples of the present invention is shown, which can avoid or alleviate the aforementioned stagnation problem.

[0071] Fig.14 The values ​​of various signals in parallel functions of four instances of the second improved rotator according to some examples of the present invention are shown, each signal for a different block column with a different R within a single block row.

[0072] Fig.15 A third example circuit diagram of a third improved rotator according to some examples of the present invention is shown, which can avoid or alleviate the above-mentioned stall problem and realize pipeline processing of block rows.

[0073] Fig.16 Some examples of the present invention are shown. Fig.15 An exemplary flow chart of the functionality of the third improved rotator.

[0074] Fig.17 The values ​​of various signals in parallel functions of four instances of the third improved rotator according to some examples of the present invention are shown, each signal for a different block column with a different R within a pair of pipeline block rows.

[0075] Fig.18 Methods of calculating LDPC rotation in an LDPC encoder or decoder according to some examples of the present invention are shown.

[0076] Fig.19 An example of an example software-based architecture according to some examples of the present invention is shown. DETAILED DESCRIPTION

[0077] The above background discussion has described in detail the requirements for performing rotation functions during LDPC encoding and decoding. In actual communication devices, these functions can be performed by LDPC rotator circuits. However, the following discussion will recognize that the traditional implementation of LDPC rotator circuits is inefficient, which reduces the throughput, delay, hardware efficiency and power efficiency of the communication device that implements LDPC encoding or decoding. This brings about a discussion of some features of the present invention, which is intended to provide a solution for the effective implementation of LDPC rotator circuits.

[0078] Traditional Rotator Implementation

[0079] The rotation function described in the known conventional LDPC decoder implementation has an input including Z data values ​​and an output including these same Z data values, but in a rotated order. More specifically, the amount of rotation applied by the rotation function can be described by a value R, which takes values ​​in the range of 0 to Z-1. When the rotation of R is applied, the element in the input with a specific index k in [0, Z-1] becomes the element in the output of the rotation function with index mod(kR,Z). It should be noted that the rotation of R'>=Z is equivalent to the rotation of R=mod(R',Z). In addition, the rotation of R is equivalent to rotating ZR in the opposite direction. It should be noted that in the case of the LDPC decoder of Figure 5, the input of the rotator 505 can be provided by a RAM such as a VN memory 503, or by a processor such as a CN processor 501, as discussed in the above section. In addition, in the LDPC decoder, each of the Z data values ​​represents an LLR, which is usually represented by a fixed-point binary complement number. It should be noted that according to the runtime flexibility of the LDPC encoder and decoder described in the background discussion, the rotation function also needs to support runtime flexibility of the values ​​of R and Z. More specifically, the values ​​of R and Z can vary between rotation functions.

[0080] It can be appreciated that, similar to the rotator of the LDPC decoder, a rotator is also used during LDPC encoding. Although, as described above, the rotator in the LDPC decoder operates on LLR, it can be appreciated that the rotator in the LDPC encoder operates on bits. More specifically, before combining P information bit blocks using the XOR function, a rotator is used in the LDPC encoder to rotate them so as to generate parity bits. In addition, although the discussion in the above section emphasizes the 3GPP LDPC code, which represents a specific implementation of a quasi-cyclic LDPC code, a similar concept is used in the quasi-cyclic LDPC code of other applications, so it also requires a rotator. Therefore, it is envisioned that the concepts described herein are equally applicable to such other applications.

[0081] Figure 7 shows a conventional circuit with a parallelism P to implement the rotation function, while Figure 8 The output from the rotator is shown operation by operation. For example, in the case of a field programmable gate array (FPGA) or application specific integrated circuit (ASIC) implementation, the rotator operates on a series of consecutive operations, where each operation can be implemented as one clock cycle. Or, for example, in the case of a single instruction multiple data (SIMD) software implementation, each operation can be implemented as several clock cycles. For ease of explanation, the rotator will be described simultaneously. Figure 7 and Figure 8 .exist Figure 8, Z=14, P=4, and two examples are shown, with the first example 811 having R=2, and the second example 812 having R=7. Here, the values ​​706, 708, 710 in table 808 represent element indices in the range 0 to Z-1, rather than literal values. The purpose of the rotator is to operate on a set of Z data values. These Z data values ​​are arranged into blocks, where each block contains P data values, which are then called blocks of P input values. There are ceil(Z / P) blocks that contain a set of blocks.

[0082] Figure 8 The values ​​are shown arranged sequentially in a group of blocks 813 . Figure 8 The combiner output 710 shows how each operation outputs a rotated block, and the values ​​in the output block are equal to the Z data values ​​of the original group, but the order in which they are output has been rotated by the amount R. Figure 8 In , a set of Z data values ​​includes Z=14 values. The rotator can only accept a block of P input values ​​as input 706 per operation.

[0083] A set of Z data values ​​is typically arranged in a set of blocks, as this is what a typical implementation requires. More specifically, in RAM, each block is mapped to an address in RAM, where each address has a capacity for P values. Likewise, the CN processor processes P rows in each operation, so it requires a block of values ​​input for each operation from each active rotator, and the CN processor writes the block of values ​​to the appropriate RAM during each operation. When a set of blocks is stored in RAM, etc., the rotator has an output "block index" 707, which is used to select the block input to the rotator.

[0084] Since mod(Z,P) is not equal to zero in the general case, there are some padding values ​​802 in the last block to complete the value of P=4. Figure 8 When mod(Z,P)>0, there will also be some padding values ​​in the output to ensure that all modules contain P input values.

[0085] Figure 8 The function of a conventional rotator based on a one-by-one operation is shown. Two examples are provided. The first example 811 shows a benign case, where Figure 7 The circuit can work without problems. However, the second example 812 shows a problematic situation, which will be described in detail below.

[0086] Figure 8The benign example 811 of shows that the output block from the rotator can include values ​​from a set of input blocks located in two different input blocks. Two input blocks within two cycles are required to form the first output, and therefore the function first starts with a warm-up operation 601, during which the first read is completed, as Figure 6 The first block of input is the block with the lowest index, which contributes to the first block output. After this, successive blocks are input in successive clock cycles, wrapping back to the first block after the last block. Register 702 is used to store the first reading of the first operation so that it can be combined with the second reading in the second operation to give the first output. To achieve this, register 702 is shifted by left shift 721, while block input 706 is shifted by right shift 722. It should be noted that "left shift" means that the element is moved towards the least significant element. "Right shift" means that the element is moved towards the most significant element. In other words, "left shift" reduces the index of the shifted element, while "right shift" increases the index of the shifted element. For example, applying a right shift of 1 position to the string "hello" results in "ohell". It can be observed that when a shift is performed, only some of the bits input to the shifter appear in the shifted output. A series of P multiplexers 723 are used on each of the P outputs. For each of the P outputs, they select whether the output value comes from the right shift or the left shift. For the second output, during the third operation, the output may be formed using register 702, since the rotator has been pre-warmed, with register 702 already containing the required value.

[0087] Figure 8 It is shown that in this case, after the warm-up operation 601, the spinner is output once at each operation 804. Figure 6 This is shown at 602 in the flowchart of . Note that in the final operation, the block output by P contains two "x" values ​​801, which represent fill values ​​or "don't care" values. Figure 7 In the circuit of , these output "x" values ​​can be filled with shift values ​​from register 708 or input of circuit 706. Conventional rotator 705 executes under the instruction of controller 701 Figure 6 It should be noted that in some applications, the controller may be embedded in the rotator circuit (e.g., controller 701). In other applications, the controller functionality may be incorporated into a higher-level controller external to the rotator circuit, but operably coupled to its internal circuitry.

[0088] Figure 8The problematic second example 812 shows that some parts of the rotation function sometimes require two processing operations 605 and 606 instead of just one operation 602. This happens when the output block contains three input block combinations, which occurs when (((mod(R,P)>mod(Z,P)) and mod(Z,P)>0). When Z=7, Figure 8 Here, output 807 requires LLRs located in three different rows in memory. To resolve this problematic situation, Figure 7 The circuit can use another register 711 to hold the partial result until the third memory entry is read and the complete result can be output. This results in a second operation 606 producing output 807. In this second operation 606, the P multiplexers 723 for each output must now choose between right shift 722, left shift 721, and the value stored in register 711 in the previous operation.

[0089] Since multiple block columns of LDPC are decoded simultaneously in a row-parallel LDPC decoder architecture in order to obtain high throughput, multiple rotators process different block columns simultaneously, where each block column has a different rotation value.

[0090] Fig. 9 The functionality of multiple rotators is shown simultaneously. Here, four rotators are shown, each with a displacement of 2, 3, 4, and 7, respectively. At some point, the rotators that perform the rotations of R=3 911 and R=7 912 will require additional processing operations 606,

[0091] If respectively Fig. 9 901 and 902 of . All other rotators must stall at this point 603 to ensure that all rotators produce synchronized outputs that involve the same columns in the same operation. During the stall 603, an enable signal 712 is required to maintain the value of register 702 during the pause operation. More specifically, each rotator makes a decision 607 for each output. If all rotators only need to read two rows, option 602 is adopted. However, if three rows need to be read, options 605 and 606 are adopted. If one of the other rotators needs to read three rows, options 603 and 604 are adopted. This brings additional clock cycles for processing block rows, and this is a defect in traditional designs. More specifically, in the worst case, the throughput of the LDPC encoder or decoder may be halved. This occurs if different rotators need to perform additional processing operations 606 for each output block. In a typical case, when mod(Z,P)>0, multiple stall cycles 603 are expected when processing block rows. Thus, the inventors have recognized and appreciated a need to address or mitigate this identified reduction in throughput of an LDPC encoder or decoder.

[0092] In conclusion, Figure 7 The conventional rotator performs a rotation function by a series of operations on multiple sets of intermediate values, which include the input value 706 (which is then referred to as the shifted input value of the right shifter 722), the registered values ​​output by the first and second registers 702, 711, the shifted input value 708 of the left shifter, and the final output value 710.

[0093] First Improved Rotator Circuit to Avoid Stagnation Problem

[0094] Examples of the present invention are intended to solve or mitigate the stall problem described in the background section above. In examples of the present invention, this can be achieved by ensuring that all rotators produce output in a continuous interrupt stream, thus maintaining synchronization between parallel rotators operating in different block columns of the LDPC base graph.

[0095] Reference now Fig.15 , a circuit diagram 1000 of a first improved rotator circuit according to some examples of the present invention is shown, which can avoid or alleviate the stagnation problem. Circuit diagram 1000 includes shifters 1001-1002, a first register 1005, a second register 1006, a combiner 1004 and a controller 1003. It should be noted that in some applications, the controller can be embedded in the rotator circuit (e.g., controller 1003). In other applications, it is envisioned that the controller function can be incorporated into a more advanced controller outside the rotator circuit, but operably coupled to its internal circuit. Both shifters have P elements input into them. One of the shifters 1001 performs a right shift function, while 1002 performs a left shift function. One of these shifters requires P outputs, while the other only requires P-1 outputs. When one shifter performs a shift of R, the other will perform a shift of Pr. Those skilled in the art will recognize that the combination of these two shifters can be considered as a larger shifter that can perform left and right shifts, with P inputs and 2P-1 outputs. For example, when P=4, the input string "abcd" can be concatenated with 4 zeros to obtain "0000abcd", and then shifted left by r=3 to obtain "0abcd000". The first 4 characters '0abc' are equivalent to the output of right shift 1002 with shift Pr=1, and the last 4 characters 'd000' are equivalent to the output of left shift 1001 with shift r=3. It should be noted that the last "0" is not used and the shifter 1001 has P-1 outputs.

[0096] For example, in the case of a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC) implementation, the rotator circuit operates on a series of continuous operations, each of which can be implemented as one clock cycle. Or, for example, in the case of a single instruction multiple data (SIMD) software implementation, each operation can be implemented as several clock cycles. The input of the rotator circuit accepts a block in each operation 1014, and the rotator circuit can have an output indicating the index of the block it needs in each operation 1013. The first register 1005 stores the output of the left shifter 1002 from the previous operation. This is necessary when the rotation value makes the required output block span two input blocks. The first register performs the same function as the first register of 702. Since the first register 1005 only contains the previous value of the shifter 1002, an enable signal is not required to indicate that the register saves values ​​for multiple operations. This is in contrast to the traditional implementation in which the register 702 has an enable signal 712, because when other rotators are performing additional operations to form output 1015, the traditional rotator needs to pause.

[0097] The second register 1006 stores a shifted copy of the first block. This register is loaded at the beginning of the process and the left shift function is performed by the left shift circuit 1002. The left shift depends on the total rotation R. Since the value in this register remains unchanged throughout the rotation function, an enable signal is required. This second register has a width of P elements.

[0098] The combiner 1004 takes the output of the right shifter 1001, the output of the first register 1005 and the output of the second register 1006, where it produces an output block. Each output block is always a combination of at least the right shift register and the first register. If the shifters fill the empty positions with zero values, these can simply be "OR" together. If the shifters 1001, 1002 do not fill the empty positions with zeros, then for each of the P output values, the combiner 1004 will have to multiplex between options 1005, 1011. Sometimes the value of the second register is needed. In this case, if the shifters 1001, 1002 fill the empty positions with zero values, the "AND" logic gate allows the second register to also be "OR" to the output 1015. Here, the "AND" gate performs a masking function, when the masking function is disabled, it outputs the registered value of the second register, or when the masking function is enabled, it outputs a dummy value equal to binary zero. If the empty positions were not zero values, then combiner 1004 would have to multiplex between options 1005, 1011, and 1006 for each of the P output values.

[0099] Fig.11The flowchart of shows the process including the rotator function. In the first operation 1101, after applying the shift by the left shift circuit 1002, the first row from the memory is loaded into the second register 1006. In the next operation 1102, the register 1005 takes the value that has been shifted by the left shift circuit 1002. This is a warm-up of the first output, which may span two rows in the memory. Until the end, the rotator circuit now outputs each operation. For each operation, the rotator circuit needs to decide 1103 whether to operate in mode 1104 or 1105. In mode 1105, when the output consists of three RAM rows, the output comes from the shifter 1001, the register 1005 and the 1006. Otherwise, in mode 1104, the output is formed by the combination of the register 1005 and the shifter 1001. When all processing of the block row has been completed 1106, the rotator circuit is ready to process the next block row.

[0100] Fig.12 The parallel functions of four instances of the novel rotator circuit are shown. In a typical row-parallel LDPC decoder, many of these decoders would operate in parallel, but only four are shown here. The four rotator circuits are needed to perform shifts of 2, 3, 4, and 7, respectively. In this example, Z=18, and P=4. Fig.12 In the example, the signals A and B of the first and second registers respectively convey element indices 1204 in the range 0 to Z-1, rather than literal values. The values ​​1205 of the block index are literal values. The "-" value 1202 is a null value, which is equal to "0". These are generated by the shifter, which fills in zeros where necessary. Fig.12 Use "-" to represent these zeros to avoid confusion between values ​​at index "0".

[0101] The first two operations are warm-up operations 1101 and 1102. Here, no output is generated. Instead, the first register 1005 and the second register 1006 are loaded in sequence. In this example, the second register 1006 is loaded first 1206. For BC 0 1211, the second register 1006 is loaded without applying a left shift. For BC 1 1212 and BC 3 1214, the second register 1006 is loaded with a left shift of 1 1215 applied. For BC 2 1213, the value of the second register is not needed during the rotation function, so in this example, it is not loaded with any value 1216.

[0102] In the following warm-up operation 1102, the first register 1207 is loaded after left shifting. BC0 is shifted left by 2; BC1 and BC3 are shifted left by 3, and BC2 is shifted left by 0.

[0103] From this point on, output 1203 can be generated continuously. Most of the time, decision element 1103 selects option 1104, where output 1015 is formed using first register 1005 and right shift 1011. An example of this is output block 1222.

[0104] When the output block includes the first input block and the optional second input block, the decision element 1103 selects option 1105. Now, the output is formed using the first register 1005, the second register 1006 and the right shift 1011. This is done for BC 0 1218, BC1 1219 and BC 2 1217. This option 1105 is necessary because in the previous operation, we did not read the first input block, but read the last input block instead.

[0105] and Figure 7 Different from traditional rotators, Fig.10 The novel rotator circuit requires one operation to output each block. This means that no stall function is required at any time during block row processing, resulting in an overall reduction in the number of operations to process each block row. This is intended to address the problem in conventional designs where every other operation may be "stalled". Therefore, when applied to a row-parallel LDPC decoder, the novel rotator allows the throughput to be increased to twice the throughput achievable with a conventional rotator. It should be noted that while the discussion here focuses on application to a row-parallel LDPC decoder, it is conceivable that the novel rotator circuit can be easily applied to other implementations, such as a block-parallel LDPC decoder. This is because all implementations must perform rotations on a set of Z data values, regardless of the order in which the calculations are performed by different algorithms. In addition, in order to achieve high throughput, other algorithms will have to process multiple values ​​for each operation (resulting in P>1) and will have to support all different possible values ​​of Z (resulting in mod(Z,P)>0).

[0106] A set of blocks will always contain multiple input values ​​that are multiples of P, but Z may not be a multiple of P. In this case, P-mod(Z,P) padding values ​​are required. Fig.10 The scheme of positions these filler values ​​at the last position of the final block 1220. In addition, the filler value 1220 is a repetition of the first P-mod(Z,P) element from the first block 1223.

[0107] In the final output block, because Z is not a multiple of P, there are some padding values ​​to produce a complete P block. In the novel rotator circuit, these P-mod(Z,P) padding values ​​are equal to the first P-mod(Z,P) value output as part of the first block. Fig.12This repetition is shown by the brackets 1201 in the figure. This repetition is beneficial when the output of the rotator circuit is further processed by a further rotation function. More specifically, a set of blocks can be written back to the core VM memory 503. The repetition in the final output block 1201 will also be written to these memories. During the processing of subsequent block rows, a set of blocks will be input to the rotator circuit for further processing. Thus, the output repetition 1201 will become the input repetition 1220, which is required for the correct function of subsequent activations of the rotator circuit.

[0108] It can be observed that even when R is not a multiple of P, some blocks of the P input values provided at the input of the rotator circuit may not require any shifting and may directly appear replicated in the output of the rotator circuit, although at different positions in the block sequence. For example, this occurs when mod(R,P) is equal to mod(Z,P). In Fig.12 this figure, 1221 shows such a case, where the output block comes directly from the first register 1005, and the output from the right shift register 1011 does not contribute to the output block because it is all zeros.

[0109] Those skilled in the art will recognize that, given the cyclic nature of the data, the ordering of the blocks can be rotated before being input, and the function of the rotator circuit will only need to consider the change in the block index. This means that a scheme in which the padding values are changed to be inserted in the middle of a sequence of Z elements in a block of P input values can be processed in the same way as discussed for this novel rotator circuit. Similarly, those skilled in the art will recognize that the padding values can be inserted at the start rather than the end of a block of P input values.

[0110] Those skilled in the art will recognize that the arrangement of the registers and shifters can be easily rearranged to give the same function. For example, moving the left shifter 1002 after the registers 1005 and 1006 gives the same function, although with two instances of left shifting. The control signals will also have to be modified because the left shift will perform the same function, but these will be delayed by the operation.

[0111] It should be noted that when Z < P, those skilled in the art will recognize that the novel rotator circuit 1000 can be configured to take all Z data values as input, perform the required rotation, and output all Z data values in the desired rotation order in a single operation. Additionally, in cases where Z is a multiple of P and thus no padding values are used, those skilled in the art will recognize that the novel rotator circuit 1000 can be configured to eliminate the first warm-up operation in which the second register is written, and instead complete the full rotation function using Z / P + 1 operations and only using the first register.

[0112] In summary, Fig.10 The first improved rotator circuit performs a rotation function by a series of operations on each group of intermediate values, which include input value 1014 (which is subsequently referred to as shifted input value), shifted output values ​​1011 and 1012, registered values ​​output by the first register 1005 and the second register 1006, and the final output value 1015. Fig.10 A first example of how to derive registered values ​​and shifted output values ​​from input values ​​is provided.

[0113] Second Improved Rotator Circuit to Avoid Stagnation Problem

[0114] Reference now Fig.13 , shows a circuit diagram of a second improved rotator circuit 1300 according to some examples of the present invention, which can avoid or alleviate the stagnation problem. Fig.10 The key difference of the previous rotator circuit is that Fig.13 The second register 1006 stores a copy of the last block, and Fig.10 The second register 1006 stores a copy of the first block. In addition, the second register 1006 is connected to the right shift register 1001, and Fig.10 The second register 1006 is connected to the left shift register 1002. The rotator circuit 1300 also accepts one block per operation on its input 1310, and can indicate during each operation on the output 1309 which block it wants as input.

[0115] Fig.14 The functionality of 4 examples of this new rotator design is shown. As before, the first operation is to load the second register 1006, using the right shifter 1001 to apply some shift amount before storing into the register. The amount it is shifted depends on the rotation R. It should be noted that the second register is only P-1 values ​​wide and the lowest index value after the shift is not stored. Fig.14 The following underlined values ​​are shown: 1309, 1310, 1311, 1312, 1313, 1314, 1315, which correspond to Fig.13 Schematic diagram of .

[0116] In this scheme, the padding value is located at the end of the last block 1401. Fig.10 In the scheme, these P-mod(Z,P) fill values ​​are required to be equal to the first P-mod(Z,P) value of the first block, which is called repetition. Fig.13 In the scheme, these fill values ​​1401 can take the value of the first P-mod(Z,P) value of the first block, or be equal to zero. Fig.14In FIG. 1402 , these fill values ​​are shown as “x”, indicating that they should be values ​​that do not contribute to any of the output blocks. 1402 shows the position of these fill values ​​after right shifting 1001 and being stored by the second register 1006. Nevertheless, Fig.14 The final P-mod(Z,P) value in the final block 1403 of the example is a repetition of the first P-mod(Z,P) value from the first block 1404. This means that if a repetition scheme is used to fill the values, the output block from one rotator activation can be passed as the input block of another rotator activation.

[0117] Fig.11 The flowchart of is also applicable to the scheme 1300. During the preheating operation 1 1101, the last block is stored in the second register in a shifted form. This is followed by the preheating operation 2 1102. When the decision element 1103 selects 1104, the output block is formed by the combiner 1004 from the output of the right shifter 1311 and the first register 1313. This function is the same as the scheme 1000.

[0118] At a given output, if the block required to load the first register is different from the block required by the right shifter, then Fig.11 The decision element 1103 of 1105 is changed to select 1105. This occurs at BC 0 1411, BC 1 1412, and BC 3 1414. In 1105, since the rotator wants to access three blocks at a time, the second register is used to form the output. In 1105, the output block is built by the combiner 1004, which uses the second register output 1314, the first register output 1313, and the right shift output 1311. The second register of 1300 implements the same function as the second register of 1000, however the operations in which the second register is used differ between 1000 and 1300.

[0119] The advantage of 1300 is that it accepts fill values ​​with zero values ​​1401. At the same time, 1000 requires that the fill value is a repetition of the first P-mod(Z,P) value. The disadvantage of 1300 is that it requires the last block as the first input, which may not be available as early as the first block as required by 1000. The advantage of the new rotator circuit 1300 over the conventional rotator is that there is an output at each operation 1203 after the warm-up operations 1101, 1102, thus solving the stagnation problem described in the background section above.

[0120] As with the scheme 1000, those skilled in the art can observe that the scheme 1300 can also easily rearrange the order of the shifter 1001 and the register 1006, or rearrange the shifter 1002 and the register 1005, and the functions obtained are the same.

[0121] As with embodiment 1000, one of ordinary skill in the art can observe that this embodiment 1300 also has a cyclic property, which means that embodiment 1300 can be easily modified to move the padded input block to a position other than the last one.

[0122] One of ordinary skill in the art can recognize that if the padding values are at the start of the block, rather than at the end of the block as described in this embodiment 1300, the design can be easily rearranged to accommodate this. More specifically, if the padding values are zero, they will not contribute to any of the output blocks. The non-padding values in the padded input block (i.e., the input block containing the padding values) still need to be correctly positioned, so during the warm-up operation 1101, the amount of shift performed by the right shifter 1001 of 1300 will need to be adjusted.

[0123] It should be noted that when Z < P, one of ordinary skill in the art will recognize that the novel rotator circuit 1300 can be configured to take all Z data values as inputs, perform the required rotation, and output all Z data values in the desired rotation order in a single operation. Additionally, in the case where Z is a multiple of P and thus no padding values are used, one of ordinary skill in the art will recognize that the novel rotator circuit 1300 can be configured to eliminate the first warm-up operation where values are written to the second register, and instead complete the full rotation function using Z / P + 1 operations and only using the first register.

[0124] In summary, Fig.13 the second improved rotator circuit of performs a rotation function through a series of operations on groups of intermediate values, which include the input value 1310 (which is subsequently referred to as the shifted input value), the shifted output values 1311 and 1312, the stored values output by the first register 1005 and the second register 1006, and the final output value 1315. Fig.13 A second example of how to derive the stored values and the shifted output values from the input value is provided.

[0125] A third improved rotator circuit that avoids stalling issues and enables pipelining of block rows

[0126] Fig.10 and Fig.13The novel rotator circuits 1000 and 1300 benefit from requiring only a small number of components, but they hinder tight pipeline operations for processing consecutive block rows. More specifically, these designs require a total of ceil(Z / P)+2 operations from the beginning to the end of processing each block row, and they obtain inputs during all ceil(Z / P)+2 times of these operations, while they generate outputs during the last ceil(Z / P) 1203 of these operations. However, if the last two operations of the ceil(Z / P)+2 operations of the first block row and the first two operations of the ceil(Z / P)+2 operations of the second consecutive block row can be performed simultaneously in an overlapping pipeline manner 1101 and 1102, the average number of operations required to process a block row can be reduced to ceil(Z / P). However, this is in Fig.10 and Fig.13 is blocked in the rotator circuit designs 1000 and 1300. This is because, although only the first block row generates output during these two operations, both block rows accept inputs during these two operations, which prevents pipeline operation because each operation can only accept one input in a pipeline implementation. Therefore, Fig.10 and Fig.13 The novel rotator circuit of is not pipelined and uses an average of ceil(Z / P)+2 operations per block row.

[0127] Fig.15 The novel rotator 1500 is designed to enable tight pipelining at the expense of Fig.10 and Fig.13 The novel rotator circuits 1000 and 1300 require more components. Like these previous designs, Fig.15 The novel rotator circuit 1500 requires a total of ceil(Z / P)+2 operations from the beginning to the end of processing each block row. However, Fig.15 The design of accepts input only during the first ceil(Z / P) of these operations, and produces output only during the last ceil(Z / P) of these operations. When processing two consecutive block rows, the last two operations of the ceil(Z / P)+2 operations of the first block row can be executed simultaneously with the first two operations of the ceil(Z / P)+2 operations of the second block row. This is possible because only the first block row produces output during these two operations, and only the second block row accepts input during these two operations. Therefore, Fig.15 The novel rotator circuit 1500 implements a tightly pipelined operation, using an average of ceil(Z / P) operations per block row. In addition, Fig.15 The new rotator circuit 1500 achieves this without any stagnation, thus solving the Figure 7 The stagnation problem exhibited by conventional rotators. It should be noted that Fig.10 and Fig.13 In the novel rotator circuits 1000 and 1300, each operation in the functionality of the novel rotator circuit 1500 can be implemented as one clock cycle, for example, in the case of a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC) implementation. Alternatively, each operation can be implemented as several clock cycles, for example, in the case of a single instruction multiple data (SIMD) software implementation.

[0128] Fig.15 The novel rotator circuit 1500 operates under the direction of a controller 1508, depending on the values ​​of R and Z provided to the rotator as inputs 1510 before performing a rotation function on a particular block column within a block row. It should be noted that in some applications, it is envisioned that the controller can be embedded in the rotator circuit (e.g., controller 1508). In other applications, the controller function can be incorporated into a higher-level controller outside the rotator circuit, but operably coupled to its internal circuit. In each operation during the operation of the rotator circuit 1500, the controller 1508 can use the block index output 1509 to request the input of a particular value block. Here, the index can take a value in the range of 0 to ceil (Z / P)-1. The rotator circuit 1500 then expects to provide a corresponding block including P input values ​​at the input 1507 during the operation. In each operation, the rotator circuit 1500 can provide an output 1511 including P output values, which are rotated according to R. Each value in input 1507 and output 1511 may represent a bit or a soft-valued bit, such as an LLR, when employed in an LDPC encoder and decoder, respectively.

[0129] The input 1507 in each operation is provided to a shift register which comprises a series of four registers 1501, 1502, 1503 and 1504. The first pair of registers 1501 and 1502 are used as Fig.10 and Fig.13 The novel rotator circuits 1000 and 1300 serve a similar purpose to the first register 1005. Similarly, the second pair of registers 1503 and 1504 serve the same purpose as Fig.10 and Fig.13 The second register 1006 in the novel rotator circuits 1000 and 1300 has a similar purpose. Therefore, the two registers in the first pair are referred to as the first register 1501 and the third register 1502, and the two registers in the second pair are referred to as the second register 1503 and the fourth register 1504. Fig.10 and Fig.13As with the second register 1006 in the novel rotator circuit 1000 and 1300, the second pair of registers 1503 and 1504 have an enable signal, which gives the controller 1508 the ability to enable or disable writing of the second pair of registers 1503 and 1504 on an operation-by-operation basis. A first multiplexer 1505 allows a block of P shifted input values ​​to be selected from the outputs of the four registers 1501, 1502, 1503, and 1504. A second multiplexer 1506 allows a block of P shifted input values ​​to be selected from the input of the rotator 1507 and the outputs of the four registers 1501, 1502, 1503, and 1504. Multiplexers 1505 and 1506 operate under the direction of controller 1508, which ensures that all values ​​required for output 1511 in the current operation are present at the outputs of the multiplexers. The output of the first multiplexer 1505 is left shifted by a left shifter 1512, while the output of the second multiplexer 1506 is right shifted by a right shifter 1513. The values ​​output by multiplexers 1515 and 1516 are instructed by a controller 1508 to be shifted by the shifters 1512 and 1513 by the number of positions required to properly position the value of output 1511. In the case where the left shifter 1512 and the right shifter 1513 shift zero values ​​into blocks of P shifted output values, then their outputs can be combined by an OR gate 1514 to produce the output 1511 of the rotator 1500 in each operation. It should be noted that if the left shifter 1512 and the right shifter 1513 shift some other value into blocks of P shifted output values, then the OR gate 1514 can be replaced by a general combiner circuit that multiplexes these values ​​accordingly.

[0130] In the case where Z is not divisible by P, i.e., mod(Z,P)>0, and when a block with index ceil(Z / P)-1 is requested 1509, it is assumed that the block 1507 of P input values ​​includes the last mod(Z,P) value in the set of Z data values, followed by P-mod(Z,P) fill values. Furthermore, it is assumed that these fill values ​​are repetitions of the first P-mod(Z,P) values ​​in the set of Z data values. In this case, for any values ​​of Z and R, the novel rotator circuit 1500 is always able to generate the desired rotated output block 1511, including the repeated fill output values.

[0131] exist Fig.16The functionality of the novel rotator circuit 1500 in each operation is summarized in the flowchart 1600 of . At the beginning of each operation 1601, the controller 1508 determines whether this is the first operation in the processing of a new block row 1602. If so, the new values ​​of R and Z are accepted as input 1603 using input 1510. Subsequently, the controller 1508 outputs the index of the block requested by input 1604 using output 1509. Next at 1605, a block including P input values ​​is received from input 1507, and a block of P registered values ​​is received from the outputs of registers 1501, 1502, 1503 and 1504. The controller 1606 then instructs 1606 multiplexers 1505 and 1506 to select a block of P shifted input values ​​to provide to the left shifter 1512 and the right shifter 1513. Next at 1607, the controller 1606 instructs the left shifter 1512 and the right shifter 1513 to provide inputs to the combiner 1514. Then at 1608, the output of the combiner 1514 is provided to the output 1511. If and only if the controller 1508 determines 1609 that this is the third or fourth operation in the block row processing, then the enable signal of the second pair of registers 1503 and 1504 is asserted 1610. Then at 1611, the shift register formed by registers 1501, 1502, 1503 and 1504 is clocked 1611. Then, this completes the processing of operation 1612.

[0132] Fig.17 An example of the one-by-one operation of pipeline processing of two block rows across four block columns 1701, 1702, 1703, 1704 using four copies of the novel rotator circuit 1500 is shown in 1700. This example considers the case where a parallelism of P=4 is adopted. The first block row includes Z=18 values, while the second block row includes Z=23 values. It should be noted that Z adopts a common value for all block rows in a code block of a 3GPP LDPC code. However, the processing of block rows from two different code blocks with two different Z values ​​can be interleaved in a pipelined LDPC encoder or decoder architecture, such as Fig.17 1700. A different rotation R is applied to each block row in each block column, which is typical in 3GPP LDPC codes. Fig.17 Example 1700 spans a total of 13 operations, which can be indexed by indexes '0' to '12'. The input of the first block row 1705 occurs during operations '0' to '4', while the input of the second block row 1706 occurs in a direct pipeline manner during operations '5' to '10'. The output of the first block row 1707 occurs during operations '2' to '6' with a pipeline delay of 2 operations, while the output of the second block row 1708 occurs in a direct pipeline manner during operations '7' to '12'. For each operation, Fig.17Block index 1509 is shown, along with a block of P input values ​​obtained as input block 1507, the output of each of the four registers 1501, 1502, 1503, 1504, the output of left shifter 1512, the output of right shifter 1513, and output block 1511. In each case, the index of the value in the range of 0 to Z-1 is shown, rather than the value of the bit or LLR itself. It should be noted that in the case of left shifter 1512 and right shifter 1513, dashes are used to indicate zero fill values ​​that are shifted into the corresponding block of P shifted output values. Brackets are used to indicate fill values ​​appended to the end of a set of Z data values, which are filled with values ​​repeated from the beginning of the set of Z data values.

[0133] like Fig.17 As shown, Fig.15 The novel rotator circuit 1500 can typically select inputs to the left and right shifters 1512 and 1513 from five P value blocks available in a given operation, namely: an input block from the current operation 1507; an input block from the previous operation, which is available in a registered value output by the first register 1501; an input block from two operations ago, which is available in a registered value output by the third register 1502; an input block from the second operation, which is available in a registered value output by the second register 1503; and an input block from the first operation, which is available in a registered value output by the fourth register 1504. In the first operation of processing a block row, the input to the left shifter 1512 is typically taken from the output of the third register 1502, and the input to the right shifter 1513 is typically taken from the output of the first register 1501. Once the padding value has been processed, the function switches and the input to the left shifter 1512 is typically taken from the output of the first register 1501, while the input to the right shifter 1513 is typically taken from the input block 1507. In the last one or two operations of processing a block row, the function switches again and the inputs to the left and right shifters 1512 and 1513 are taken from one or both of the outputs of the second and fourth registers 1503 and 1504.

[0134] As in Fig.10 and Fig.13 As in the novel rotator circuits 1000 and 1300, it can be observed that even when R is not a multiple of P, some blocks of P input values ​​provided at the input of the rotator 1507 may not require any shifting and may appear directly as duplicates in the output of the rotator 1511, albeit at different positions in the sequence of blocks. This occurs, for example, when mod(R, P) is equal to mod(Z, P). Fig.17In the second block row, when R = 15 and Z = 23, this is illustrated in the case of the fourth block column 1704. In this case, the output block 1511 comes directly from the output of the first register 1501 via the right shifter 1513, and the output from the left shifter 1512 does not contribute to the output block 1511 because it is all zeros.

[0135] Those skilled in the art will recognize that, given the cyclic nature of the data, the ordering of the blocks can be rotated before being input, and the function of the rotator will only need to consider the change in the block index. This means that a scheme in which the padding values are changed to be inserted in the middle of a sequence of Z elements in a block of P input values can be handled in the same way as discussed for this novel rotator. Similarly, those skilled in the art will recognize that the padding values can be inserted at the beginning rather than the end of a block of P input values.

[0136] It should be noted that when Z < P, those skilled in the art will recognize that the novel rotator 1500 can be configured to take all Z data values as input, perform the required rotation, and output all Z data values in the desired rotation order in a single operation.

[0137] In summary, Fig.15 the third improved rotator circuit of performs the rotation function through a series of operations on groups of intermediate values, which include the input value 1507, the stored values output by the first, second, third, and fourth registers 1501, 1502, 1503, 1504, the shifted input values output by the first and second multiplexers 1505, 1506, the shifted output values output by the first and second shifters 1512 and 1513, and the final output value output by the combinational circuit 1514. Fig.15 A third example of how to derive the stored values and the shifted output values from the input values is provided.

[0138] Now refer to Fig.18 , according to some examples of the present invention, a flowchart 1800 of a method for calculating LDPC rotation in a low-density parity-check LDPC encoder or decoder is shown. The LDPC encoder or decoder includes an LDPC rotator circuit having an input, an output, a first set of one or more registers operably coupled to a controller, a second set of one or more registers operably coupled to the controller, and a parallelism P of at least 2.

[0139] The method comprises: configuring 1801, by an LDPC rotator circuit, a rotation function comprising a series of operations to rotate a data sequence comprising a first number Z of data values ​​by a second number R of positions; accepting a series of ceil(Z / P) input blocks at an input end during a first subset 1802, 1805 of the series of operations, each input block comprising P input values; and providing a series of ceil(Z / P) output blocks at an output end during a second subset 1806, 1807 of the series of operations, each output block comprising P output values, wherein the second subset of operations begins 1808 before the first subset of operations is completed. The LDPC rotator circuit comprises or is operably coupled to a controller, the controller being arranged to control the rotation function performed by the LDPC rotator circuit.

[0140] A series of floor(Z / P) number of ceil(Z / P) input blocks includes input values ​​provided by a number P of Z data values, and one of the series of ceil(Z / P) number of input blocks is a fill input block, which includes input values ​​provided by a value mod(Z,P) of the Z data values ​​and a value P-mod(Z,P) of the fill value when Z is not a multiple of P. The method also includes: accepting one or more input values ​​through an input terminal before a second subset of the series of operations begins; deriving one or more register values ​​from the one or more input values; writing a second set of one or more registers with the one or more derived register values ​​under the direction of the controller 1803, wherein the derived one or more register values ​​are not overwritten 1805 before the fill input block is accepted at the input terminal 1809, and at least one of the P output values ​​in at least one of the output blocks is a function of at least one register value in the second set of one or more registers 1810.

[0141] application

[0142] Reference now Fig.19, shows a typical computing system 1900 that can be used to implement LDPC calculations according to some exemplary embodiments of the present invention. This type of computing system can be used in a wireless communication device. Those skilled in the relevant art will also recognize how to use other computer systems or architectures to implement the present invention. Computing system 1900 may represent, for example, a desktop, laptop or notebook computer, a handheld computing device (PDA, mobile phone, palmtop, etc.), a mainframe, a server, a client, or any other type of dedicated or general computing device that may be ideal or suitable for a given application or environment. Computing system 1900 may include at least one processor, such as processor 1904. Processor 1904 may be implemented using a general or dedicated processing engine (e.g., a microprocessor, a controller, or other control logic). In this example, processor 1904 is connected to bus 1902 or other communication medium. In some examples, computing system 1900 may be a non-temporary tangible computer program product, including executable code stored therein for implementing LDPC calculations.

[0143] The computing system 1900 may also include a main memory 1908, such as a random access memory (RAM) or other dynamic storage, for storing information and instructions to be executed by the processor 1904. The main memory 1908 may also be used to store temporary variables or other intermediate information during execution of instructions to be executed by the processor 1904. The computing system 1900 may also include a read-only memory ("ROM") or other static storage device coupled to the bus 1902 to store static information and instructions for the processor 1904.

[0144] The computing system 1900 may also include an information storage system 1910, which may include, for example, a media drive 1912 and a removable storage interface 1920. The media drive 1912 may include a drive or other mechanism that supports fixed or removable storage media, such as a hard drive, a floppy disk drive, a tape drive, an optical drive, a compact disk (CD) or digital video drive (DVD) read or write drive (R or RW), or other removable or fixed media drive. The storage medium 1918 may include, for example, a hard disk, a floppy disk, a tape, an optical disk, a CD or DVD, or other fixed or removable media that is read and written by the media drive 1912. As these examples illustrate, the storage medium 1918 may include a computer-readable storage medium having stored therein certain computer software or data.

[0145] In alternative embodiments, the information storage mechanism 1910 may include other similar components for allowing computer programs or other instructions or data to be loaded into the computing system 1900. Such components may include, for example, removable storage units 1922 and interfaces 1920, such as program cartridges and cartridge interfaces, removable memory (e.g., flash memory or other removable memory modules) and memory slots, and other removable storage units 1922 and interfaces 1920 that allow software and data to be transferred from the removable storage unit 1918 to the computing system 1900.

[0146] The computing system 1900 may also include a communication interface 1924. The communication interface 1924 may be used to allow software and data to be transferred between the computing system 1900 and external devices. Examples of the communication interface 1924 may include a modem, a network interface (such as an Ethernet or other NIC card), a communication port (such as a Universal Serial Bus (USB) port), a PCMCIA slot and card, etc. The software and data transmitted via the communication interface 1924 are in the form of signals, which may be electronic, electromagnetic, and optical signals or other signals that can be received by the communication interface 1924. These signals are provided to the communication interface 1924 via a channel 1928. The channel 1928 may carry signals and may be implemented using a wireless medium, wire or cable, optical fiber, or other communication medium. Some examples of channels include a telephone line, a cellular phone link, an RF link, a network interface, a local area network or a wide area network, and other communication channels.

[0147] In this document, the terms "computer program product," "computer-readable medium," and the like may be generally used to refer to media such as memory 1908, storage device 1918, or storage unit 1922. These and other forms of computer-readable media may store at least one instruction for use by processor 1904 to cause the processor to perform a specified function. Such instructions, often referred to as "computer program code" (which may be grouped in the form of a computer program or other grouping), when executed, enable computing system 1900 to perform the functions of embodiments of the present invention. It should be noted that the code may directly cause the processor to perform a specified function, be compiled to perform this function, and / or be combined with other software, hardware, and / or firmware elements (e.g., libraries for performing standard functions) to perform this function.

[0148] In embodiments using software-implemented elements, the software may be stored in a computer-readable medium and loaded into the computing system 1900 using, for example, removable storage drive 1922, drive 1912, or communications interface 1924. When executed by processor 1904, the control logic (in this example, software instructions or computer program code) causes processor 1904 to perform the functions of the present invention as described herein.

[0149] In the foregoing specification, the invention has been described with reference to specific examples of embodiments of the invention. However, it will be apparent that various modifications and changes may be made therein without departing from the scope of the invention as set forth in the appended claims, and the claims are not limited to the specific examples described above.

[0150] As discussed herein, the connection can be suitable for any type of connection, for example, from or to a corresponding node, unit or device transmission signal via an intermediate device. Therefore, unless otherwise implied or stated, the connection can be, for example, a direct connection or an indirect connection. The connection can be illustrated or described with reference to a single connection, multiple connections, a unidirectional connection or a bidirectional connection. However, different embodiments can change the implementation of the connection. For example, a separate unidirectional connection can be used instead of a bidirectional connection, and vice versa. In addition, multiple connections can be replaced by a single connection, which transmits multiple signals in a serial manner or in a time multiplexing manner. Similarly, a single connection carrying multiple signals can be separated into various different connections carrying a subset of these signals. Therefore, there are many options for transmitting signals.

[0151] Those skilled in the art will appreciate that the architectures depicted herein are merely exemplary, and that in fact many other architectures can be implemented which achieve the same functionality.

[0152] Any arrangement of components that achieve the same function is effectively "associated" so that the desired function is achieved. Thus, any two components combined herein to achieve a particular function may be considered "associated" with each other so as to achieve the desired function, regardless of the architecture or intermediate components. Likewise, any two components so associated may also be considered "operably connected" or "operably coupled" to each other so as to achieve the desired functionality.

[0153] Furthermore, those skilled in the art will recognize that the boundaries between functions as described above are illustrative only. Multiple functions may be combined into a single function, a single function may be allocated among additional functions, and functions may be executed at least partially overlapping in time. Furthermore, alternative embodiments may include multiple instances of a particular function, and the order of functions may be changed in various other embodiments.

[0154] The present invention is described herein with reference to an integrated circuit device, which includes, for example, a microprocessor configured to perform the function of LDPC calculations. However, it should be understood that the present invention is not limited to such integrated circuit devices, and can be equally applied to integrated circuit devices including any alternative type of operating functions. Examples of such integrated circuit devices including alternative types of operating functions may include application specific integrated circuit (ASIC) devices, field programmable gate array (FPGA) devices, or integration with other components, etc., as examples only. In addition, since the illustrated embodiments of the present invention can be implemented to a large extent using electronic components and circuits known to those skilled in the art, the details are not explained in any larger scope beyond the understanding and understanding of the basic concepts of the present invention, and so as not to confuse or disperse the teachings of the present invention. Alternatively, circuits and / or component examples can be implemented as any number of separate integrated circuits or separate devices interconnected to each other in a suitable manner.

[0155] For another example, the examples or portions thereof may be implemented as soft or code representations of physical circuits or logical representations convertible into physical circuits, such as in any suitable type of hardware description language. In addition, the present invention is not limited to physical devices or units implemented in non-programmable hardware, but may also be applied to programmable devices or units capable of performing desired LDPC calculations by operating according to appropriate program codes, such as minicomputers, personal computers, notepads, personal digital assistants, electronic games, automobiles and other embedded systems, cell phones and various other wireless devices, generally denoted as "computer systems" in this application.

[0156] However, other modifications, changes, and alternatives are possible. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.

[0157] In the claims, any reference symbol placed between brackets shall not be understood as a limitation to the claims. The word "comprising" does not exclude the presence of other elements or steps other than those features or steps listed in the claims. In addition, the term "a / an" as used herein is defined as more than at least one. In addition, the use of introductory phrases such as "at least one" and "at least one" in the claims should not be understood as implying that any specific claim including such introduced claim elements introduced by the indefinite article "a" or "an" will be limited to an invention including only one such element, even when the same claim includes the introductory phrase "at least one" or "at least one" and indefinite articles such as "a" or "an". The same applies to the use of definite articles. Unless otherwise noted, terms such as "first" and "second" are used to arbitrarily distinguish between the elements described by such terms. Therefore, such terms are not necessarily intended to indicate the time or other priority of such elements. The mere fact of citing certain measures in mutually different claims does not indicate that the combination of these measures cannot be used advantageously. The term "subset" refers to a selection of elements from a set, where the selection may include one, some, or all of the elements in the set.

[0158] References

[0159] [1] “3rd Generation Partnership Project; Technical Specification Group Radio Access Network; NR; Multiplexing and Channel Coding (Release 15)”, 3GPP TS 38.212 V15.2.0, June 2018.

[0160] [2] K. Shimizu, T. Ishikawa, N. Togawa, T. Ikenaga, and S. Goto, “Partially-parallel LDPC decoder based on high-efficiency message-passing algorithm,” in Proceedings of the International Conference on Computer Design, October 2005, pp. 503–510.

[0161] [3] X. Wu, Y. Song, M. Jiang, and C. Zhao, “Adaptive-Normalized / Offset Min-Sum Algorithm,” in IEEE Communications Letters, vol. 14, no. 7, pp. 667–669, July 2010.

Claims

1. A communication device, comprising: A low density parity check (LDPC) rotator circuit (1000, 1300, 1500) having an input and an output, wherein the LDPC rotator circuit (1000, 1300, 1500) is configured to have a parallelism P of at least 2 and to perform a rotation function comprising a series of operations to rotate a data sequence comprising a first number Z of data values ​​by a second number R of positions, wherein during a first subset of the series of operations, a series of ceil(Z / P) input blocks (1014, 1310, 1507) are accepted through the input, each input block comprising P input values, and wherein during a second subset of the series of operations, a series of ceil(Z / P) output blocks (1015, 1315, 1511) are provided via the output terminal, each output block comprising P output values, wherein the second subset of operations is initiated before the first subset of operations is completed; wherein the LDPC rotator circuit (1000, 1300, 1500) comprises or is operably coupled to a controller (1003, 1508) arranged to control the rotation function performed by the LDPC rotator circuit (1000, 1300, 1500), And wherein the LDPC rotator circuit (1000, 1300, 1500) comprises: a first set of one or more registers to which are written one or more register values ​​derived from one or more input values ​​received by the input terminal during one or more previous operations, and the first set of one or more registers is operably coupled to the controller (1003, 1508); a second set of one or more registers operably coupled to the controller (1003, 1508); at least one shift circuit (1001, 1002, 1512, 1513) operably coupled to the controller (1003, 1508) and configured to receive a shifted input value operably coupled to the P input values ​​and apply left and right shifts to provide a shifted output value; and at least one combinational circuit operably coupled to the controller (1003, 1508) and operably coupled to at least one of the shifted output value, the first set of one or more registers, and the second set of one or more registers; and configured to provide the P output values ​​to the output terminal; wherein the series of ceil(Z / P) input blocks (1014, 1310, 1507) of floor(Z / P) number comprises input values ​​provided by the Z data values ​​of number P, and one of the series of ceil(Z / P) input blocks (1014, 1310, 1507) is a padding input block, the padding input block comprising input values ​​provided by the Z data values ​​of number mod(Z,P) and padding values ​​(1220, 1401) of number P-mod(Z,P) when Z is not a multiple of P; and wherein the second group of one or more registers are written, under the direction of the controller (1003, 1508), to one or more register values ​​derived from one or more input values ​​accepted by the input terminal before the second subset of the series of operations begins, and wherein the one or more register values ​​are not overwritten before the input terminal accepts the fill input block, and at least one of the P output values ​​in at least one of the output blocks (1015, 1315, 1511) is a function of at least one register value in the second group of one or more registers. 2 . The communication device of claim 1 , wherein the degree of parallelism P is common to all rotation functions performed by the LDPC rotation circuit, and the first number Z of data values ​​and the second number R of positions vary between rotation functions.

3. A communication device according to claim 1 or 2, wherein the series of operations includes at least ceil(Z / P)+2 operations, wherein the first subset of the series of operations includes at least ceil(Z / P) operations, and the second subset of the series of operations includes at least ceil(Z / P) operations.

4. A communication device according to any of the preceding claims, wherein the first group of one or more registers are written with one or more register values, the one or more register values ​​are derived from one or more input values ​​during at least one operation of the LDPC rotator circuit (1000, 1300, 1500), and at least one of the P output values ​​of at least one of the output blocks (1015, 1315, 1511) is a function of at least one register value in the first group of one or more registers.

5. A communication device according to any one of the preceding claims, wherein the filling input block is configured to adopt one of the following ways: The P-mod (Z, P) padding values ​​(1220, 1401) occupy the last P-mod (Z, P) positions in the padding input block, and wherein the P-mod (Z, P) padding values ​​(1220, 1401) are set to zero; The P-mod (Z, P) padding values ​​(1220, 1401) occupy first P-mod (Z, P) positions in the padding input block, and wherein the P-mod (Z, P) padding values ​​(1220, 1401) are set to zero; the P-mod(Z,P) padding values ​​(1220, 1401) occupy last P-mod(Z,P) positions in the padding input block, and wherein the P-mod(Z,P) padding values ​​(1220, 1401) are set equal to a first P-mod(Z,P) input value from an input block immediately following the padding input block in the series of ceil(Z / P) input blocks (1014, 1310, 1507); the P-mod (Z, P) padding values ​​(1220, 1401) occupy last P-mod (Z, P) positions in the padding input block, and the padding input block is a last input block in the series of ceil (Z / P) input blocks (1014, 1310, 1507), and wherein the P-mod (Z, P) padding values ​​(1220, 1401) are set equal to a first P-mod (Z, P) input value from a first input block in the series of ceil (Z / P) input blocks (1014, 1310, 1507); the P-mod(Z,P) padding values ​​(1220, 1401) occupy the first P-mod(Z,P) positions in the padding input block, and wherein the P-mod(Z,P) padding values ​​(1220, 1401) are set equal to the last P-mod(Z,P) input value from an input block immediately preceding the padding input block in the series of ceil(Z / P) input blocks (1014, 1310, 1507); The P-mod (Z, P) padding values ​​(1220, 1401) occupy the first P-mod (Z, P) positions in the padding input block, and the padding input block is the first input block in the series of ceil (Z / P) input blocks (1014, 1310, 1507), and wherein the P-mod (Z, P) padding values ​​(1220, 1401) are set equal to the last P-mod (Z, P) input value from the last input block in the series of ceil (Z / P) input blocks (1014, 1310, 1507).

6. A communication device according to any of the preceding claims, wherein a first input block in the series of ceil(Z / P) input blocks (1014, 1310, 1507) contains a mod(R, Z)+1th data value, the mod(R, Z)+1th data value being provided to the input of the LDPC rotator circuit (1000, 1300, 1500) during the first operation in the first subset of operations, and wherein each consecutive input block is provided to the input of the LDPC rotator circuit (1000, 1300, 1500) during each consecutive operation in the first subset of operations, wherein an input block containing a first data value in the data sequence is provided to the input of the LDPC rotator circuit (1000, 1300, 1500) during an operation in the first subset of operations subsequent to an operation in which an input block containing a last data value in the data sequence is provided to the input of the LDPC rotator circuit (1000, 1300, 1500).

7. A communication device according to any of the preceding claims, wherein the at least one combinational circuit comprises a set of OR gates, and wherein the left and right shifts applied by the at least one shift circuit (1001, 1002, 1512, 1513) use zero padding.

8. The communication device of claim 7, wherein the second set of one or more registers is further operatively coupled to the at least one shift circuit (1001, 1002) and arranged to provide one or more shifted output values ​​derived from one of: said filling input block; an input block immediately following the padding input block in the series of ceil(Z / P) input blocks (1014, 1310); When the pad input block is the last input block in the series of ceil(Z / P) input blocks (1014, 1310), the first input block in the series of ceil(Z / P) input blocks (1014, 1310).

9. A communication device according to claim 7 or 8, further comprising one or more masking circuits, arranged to connect the second group of one or more registers and the at least one shift circuit (1001, 1002) to the at least one combinational circuit, wherein the one or more masking circuits are configured to determine whether the combined input value is derived from the shifted output value or from a virtual value.

10. The communication device of claim 9, wherein the first set of one or more registers comprises one register (1005, 1313), the second set of one or more registers comprises one register (1006), the input value is provided to the at least one shift circuit (1001, 1002) as a shift input value, and wherein the registered values ​​of the first set of one or more registers and the second set of one or more registers are provided by a shift output value, and wherein the combined input value is provided by: the registered values ​​of the second set of one or more registers via the one or more masking circuits; and the stored values ​​of the first set of one or more registers; and The shifted output value of the at least one shift circuit (1001, 1002).

11. The communication device according to any one of the preceding claims 1 to 7, wherein: The first set of one or more registers includes two registers (1501, 1502), wherein an input of a second register (1502) of the first set of one or more registers is operably coupled to an output of a first register (1501) of the first set of one or more registers to form a shift register; wherein the second set of one or more registers comprises two registers (1503, 1504) written with an input block containing a mod(R, Z)+1th data value in the series of ceil(Z / P) input blocks (1507) and written with any of the following: an input block in the series of ceil(Z / P) input blocks (1507) that immediately follows an input block in the series of ceil(Z / P) input blocks (1507) that contains the mod(R,Z)+1th data value; or when the input block in the series of ceil(Z / P) input blocks (1507) containing the mod(R,Z)+1th data value is the last input block in the series of ceil(Z / P) input blocks (1507), the first input block in the series of ceil(Z / P) input blocks (1507); and Wherein the second set of one or more registers is configured not to be overwritten until the second subset of operations is completed.

12. The communication device according to claim 11, further comprising at least one multiplexing circuit (1505, 1506), wherein the multiplexing circuit is configured to multiplex the register values ​​of the first group of registers and the second group of registers and provide the shift input value to the at least one shift circuit (1512, 1513).

13. A communication device according to claim 11 or 12, wherein the rotation function performed by the LDPC rotator circuit (1500) includes a first rotation function pipelined with a second rotation function, wherein the first operation in the first operation subset of the second rotation function is before the last operation in the second operation subset of the first rotation function, and wherein the first operation in the second operation subset of the second rotation function is immediately after the last operation in the second operation subset of the first rotation function.

14. A communication device according to any preceding claim, wherein when a rotation function is performed in which Z is less than P, the rotation function is performed in a single operation.

15. A communication device according to any preceding claim, wherein when performing a rotation function in which Z is a multiple of P, the series of operations comprises at least ceil(Z / P)+1 operations.

16. A method for calculating LDPC rotations in an LDPC encoder or decoder comprising a low density parity check LDPC rotator circuit (1000, 1300, 1500), the rotator circuit having: an input terminal; an output terminal; a first set of one or more registers, the first set of one or more registers having one or more register values ​​written thereto, the one or more register values ​​being derived from one or more input values ​​received by the input terminal during one or more previous operations, and the first set of one or more registers being operably coupled to a controller (1003, 1508); a second set of one or more registers being operably coupled to the controller (1003, 1508); and a degree of parallelism P of at least 2, the method comprising: configuring (1801) a rotation function by the LDPC rotator circuit (1000, 1300, 1500), the rotation function comprising a series of operations to rotate a data sequence comprising a first number Z of data values ​​by a second number R of positions, During a first subset (1802, 1805) of the series of operations, a series of ceil(Z / P) input blocks (1014, 1310, 1507) are accepted through the input terminal, each input block including P input values, receiving a shifted input value operatively coupled to the P input values ​​and applying a left shift and a right shift by at least one shift circuit (1001, 1002, 1512, 1513) to provide a shifted output value; During a second subset (1806, 1807) of the series of operations, a series of ceil(Z / P) output blocks (1015, 1315, 1511) are provided by the output terminal, each output block comprising P output values ​​output by at least one combinational circuit, the combinational circuit being operably coupled to the controller (1003, 1508) and arranged to operably combine an output originating from at least one of the controller (1003, 1508), the shifted output value, the first set of one or more registers, and the second set of one or more registers, and Providing the P output values ​​to an output terminal; wherein the second subset of operations begins before the first subset of operations is completed (1808); wherein the LDPC rotator circuit (1000, 1300, 1500) includes or is operably coupled to the controller (1003, 1508), the controller being arranged to control the rotation function performed by the LDPC rotator circuit (1000, 1300, 1500), wherein the series of ceil(Z / P) input blocks (1014, 1310, 1507) of floor(Z / P) number comprises input values ​​provided by the Z data values ​​of number P, and one input block of the series of ceil(Z / P) input blocks (1014, 1310, 1507) is a padding input block comprising input values ​​provided by the Z data values ​​of number mod(Z,P) and padding values ​​of number P-mod(Z,P) when Z is not a multiple of P; and The method further comprises: Before the second subset of the series of operations begins, accepting one or more input values ​​through the input terminal, deriving one or more registered values ​​from the one or more input values, under the direction of the controller (1003, 1508), writing the second set of one or more registers (1803) with the derived one or more register values, Wherein before the filled input block is accepted at the input end (1809), the derived one or more register values ​​are not overwritten (1805), and at least one of the P output values ​​in at least one of the output blocks (1015, 1315, 1511) is a function of at least one register value in the second group of one or more registers (1810).