Decoding method, device, equipment, storage medium, program product and communication chip
By deinterleaving the LLR data in the receiving device and obtaining the effective data address, and directly inputting it into the Turbo decoder, the problem of the Turbo decoder needing to be rearranged is solved, and the decoding efficiency and resource utilization are improved.
Patent Information
- Application Number
- CN202111668318.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-31
AI Technical Summary
After receiving the data, the Turbo decoder needs to rearrange the order to adapt to the operation requirements, resulting in low decoding efficiency.
The receiving device stores the valid data in the obtained LLR data into the deinterleaver buffer, and performs deinterleaving processing based on the number of invalid data, code block size and the parallelism of the Turbo decoder to obtain the deinterleaved valid data. Address, directly enter the Turbo decoder for decoding.
It improves the decoding efficiency of the Turbo decoder, avoids the need to rearrange the order, and improves the system's storage resource utilization.
Smart Images

Figure CN114337927B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a decoding method, device, equipment, storage medium, program product and communication chip. Background Art
[0002] When communication devices are transmitting data, the device at the data sending end needs to encode and modulate the data, and the device at the data receiving end needs to demodulate and decode the data.
[0003] In the related art, data is received without vacancies and input into the circular buffer after HARQ soft combining is completed through the LLR combining block, and then the NULL bit is inserted into the corresponding position to obtain a complete R*32 matrix, which is divided into 4 groups. According to the group index value and the address offset correction value after removing the NULL, deinterleaving is completed by column writing and row reading, and finally the deinterleaving result without NULL is sent to the Turbo decoder. The Turbo decoder needs to process the received deinterleaving result before decoding the data. Summary of the invention
[0004] The embodiments of the present application provide a decoding method, apparatus, device, storage medium, program product and communication chip, which can improve the decoding efficiency of a Turbo decoder. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a decoding method, which is performed by a receiving device, and the method includes:
[0006] Obtaining log-likelihood ratio (LLR) data of the received wireless signal;
[0007] Storing valid data in the LLR data in a deinterleaver buffer in sequence;
[0008] According to the amount of invalid data in the LLR data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder, 3*K valid data in the deinterleaver buffer and addresses of the 3*K valid data after deinterleaving;
[0009] The 3*K valid data and the addresses of the 3*K valid data after deinterleaving are input into the Turbo decoder for decoding.
[0010] On the other hand, an embodiment of the present application provides a decoding device, which is used in a receiving end device, and the device includes:
[0011] A data acquisition module, used to acquire log-likelihood ratio (LLR) data of the received wireless signal;
[0012] A data storage module, used for storing valid data in the LLR data in sequence into a deinterleaver buffer;
[0013] An address acquisition module, used for acquiring 3*K valid data in the deinterleaver buffer and addresses of the 3*K valid data after deinterleaving according to the number of invalid data in the LLR data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder;
[0014] The decoding module is used to input the 3*K valid data and the addresses of the 3*K valid data after deinterleaving into the Turbo decoder for decoding.
[0015] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory; the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the decoding method described in the above aspect.
[0016] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer instruction is stored. The computer instruction is loaded and executed by a processor to implement the decoding method described in the above aspects.
[0017] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal performs the decoding method provided in various optional implementations of the above aspects.
[0018] On the other hand, an embodiment of the present application provides a communication chip, which is used in a receiving device, and the communication chip is used to execute to implement the decoding method described in the above aspects.
[0019] The beneficial effects of the technical solution provided by the embodiments of the present application include at least:
[0020] The receiving end device stores the valid data in the acquired LLR data in the deinterleaver buffer, and deinterleaves the valid data in the deinterleaver buffer and obtains the address of the deinterleaved valid data according to the number of invalid data in the acquired LLR data, the code block size of the LLR data and the parallelism of the Turbo decoder, so that the Turbo decoder can directly decode the LLR data according to the acquired valid data and the address of the valid data after deinterleaving. This avoids the situation where the Turbo decoder needs to rearrange the order after receiving the data to adapt to the operation requirements of the Turbo decoder, thereby improving the decoding efficiency of the Turbo decoder. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] Figure 1 is a block diagram of a communication system according to an exemplary embodiment;
[0023] Figure 2 is a flowchart of a decoding method according to an exemplary embodiment;
[0024] Figure 3 is a flowchart of a decoding method according to another exemplary embodiment;
[0025] Figure 4(a) is Figure 3 A schematic diagram of a matrix before interleaving involved in the illustrated embodiment;
[0026] Figure 4(b) is Figure 3 A schematic diagram of a matrix before interleaving involved in the illustrated embodiment;
[0027] Figure 5(a) is Figure 3 A schematic diagram of an interleaved matrix involved in the illustrated embodiment;
[0028] Figure 5(b) is Figure 3 A schematic diagram of an interleaved matrix involved in the illustrated embodiment;
[0029] Figure 6 yes Figure 3 A schematic diagram of a circular buffer according to the embodiment shown;
[0030] Figure 7(a) is Figure 3 A schematic diagram of a matrix of encoded valid data involved in the illustrated embodiment;
[0031] Figure 7(b) is Figure 3 A schematic diagram of a matrix of encoded valid data involved in the illustrated embodiment;
[0032] Figure 8 yes Figure 3 A schematic diagram of CBM storage involved in the illustrated embodiment;
[0033] Fig. 9 yes Figure 3 Another CBM storage schematic diagram of the illustrated embodiment;
[0034] Fig.10 yes Figure 3 A schematic diagram of bit positions before and after data interleaving involved in the illustrated embodiment;
[0035] Fig.11 yes Figure 3 A schematic diagram of address offset correction values of three bit streams involved in the illustrated embodiment;
[0036] Fig.12 yes Figure 3 The illustrated embodiment relates to a timing diagram for reading data from a CBM and writing data into a Turbo decoder;
[0037] Fig.13 yes Figure 3 A structural diagram of LLR data generation and processing involved in the illustrated embodiment;
[0038] Fig.14 is a structural block diagram of a decoding device provided by an exemplary embodiment of the present application;
[0039] Fig.15 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown.
[0040] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0041] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0042] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0043] Figure 1A block diagram of a communication system provided by an exemplary embodiment of the present application is shown. The communication system may include: an access network 12, a terminal device 14, and a core network 16.
[0044] The access network 12 includes several access network devices 120. The access network device 120 may be a base station, which is a device deployed in the access network to provide wireless communication functions for the terminal. The base station may include various forms of macro base stations, micro base stations, relay stations, access points, etc. In systems using different wireless access technologies, the names of devices with base station functions may be different. For example, in the LTE (Long Term Evolution) system, it is called eNodeB (Evolved Node B, base station) or eNB for short; in the 5G NR-U (5G New Radio in Unlicensed Spectrum, 5G air interface working in an unlicensed frequency band) system, it is called gNodeB (5G base station) or gNB. With the evolution of communication technology, the description of "base station" may change. For the convenience of the embodiments of the present application, the above-mentioned devices that provide wireless communication functions for the terminal device 14 are collectively referred to as network devices.
[0045] The terminal device 14 may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment, mobile stations (MS), terminals, etc. For the convenience of description, the above-mentioned devices are collectively referred to as terminals. The access network device 120 and the terminal device 14 communicate with each other through some air interface technology, such as a Uu interface.
[0046] As the top layer of the mobile communication network, the core network 16 completes the routing and exchange of data, and finally realizes the establishment of a channel between the terminal user and the Internet. After the channel is established, the terminal user can access the data center on the Internet, that is, the server of the service provider, and use the services and services provided by the service provider.
[0047] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile Communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-based access to Unlicensed spectrum, LTE-U) system, NR-U system, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, Wireless Local Area Network (WLAN) system. Networks, WLAN), Wireless Fidelity (WiFi), 6th Generation mobile communication technology (6-Generation, 6G) system, next generation communication system or other communication systems, etc.
[0048] Generally speaking, the number of connections supported by traditional communication systems is limited and easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but also support, for example, device to device (Device to Device, D2D) communication, machine to machine (Machine to Machine, M2M) communication, machine type communication (Machine Type Communication, MTC), vehicle to vehicle (V2V) communication and vehicle to everything (V2X) system, etc. The embodiments of the present application can also be applied to these communication systems.
[0049] Figure 2 A flowchart of a decoding method provided by an exemplary embodiment of the present application is shown. The decoding method may be executed by a receiving device, for example, the receiving device may be the above-mentioned Figure 1 The terminal device 14 or access network device 120 in the communication system shown. The decoding method comprises the following steps:
[0050] Step 201: Obtain log-likelihood ratio (LLR) data of a received wireless signal.
[0051] In the embodiment of the present application, after the receiving end device receives the wireless signal, the log-likelihood ratio LLR data of the wireless signal can be acquired.
[0052] After receiving the wireless signal, the receiving device may input the wireless signal into a demapping module (Demapper), process the wireless signal through the Demapper, and obtain the log-likelihood ratio (LLR) data of the wireless signal through the output of the Demapper.
[0053] Among them, the LLR data obtained by the Demapper output can be segmented and descrambled to obtain LLR data with a length of E of 1CB.
[0054] Step 202: Store valid data in the LLR data into a deinterleaver buffer in sequence.
[0055] In an embodiment of the present application, the LLR data acquired by the receiving device includes valid data and may also include invalid data. The receiving device stores the valid data in the acquired LLR in a deinterleaver buffer in sequence, waiting for deinterleaving processing.
[0056] Step 203, according to the number of invalid data in the LLR data, the code block size K of the LLR data and the parallelism P of the Turbo decoder, obtain 3*K valid data in the deinterleaver buffer and the addresses of the 3*K valid data after deinterleaving.
[0057] In an embodiment of the present application, the receiving device obtains 3*K valid data in the deinterleaving buffer and the addresses corresponding to the 3*K valid data after deinterleaving based on the number of invalid data contained in the LLR data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder.
[0058] Step 204: Input the 3*K valid data and the addresses of the 3*K valid data after deinterleaving into a Turbo decoder for decoding.
[0059] In an embodiment of the present application, the receiving device can input the acquired 3*K valid data and the addresses corresponding to the 3*K valid data after deinterleaving into a Turbo decoder for decoding, and the Turbo decoder decodes the 3*K valid data.
[0060] In summary, in the embodiment of the present application, the receiving end device stores the valid data in the acquired LLR data into the deinterleaver buffer, and deinterleaves the valid data in the deinterleaver buffer and obtains the address of the deinterleaved valid data according to the number of invalid data in the acquired LLR data, the code block size of the LLR data and the parallelism of the Turbo decoder, so that the Turbo decoder can directly decode the LLR data according to the acquired valid data and the address of the valid data after deinterleaving. This avoids the situation where the Turbo decoder needs to rearrange the order after receiving the data to adapt to the operation requirements of the Turbo decoder, thereby improving the decoding efficiency of the Turbo decoder.
[0061] In addition, in the solution shown in the embodiment of the present application, the data stored in the deinterleaver buffer is valid data in the LLR data and does not contain invalid data, thereby improving the utilization rate of the interleaver buffer and saving system storage resources.
[0062] Figure 3 A flowchart of a decoding method provided by an exemplary embodiment of the present application is shown. The decoding method may be executed by a receiving device, for example, the receiving device may be the above-mentioned Figure 1 The terminal device 14 or access network device 120 in the communication system shown. The decoding method comprises the following steps:
[0063] Step 301: Obtain log-likelihood ratio (LLR) data of a received wireless signal.
[0064] In an embodiment of the present application, the receiving device can obtain LLR data corresponding to the received wireless signal through Demapper.
[0065] Step 302: Filter out each valid data from the LLR data.
[0066] In the embodiment of the present application, the receiving end device can obtain valid data from LLR data containing valid data and invalid data.
[0067] In a possible implementation, for PDSCH (Physical Downlink Shared Channel), a receiving device receives E encoded valid data sent by a transmitting device, and performs descrambling on the E encoded valid data, and the receiving device obtains valid data of E LLR data.
[0068] The receiving end device may filter the valid data of the received encoded LLR data through a demapping module and a descrambling module to obtain each valid data in the LLR data.
[0069] Step 303, storing each valid data in the circular buffer in sequence.
[0070] In an embodiment of the present application, the receiving device may store each acquired valid data in a circular buffer in sequence.
[0071] In a possible implementation, when the number E of each valid data is greater than the upper limit Ncb of the cache data amount in the circular buffer, each valid data is circularly written into each cache address in the circular buffer in the order of each valid data; the cache address supports storing a specified number of valid data; for the repeated write addresses in each cache address, the valid data in the repeated write addresses are soft merged; the repeated write address is a cache address to which valid data is written again after the specified number of valid data has been written.
[0072] The circular buffer can be implemented by a circular buffer, which can be a CBM (Code Block Memory). The upper limit of the amount of cache data in the circular buffer can be Ncb, and the number of cache addresses in the circular buffer is N=Ncb / 32, where N is an integer rounded upward. In each of the N cache addresses in a cycle, a specified number of 32 LLR data can be stored. When the number E of each valid data is greater than the upper limit Ncb of the amount of cache data in the circular buffer, the data written into the circular buffer in the current cycle can store Ncb LLR data. For E-Ncb repeated LLR data, the data in the circular buffer needs to be read from address 0 and then unwrap, and soft merge is performed. Then, the merged result after soft merging, that is, the 32 LLR data obtained after soft merging, is re-written into the corresponding cache address until the E LLR data are merged into Ncb data.
[0073] The receiving device can use a whole block of random access memory (RAM) to complete the unwinding operation without inserting dummy bits. In this case, fewer registers can be used to avoid the problem of excessive area caused by too many RAM blocks, thereby reducing the area and achieving fast completion of the unwinding operation.
[0074] For example, 32 LLR data can be stored in each cache address in a loop. At this time, if the number of cache addresses in the circular buffer is N, 32N LLR data can be stored in the circular buffer in a loop. If the last cache address for data storage in a loop can store less than 32 LLR data, when the last cache address for data storage stores less than 32 LLR data, the insufficient part can be padded with zeros.
[0075] In another possible implementation, when the number E of each valid data is not greater than the upper limit Ncb of the cache data amount in the circular buffer, each valid data is sequentially written into each cache address in the circular buffer according to the order of each valid data.
[0076] In a possible implementation, the transmitting end device encodes the transmission data by using a Turbo encoder before sending the wireless signal.
[0077] The Turbo encoder may adopt a parallel cascade convolutional coding structure, and may be composed of two 8-state member encoders and one Turbo code intra-interleaver.
[0078] In a possible implementation, data is processed by a Turbo encoder to output three information bit streams, wherein the three information bit streams include a system bit stream, a first parity check stream, and a second parity check stream. The system bit stream, the first parity check stream, and the second parity check stream are respectively input into the corresponding submodule interleavers, and the corresponding submodule interleavers output the corresponding interleaved bit streams, and the total bit stream having a length equal to the total length of the three information bit streams is output through a bit collection module (Bit Collection), and the total bit stream is cached in an interleaver buffer, and the interleaver buffer supports storage of invalid data, and the data stored in the interleaver buffer is input into a bit selection and pruning module (Bit Selection And Pruning), and the data of a specified length excluding invalid data contained in the interleaver buffer is selected by the bit selection and pruning module, and the bit selection and pruning module outputs a data sequence of length E.
[0079] Among them, the interleaver buffer can be a circular buffer, which has an upper limit on the amount of cached data, and the upper limit of the cached data amount of the circular buffer can be Ncb. The valid data is selected from the specified address of the circular buffer through the bit selection and trimming module. If the amount of data to be selected is greater than the upper limit of the cached data amount of the circular buffer, the data in the circular buffer can be read in a loop, and finally the bit selection and trimming module outputs a data sequence of the data length to be selected.
[0080] Exemplarily, three information bit streams are obtained through the output of the Turbo encoder, and the three information bit streams include a system bit stream First parity stream and the second parity stream The length of each of the three information bit streams is D(K+4).
[0081] Wherein, D is the number of bits input to the interleaver, and K is the code block size (Codeblock Size, CB size).
[0082] System bitstream The system bit stream after the system bit interleaver outputs the interleaved system bit stream First parity stream The first parity check bit interleaver outputs the interleaved first parity check stream Second parity stream The second parity check bit interleaver outputs the interleaved second parity check stream
[0083] Among them, the sub-block interleaver includes a system bit interleaver, a first parity bit interleaver and a second parity bit interleaver, and the system bit interleaver and the first parity bit interleaver can be the same, and the system bit interleaver and the second parity bit interleaver can be different.
[0084] The corresponding submodule interleavers output the corresponding interleaved bit streams. If the length of each interleaved bit stream is K π , then the bit collection module outputs K w =3K π The total bit stream of length is K w The total bitstream can be w0, w1, w2, ... The total bit stream is then buffered in a circular buffer.
[0085] Among them, the system bit stream First parity stream and a second parity check stream The rule for combining to generate the total bit stream can be as follows.
[0086]
[0087]
[0088]
[0089] If the upper limit of the data volume accommodated by the cyclic buffer is Ncb, the Ncb of the cyclic buffer in the transmitting end device can contain data of Null (null pointer) bits, that is, invalid data, and the Ncb of the cyclic buffer in the receiving end device does not contain invalid data. Starting from the specified address k0 in the cyclic buffer, bit selection and clipping are performed, and data with a length of E of non-Null bits is selected. At this time, if E≤Ncb, the data in the cyclic buffer is directly read. If E>Ncb, the data in the cyclic buffer is read cyclically. Finally, a data sequence e0, e1, e2,... e with a length of E can be output. E-1 .
[0090] In a possible implementation, during the process of sub-module interleaving, for the K + 4 data corresponding to the system bit stream, an R * 32 matrix can be constructed, where the length D(K + 4) of each path of the information bit stream is < R * 32. That is to say, if R * 32 > D, Nd(32R - D) blank bits (Dummy Bits) need to be filled at the beginning of the first row of the R * 32-sized matrix.
[0091] Among them, the code block size K is a multiple of 8, and after passing through the Turbo encoder, it is K + 4. Combining D < 32R, the values of the blank bits Nd can be obtained as 4, 12, 20, 28.
[0092] Exemplarily, FIG4 is a schematic diagram of a matrix before interleaving involved in an embodiment of the present application. Taking K=304 as an example, according to the above R*32>D, D=K+4, it can be obtained that R=10, and Nd=12, the matrices corresponding to the system bit stream, the first parity check stream, and the second parity check stream before interleaving can be shown in FIG4(a) and FIG4(b), wherein the matrix with the number of rows R=10 shown in FIG4(a) is the matrix corresponding to the system bit stream, and the 0th to 11th columns of the 0th row in the matrix corresponding to the system bit stream are Dummy Bits. The matrix with the number of rows R=20 shown in FIG4(b) is the matrix corresponding to the interleaved parity check bit streams, the part corresponding to the even rows is the first parity check bit, the part corresponding to the odd rows is the second parity check bit, and the 0th to 11th columns in the 0th row and the 1st row are Dummy Bits. The column arrangement pattern corresponding to the submodule interleaver can be shown in Table 1 below. The three bit streams can be interleaved through their respective submodule interleavers according to the rules shown in Table 1, and the interleaved bit stream matrix can be output.
[0093]
[0094]
[0095] Table 1
[0096] For example, FIG5 is a schematic diagram of an interleaved matrix involved in an embodiment of the present application. The matrices corresponding to the interleaved system bit stream, the first parity check stream, and the second parity check stream can be shown in FIG5(a) and FIG5(b), respectively, wherein the matrix with the number of rows R=10 shown in FIG5(a) is the matrix corresponding to the interleaved system bit stream, and the 0th column, the 2nd column, the 4th column, the 8th column, the 10th column, the 12th column, the 16th column, the 18th column, the 20th column, the 24th column, the 26th column, and the 28th column of the 0th row in the matrix corresponding to the interleaved system bit stream are Dummy Bits, and each column in the matrix is adjusted according to the corresponding relationship shown in Table 1, for example, the first column of the matrix corresponding to the system bit stream before interleaving shown in FIG4(a) is 154-162, and according to the corresponding relationship shown in Table 1, the first column of the matrix corresponding to the system bit stream before interleaving corresponds to the 16th column of the matrix corresponding to the system bit stream after interleaving, that is, the 16th column in the matrix shown in FIG5(a) is 154-162. The matrix with row number R=20 shown in Figure 5(b) is the matrix corresponding to the interleaved parity bit stream, the part corresponding to the even rows is the first parity bit after interleaving, the part corresponding to the odd rows is the second parity bit after interleaving, the 0th column, the 2nd column, the 4th column, the 8th column, the 10th column, the 12th column, the 16th column, the 18th column, the 20th column, the 24th column, the 26th column, the 28th column in the 0th row, the 0th column, the 2nd column, the 4th column, the 8th column, the 10th column, the 12th column, the 16th column, the 18th column, the 20th column, the 24th column, the 28th column in the 1st row, and the 31st column in the 19th row are Dummy Bits, and the columns in the matrix are adjusted according to the corresponding relationship shown in Table 1.
[0097] In a possible implementation, the designated address k0 of the circular buffer for starting data storage is calculated by the following formula:
[0098]
[0099] For example, taking E>Ncb as an example, Figure 6 5 is a schematic diagram of a circular buffer involved in an embodiment of the present application. When the matrix data shown in FIG5 is stored in the circular buffer from the 0th column to the 31st column in sequence, E data without Dummy Bit can be selected from k061 in the circular buffer, that is, rv idx When =0, E data can be selected starting from the second column of the matrix to obtain the selected E encoded valid data.
[0100] For example, FIG7 is a schematic diagram of a matrix of encoded valid data involved in an embodiment of the present application. As shown in FIG7, E data are selected from the second column of the matrix without Dummy Bit to obtain selected E valid data. As shown in FIG7(a), it is a valid data matrix corresponding to the system bit stream, and as shown in FIG7(b), it is a valid data matrix corresponding to the parity check stream and valid data 701 corresponding to the repeated system bit stream data.
[0101] For example, Figure 8 This is a schematic diagram of CBM storage when E>N involved in an embodiment of the present application. Figure 8 As shown, if the acquired E LLR data cannot be stored in the CBM at one time, the first N LLR data are written into the CBM in sequence, and then the remaining EN LLR data are acquired, and the EN LLR data are read from the CBM starting from address 0, the data in the CBM is read out and then the unwinding operation is performed, and the soft merge is performed with the remaining LLR data, and then the merged result after the soft merge is written into the corresponding cache address until the E LLR data are merged into N data.
[0102] For example, Fig. 9 1 is a schematic diagram of CBM storage when E≤N involved in an embodiment of the present application. Fig. 9 As shown, if the acquired E LLR data can be stored in the CBM at one time, the E LLR data are written into the CBM at one time in sequence.
[0103] In one possible implementation, when the matrix of encoded valid data is stored in the CBM, the storage format of the data can be to convert the matrix corresponding to the acquired valid data into a matrix with 32 columns, and write each column of data into a matrix with 32 columns in the order of the valid data matrix corresponding to the system bit stream, the valid data matrix corresponding to the parity check stream, and the valid data matrix corresponding to the repeated system bit stream, and store the matrix in the CBM.
[0104] Step 304, starting from the start address of the circular buffer, the data in the circular buffer is stored in the deinterleaver buffer in sequence.
[0105] In an embodiment of the present application, the receiving end device stores N data stored in the circular buffer into the deinterleaver buffer in sequence starting from the starting address in the circular buffer.
[0106] The deinterleaver buffer is used to temporarily store data to be deinterleaved and to reorder the temporarily stored data so that the reordered data can ensure that the data read out after being input into the Turbo decoder can be used directly.
[0107] Since the data required by the Turbo decoder is not in the order of row read out after interleaving, but needs to be reorganized in a certain arrangement order and then input into the buffer of the Turbo decoder to ensure that the Turbo decoder can directly use the read data after reading it.
[0108] In addition, the starting address of the circular buffer may be k0, and starting from the address k0 of the circular buffer, the data in the circular buffer is sequentially stored in the deinterleaver buffer.
[0109] Step 305: Obtain the bit positions of 3*K valid data after deinterleaving according to the amount of invalid data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder.
[0110] In an embodiment of the present application, after N data are stored in the deinterleaver buffer in sequence, the bit positions of 3*K valid data after deinterleaving can be obtained according to the number of invalid data corresponding to the data, the code block size K of the LLR data and the parallelism P of the Turbo decoder.
[0111] In a possible implementation, the number Nd of invalid data is the number of blank bits existing before blank bit screening is performed on the data, and the parallelism P of the Turbo decoder is the number of data supported by each phase of the Turbo decoder for simultaneous processing.
[0112] The receiving end device can obtain the data sequence required by the Turbo decoder according to the code block size K value and the parallelism value of the Turbo decoder, read the LLR data from the deinterleaver buffer and complete the deinterleaving.
[0113] In a possible implementation, the LLR data of the P positions supported by each phase in the Turbo decoder are determined according to the parallelism P of the Turbo decoder, and the number of columns and rows of the LLR data of the P positions supported by each phase can be determined according to the number of invalid data Nd and the code block size K of the LLR data, so as to obtain the bit positions of 3*K valid data after deinterleaving.
[0114] Wherein, determining the LLR data of P positions supported by each phase in the Turbo decoder according to the parallelism P of the Turbo decoder may include the following cases:
[0115] When P=16, the Turbo decoder needs to include LLR data of 16 positions including 0, K / 16, K / 8, 3K / 16, ..., 7K / 8, 15K / 16 at phase 0;
[0116] When P=8, the Turbo decoder needs to include LLR data of 8 positions including 0, K / 8, K / 4, 3K / 8, K / 2, 5K / 8, 3K / 4 and 7K / 8 at phase 0;
[0117] When P=4, the Turbo decoder needs LLR data of 4 positions including 0, K / 4, K / 2, and 3K / 4 at phase 0;
[0118] When P=2, the Turbo decoder needs LLR data of 2 positions including 0 and K / 2 at phase 0;
[0119] When P=1, the Turbo decoder needs LLR data of 1 position including 0 at phase 0.
[0120] In addition, the number of columns and rows of the LLR data at the P positions of each phase support processing can be determined according to the number of invalid data Nd and the code block size K of the LLR data, which may include the following situations:
[0121] When P=16, the columns of the 16 data are Nd, K / 16%32+Nd, K / 8%32+Nd, ..., 15K / 16%32+Nd;
[0122] When P=8, the columns of the 8 data are Nd, K / 8%32+Nd, ..., 7K / 8%32+Nd respectively;
[0123] When P=4, the columns of the four data are Nd, K / 4%32+Nd, K / 2%32+Nd, 3K / 4%32+Nd respectively;
[0124] When P=2, the column numbers of the two data are Nd and K / 2%32+Nd respectively;
[0125] When P=1, the number of columns where one data is located is Nd.
[0126] Exemplarily, if P=16, the Turbo decoder needs LLR data of 16 positions including 0, K / 16, K / 8, 3K / 16, ..., 15K / 16 at phase 0. Since the system bit stream and the parity bit stream are both 32*R matrices, the number of columns and rows of the LLR data at the above 16 positions after deinterleaving can be calculated according to the Nd value and the K value. The number of columns where the 16 data are located are Nd, K / 16%32+Nd, K / 8%32+Nd, ..., 15K / 16%32+Nd respectively.
[0127] Step 306: Obtain addresses of the 3*K valid data in the deinterleaver buffer according to the bit positions of the 3*K valid data after deinterleaving and the interleaving rule of the LLR data.
[0128] In an embodiment of the present application, the receiving device can calculate the bit positions corresponding to the 3*K valid data before deinterleaving based on the column number of the 3*K valid data after deinterleaving and the interleaving rules of the LLR data, thereby obtaining the addresses of the 3*K valid data in the deinterleaving buffer.
[0129] In a possible implementation, based on the bit positions of the 3*K valid data after deinterleaving and the interleaving rules, the bit positions of the 3*K valid data before deinterleaving are obtained; based on the bit positions of the 3*K valid data before deinterleaving, the input indexes of the 3*K valid data are obtained; based on the interleaving rules, the bit positions of the invalid data in the LLR data after interleaving are obtained; based on the bit positions of the invalid data after interleaving, the address offset correction values of the 3*K valid data are obtained; based on the input indexes of the 3*K valid data and the address offset correction values of the 3*K valid data, the addresses of the 3*K valid data in the deinterleaver buffer are obtained.
[0130] Among them, the receiving device can obtain the address of 3*K valid data in the deinterleaver buffer according to the input index of 3*K valid data, the address offset correction value of 3*K valid data, the starting point size and the bit width of the deinterleaver buffer.
[0131] The interleaving rule may be a correspondence between the number of columns before interleaving and the number of columns after interleaving when data is interleaved. The interleaving rule may be a rule as shown in Table 1.
[0132] In a possible implementation, the data format output after the data in the deinterleaving buffer is deinterleaved is determined according to the K value corresponding to the data and the parallelism P value corresponding to the Turbo decoder.
[0133] Among them, the data format output by the deinterleaver is shown in Table 2 below.
[0134]
[0135] Table 2
[0136] For example, if the Turbo decoder has four phases, then when 40≤K≤384, P=1. At a time, each phase in the Turbo decoder processes one data, so the four phases can process 4 data at the same time. At this time, the four phases process the 0th / 1st / 2nd / 3rd LLR data respectively. Since the bit width of the Turbo decoder that inputs data to the Turbo decoder can be 16LLR, the data format output to the Turbo decoder can be as follows:
[0137] {3,2,1,0,null,null,null,null,null,null,null,null,null,null,null,null}
[0138] Exemplarily, if P=16, the Turbo decoder needs LLR data at 16 positions, namely 0, K / 16, K / 8, 3K / 16, ..., 15K / 16, at phase 0. Since the system bit stream is a 32*R matrix, the first parity bit stream and the second parity bit stream are crossed to obtain a parity bit stream, and the parity bit stream is a 32*2R matrix. The number of columns and rows where the data at the above 16 positions are located after deinterleaving can be calculated based on the Nd and K values, wherein the number of columns where the above 16 data are located are Nd, K / 16%32+Nd, K / 8%32+Nd, ..., 15K / 16%32+Nd respectively. Then, according to the interleaving rule shown in Table 1 above, the column numbers of the 16 data before deinterleaving are obtained, and the row number R is calculated. The column numbers and row number R of the 16 data before deinterleaving are the bit positions corresponding to the 16 data. According to the bit positions corresponding to the 16 data before deinterleaving, the input index input_idx written in columns starting from column 0 before deinterleaving containing the Dummy Bit can be calculated. Since the LLR data actually stored in the deinterleaver buffer does not contain the Dummy Bit, the calculated input index input_idx needs to be corrected. Fig.10 1 is a schematic diagram of the bit positions before and after data interleaving when Nd=4 / 12 / 20 / 28 involved in an embodiment of the present application. Since the value of Nd can only be 4 / 12 / 20 / 28, the position of the Dummy Bit after interleaving can be obtained according to the interleaving rule, such as Fig.10 As shown, the data marked in the black box corresponds to the position of the Dummy Bit. For example, when Nd=4, the Dummy Bit in the system bit stream before interleaving is located at the positions corresponding to the 0th to 3rd columns. After interleaving, according to the interleaving rules, the Dummy Bit can be located at the positions corresponding to the 0th, 8th, 16th and 24th columns.
[0139] In a possible implementation, the address offset correction value of each column may be obtained by acquiring the bit position of the Dummy Bit before interleaving and the bit position of the Dummy Bit after interleaving.
[0140] for example, Fig.11 Schematic diagram of address offset correction values of three bit streams involved in an embodiment of the present application. Fig.11 The address offset correction values shown are used to perform address correction on the three bit streams respectively to obtain the addresses of 3*K valid data in the deinterleaver buffer.
[0141] In a possible implementation, the addresses of 16 data in the deinterleaver buffer are calculated according to the calculated input index input_idx, the corresponding address offset correction value, the size of k0, and the bit width of the deinterleaver buffer. If the address does not exist, the data at the address is padded with zeros, and 32 LLR data are taken out from the 16 addresses in turn, and the 32 LLR data are cached in a register. Then, the data at 16 positions including 0, K / 16, K / 8, 3K / 16, ..., 15K / 16 in the 32LLR data are taken out in turn and spliced into valid data with a width of 16LLR. Then, the 16LLR data and addresses are input into the Turbo decoder in turn, and finally, the 12 tail bits are input to the Turbo decoder through the register.
[0142] Among them, the bit width of the deinterleaver buffer can be set according to the needs of Turbo encoding and decoding. Because it is a hardware interface, the bit width is set according to the maximum requirement of 16LLR. If the K value and P value are relatively small, the high bit part is occupied for decoding, and the low bit part can be padded with zeros.
[0143] Step 307: extract 3*K valid data from the deinterleaver buffer according to the addresses of the 3*K valid data in the deinterleaver buffer.
[0144] In an embodiment of the present application, the receiving end device extracts 3*K valid data from the deinterleaver buffer according to the addresses of the acquired 3*K valid data in the deinterleaver buffer.
[0145] For example, Fig.12 1 is a timing diagram of reading data from a deinterleaver buffer and writing data to a Turbo decoder according to an embodiment of the present application. Fig.12 shown.
[0146] Exemplarily, when taking the system bit stream as an example, and K=304, k0=19, E=108>3(K+4), if P=1, Nd=12, R=10 is calculated, then the data at the 0th position needs to be output, then the 0th data after deinterleaving is at Nd=12, according to the interleaving rule, the 0th data before deinterleaving can be obtained in the 6th column, and the 0th data is in the 0th row, according to the bit position of the 0th data after deinterleaving, and the interleaving rule, the bit position of the 0th data before deinterleaving can be obtained, according to the bit position of the 0th data before deinterleaving, the input index input_idx of the input 0th data can be calculated, and the input index can be calculated by the following formula,
[0147] 6*R-k0-address offset value+R(x)
[0148] Among them, 6*R is the number of rows in the system bit stream, k0 is the address starting point, and R(x) is the number of the row where the x-th data is located.
[0149] The above formula can be used to calculate the input index input_idx of the 0th data as 6*R (number of rows in the system bitstream)-k0 (starting point)-(3-1) (address offset value)+R(0) (number of rows where the 0th data is located)=39. Then, according to the write order 39, the address in the buffer can be calculated as 1_6, where 1_6 represents the 6th LLR data of the 1st address. Similarly, the positions of the 1st / 2nd / 3rd data can be calculated.
[0150] Step 308: Input the 3*K valid data and the addresses of the 3*K valid data after deinterleaving into a Turbo decoder for decoding.
[0151] In the embodiment of the present application, the receiving end device sequentially inputs the acquired 3*K valid data and the addresses of the 3*K valid data after deinterleaving into the Turbo decoder for decoding.
[0152] Exemplarily, when P=1, 4 data transmitted to the Turbo decoder for decoding are read out from the deinterleaver buffer respectively, and the data can be spliced according to the output format after 4 cycles. The output format can be determined in the manner shown in Table 2 above, and the deinterleaver buffer sends the acquired data and the address corresponding to the data to the Turbo decoder together, which can be as follows: Fig.12 The timing diagram shown reads data from the deinterleaver buffer and writes data to the Turbo decoder.
[0153] Fig.13 is a structural diagram of LLR data generation and processing involved in an embodiment of the present application, such as Fig.13As shown, the LLR data output by the receiving demapping module is received, and then the LLR data with a length of E is obtained after code block segmentation and descrambling processing. The size of the circular buffer is Ncb. If E>Ncb, the CBM needs to be used for de-wrapping operation; if E≤Ncb, the de-wrapping operation is not required at this time, and the LLR data with Qm parallelism output from the descrambling module is converted into 32 parallelism LLR data after the register matrix (Register Matrix) and directly written into the CBM; if E>Ncb, the first Ncb LLR data are written into the CBM in sequence, and the data after Ncb LLRs are soft-merged with the LLR data at the same position read from the CBM and then written into the CBM. At this time, the data in the CBM does not contain Null bits (blank bits). Among them, if the transmitted data is new data, there is no need to perform HARQ soft merging operation, and the current data in CBM can be directly written into the deinterleaver buffer. If it is retransmitted data, HARQ (Hybrid Automatic Repeat ReQuest) soft merging operation is required. After HARQ soft merging, it is written into the deinterleaver buffer. The data in the deinterleaver buffer needs to complete the sub-block de-interleaving function, deinterleave according to the K value (code block size) and P (parallelism) value, and output LLR data that can be directly used by the Turbo decoder. Since the deinterleaving module can complete data rearrangement to meet the needs of Turbo decoder operation while deinterleaving, the output LLR data Turbo decoder can be used directly without reorganizing the order, which significantly improves the efficiency of Turbo decoder decoding.
[0154] In summary, in the embodiment of the present application, the receiving end device stores the valid data in the acquired LLR data into the deinterleaver buffer, and deinterleaves the valid data in the deinterleaver buffer and obtains the address of the deinterleaved valid data according to the number of invalid data in the acquired LLR data, the code block size of the LLR data and the parallelism of the Turbo decoder, so that the Turbo decoder can directly decode the LLR data according to the acquired valid data and the address of the valid data after deinterleaving. This avoids the situation where the Turbo decoder needs to rearrange the order after receiving the data to adapt to the operation requirements of the Turbo decoder, thereby improving the decoding efficiency of the Turbo decoder.
[0155] Fig.14 The structural block diagram of a decoding device provided by an exemplary embodiment of the present application is shown. The decoding device is used in a receiving end device, and the decoding device includes:
[0156] The data acquisition module 1410 is used to acquire log-likelihood ratio (LLR) data of the received wireless signal;
[0157] A data storage module 1420, configured to sequentially store valid data in the LLR data into a deinterleaver buffer;
[0158] An address acquisition module 1430 is used to acquire 3*K valid data in the deinterleaver buffer and addresses of the 3*K valid data after deinterleaving according to the number of invalid data in the LLR data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder;
[0159] The decoding module 1440 is used to input the 3*K valid data and the addresses of the 3*K valid data after deinterleaving into the Turbo decoder for decoding.
[0160] In a possible implementation, the data storage module 1420 includes:
[0161] A screening submodule, used for screening out each of the valid data from the LLR data;
[0162] A first storage submodule, used for storing each of the valid data in sequence into a circular buffer;
[0163] The second storage submodule is used to store the data in the circular buffer into the deinterleaver buffer in sequence starting from the starting address of the circular buffer.
[0164] In a possible implementation, the first storage submodule includes:
[0165] A data writing unit, used for, when the number E of each valid data is greater than the upper limit Ncb of the cache data amount in the circular buffer, cyclically writing each valid data into each cache address in the circular buffer in the order of each valid data; the cache address supports storing a specified number of the valid data;
[0166] A merging unit is used to soft-merge the valid data in the repeated write addresses in each of the cache addresses; the repeated write address is the cache address where the valid data is written again after a specified number of the valid data have been written.
[0167] In a possible implementation, the first storage submodule includes:
[0168] The storage unit is used to write each valid data into each cache address in the circular buffer in sequence according to the order of each valid data when the number E of each valid data is not greater than the upper limit Ncb of the cache data amount in the circular buffer.
[0169] In a possible implementation, the address acquisition module 1430 includes:
[0170] A position acquisition submodule, used for acquiring the bit positions of the 3*K valid data after deinterleaving according to the amount of the invalid data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder;
[0171] An address acquisition submodule, used for acquiring addresses of the 3*K valid data in the deinterleaver buffer according to the bit positions of the 3*K valid data after deinterleaving and the interleaving rule of the LLR data;
[0172] The data extraction submodule is used to extract the 3*K valid data from the deinterleaver buffer according to the addresses of the 3*K valid data in the deinterleaver buffer.
[0173] In a possible implementation, the address acquisition submodule includes:
[0174] A first position acquisition unit, configured to acquire the bit positions of the 3*K valid data before deinterleaving according to the bit positions of the 3*K valid data after deinterleaving and the interleaving rule;
[0175] An index acquisition unit, configured to acquire input indexes of the 3*K valid data according to bit positions of the 3*K valid data before deinterleaving;
[0176] A second position acquisition unit, configured to acquire, according to the interleaving rule, a bit position of the invalid data in the LLR data after interleaving;
[0177] A correction value acquisition unit, used to acquire the address offset correction values of the 3*K valid data according to the bit positions of the invalid data after interleaving;
[0178] The address acquisition unit is used to acquire the addresses of the 3*K valid data in the deinterleaver buffer according to the input indexes of the 3*K valid data and the address offset correction values of the 3*K valid data.
[0179] In a possible implementation, the address acquisition unit is used to:
[0180] The addresses of the 3*K valid data in the deinterleaver buffer are obtained according to the input indexes of the 3*K valid data, the address offset correction values of the 3*K valid data, the starting point size and the bit width of the deinterleaver buffer.
[0181] In summary, in the embodiment of the present application, the receiving end device stores the valid data in the acquired LLR data into the deinterleaver buffer, and deinterleaves the valid data in the deinterleaver buffer and obtains the address of the deinterleaved valid data according to the number of invalid data in the acquired LLR data, the code block size of the LLR data and the parallelism of the Turbo decoder, so that the Turbo decoder can directly decode the LLR data according to the acquired valid data and the address of the valid data after deinterleaving. This avoids the situation where the Turbo decoder needs to rearrange the order after receiving the data to adapt to the operation requirements of the Turbo decoder, thereby improving the decoding efficiency of the Turbo decoder.
[0182] Fig.15 The structure block diagram of a terminal provided by an exemplary embodiment of the present application is shown. The terminal may be an electronic device such as a smart phone, a tablet computer, an e-book, a portable personal computer, etc., which has an application installed and running. The terminal in the present application may include one or more of the following components: a processor 1510, a memory 1520, and a screen 1530.
[0183] The processor 1510 may include one or more processing cores. The processor 1510 uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1520, and calling data stored in the memory 1520. Optionally, the processor 1510 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1510 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the screen 1530; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1510, but may be implemented separately through a communication chip.
[0184] The memory 1520 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1520 includes a non-transitory computer-readable storage medium. The memory 1520 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1520 may include a storage program area and a storage data area, wherein the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system (including a system deeply developed based on the Android system), an IOS system developed by Apple (including a system deeply developed based on the IOS system) or other systems. The storage data area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal during use.
[0185] The screen 1530 may be a capacitive touch display screen, which is used to receive a touch operation on or near it by a user using any suitable object such as a finger, a touch pen, etc., and to display the user interface of each application. The touch display screen is usually arranged on the front panel of the terminal. The touch display screen may be designed as a full screen, a curved screen, or a special-shaped screen. The touch display screen may also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.
[0186] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above figures does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal also includes a radio frequency circuit, a shooting component, a sensor, an audio circuit, a wireless fidelity (WiFi) component, a power supply, a Bluetooth component, and other components, which will not be described in detail here.
[0187] An embodiment of the present application further provides a computer-readable storage medium, in which at least one computer instruction is stored. The at least one computer instruction is loaded and executed by a processor to implement the decoding method described in the above embodiments.
[0188] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the decoding method provided in various optional implementations of the above aspects.
[0189] An embodiment of the present application further provides a communication chip, which is used in a receiving device and is used to execute and implement the decoding method as described in the above embodiments.
[0190] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0191] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A decoding method, characterized in that: The method is performed by a receiving end device, and the method includes: Obtaining log-likelihood ratio (LLR) data of the received wireless signal; Storing valid data in the LLR data in a deinterleaver buffer in sequence; According to the amount of invalid data in the LLR data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder, 3*K valid data in the deinterleaver buffer and addresses of the 3*K valid data after deinterleaving; The 3*K valid data and the addresses of the 3*K valid data after deinterleaving are input into the Turbo decoder for decoding.
2. The method according to claim 1, characterized in that The storing the valid data in the LLR data in sequence into a deinterleaver buffer includes: Filtering out each of the valid data from the LLR data; Storing each of the valid data in a circular buffer in sequence; Starting from the starting address of the circular buffer, the data in the circular buffer is stored in the deinterleaver buffer in sequence.
3. The method according to claim 2, characterized in that The storing each of the valid data in sequence into a circular buffer comprises: When the number E of each valid data is greater than the upper limit Ncb of the cache data amount in the circular buffer, each valid data is cyclically written into each cache address in the circular buffer in the order of each valid data; the cache address supports storing a specified number of the valid data; For each repeated write address in the cache address, soft merging is performed on the valid data in the repeated write address; the repeated write address is the cache address to which the valid data is written again after a specified number of the valid data have been written.
4. The method according to claim 2, characterized in that: The storing each of the valid data in sequence into a circular buffer comprises: When the number E of each valid data is not greater than the upper limit Ncb of the cache data amount in the circular buffer, each valid data is sequentially written into each cache address in the circular buffer according to the order of each valid data.
5. The method according to any one of claims 1 to 4, characterized in that: The acquiring, according to the number of invalid data in the LLR data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder, 3*K valid data in the deinterleaver buffer and the addresses of the 3*K valid data after deinterleaving, comprises: Obtaining bit positions of the 3*K valid data after deinterleaving according to the amount of the invalid data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder; According to the bit positions of the 3*K valid data after deinterleaving and the interleaving rule of the LLR data, acquiring the addresses of the 3*K valid data in the deinterleaver buffer; The 3*K valid data are extracted from the deinterleaver buffer according to addresses of the 3*K valid data in the deinterleaver buffer.
6. The method according to claim 5, characterized in that The acquiring, according to the bit positions of the 3*K valid data after deinterleaving and the interleaving rule of the LLR data, addresses of the 3*K valid data in the deinterleaver buffer includes: Obtaining the bit positions of the 3*K valid data before deinterleaving according to the bit positions of the 3*K valid data after deinterleaving and the interleaving rule; Obtaining input indexes of the 3*K valid data according to bit positions of the 3*K valid data before deinterleaving; According to the interleaving rule, obtaining the bit position of the invalid data in the LLR data after interleaving; Obtaining address offset correction values of the 3*K valid data according to the bit positions of the invalid data after interleaving; According to the input indexes of the 3*K valid data and the address offset correction values of the 3*K valid data, the addresses of the 3*K valid data in the deinterleaver buffer are obtained.
7. The method according to claim 6, characterized in that The acquiring, according to the input indexes of the 3*K valid data and the address offset correction values of the 3*K valid data, addresses of the 3*K valid data in the deinterleaver buffer includes: The addresses of the 3*K valid data in the deinterleaver buffer are obtained according to the input indexes of the 3*K valid data, the address offset correction values of the 3*K valid data, the starting point size and the bit width of the deinterleaver buffer.
8. A decoding device, characterized in that: The device is used in a receiving end device, and the device includes: A data acquisition module, used to acquire log-likelihood ratio (LLR) data of the received wireless signal; A data storage module, used for storing valid data in the LLR data in sequence into a deinterleaver buffer; An address acquisition module, used for acquiring 3*K valid data in the deinterleaver buffer and addresses of the 3*K valid data after deinterleaving according to the number of invalid data in the LLR data, the code block size K of the LLR data, and the parallelism P of the Turbo decoder; The decoding module is used to input the 3*K valid data and the addresses of the 3*K valid data after deinterleaving into the Turbo decoder for decoding.
9. A computer device, characterized in that: The computer device includes a processor and a memory; the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the decoding method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer instruction, and the computer instruction is loaded and executed by a processor to implement the decoding method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The computer program product comprises computer instructions, and the computer instructions are executed by a processor of a terminal, so that the terminal executes the decoding method according to any one of claims 1 to 7.
12. A communication chip, characterized in that: The communication chip is used in a receiving device, and the communication chip is used to execute the decoding method as described in any one of claims 1 to 7.
