Star flash data decoding method and device, computer program product and medium
By configuring the target working parameters of the decoder according to the code block segment code length of the Starlight data packet, the problem of low resource utilization efficiency of Polar codecs in the existing technology is solved, and more efficient resource utilization and decoding are achieved. Performance improvements.
Patent Information
- Application Number
- CN202410512942.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing Star Flash low-power technology protocol, the resource utilization efficiency of the Polar codec is low, especially in the code length scenario of different code block segments, the circuit resources are not fully utilized.
Determine the target working parameters of the decoder according to the code length of the target code block segment, including the number of decoding paths and the target code length, and configure the decoder accordingly to adapt to decoding code block segments of different code lengths. code to avoid unnecessary decoding operations and waste of resources.
It improves the resource utilization efficiency of the decoder, reduces processing delay and waste of circuit resources, and improves the performance of data decoding.
Smart Images

Figure CN118631385A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of star flash communication technology, and in particular to a star flash data decoding method and device, a computer program product, and a medium. Background Art
[0002] NearLink is a new generation of wireless short-range communication technology. NearLink devices include management nodes (G nodes) and terminal nodes (T nodes). Each G node can manage a certain number of T nodes and provide access layer services such as link management, resource allocation, and information security for the T nodes within its coverage area.
[0003] In the existing Star Flash Low Energy Technology Protocol (SLE1.0), four types of radio frames are defined, among which radio frame types 2, 3 and 4 all use Polar coding. Accordingly, a serial cancellation list (SCL) decoder is usually used for Polar decoding. The existing SCL decoder has low resource utilization efficiency. Summary of the invention
[0004] The purpose of the present invention is at least to provide a star flash data decoding method, which can improve the resource utilization efficiency of the decoder.
[0005] In a first aspect, the present invention provides a star flash data decoding method, comprising: determining target operating parameters of a decoder based on the code length of a target code block segment; the target operating parameters include the number of decoding paths and the target code length; the target code length is equal to the code length of the target code block segment; configuring the decoder based on the target operating parameters; the decoder is suitable for decoding the target code block segment.
[0006] Based on the code lengths of different target code block segments, target operating parameters of the decoder are determined, and then the decoder is configured based on the determined target operating parameters. The configured decoder is used to decode the target code block segments. Thus, according to the code lengths of different code block segments, the decoder is configured accordingly, which can improve the resource utilization efficiency of the decoder.
[0007] Optionally, if the target code block segment includes invalid bits, the position information of the invalid bits is output to the decoder; the decoder does not decode the bits corresponding to the position information.
[0008] Optionally, the invalid bits include zero bits filled in the target code block segment.
[0009] Optionally, if the target code block segment does not include payload bits, the target code block segment is not input to the decoder.
[0010] Optionally, verification information of a previous code block segment of the target code block segment is obtained; and the previous code block segment is verified using the verification information of the previous code block segment.
[0011] Optionally, the product of the number of decoding paths and the target code length is not greater than the maximum number of decoding bits supported by the decoder.
[0012] Optionally, the target code block segment is a code block segment to be decoded in a Star Flash data packet, and the wireless frame type of the Star Flash data packet is wireless frame type 2, wireless frame type 3 or wireless frame type 4.
[0013] In the second aspect, the present invention also provides a star flash data decoding device, comprising: a processor, used to determine the target operating parameters of a decoder based on the code length of a target code block segment; configure the decoder based on the target operating parameters; the target operating parameters include the number of decoding paths and the target code length; the target code length is equal to the code length of the target code block segment; a decoder, used to decode the target code block segment.
[0014] In a third aspect, the present invention further provides a computer-readable storage medium, which is a non-volatile storage medium or a non-transient storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above-mentioned star flash data decoding methods are executed.
[0015] In a fourth aspect, the present invention further provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned star flash data decoding methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of the structure of an existing wireless frame type 2;
[0017] Figure 2 It is a schematic diagram of the structure of an existing radio frame type 3 or radio frame type 4;
[0018] Figure 3 is a flow chart of a method for decoding star flash data in an embodiment of the present invention;
[0019] Figures 4 to 8 is a schematic diagram of resource distribution of decoders under several different decoding paths in an embodiment of the present invention;
[0020] Fig. 9It is a structural schematic diagram of a star flash data decoding device in an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In practical applications, Xingshan defines 4 types of wireless frames, among which wireless frame types 2, 3 and 4 all use Polar coding. For wireless frame type 2, code block segmentation without cyclic redundancy check (CRC) is used, that is, a data packet can be divided into code block segments of unequal lengths, and each code block segment is Polar coded and concatenated together to form a frame. For wireless frame type 3 or wireless frame type 4, code block segmentation including CRC is used, that is, a data packet can be divided into code block segments of unequal lengths, and each code block segment is Polar coded, and the Polar coding result is CRC calculated, and then concatenated together to form a frame.
[0022] For wireless frame type 2, code block segmentation that does not include cyclic redundancy check (CRC) is used, that is, a data packet can be divided into code block segments of unequal lengths, and each code block segment is Polar encoded separately and then cascaded together to form a frame. For wireless frame type 3 or wireless frame type 4, code block segmentation that includes CRC is used, that is, a data packet can be divided into code block segments of unequal lengths, and each code block segment is Polar encoded separately, and a CRC operation is performed on the Polar encoding result, and then cascaded together to form a frame. In the following embodiments of the present invention, unless otherwise specified, data packets refer to star flash data packets, that is, data packets used in the star flash communication process.
[0023] Reference Figure 1 , a structural diagram of a wireless frame type 2 is given.
[0024] Assuming that the payload length is 153 bytes and there is also a 24-bit transport block (TB) CRC, the bit stream length is 1248 bits. The first code block segmentation method provided by the Star Flash Low Energy Technology Protocol (SLE1.0) is used to segment the bit stream into 6 consecutive code block segments, which are code block segment 0 to code block segment 5.
[0025] The length of the first code block segment (i.e., code block segment 0) is K=640 bits, and the first code block segment is subjected to N=1024 polar coding;
[0026] The length of the second code block segment (i.e., code block segment 1) is K=316 bits, and the second code block segment is subjected to N=512 polar coding;
[0027] The length of the third code block segment (i.e., code block segment 2) is K=156 bits, and the third code block segment is subjected to N=256 polar coding;
[0028] The length of the fourth code block segment (i.e., code block segment 3) is K=74 bits, and the fourth code block segment is subjected to N=128 polar coding;
[0029] The length of the fifth code block segment (i.e., code block segment 4) is K=36 bits, and the fifth code block segment is subjected to N=64 polar coding;
[0030] The remaining K=26 bits form the sixth code block segment, and the sixth code block segment (ie, code block segment 5) is subjected to N=64 polar coding. The sixth code block segment can also be padded to 36 bits by padding 0s.
[0031] Reference Figure 2 , a structural diagram of a wireless frame type 3 or a wireless frame type 4 is given.
[0032] Assuming that the payload length is 56 bytes and there is also a 24-bit transport block TB CRC, the bit stream length is 472 bits. The second code block segmentation method provided by SLE1.0 is used to segment the bit stream into three consecutive code block segments, namely code block segment 0 to code block segment 2.
[0033] The length of the first code block segment (code block segment 0) is K = 232 bits. A 24-bit CB CRC is added to obtain a data stream with a length of 256 bits. The 256-bit data stream is then subjected to N = 1024 polar coding.
[0034] The length of the second code block segment (code block segment 1) is K = 232 bits. A 24-bit CB CRC is added to obtain a data stream with a length of 256 bits. The 256-bit data stream is then further subjected to N = 1024 polar coding.
[0035] The remaining 8 bits are added with 24-bit CB CRC to obtain a data stream with a length of 32 bits, and 4 zeros are added to make the total length 36 bits. The 36-bit data stream is divided into 2 code block segments, namely the third code block segment and the fourth code block segment, where: the third code block segment (i.e., code block segment 2) is 24 bits long and performs N=128 Polar coding; the fourth code block segment (i.e., code block segment 3) is 12 bits long and performs N=64 Polar coding.
[0036] When a classic SCL Decoder decodes a data packet, it uses the same number of decoding paths (lists) in different code length scenarios. The total code length of the SCL Decoder can be 1024, and the circuit resources of the SCL Decoder can be divided into 16 decoding sub-modules with a length of 64 bits.
[0037] When using SCL Decoder to decode data packets, for code block segments with a code length of 1024, all circuit resources of SCL Decoder are involved in decoding; for code block segments with a code length of 512, only half of the circuit resources of SCL Decoder (that is, 8 decoding sub-modules) are involved in decoding; for code block segments with a code length of 64, only 1 / 16 of the circuit resources of SCL Decoder (that is, one decoding sub-module) are involved in decoding.
[0038] That is, when the existing SCL Decoder performs decoding, the number of circuit resources used varies with the code length of the code block segment. However, when the code length of the code block segment is small, some circuit resources of the SCL Decoder are not used, that is, the circuit resource utilization efficiency of the SCL Decoder is low.
[0039] In the embodiment of the present invention, the target operating parameters of the decoder are determined based on the code lengths of different target code block segments, and then the decoder is configured based on the determined target operating parameters. The configured decoder is used to decode the target code block segments. Thus, according to the code lengths of different code block segments, the decoder is configured accordingly, which can improve the resource utilization efficiency of the decoder.
[0040] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0041] The embodiment of the present invention provides a method for decoding star flash data, referring to Figure 3 , the following is a detailed description through specific steps.
[0042] In the embodiment of the present invention, the star flash data decoding method provided in the following steps 301 to 302 may be executed by a processing module (such as a processor, etc.) with data processing capabilities in the T node, or by the T node. The following description is made by taking the T node executing the following star flash data decoding method as an example.
[0043] Step 301, determining target operating parameters of a decoder based on the code length of a target code block segment.
[0044] In a specific implementation, a decoder is provided in the T node, and the decoder may be an SCL Decoder. The decoding unit inside the decoder may be a butterfly operation unit, and the butterfly operation unit may be implemented by a logic circuit.
[0045] In the embodiment of the present invention, the radio frame type corresponding to the star flash data packet is radio frame type 2, radio frame type 3 or radio frame type 4. Figure 1 , Figure 2 As can be seen from the related description, the Star Flash data packet may include different code block segments, and the lengths of different code block segments may be different. When the decoder decodes the Star Flash data packet, the code block segments may be decoded in sequence according to the distribution order of the code block segments in the Star Flash data packet.
[0046] For example, combined with Figure 1 , the radio frame type corresponding to the Star Flash data packet is radio frame type 2. When the decoder decodes the Star Flash data packet, it first decodes code block segment 0. After completing the decoding of code block segment 0, it decodes code block segment 1. And so on, until the decoding of all code block segments is completed.
[0047] In a specific implementation, the target code block segment may be the code block segment to be decoded currently. The T node may dynamically configure the target operating parameters of the decoder based on the code length of the target code block segment. The target operating parameters of the decoder may include the number of decoding paths of the decoder and the target code length of the decoder. The target code length of the decoder may be equal to the code length of the target code block segment. The code length of the code block segment is the number of bits of the code block segment.
[0048] Therefore, corresponding to code block segments with different code lengths, the target code lengths of the corresponding decoders are also different.
[0049] In a specific implementation, the product of the number of decoding paths of the decoder and the target code length of the decoder is the total number of logic circuits of the decoder. The total number of logic circuits of the decoder can also be equivalent to the total code length of the decoder.
[0050] For example, the decoder includes 1024 logic circuits, and the decoding path data is 2, then the target code length of the decoder is 512, that is, the decoder can decode code blocks with a code length of 512 in segments.
[0051] For another example, the decoder includes 1024 logic circuits, and the decoding path data is 4, then the target code length of the decoder is 256, that is, the decoder can decode code blocks with a code length of 256 in segments.
[0052] In the embodiment of the present invention, the total number of logic circuits of the decoder is set to M, and the code length of the target code block segment is N, then the value of the decoding path list is list=M / N.
[0053] Specifically, the total number of logic circuits of the decoder is set to M = 1024. When the code length of the target code block segment is 1024, the number of decoding paths is 1; when the code length of the target code block segment is 512, the number of decoding paths is 2; when the code length of the target code block segment is 256, the number of decoding paths is 4; when the code length of the target code block segment is 128, the number of decoding paths is 8; when the code length of the target code block segment is 64, the number of decoding paths is 16.
[0054] Take the case where the radio frame type of the Star Flash data packet is radio frame type 2 as an example. Figure 1 In the code block segmentation of the wireless frame type 2 provided in , the code length of code block segment 0 is 1024, the code length of code block segment 1 is 512, the code length of code block segment 2 is 256, the code length of code block segment 3 is 128, the code length of code block segment 4 is 64, and the code length of code block segment 5 is 64. It is assumed that the decoder includes 1024 logic circuits. The decoder decodes code block segments 0 to 5 in sequence.
[0055] If the target code block segment is code block segment 0, the target code length of the decoder is 1024, and the number of decoding paths is 1. If the target code block segment is code block segment 1, the target code length of the decoder is 512, and the number of decoding paths is 2. If the target code block segment is code block segment 2, the target code length of the decoder is 256, and the number of decoding paths is 4. If the target code block segment is code block segment 3, the target code length of the decoder is 128, and the number of decoding paths is 8. If the target code block segment is code block segment 4, the target code length of the decoder is 64, and the number of decoding paths is 16. If the target code block segment is code block segment 5, the target code length of the decoder is 64, and the number of decoding paths is 16.
[0056] Taking the case where the radio frame type of the star flash data packet is radio frame type 3 or radio frame type 4 as an example, the total number of logic circuits of the decoder is set to M=1024. Figure 2 According to the code block segmentation of wireless frame type 3 or wireless frame type 4 provided in the Star Flash data packet, the code length of the first code block segment is 256, the code length of the second code block segment is 256, and the code length of the third code block segment is 8.
[0057] If the target code block segment is the first code block segment or the second code block segment, the target code length of the decoder is 256, and the number of decoding paths is 4. If the target code block segment is the third code block segment, the target code length of the decoder is 32, and the number of decoding paths is 32.
[0058] In some embodiments, the decoder may be divided into a plurality of fixed-length decoding submodules. For example, the code length of the decoding submodule is 64. If the code length of the target code block segment is 32, the target code length of the decoder may be set to 64. In this scenario, the number of decoding paths is 16.
[0059] Step 302: configure a decoder based on target working parameters, and use the decoder to decode the target code block segments.
[0060] In the embodiment of the present invention, after determining the target operating parameters of the decoder, the T node uses the target operating parameters to configure the decoder accordingly before decoding the target code block segment. After determining that the configuration of the decoder is completed, the configured decoder is used to decode the target code block segment.
[0061] Referring to the above example, if the code length of the target code block segment is 512, the corresponding target working parameters of the decoder are that the number of decoding paths is 2 and the target code length is 512. Based on the number of decoding paths being 2 and the target code length being 512, the decoder is configured, and the configured decoder is used to decode the target code block segment.
[0062] Reference Figures 4 to 8 , a schematic diagram of resource distribution of decoders under several different decoding paths in an embodiment of the present invention is given. Figures 4 to 8 In the example, the total number of decoder logic circuits is set to 1024.
[0063] Figure 4 In the example, if the code length of the target code block segment is 1024, the decoding path list is configured to be 1, and the target code length of the decoder is configured to be 1024. In this scenario, all hardware resources (logic circuits) of the decoder are involved in the work.
[0064] Figure 5 In the example, the code length of the target code block segment is 512, the decoding path list is configured as 2, and the target code length of the decoder is configured as 512. In this scenario, all hardware resources (logic circuits) of the decoder are involved in the work.
[0065] Figure 6 In the example, if the code length of the target code block segment is 256, the decoding path list is configured to be 4, and the target code length of the decoder is configured to be 256. In this scenario, all hardware resources (logic circuits) of the decoder are involved in the work.
[0066] Figure 7 In the example, if the code length of the target code block segment is 128, the decoding path list is configured to be 8, and the target code length of the decoder is configured to be 128. In this scenario, all hardware resources (logic circuits) of the decoder are involved in the work.
[0067] Figure 8 In the example, if the code length of the target code block segment is 64, the decoding path list is configured to be 16, and the target code length of the decoder is configured to be 64. In this scenario, all hardware resources (logic circuits) of the decoder are involved in the work.
[0068] In the embodiment of the present invention, for wireless frame type 2, wireless frame type 3 or wireless frame type 4, the last code block segment has padding (0-filled) bits, and the decoder can use the padding bits to improve the decoder performance.
[0069] The padding bits do not actually carry valid information. In a sense, the padding bits can also be called invalid bits. The T node can output the location information of the padding bits to the decoder. If the target code block segment is the last code block segment of the wireless frame, the decoder can obtain the location information of the padding bits when decoding the target code block segment, and there is no need to decode the padding bits. Alternatively, when the decoder processes the padding bits, it treats the padding bits as frozen bits and selects the Survived Path, thereby improving the decoding performance of the decoder.
[0070] In the embodiment of the present invention, based on Figure 2 As can be seen from the above description, in wireless frame type 3 or wireless frame type 4, the last 8 bits of the payload and the 24-bit CB CRC constitute a 32-bit data stream. The 32-bit data is included in code block segment 2 and code block segment 3, where: the length of code block segment 2 is 24 bits, the first 8 bits of which are the last 8 bits of the payload, and the last 16 bits are the first 16 bits of the 24-bit CR CRC; the first 8 bits of code block segment 3 are the last 8 bits of the CB CRC, and the last 4 bits of code block segment 3 are padding bits.
[0071] Therefore, if it is determined that the target code block segment is code block segment 3 of radio frame type 3 or radio frame type 4, it can be determined that there is no payload bit in the target code block segment. The T node can control the decoder not to decode the target code block segment. Therefore, since the decoder does not need to decode the target code block segment, the decoding time can be reduced and the processing delay can be reduced.
[0072] Since code block segment 3 is discarded, when checking code block segment 2, only the 16-bit CRC in code block segment 2 is used for checking.
[0073] In summary, based on the code lengths of different target code block segments, the target operating parameters of the decoder are determined, and then the decoder is configured based on the determined target operating parameters. The configured decoder is used to decode the target code block segments. Thus, according to the code lengths of different code block segments, the decoder is configured accordingly, which can improve the resource utilization efficiency of the decoder.
[0074] Reference Fig. 9 , a star flash data decoding device in an embodiment of the present invention is provided, comprising:
[0075] The processor 91 is used to determine target operating parameters of the decoder based on the code length of the target code block segment; configure the decoder based on the target operating parameters; the target operating parameters include the number of decoding paths and the target code length; the target code length is equal to the code length of the target code block segment;
[0076] The decoder 92 is used to decode the target code block segments.
[0077] In a specific implementation, each module / unit included in each device or product described in the above embodiments may be a software module / unit or a hardware module / unit, or may be partly a software module / unit and partly a hardware module / unit.
[0078] For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0079] An embodiment of the present invention also provides a computer-readable storage medium, which is a non-volatile storage medium or a non-transient storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the star flash data decoding method provided in any of the above embodiments are executed.
[0080] The present invention also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the star flash data decoding method provided in any of the above embodiments.
[0081] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, which may include: ROM, RAM, disk or CD, etc.
[0082] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A star flash data decoding method, characterized in that: include: Determining target operating parameters of a decoder based on the code length of the target code block segment; The target working parameters include the number of decoding paths and the target code length; The target code length is equal to the code length of the target code block segment; The decoder is configured based on the target operating parameters; the decoder is suitable for decoding the target code block segments.
2. The star flash data decoding method according to claim 1, characterized in that: Also includes: If the target code block segment includes invalid bits, outputting position information of the invalid bits to the decoder; The decoder does not decode the bits corresponding to the position information.
3. The star flash data decoding method according to claim 2, characterized in that: The invalid bits include zero bits filled in the target code block segment.
4. The star flash data decoding method according to claim 1, characterized in that: Also includes: If the target code block segment does not include payload bits, the target code block segment is not input to the decoder.
5. The star flash data decoding method according to claim 4, characterized in that: Also includes: Obtaining verification information of a previous code block segment of the target code block segment; The previous code block segment is verified using the verification information of the previous code block segment.
6. The star flash data decoding method according to claim 1, characterized in that: The product of the number of decoding paths and the target code length is not greater than the maximum number of decoding bits supported by the decoder.
7. The star flash data decoding method according to any one of claims 1 to 6, characterized in that: The target code block segment is a code block segment to be decoded in the Star Flash data packet, and the wireless frame type of the Star Flash data packet is wireless frame type 2, wireless frame type 3 or wireless frame type 4.
8. A star flash data decoding device, characterized in that: include: A processor, for determining target operating parameters of a decoder based on the code length of the target code block segment; configuring a decoder based on the target operating parameters; The target working parameters include the number of decoding paths and the target code length; The target code length is equal to the code length of the target code block segment; A decoder is used to decode the target code block segments.
9. A computer-readable storage medium, wherein the computer-readable storage medium is a non-volatile storage medium or a non-transient storage medium, and a computer program is stored thereon, wherein: When the computer program is executed by a processor, the steps of the star flash data decoding method according to any one of claims 1 to 7 are executed.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the star flash data decoding method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Transmission block segmentation method and device for wireless communication and electronic equipment
CN122001530A
