Data processing method, chip, equipment and computer readable storage medium
By determining the calculation order based on the extreme binary bits of the quotient, directly omitting the first few subtraction calculations, and starting the calculation from the highest bit of the quotient, the problem of low efficiency of division operations in the existing technology is solved, and the efficiency of the Wi-Fi chip is improved. data processing efficiency.
Patent Information
- Application Number
- CN202310325569.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology is inefficient in calculating the division operation in the Wi-Fi chip, resulting in reduced data processing efficiency. Especially in the wireless LAN of the 802.11 protocol standard, the divider needs to perform multiple size comparisons and subtraction calculations, resulting in clock beats. increase, affecting the data transfer speed.
By determining the calculation order based on the extreme binary bits of the quotient in the division operation, the first few subtraction calculations are directly omitted, and calculation is started from the highest bit of the quotient, thereby reducing the number of division operations and improving data processing efficiency.
It effectively reduces the number of calculations of division operations, saves clock beats, and improves data processing efficiency. Especially in the process of calculating the sending time in the Wi-Fi chip, it significantly accelerates the data transmission process.
Smart Images

Figure CN118732989A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, chip, device and computer-readable storage medium. Background Art
[0002] With the widespread application of wireless LAN based on 802.11 standard, hardware devices with wireless fidelity (Wi-Fi) chips or devices supporting Wi-Fi communication functions complete communication by transmitting data frames. In the calculation of the hardware transmission time (txtime) of the Wi-Fi chip, txtime is calculated according to the transmission parameter information of the data frame, and the calculation process involves division operation.
[0003] In the related technical solutions, the divider generally uses subtraction to implement binary division in hardware calculations, and calculates from the highest bit (bit) of the quotient to the lowest bit. Taking a divider with a 16-bit dividend and an 8-bit divisor as an example, its calculation process is obtained through 16 size comparisons and subtractions. The number of bits of the dividend is the number of subtractions required for the entire subtraction calculation. If the entire txtime calculation process shares a divider, in order to meet the maximum computing requirements, the dividend bit width needs to be configured to the maximum bit width of all divisions in the protocol (for example, 31 bits). Therefore, for each division operation, 31 size comparisons and subtractions are required. If the timing allows five subtractions in one clock cycle, including the time to return the result (to ensure that the data can be received, 1 cycle is added after the calculation to receive the returned result), it takes 31 seconds to complete a division operation. Reduced data processing efficiency. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, chip, device and computer-readable storage medium, which improve data processing efficiency.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising: performing binary division operations on the dividend and divisor in each division operation according to the calculation order corresponding to the division operation, and determining the operation result; wherein the calculation order represents the binary bits of the extreme value of the quotient in the division operation, the binary bits of the extreme value of the quotient are less than or equal to the maximum bit width of the dividend in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation; and data transmission is performed based on the operation result.
[0007] In a second aspect, an embodiment of the present application provides a chip, comprising: an operation module, used to perform binary division operations on the dividend and divisor in each division operation according to the calculation order corresponding to each division operation, and determine the operation result; wherein the calculation order represents the binary bits of the extreme value of the quotient in the division operation, the binary bits of the extreme value of the quotient are less than or equal to the maximum bit width of the dividend in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation; a transmission module, used to transmit data based on the operation result.
[0008] In a third aspect, an embodiment of the present application provides a chip, comprising: a first memory for storing an executable computer program; and a first processor for implementing the data processing method described in the first aspect when executing the executable computer program stored in the first memory.
[0009] In a fourth aspect, an embodiment of the present application provides a data processing device, which is a terminal device or a network device; the device includes: a second memory for storing an executable computer program; and a second processor for executing the executable computer program stored in the second memory to implement the data processing method described in the first aspect above.
[0010] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for implementing the data processing method described in the first aspect when executed by a first processor or a second processor.
[0011] The embodiment of the present application provides a data processing method, chip, device and computer-readable storage medium. According to the scheme provided by the embodiment of the present application, the method includes: according to the calculation order corresponding to each division operation, the dividend and the divisor in each division operation are subjected to binary division operation, and the operation result is determined; wherein the calculation order represents the binary bit of the extreme value of the quotient in the division operation, the binary bit of the extreme value of the quotient is less than or equal to the maximum dividend bit width in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation; data transmission is performed based on the operation result. The calculation order is determined according to the binary bit of the extreme value of the quotient in the division operation (that is, the highest bit of the quotient). When the calculation order is used to perform the division operation, for the division operation less than the maximum dividend bit width, the first few subtraction calculations can be directly omitted, and the calculation starts from the highest bit of the quotient. The whole process of comprehensively calculating the sending time, each division operation can reduce the number of calculations, thereby saving the number of clock cycles and improving the data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 An exemplary schematic diagram of a division operation provided in an embodiment of the present application;
[0013] Figure 2 A flowchart of optional steps of a data processing method provided in an embodiment of the present application;
[0014] Figure 3 An optional step flow chart of another data processing method provided in an embodiment of the present application;
[0015] Figure 4 An exemplary schematic diagram of another division operation provided in an embodiment of the present application;
[0016] Figure 5 An exemplary schematic diagram of data parameters in a division operation process provided by an embodiment of the present application;
[0017] Figure 6 An exemplary schematic diagram of data parameters in another division operation process provided by an embodiment of the present application;
[0018] Figure 7 An exemplary schematic diagram of data parameters in another division operation process provided in an embodiment of the present application;
[0019] Figure 8 An exemplary schematic diagram of data parameters in another division operation process provided in an embodiment of the present application;
[0020] Fig. 9 An optional structural diagram of a chip provided in an embodiment of the present application;
[0021] Fig.10 An optional structural diagram of another chip provided in an embodiment of the present application;
[0022] Fig.11 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It should be understood that some of the embodiments described here are only used to explain the technical solutions of the present application and are not used to limit the technical scope of the present application.
[0024] In order to better understand the data processing method provided in the embodiments of the present application, the application background is first explained before introducing the technical solution of the embodiments of the present application.
[0025] The data processing method provided in the embodiment of the present application can be applied to the scenario of wireless local area network (WLAN), and can be applied to the Institute of Electrical and Electronics Engineers (IEEE) 802.11 series, for example, 802.11b, 802.11a, 802.11g, 802.11n, 802.11ac, 802.11ax, 802.11be protocols or next generation protocols. Among them, the 802.11ax protocol is called High Efficient (HE), and the 802.11be protocol is called Extremely High Throughput (EHT).
[0026] The method can also be applied to other possible communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, High Speed Downlink Packet Access (HSDPA), General Packet Radio Service (GPRS), Enhanced Data Rate for GSM Evolution (EDGE), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system or 5G New Radio (NR) system, etc.
[0027] The above-mentioned WLAN may include access point type sites (Access Point, AP) and non-access point type sites (None Access Point Station, Non-AP STA). AP may also be called a wireless access point or hotspot, etc. AP is an access point for mobile devices to enter a wired network. AP can be regarded as a bridge connecting a wired network and a wireless network, which is used to connect various wireless network clients together and then connect the wireless network to the wired network. AP may be a terminal device or a network device with a Wi-Fi chip. Optionally, AP may be a device that supports 802.11b, 802.11a, 802.11g, 802.11n, 802.11ac, 802.11ax and 802.11be protocols. Non-AP STA may be a wireless communication chip, a wireless sensor or a wireless communication terminal. For example: a mobile terminal that supports Wi-Fi communication function, a tablet computer that supports Wi-Fi communication function, a smart TV that supports Wi-Fi communication function, a smart wearable device that supports Wi-Fi communication function, a vehicle-mounted device that supports Wi-Fi communication function, and a computer that supports Wi-Fi communication function.
[0028] The data processing method provided in the embodiments of the present application is applicable to devices (terminal devices and network devices) with a Wi-Fi chip or supporting Wi-Fi communication functions.
[0029] A network device supporting Wi-Fi communication function or having a Wi-Fi chip may be a network device (Base Transceiver Station, BTS) in a GSM system or a CDMA system, or a network device (NodeB, NB) in a WCDMA system, or an evolved network device (Evolutional Node B, eNB or eNodeB) in an LTE system, or a wireless controller in a cloud radio access network (Cloud Radio Access Network, CRAN), or the network device may be a mobile switching center, a relay station, an access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, a core network in a 5G network, a base station and other network-side devices, or a network device in a future evolved public land mobile network (Public Land Mobile Network, PLMN), etc.
[0030] Examples of hardware devices that support Wi-Fi communication functions or have Wi-Fi chips include, but are not limited to, satellite or cellular phones; Personal Communications System (PCS) terminals that can combine cellular radio telephones with data processing, fax, and data communication capabilities; Personal Digital Assistants (PDAs) that can include radio telephones, pagers, Internet / intranet access, Web browsers, notepads, calendars, and / or Global Positioning System (GPS) receivers; and conventional laptop and / or palmtop receivers or other electronic devices that include radiotelephone transceivers. Terminal equipment can refer to access terminals, user equipment (UE), user units, user stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, user terminals, terminals, wireless communication devices, user agents, or user devices. The access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a PDA, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal in a 5G network, or a terminal in a future evolved PLMN, etc.
[0031] For example, Figure 1 As shown, Figure 1 An exemplary schematic diagram of a division operation provided in an embodiment of the present application; Figure 1 The dividend is 16 bits and the divisor is 8 bits. When performing the first comparison and subtraction operation, the divisor is padded with 0. Since the divisor is 1, 15 zeros need to be padded after the divisor to obtain the divisor after the first padded operation. The dividend is compared with the divisor after the first padded operation. If the dividend is greater than or equal to the divisor after the first padded operation, the bit of the quotient is 1, and the divisor after the first padded operation is subtracted from the dividend to obtain the updated dividend, which is used as the dividend in the second comparison and subtraction operation. If the dividend is less than the divisor after the first padded operation, the bit of the quotient is 0, and the dividend continues to be used as the dividend in the second comparison and subtraction operation. When performing the second comparison and subtraction operation, add 14 zeros after the divisor to obtain the second completed divisor, and compare the updated dividend (or dividend) with the second completed divisor; if the updated dividend (or dividend) is greater than or equal to the second completed divisor, the bit of the quotient is 1 ( Figure 1The X in the above formula represents the bit of the quotient after the last comparison and subtraction operation), and the updated dividend (or dividend) is subtracted from the divisor after the second completion, which is used as the dividend in the third comparison and subtraction operation; if the updated dividend (or dividend) is smaller than the divisor after the second completion, the bit of the quotient is 0, and the updated dividend (or dividend) is used as the dividend in the third comparison and subtraction operation. And so on, until 16 comparison and subtraction operations are performed, the dividend undergoes 16 subtraction iterations to obtain the quotient (Quotient) and remainder (Reminder). In the last comparison and subtraction operation, the updated dividend (or dividend) is compared with the divisor. If the updated dividend (or dividend) is greater than or equal to the divisor, the bit of the quotient is 1, thereby obtaining the quotient (Quotient), and the divisor is subtracted from the updated dividend (or dividend), which is used as the remainder (Reminder); if the updated dividend (or dividend) is less than the divisor, the bit of the quotient is 0, thereby obtaining the quotient (Quotient), and the updated dividend (or dividend) is used as the remainder (Reminder).
[0032] Above Fig.11 When performing comparison and subtraction operations, the number of operations is related to the number of bits of the dividend. In actual projects, the entire txtime calculation process usually shares a divider. In order to meet the maximum calculation requirements, the dividend bit width needs to be configured to the maximum bit width of all divisions in the protocol (for example, 31 bits). Therefore, if six division operations are required, if the timing allows five subtractions in one cycle, including the time to return the result, a total of The data processing efficiency is reduced. Among them, 1 cycle means one posedge to next posedge of clock signal, which means one clock beat means from one rising edge to the next rising edge.
[0033] The present application embodiment provides a data processing method, such as Figure 2 As shown, Figure 2 A flowchart of a data processing method provided in an embodiment of the present application, the data processing method comprises the following steps:
[0034] S101. According to the calculation order corresponding to each division operation, perform binary division operation on the dividend and divisor in each division operation to determine the operation result; wherein the calculation order represents the binary bits of the extreme value of the quotient in the division operation, the binary bits of the extreme value of the quotient are less than or equal to the maximum bit width of the dividend in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation.
[0035] In an embodiment of the present application, in the calculation process of txtime of the data transmission protocol, a division operation is involved, and the division operation is implemented by comparison and subtraction operations. Due to the restrictions of the data transmission protocol, the value range of the dividend and the divisor in each division operation of txtime is certain, that is, the dividend has a maximum value, the divisor has a minimum value, and the quotient does not exceed the maximum value of the ratio of the two. Therefore, the extreme value of the quotient of each division operation can be calculated in advance, and the binary bit of the extreme value of the quotient is the highest bit of the quotient, and the calculation order is determined according to the highest bit of the quotient. According to the calculation order, the dividend and the divisor in the division operation are subjected to binary division operations (comparison and subtraction operations), and the number of calculations is equal to the number of binary bits of the extreme value of the quotient. The number of binary bits of the extreme value of the quotient is less than the maximum value of the dividend and the maximum dividend bit width, which reduces the number of calculations. For the calculation process of txtime with multiple division operations, the number of cycles is saved and the data processing efficiency is improved.
[0036] In an embodiment of the present application, if the maximum bit width of the dividend in the data transmission protocol is set to kbit, the first (k-highest bit of the quotient) comparisons and subtractions can be omitted, and the calculation can be started directly from (highest bit of the quotient-1). Exemplarily, taking the maximum bit width setting as 31 bits and the highest bit of the quotient as 10 bits as an example, 31 comparisons and subtractions are usually required, and the calculation order is 31, which is calculated from bit30 to bit0. Through the data processing method provided in the embodiment of the present application, the first 21 comparisons and subtractions can be omitted, and the calculation can be started directly from bit9 to bit0, which can be calculated 10 times, thereby reducing the number of calculations.
[0037] S102, transmitting data based on the calculation result.
[0038] In an embodiment of the present application, communication between hardware devices with Wi-Fi chips or devices supporting Wi-Fi communication functions is completed by transmitting data frames. Before communication, the Wi-Fi chip needs to calculate the transmission time (txtime) of the data frame. In the process of calculating the transmission time, the division operation involved (including the division operation in the judgment condition) can adopt the data processing method provided in the embodiment of the present application, that is, according to the calculation order, the binary division operation of the dividend and the divisor in each division operation is completed. The operation result includes parameter information related to the transmission time, and the Wi-Fi chip can transmit the data frame based on the operation result.
[0039] It should be noted that the data processing method provided in the embodiment of the present application is applicable to the division operation process in the data transmission process, including but not limited to the division operation of finding the initial number of symbols (NSYM_init), the division operation of finding the initial filling factor (ainit), the division operation of finding the number of transmitted codewords (NCW), the division operation of finding the shortened number of bits (Nshrt), the division operation of finding the estimated number of symbols (NSYM), the division operation of finding the transmission time (txtime), and the division operation in other judgment conditions (with the maximum value of the dividend and the minimum value of the divisor). The above-mentioned division operation processes are all part of the txtime calculation process, so the application scenario of the data processing method is to calculate txtime, and txtime can be used to calculate the transmission time of the traditional length (L-Length) or duration field (txtime of the durantion field) in the subsequent process, so as to realize data transmission based on txtime. Based on the fact that txtime is used to calculate L-Length and fill in this field, it can be known that txtime is used to calculate duration and fill in specific field in Data field.
[0040] According to the scheme provided by the embodiment of the present application, the method includes: according to the calculation order corresponding to each division operation, performing binary division operation on the dividend and divisor in each division operation, and determining the operation result; wherein the calculation order represents the binary bit of the extreme value of the quotient in the division operation, the binary bit of the extreme value of the quotient is less than or equal to the maximum dividend bit width in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation; and data transmission is performed based on the operation result. The calculation order is determined according to the binary bit of the extreme value of the quotient in the division operation (that is, the highest bit of the quotient). When the calculation order is used to perform the division operation, for the division operation less than the maximum dividend bit width, the first few subtraction calculations can be directly omitted, and the calculation starts from the highest bit of the quotient. The whole process of comprehensively calculating the sending time, each division operation can reduce the number of calculations, thereby saving the number of clock cycles and improving the data processing efficiency.
[0041] In some embodiments, the above calculation order can be determined in the following manner: for each division operation, the extreme value of the quotient is determined according to the maximum value of the dividend and the minimum value of the divisor; and the calculation order is determined according to the binary bits of the extreme value of the quotient.
[0042] In the embodiment of the present application, due to the restrictions of the data transmission protocol, the value range of the dividend and the divisor in each division operation of txtime is certain. For each division operation, the extreme value of the quotient is calculated according to the maximum value of the dividend and the minimum value of the divisor in the division operation. The number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient. The binary bit of the extreme value of the quotient is subtracted by 1 as the starting position, and the calculation is continued until bit0.
[0043] For example, in the division operation for finding the initial number of symbols (NSYM_init), the range of values is: the maximum dividend is 8*15523200+6+16=27bit variable, the maximum divisor is 78400*2=18bit variable, and NSYM_init is transformed to obtain the number of symbols (Nsym), and the maximum value of NSYM_init is limited by the extreme value of Nsym. However, the maximum value of Nsym is 11bit (i.e., the binary bit of the extreme value of the quotient), for the following reasons: In actual engineering, the maximum value of Tppdu is 5484μs, and the values of Tsysm are 3.6μs, 4μs, 13.6μs, 14.4μs, and 16μs, so the maximum value of Nsym should be 5484μs / 3.6μs=11bit. Among them, PPDU (physical protocol data unit) represents the physical layer protocol data unit, and the maximum value of Tppdu represents the maximum transmission time. That is to say, the binary bit position of the extreme value of the quotient corresponding to the initial number of symbols (NSYM_init) is 11 bits. Correspondingly, the calculation order is 11, and its starting position starts from bit 10. Taking the maximum bit width setting of 31 bits as an example, the high 11 bits of the quotient are 0, and the first 20 comparisons and subtraction operations can be omitted.
[0044] For example, in the division operation for finding the initial filling factor (ainit), the range of values is: the maximum dividend is 78400*2=18-bit variable, the maximum divisor is 19680=15-bit variable, the minimum divisor is 2, and the maximum result is 17 bits, that is, the extreme value of the quotient is 78400*2 / 2, and its binary bit is 17 bits. Correspondingly, the calculation order is 17, and its starting position starts from bit16. Taking the maximum bit width setting of 31 bits as an example, the high 14 bits of the quotient are 0, and the first 14 comparisons and subtraction operations can be omitted.
[0045] For example, in the division operation for finding the number of transmitted code words (NCW), the range of values is: the maximum value of the dividend is 15523200*8+22=27 bits, the divisor is 11 bits, which is a fixed value, including 1620, 1458, 1296 and 972, and the maximum value of the NCW is 17 bits, that is, the extreme value of the quotient is Its binary bit is 17 bits. Correspondingly, the calculation order is 17, and its starting position is bit 16. Taking the maximum bit width setting of 31 bits as an example, the high 14 bits of the quotient are 0, and the first 14 comparisons and subtraction operations can be omitted.
[0046] For example, in the division operation for shortening the number of bits (Nshrt), the range of values is: the maximum dividend is (15523200*8+22) / 972*1944*5=31-bit variable, the divisor is 3 bits, which is a fixed value, including 3 and 6, and the maximum result is 28 bits. Because *5 in the dividend corresponds to 6, and *2 in the dividend corresponds to 3. That is, the extreme value of the quotient is Its binary bit is 28 bits. Correspondingly, the calculation order is 28, and its starting position is from bit 27. Taking the maximum bit width setting of 31 bits as an example, the high 3 bits of the quotient are 0, and the first 3 comparisons and subtraction operations can be omitted.
[0047] For example, in the division operation for finding the estimated number of symbols (NSYM), the range of values is: the dividend is Nsym*9, the maximum value of Nsym is 5484 / 3.6, therefore, the maximum value of the dividend is 5484 / 3.6*9, the dividend is a 14-bit variable, the divisor is a 4-bit variable, and the maximum value of the result is 11 bits. That is, the extreme value of the quotient is Its binary bit is 11 bits. Correspondingly, the calculation order is 11, and its starting position is bit 10. Taking the maximum bit width setting of 31 bits as an example, the high 20 bits of the quotient are 0, and the first 20 comparisons and subtraction operations can be omitted.
[0048] For example, in the division operation for finding the transmission time (txtime), for DSSS PPDU, DSSS (direct sequence spread spectrum) means direct sequence spread spectrum, which is the ppdu type specified in the 802.11b protocol, and its value range is: the maximum dividend is 4095*8*10=19bit variable, the divisor is 6bit, which is a fixed value, including 55 and 11, and the maximum result is 13bit. Among them, the first type is the dividend 4095*8, the divisor is 5.5, and the second type is the dividend 4095*8, the divisor is 11; that is, the extreme value of the quotient is 4095*8 / 5.5, which can also be expressed as 4095*8*10 / 55, and its binary bit is 13bit. Correspondingly, the calculation order is 13, and its starting position starts from bit12. Taking the maximum bit width setting of 31bit as an example, the high 18bits of the quotient are 0, and the first 18 comparisons and subtraction operations can be omitted.
[0049] For example, in the division operation for the transmission time (txtime), for OFDM / ERP PPDU, OFDM (Orthogonal Frequency Division Multiplexing) represents orthogonal frequency division multiplexing technology, ERP represents enhanced rate physical layer, and the value ranges are: the maximum dividend is 4095*8+22=16bit variable, the maximum divisor is 216=8bit variable, the minimum divisor is 24, and the maximum result is 11bit. That is, the extreme value of the quotient is Its binary bit is 11 bits. Correspondingly, the calculation order is 11, and its starting position is bit 10. Taking the maximum bit width setting of 31 bits as an example, the high 20 bits of the quotient are 0, and the first 20 comparisons and subtraction operations can be omitted.
[0050] Exemplarily, in the division operation for finding the transmission time (txtime), for HE SU / HE ER SU / EHTMU / EHT TB PPDU, the PPDU frame types of the 802.11ax physical layer include: HE SU PPDU represents a single-user PPDU, which is mainly used in a single-user scenario; and HE ER SU PPDU represents a HE Extended Range PPDU, which is mainly used in a single-user scenario far away from the AP, for example, an outdoor scenario. The PPDU frame types of the 802.11be protocol include: EHT MU PPDU, which is used to transmit to one or more users; and EHT TB PPDU, which is used to respond to a trigger frame (triggerframe) from the AP. The value ranges are: the dividend is a maximum of 54840 = 16-bit variable, the divisor is 4 bits, which is a fixed value of 10, and the result is a maximum of 13 bits. Correspondingly, the calculation order is 13, and its starting position is from bit 12. Taking the maximum bit width setting of 31 bits as an example, the high 18 bits of the quotient are 0, and the first 18 comparisons and subtraction operations can be omitted.
[0051] In the embodiment of the present application, the parameters and results of each division calculation in the txtime calculation process of the 802.11 protocol have practical meanings and fixed ranges. Based on the principle of hardware division calculation, different calculation orders are selected for different division formulas of txtime calculation to shorten the division calculation time and improve data processing efficiency.
[0052] In the embodiment of the present application, when five subtractions are performed in one cycle, considering the time required to return the calculation result, the number of cycles required for different quotient widths is shown in Table 1. Table 1 shows the number of cycles required for different quotient widths provided in the embodiment of the present application.
[0053] Width of quotient The number of cycles required Q≤5bit 2 5bit<Q≤10bit 3 10bit<Q≤15bit 4 15bit<Q≤20bit 5 20bit<Q≤25bit 6 25bit<Q≤30bit 7
[0054] The above Table 2 shows that when the width of the quotient (Q) is less than or equal to 5 bits, the number of cycles required is 2 (including the time required to return the calculation result). When the width of the quotient (Q) is greater than 5 bits and less than or equal to 10 bits, the number of cycles required is 3. When the width of the quotient (Q) is greater than 10 bits and less than or equal to 15 bits, the number of cycles required is 4. When the width of the quotient (Q) is greater than 15 bits and less than or equal to 20 bits, the number of cycles required is 5. When the width of the quotient (Q) is greater than 20 bits and less than or equal to 25 bits, the number of cycles required is 6. When the width of the quotient (Q) is greater than 25 bits and less than or equal to 30 bits, the number of cycles required is 7.
[0055] In the embodiment of the present application, based on the above Table 1, when five subtractions are performed in one cycle, the calculation cycle is selected for the above six division operations as shown in Table 2. Table 2 is the cycle required for the six division operations provided in the embodiment of the present application.
[0056] Table 2
[0057] Calculate sequence number Width of quotient Required cycle 1 11 4 2 17 5 3 17 5 4 28 7 5 11 4 6 13、11、13 4
[0058] Table 2 shows the binary bits corresponding to the extreme values of the quotients in the six division operations (i.e., the width of the quotient), including the time to return the result. For calculation numbers 1 and 5, it takes For calculation numbers 2 and 3, you need For calculation number 4, you need For calculation number 6, you need or The total time required for these six division calculations is 29 cycles.
[0059] In the embodiment of the present application, through this solution, the typical calculation time spent on division calculation in the txtime calculation process is reduced from 48 cycles to 29 cycles, and the main time consumption of txtime calculation is in division. Therefore, this solution greatly accelerates the txtime calculation and improves data processing efficiency.
[0060] In some embodiments, the above step of determining the operation result can also be implemented in the following manner. If the calculation order is N, N calculation steps are performed on the dividend and the divisor in the division operation corresponding to the calculation order to obtain the values of the N binary bits of the quotient; the operation result includes the values of the N binary bits of the quotient, and N is a positive integer.
[0061] In the embodiment of the present application, taking the maximum bit width setting of 31 bits as an example, when the calculation order is N, the high (31-N) bits of the quotient are 0, and the first (31-N) comparison and subtraction operations can be directly omitted. By performing N comparison and subtraction operations on the dividend and the divisor, the values of the N binary bits of the quotient can be obtained, thereby reducing the total number of cycles required for calculation and improving data processing efficiency.
[0062] In some embodiments, the above step of determining the operation result includes S201-S205. Figure 3 As shown, Figure 3 A flowchart of the steps of a data processing method provided in an embodiment of the present application.
[0063] S201. Add N-1 preset values after the divisor to obtain a first divisor, where N is a positive integer.
[0064] S202. Determine the first digit of the quotient according to the dividend and the first divisor, and update the dividend to the first dividend.
[0065] In the embodiment of the present application, when the calculation order is N, its starting position starts from bit (N-1). Taking the maximum bit width setting of 31 bits as an example, the high (31-N) bit of the quotient is 0, and the first 31-N comparisons and subtractions can be omitted. First, add N-1 preset values (the preset value is 0) after the divisor to obtain the first divisor. Compare the size between the dividend and the first divisor to determine the first digit of the quotient, and update the dividend to the first dividend, thereby completing the first comparison and subtraction operation.
[0066] In some embodiments, the above Figure 3 S202 can also be implemented in the following manner. When the dividend is greater than or equal to the first divisor, the first digit of the quotient is 1, and the dividend is updated to the first dividend, which is the dividend minus the first divisor; when the dividend is less than the first divisor, the first digit of the quotient is 0, and the dividend is used as the first dividend.
[0067] In an embodiment of the present application, when the dividend is greater than or equal to the first divisor, the corresponding position of the quotient is 1, and the dividend minus the first divisor is used as the first dividend in the next comparison and subtraction operation; when the dividend is less than the first divisor, the corresponding position of the quotient is 0, and the dividend is not changed at all and is directly used as the first dividend in the next comparison and subtraction operation.
[0068] S203, continue to add N-2 preset values after the divisor to obtain a second divisor.
[0069] S204, determining the second digit of the quotient according to the first dividend and the second divisor, and updating the first dividend to the second dividend; after executing N-1 times, obtaining the N-1th dividend.
[0070] In the embodiment of the present application, in the second comparison and subtraction operation, based on the principle of the first comparison and subtraction operation, N-2 zeros are added after the divisor to obtain the second divisor. The first dividend and the second divisor are compared to determine the second digit of the quotient, and the first dividend is updated to the second dividend, thereby completing the second comparison and subtraction operation.
[0071] In the embodiment of the present application, when the first dividend is greater than or equal to the second divisor, the second digit of the quotient is 1, and the first dividend is updated to the second dividend, and the second dividend is the first dividend minus the second divisor; when the first dividend is less than the second divisor, the second digit of the quotient is 0, and the first dividend is used as the second dividend. According to the above execution principle, after continuing to execute N-3 times, the N-1 execution process is completed to obtain the N-1th dividend.
[0072] S205. Determine the last digit of the quotient according to the N-1th dividend and divisor.
[0073] In the embodiment of the present application, in the last comparison and subtraction operation, the divisor does not need to be padded with 0. When the N-1th dividend is greater than or equal to the divisor, the last digit of the quotient is 1; when the N-1th dividend is less than the divisor, the last digit of the quotient is 0. After executing the above S201-S205, the values of the N binary bits of the quotient can be obtained.
[0074] In the embodiment of the present application, the divisor, dividend, and quotient of each division calculation in the txtime calculation all have practical meanings and thus have the characteristic of determining the bit width. Different numbers of subtractions are used for different divisions, thereby reducing the total number of cycles required for the calculation and improving data processing efficiency.
[0075] In the embodiment of the present application, based on the division operation process shown in S201-S205 above, an example is given for illustration. Figure 4 As shown, Figure 4 Another exemplary schematic diagram of a division operation provided by an embodiment of the present application. The calculation process of the improved divider in this solution is as follows: if the quotient is determined to be 5 bits according to the true nature of the quotient, then the high 11 bits of the quotient are 0, and the first 11 subtraction calculations can be directly omitted, and the calculation can be started directly from bit 4. Figure 4 The calculation starts directly from bit 4 and goes to bit 0, and the final binary bit of the quotient is 5. Figure 4 and Figure 1 The difference between Figure 4 Only the last 5 steps are executed. The implementation process and technical effects achieved can be found in the above Figure 1 The description in will not be repeated here. Figure 4 The division calculation in only requires five subtractions. If five subtractions are performed in one cycle, the calculation can be completed in one cycle.
[0076] In some embodiments, the calculation order includes a first calculation order; the above-mentioned division operation process includes the following steps: according to the first calculation order, based on the transmission length, the space-time block code value corresponding to the coding parameter and the symbol length, a binary division operation is performed to determine the initial number of symbols; wherein the operation result includes the initial number of symbols, and the number of calculations corresponding to the first calculation order is equal to the number of binary bits of the maximum number of symbols.
[0077] In the embodiment of the present application, the first calculation order is determined according to the number of binary bits of the maximum number of symbols, and the corresponding number of calculations is 11. In the calculation process of the initial number of symbols (NSYM_init), according to the first calculation order, based on the transmission length (APEP_LENGTH), the space-time block code value (Mstbc) corresponding to the coding parameter and the symbol length (Ndbps), the next 11 comparisons and subtractions are performed, starting from bit10, to determine the initial number of symbols. Among them, APEP_LENGTH (AMPDU pre eof padding length) represents the length before the end of the frame coding of the aggregated media access control layer protocol data unit, AMPDU (Aggregation MAC protocol data unit) aggregated media access control layer protocol data unit; APEP_LENGTH, Mstbc and Ndbps are real-time values in actual engineering.
[0078] In the embodiment of the present application, the initial number of symbols (NSYM_init) is calculated in NSYM fsm, that is, the process of calculating NSYM_init is included in the process of calculating txtime. fsm (finite-state machine) represents a finite state machine, as shown in formula (1).
[0079]
[0080] In the above formula (1), based on Nsym_init is the initial number of OFDM symbols for the Data field when using LDPC, it can be seen that when using LDPC, Nsym_init represents the initial number of OFDM symbols for the Data field, that is, the initial number of symbols, corresponding to N in formula (1). SYM,init Based on Mstbc is equal to 2whenSTBC is used, and 1otherwise, it can be seen that when STBC is used, Mstbc is 2, otherwise it is 1, that is, the space-time block code value corresponding to the coding parameter corresponds to m in formula (1) STBCBased on APEP_LENGTH is the value of TXVECTOR parameter, it can be seen that APEP_LENGT represents the value of TXVECTOR parameter, that is, the transmission length, which corresponds to APEP in formula (1) LENGTH Based on Ntail: Number of tail bits per BCC encoder, we can know that N in formula (1) Tail is the number of bits in each BCC encoder. Based on Nservice: Number of bits in the SERVICE field, we can know that N in formula (1) service Indicates the number of bits in the SERVICE field. Based on Ndbps: Data bits per OFDM symbol, N in formula (1) can be DBPS Represents the data bits of each OFDM symbol, that is, the symbol length.
[0081] In the embodiment of the present application, for the division operation of NSYM_init, the value ranges are: the maximum dividend is 8*15523200+6+16=27-bit variable, and the maximum divisor is 78400*2=18-bit variable. 27 bits divided by 18 bits, mathematically the quotient should be 27 bits, because the divisor may be 1. However, the maximum value of Nsym is 11 bits, for the following reasons: in actual engineering, the maximum value of Tppdu is 5484, and the values of Tsysm are 3.6, 4, 13.6, 14.4, and 16. Therefore, the maximum value of Nsym is 5484 / 3.6, which is 11 bits. The maximum value of the initial symbol number (NSYM_init) is limited by the extreme value of Nsym, and the binary bit position of the extreme value of the quotient corresponding to NSYM_init is 11 bits.
[0082] It should be noted that the above dividend 15523200 comes from the maximum value of the max psdu length in the EHT protocol, such as Figure 5 As shown, Figure 5 An exemplary schematic diagram of data parameters in a division operation process provided by an embodiment of the present application; Figure 5 Tables 36-69 are shown, regarding the features of EHT PHY, where the value of a PSDU Max Length is 15523200 bytes, and the value of a Rx PHY Start Delay includes: 32+4×NEHT-SIGμs for EHT MUPPDUs, 32μs for EHT TB PPDUs. Figure 5 It can be seen that the maximum value is 15523200. Figure 5 NOTE-This is the maximum length in octets for a single user transmissionusing the EHT MU PPDU with the PPDU Type And Compression Mode field in the U-SIG field equal to 1,with EHT-SIG MCS 1,320MHz bandwidth,EHT-MCS 13,8spatialstreams,0.8μs GI duration,2×EHT-LTF,PE field with 0μs duration,pre-FECpadding factor value of4,and 396Data field OFDM symbols(396is the maximumnumber of Data field OFDM symbols that fits within the a PPDU Max Time of5.484ms.This is the maximum PSDU length an EHT PHY could support assuming norestrictions in MAC.See A-MPDU length limit rules and(General)for additionalrestrictions on the maximum number of octets the MAC could support.As can be seen, Figure 5 Also shown in the Notes: This is the maximum byte length for an EHT MU PPDU single user transmission with PPDU Type and Compression Mode fields in the U-SIG field equal to 1, EHT-sig MCS 1, 320MHz bandwidth, EHT-MCS 13, 8 spatial streams, 0.8μs GI duration, 2x EHT-ltf, PE field duration of 0μs, and a pre-fec fill factor value of 4. 396 data field OFDM symbols (396 is the maximum number of data field OFDM symbols that conform to a PPDU Max Time of 5.484ms). This is the maximum PSDU length that the EHT PHY can support assuming there are no restrictions in the MAC. See A-MPDU Length Limitation Rules and (General) for other restrictions on the maximum number of bytes that the MAC can support.
[0083] It should be noted that the source of the above divisor 78400 is: when nss is 2 in the project, 39200*2=78400, of which 39200 comes from Figure 6 ,like Figure 6 As shown, Figure 6 An exemplary schematic diagram of data parameters in another division operation process provided in an embodiment of the present application. Figure 6 Table 36-85 shows the EHT-MCSs for 4×996-tone RU, N SS,u =1, respectively showing the modulation mode (Modulation), code rate (R u ), N BPSCS,u 、N SD,u 、N CBPS,u 、N DBPS,u , Data rate (Mb / s). Among them, the modulation methods include BPSK, QPSK, 16-QAM, 64-QAM, 256-QAM, 1024-QAM, 4096-QAM, BPSK-DCM. The data rate value under different guard intervals (Guard Interval, GI), GI includes 0.8μs, 1.6μs and 3.2μs. Based on Figure 6 As you can see, the maximum value is 39200.
[0084] In some embodiments, the calculation order includes a second calculation order; the above-mentioned division operation process includes the following steps: according to the second calculation order, based on the number of bits remaining in the last symbol, the space-time block code value corresponding to the coding parameter and the shortest symbol length, a binary division operation is performed to determine the initial filling factor; wherein the operation result includes the initial filling factor, the number of calculations corresponding to the second calculation order is equal to the number of binary bits of the first extreme value, and the first extreme value is the ratio between the maximum value of the product of the symbol length and the space-time block code value and the minimum value of the product of the shortest symbol length and the space-time block code value.
[0085] In the embodiment of the present application, the second calculation order is determined by the ratio between the maximum value of the product of the symbol length and the space-time block code value and the minimum value of the product of the shortest symbol length and the space-time block code value. The number of binary bits of the first extreme value is 17 bits, and the number of calculations corresponding to the second calculation order is 17. In the calculation process of the initial filling factor (ainit), according to the second calculation order, based on the number of bits remaining in the last symbol (Nexcess), the space-time block code value corresponding to the coding parameter (Mstbc) and the shortest symbol length (Ndbps,short), the next 17 comparisons and subtractions are performed, starting from bit16, to determine the initial filling factor. Among them, Nexcess, Mstbc and Ndbps,short are real-time values in actual engineering.
[0086] In the embodiment of the present application, the initial padding factor (ainit) is calculated in NSYM fsm, where ainit represents the initial preFEC padding factor value, and may also be referred to as the initial preFEC padding factor value, that is, the process of calculating ainit is included in the txtime calculation process, as shown in formula (2).
[0087]
[0088] In the above formula (2), based on Nexcess: the number of bits left in the last OFDM symbol, it can be seen that N Excess Indicates the number of bits remaining in the last OFDM symbol, that is, the number of bits remaining in the last symbol.
[0089] N Excess =mod(8·APEP LENGTH +N Tail +N service ,m STBC ·N DBPS ) (3)
[0090] In the above formula (3), based on In an HE SU PPDU and HE ER SU PPDU transmission, the transmitter first computes the number of bits left in the last OFDM symbol(s)based on Equation (3). It can be seen that in HE SU PPDU and HE ER SU PPDU transmission, the transmitter first computes the number of bits left in the last OFDM symbol(s)based on Equation (3).STBC is 2if STBC is used, and 1otherwise, it can be seen that when STBC is used, m STBC is 2, otherwise it is 1. Based on the APEP_LENGTH isTXVECTOR parameter, it can be seen that APEP in formula (3) LENGTH Is the TXVECTOR parameter. Based on N Tail is the number of tail bits per encoder, it can be seen that N Tail is the number of bits of the tail digit of each encoder. service is the n umber of bits in the SERVICE field, it can be seen that N service Is the number of bits in the SERVICE field. DBPS is the number of data bits per symbol, it can be seen that N DBPS is the number of data bits per symbol.
[0091] From the above formula (3), we can know that N Excess The maximum value of m STBC ·N DBPS , so the maximum in EHT is 39200*2(Nss=2)*1(mstbc), and the maximum in HE is 32666*2(mstbc), such as Figure 7 As shown, Figure 7 An exemplary schematic diagram of data parameters in another division operation process provided in an embodiment of the present application. Figure 7 Table 27-104 shows the EHT-MCSsfor 2×996-tone RU, N SS =2, respectively showing the DCM, modulation mode (Modulation), code rate (R), N BPSCS 、N SD 、N CBPS 、N DBPS , Data rate (Mb / s). Among them, the modulation methods include BPSK, QPSK, 16-QAM, 64-QAM, 256-QAM, and 1024-QAM. The data rate value under different guard intervals (Guard Interval, GI), GI includes 0.8μs, 1.6μs, and 3.2μs. Based on Figure 7 As you can see, N CBPS The corresponding maximum value is 39200, N DBPSThe corresponding maximum value is 32666. After comprehensive consideration, the maximum value is 39200*2. Figure 7 N CBPS,short,u =N SD,short,u ·N SS,u ·N BPSCS,u ; N DBPS,short,u =N CBPS,short,u ·R u .
[0092] In the above formula (2), Ndbps, short comes from Figure 8 ,like Figure 8 As shown, Figure 8 Another exemplary schematic diagram of data parameters in a division operation process provided in an embodiment of the present application. Figure 8 Table 34-46, Table 34-46—NSD, short values for EHT-MCS values from 0 to 13 and 15, shows the value of NSD, short when EHT-MCS is between 0 and 13 (MCS∈[0, 13]) and equal to 15 (MCS=15). RU / MRU size is a parameter in the data transmission protocol. Based on (#2649) NOTE—EHT-MCS 15 is not supported for transmit and receive over MRU 2x996+484 and MRU 3x996+484, it can be seen that Figure 8 Also shown in FIG. 1 is an explanation of numerical values: when EHT-MCS=15, transmission and reception on MRU 2×996+484 and MRU 3×996+484 are not supported.
[0093] In the embodiment of the present application, in the division operation for finding ainit, the value ranges are: the dividend Nexcess is the remainder in formula (1), the maximum value of Nexcess is less than the divisor in formula (1), that is, the maximum dividend is 78400*2=18-bit variable, the maximum divisor is 19680=15-bit variable, the minimum divisor is 2, and the maximum result is 17 bits.
[0094] In some embodiments, the calculation order includes a third calculation order; the above-mentioned division operation process includes the following steps: according to the third calculation order, a binary division operation is performed based on the number of bits and the code rate of a preset field to determine the number of transmitted codewords; wherein the operation result includes the number of transmitted codewords, and the number of calculations corresponding to the third calculation order is equal to the number of binary bits of the second extreme value, and the second extreme value is the ratio of the maximum value of the product of the transmission length and the first value plus the second value to the third value.
[0095] In the embodiment of the present application, the third calculation order is determined by the ratio of the maximum value of the product of the transmission length and the first value plus the second value to the third value, the first value is 8, the second value is 22, and the third value is 972. The number of calculations corresponding to the third calculation order is 17. In the calculation process of the number of transmitted codewords (NCW), according to the third calculation order, based on the number of bits (Npld) and the code rate (Rate, R) of the preset field, the next 17 comparisons and subtractions are performed, starting from bit16, to determine the number of transmitted codewords. Among them, Npld and R are real-time values in actual engineering.
[0096] In the embodiment of the present application, NCW is calculated in NSYM fsm, that is, the process of calculating NCW is included in the txtime calculation process. Based on the integer number of LDPC codewords to be transmitted, it can be known that NCW represents the integer number of LDPC codewords to be transmitted. Based on Npld: is the number of bits in the PSDU and SERVICE field, it can be seen that N in the formula pld Indicates the number of bits in the PSDU and SERVICE fields. In the formula, R represents the code rate of the OFDM symbol.
[0097] In the embodiment of the present application, in the division operation for calculating NCW, the range of values is: the maximum value of the dividend is 15523200*8+22=27 bits (where 8 corresponds to the first value and 22 corresponds to the second value), the divisor is 11 bits, which is a fixed value, including 1620, 1458, 1296, and 972. Among them, 972 comes from the following: the minimum value of R is 1 / 2, the minimum value of the divisor is 1944*1 / 2=972 (where 972 corresponds to the third value), and the maximum value of the quotient obtained by dividing the maximum value of the dividend by the minimum value of the divisor is 17 bits, that is, the maximum value of the result Ncw is 17 bits.
[0098] In some embodiments, the calculation order includes a fourth calculation order; the above-mentioned division operation process includes the following steps: according to the fourth calculation order, a binary division operation is performed based on the number of transmitted codewords and the bit rate to determine the shortened number of bits; wherein the operation result includes the shortened number of bits, and the number of calculations corresponding to the fourth calculation order is equal to the number of binary bits of the third extreme value, and the third extreme value is the maximum value of the product of the transmission length and the first value plus the second value, and the product of the fourth value.
[0099] In the embodiment of the present application, the fourth calculation order is determined by adding the maximum value of the product of the transmission length and the first value to the second value and multiplying it by the fourth value. The first value is 8, the second value is 22, and the fourth value is The number of calculations corresponding to the fourth calculation order is 28. In the calculation process of the shortened number of bits (Nshrt), according to the fourth calculation order, based on the number of transmission codewords (NCW) and the code rate (R), the next 28 comparisons and subtractions are performed, starting from bit 27, to determine the shortened number of bits. Among them, NCW and R are real-time values in actual engineering.
[0100] In the embodiment of the present application, Nshrt is calculated in NSYM fsm, that is, the process of calculating Nshrt is included in the txtime calculation process, and Nshrt represents the number of shortening bits, as shown in formula (4).
[0101]
[0102] In the above formula (4), R is a fraction, and its possible values are 1 / 2, 2 / 3, 3 / 4, and 5 / 6.
[0103] In the embodiment of the present application, in the division operation for finding Nshrt, the range of values is: the maximum dividend is (15523200*8+22) / 972*1944*5=31-bit variable, the divisor is 3 bits, which is a fixed value including 3 and 6, the *5 in the dividend corresponds to the divisor 6, and the *2 corresponds to the divisor 3. Using the maximum value *5 / 6 or 3 / 4, the maximum result is 28 bits.
[0104] In some embodiments, the calculation order includes a fifth calculation order; the above-mentioned division operation process includes the following steps: according to the fifth calculation order, a binary division operation is performed based on the number of symbols and the fifth value to determine the estimated number of symbols; wherein the operation result includes the estimated number of symbols, and the number of calculations corresponding to the fifth calculation order is equal to the number of binary bits of the fourth extreme value, and the fourth extreme value is the product of the maximum number of symbols and the fifth value.
[0105] In the embodiment of the present application, the fifth calculation order is determined according to the product of the maximum number of symbols and the fifth value, and the fifth value is 9 / 10. The number of calculations corresponding to the fifth calculation order is 11. In the calculation process of the estimated number of symbols (NSYM), according to the fifth calculation order, the next 11 comparisons and subtractions are performed based on the number of symbols (Nsym) and the fifth value, starting from bit10, to determine the estimated number of symbols.
[0106] In the embodiment of the present application, NSYM is calculated in txtime fsm, that is, the process of calculating NSYM is included in the process of calculating txtime, based on Nsym is the number of OFDM symbols in the Data field, it can be known that Nsym represents the number of OFDM symbols in the data field, as shown in formula (5).
[0107]
[0108] In the embodiment of the present application, in the division operation for NSYM, the value ranges are as follows: the dividend is a 14-bit variable, for the following reasons: the dividend is Nsym*9, the maximum value of Nsym is 5484 / 3.6, the maximum value of the dividend is 5484 / 3.6*9 (which can also be expressed as 5484*10 / 36*9), which is 14 bits. The divisor is 4 bits, which is a fixed value of 10, and the maximum value of the result is 11 bits.
[0109] In some embodiments, the calculation order includes a sixth calculation order; the above-mentioned division operation process includes the following steps: according to the sixth calculation order, a binary division operation is performed based on the data sending length and the data rate to determine the first sending time; wherein the operation result includes the first sending time, and the number of calculations corresponding to the sixth calculation order is equal to the number of binary bits of the fifth extreme value, and the fifth extreme value is the ratio of the maximum value of the product of the longest data sending length and the first value to the minimum value of the data rate.
[0110] In the embodiment of the present application, the sixth calculation order is determined according to the ratio of the maximum value of the product of the longest data transmission length and the first value to the minimum value of the data rate, the first value is 8, and the minimum value of the data rate is 5.5. The number of calculations corresponding to the sixth calculation order is 13. In the calculation process of the first transmission time (txtime), according to the sixth calculation order, the comparison and subtraction calculations are performed based on the data transmission length (LENGTH) and the data rate (DATARATE) for the next 13 times, starting from bit12, to determine the first transmission time.
[0111] In the embodiment of the present application, the txtime of the DSSS PPDU is calculated in txtime fsm, that is, the calculation process of txtime is as shown in formula (6).
[0112]
[0113] In the above formula (6), Tpreamble_all represents the transmission time of the preamble.
[0114] In the embodiment of the present application, in the division operation for finding the txtime of the DSSS PPDU, the value ranges are: the maximum dividend is 4095*8*10=19-bit variable, the divisor is 6-bit fixed value 55, 11, and the maximum result is 13 bits. Among them, the first is the dividend 4095*8, the divisor is 5.5; the second is the dividend 4095*8, the divisor is 11. The first result is the largest, which is 13 bits.
[0115] In some embodiments, the calculation order includes a seventh calculation order; the above-mentioned division operation process includes the following steps: according to the seventh calculation order, a binary division operation is performed based on the data transmission length and the symbol length to determine the second transmission time; wherein the operation result includes the second transmission time, and the number of calculations corresponding to the seventh calculation order is equal to the number of binary bits of the sixth extreme value, and the sixth extreme value is the ratio of the maximum value of the product of the longest data transmission length and the first value plus the second value to the sixth value.
[0116] In the embodiment of the present application, the seventh calculation order is determined by the ratio of the maximum value of the product of the longest data transmission length and the first value plus the second value to the sixth value, the first value is 8, the second value is 22, and the sixth value is 24. The number of calculations corresponding to the seventh calculation order is 11. In the calculation process of the second transmission time (txtime), according to the seventh calculation order, the second transmission time is determined starting from bit10 by performing the next 11 comparisons and subtractions based on the data transmission length (LENGTH).
[0117] In the embodiment of the present application, the txtime of OFDM / ERP PPDU is calculated in txtime fsm, that is, the calculation process of txtime is as shown in formula (7).
[0118]
[0119] In the above formula (7), Tpreamble_all represents the transmission time of the preamble.
[0120] In the embodiment of the present application, in the division operation for calculating the txtime of the OFDM / ERP PPDU, the value ranges are: the maximum dividend is 4095*8+22=16-bit variable, the maximum divisor is 216=8-bit variable, the minimum divisor is 24, and the maximum result is 11 bits.
[0121] In some embodiments, the calculation order includes an eighth calculation order; the above-mentioned division operation process includes the following steps: according to the eighth calculation order, a binary division operation is performed based on the number of symbols and the symbol time to determine the third sending time; wherein the operation result includes the third sending time, and the number of calculations corresponding to the eighth calculation order is equal to the number of binary bits of the maximum value of the symbol time.
[0122] In the embodiment of the present application, the eighth calculation order is determined according to the binary bit of the maximum value of the symbol time, and the number of calculations corresponding to the eighth calculation order is 13. In the calculation process of the third transmission time (txtime), according to the eighth calculation order, the third transmission time is determined by performing the next 13 comparisons and subtractions based on the number of symbols (Nsym) and the symbol time (Time of symbol, TSYM), starting from bit12.
[0123] In the embodiment of the present application, the txtime of the HE SU / HE ER SU / EHT MU / EHT TB PPDU is calculated in txtime fsm, that is, the calculation process of txtime is as shown in formula (8).
[0124] txtime of HE SU / HE ER SU / EHT MU / EHT TB PPDU=Tpreamble_all+NSYM*TSYM(8)
[0125] In the above formula (8), Tpreamble_all represents the transmission time of the preamble.
[0126] In the embodiment of the present application, in the division operation for calculating txtime of HE SU / HE ER SU / EHT MU / EHT TB PPDU, the value ranges are: the dividend is a maximum of 54840=16-bit variable, the divisor is 4 bits, which is a fixed value of 10, and the result is a maximum of 13 bits.
[0127] It should be noted that although the above formula (8) is a multiplication operation, the values of TSYM include: 3.6μs, 4μs, 13.6μs, 14.4μs and 16μs. In the multiplication operation involving decimals, it will be converted into a division operation. For example, the formula of multiplication by 3.6 is converted into the formula of multiplication by 36 and division by 10. Based on this, there is a case where the divisor is a fixed value of 10.
[0128] In order to implement the data processing method of the embodiment of the present application, the embodiment of the present application also provides a chip, such as Fig. 9 As shown, Fig. 9An optional structural schematic diagram of a chip provided for an embodiment of the present application, the chip 90 includes: an operation module 901, used to perform binary division operations on the dividend and divisor in each division operation according to the calculation order corresponding to each division operation, and determine the operation result; wherein the calculation order represents the binary bits of the extreme value of the quotient in the division operation, the binary bits of the extreme value of the quotient are less than or equal to the maximum bit width of the dividend in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation; a transmission module 902, used to transmit data based on the operation result.
[0129] In some embodiments, the operation module 901 is also used to, if the calculation order is N, perform N calculation steps on the dividend and divisor in the division operation corresponding to the calculation order to obtain the values of the N binary bits of the quotient; the operation result includes the values of the N binary bits of the quotient, and N is a positive integer.
[0130] In some embodiments, the operation module 901 is also used to add N-1 preset values after the divisor to obtain a first divisor; determine the first digit of the quotient based on the dividend and the first divisor, and update the dividend to the first dividend; continue to add N-2 preset values after the divisor to obtain a second divisor; determine the second digit of the quotient based on the first dividend and the second divisor, and update the first dividend to the second dividend; after executing N-1 times, obtain the N-1th dividend; determine the last digit of the quotient based on the N-1th dividend and the divisor.
[0131] In some embodiments, the operation module 901 is also used to, when the dividend is greater than or equal to the first divisor, the first digit of the quotient is 1, and the dividend is updated to the first dividend, and the first dividend is the dividend minus the first divisor; when the dividend is less than the first divisor, the first digit of the quotient is 0, and the dividend is used as the first dividend.
[0132] In some embodiments, the calculation order includes a first calculation order;
[0133] The operation module 901 is also used to perform binary division operation according to the first calculation order, based on the transmission length, the space-time block code value corresponding to the coding parameter and the symbol length, to determine the initial number of symbols; wherein the operation result includes the initial number of symbols, and the number of calculations corresponding to the first calculation order is equal to the number of binary bits of the maximum number of symbols.
[0134] In some embodiments, the calculation order includes a second calculation order;
[0135] The operation module 901 is also used to perform a binary division operation to determine the initial filling factor according to the second calculation order, based on the number of bits remaining in the last symbol, the space-time block code value corresponding to the coding parameter and the shortest symbol length; wherein the operation result includes the initial filling factor, the number of calculations corresponding to the second calculation order is equal to the number of binary bits of the first extreme value, and the first extreme value is the ratio between the maximum value of the product of the symbol length and the space-time block code value and the minimum value of the product of the shortest symbol length and the space-time block code value.
[0136] In some embodiments, the calculation order includes a third calculation order;
[0137] The operation module 901 is also used to perform binary division operation based on the number of bits and code rate of the preset field according to the third calculation order to determine the number of transmission codewords; wherein the operation result includes the number of transmission codewords, and the number of calculations corresponding to the third calculation order is equal to the number of binary bits of the second extreme value, and the second extreme value is the ratio of the maximum value of the product of the transmission length and the first value plus the second value to the third value.
[0138] In some embodiments, the calculation order includes a fourth calculation order;
[0139] The operation module 901 is also used to perform binary division operation based on the number of transmitted codewords and the code rate according to the fourth calculation order to determine the shortened number of bits; wherein the operation result includes the shortened number of bits, and the number of calculations corresponding to the fourth calculation order is equal to the number of binary bits of the third extreme value, and the third extreme value is the product of the maximum value of the product of the transmission length and the first value plus the second value and the fourth value.
[0140] In some embodiments, the calculation order includes a fifth calculation order;
[0141] The operation module 901 is also used to perform binary division operation based on the number of symbols and the fifth value according to the fifth calculation order to determine the estimated number of symbols; wherein the operation result includes the estimated number of symbols, the number of calculations corresponding to the fifth calculation order is equal to the number of binary bits of the fourth extreme value, and the fourth extreme value is the product of the maximum number of symbols and the fifth value.
[0142] In some embodiments, the calculation order includes a sixth calculation order;
[0143] The operation module 901 is also used to perform binary division operation based on the data transmission length and the data rate according to the sixth calculation order to determine the first sending time; wherein the operation result includes the first sending time, and the number of calculations corresponding to the sixth calculation order is equal to the number of binary bits of the fifth extreme value, and the fifth extreme value is the ratio of the maximum value of the product of the longest data transmission length and the first value to the minimum value of the data rate.
[0144] In some embodiments, the calculation order includes a seventh calculation order;
[0145] The operation module 901 is also used to perform binary division operation based on the data transmission length and the symbol length according to the seventh calculation order to determine the second transmission time; wherein the operation result includes the second transmission time, and the number of calculations corresponding to the seventh calculation order is equal to the number of binary bits of the sixth extreme value, and the sixth extreme value is the ratio of the maximum value of the product of the longest data transmission length and the first value plus the second value to the sixth value.
[0146] In some embodiments, the calculation order includes an eighth calculation order;
[0147] The operation module 901 is also used to perform binary division operation based on the number of symbols and symbol time according to the eighth calculation order to determine the third sending time; wherein the operation result includes the third sending time, and the number of calculations corresponding to the eighth calculation order is equal to the number of binary bits of the maximum value of the symbol time.
[0148] In some embodiments, the chip 90 further includes a determination module 903;
[0149] The determination module 903 is used to determine the extreme value of the quotient according to the maximum value of the dividend and the minimum value of the divisor for each division operation; and determine the calculation order according to the binary bit of the extreme value of the quotient.
[0150] It should be noted that the chip provided in the above embodiment is only illustrated by the division of the above program modules when performing data processing. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the chip is divided into different program modules to complete all or part of the processing described above. In addition, the chip and the data processing method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process and beneficial effects are detailed in the method embodiment, which will not be repeated here. For the technical details not disclosed in this embodiment, please refer to the description of the method embodiment of this application for understanding.
[0151] The present application embodiment provides a chip, such as Fig.10 As shown, Fig.10The optional structural diagram of another chip provided in the embodiment of the present application. The chip 100 includes a first memory 1001 for storing an executable computer program; a first processor 1002 for executing the executable computer program stored in the first memory 1001 to implement the data processing method described in any of the above embodiments.
[0152] In the embodiment of the present application, the first memory 1001 is disposed inside the chip 100 .
[0153] In the embodiments of the present application, Fig.11 This is a schematic diagram of the structure of the data processing device proposed in the embodiment of the present application, such as Fig.11 As shown, the data processing device 110 proposed in the embodiment of the present application includes a second processor 1101 and a second memory 1102 storing an executable computer program. The second processor 1101 is used to implement the data processing method provided in the embodiment of the present application when executing the executable computer program stored in the second memory 1102.
[0154] In the embodiment of the present application, the data processing device 110 may be a network device or a terminal device.
[0155] In some embodiments, the data processing device 110 may further include a communication interface 1103 , and a bus 1104 for connecting the second processor 1101 , the second memory 1102 , and the communication interface 1103 .
[0156] In the embodiment of the present application, the first processor 501 and the second processor 1101 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and the embodiment of the present application does not specifically limit it.
[0157] In the embodiment of the present application, the bus 1104 is used to connect the communication interface 1103, the second processor 1101 and the second memory 1102 to achieve mutual communication between these devices.
[0158] The memory (second memory 502 or second memory 1102) is used to store executable computer programs and data, and the executable computer program includes computer operation instructions. The memory may include high-speed RAM memory, and may also include non-volatile memory, for example, at least two disk memories. In practical applications, the above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide executable computer programs and data to the processor (first processor 501 or second processor 1101).
[0159] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.
[0160] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0161] An embodiment of the present application provides a computer-readable storage medium storing a computer program for implementing the data processing method described in any of the above embodiments when executed by a first processor or a second processor.
[0162] Exemplarily, a program instruction corresponding to a data processing method in this embodiment can be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instruction corresponding to a data processing method in the storage medium is read or executed by an electronic device, the data processing method described in any of the above embodiments can be implemented.
[0163] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0164] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0165] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0166] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0167] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: According to the calculation order corresponding to each division operation, a binary division operation is performed on the dividend and the divisor in each division operation to determine the operation result; The calculation order represents the binary bits of the extreme value of the quotient in the division operation, the binary bits of the extreme value of the quotient are less than or equal to the maximum bit width of the dividend in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation; Data transmission is performed based on the calculation result.
2. The method according to claim 1, characterized in that: The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: If the calculation order is N, N calculation steps are performed on the dividend and the divisor in the division operation corresponding to the calculation order to obtain the values of the N binary bits of the quotient; the operation result includes the values of the N binary bits of the quotient, and N is a positive integer.
3. The method according to claim 2, characterized in that The step of performing N calculation steps on the dividend and the divisor in the division operation corresponding to the calculation order includes: Add N-1 preset values after the divisor to obtain a first divisor; Determine the first digit of the quotient according to the dividend and the first divisor, and update the dividend to the first dividend; Continue to add N-2 preset values after the divisor to obtain a second divisor; Determine the second digit of the quotient according to the first dividend and the second divisor, and update the first dividend to the second dividend; After executing N-1 times, the N-1th dividend is obtained; The last digit of the quotient is determined according to the N-1th dividend and the divisor.
4. The method according to claim 3, characterized in that The step of determining the first digit of the quotient according to the dividend and the first divisor, and updating the dividend to the first dividend, comprises: When the dividend is greater than or equal to the first divisor, the first digit of the quotient is 1, and the dividend is updated to the first dividend, which is the dividend minus the first divisor; When the dividend is smaller than the first divisor, the first digit of the quotient is 0, and the dividend is used as the first dividend.
5. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes a first calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: According to the first calculation order, based on the transmission length, the space-time block code value corresponding to the coding parameter and the symbol length, a binary division operation is performed to determine the initial number of symbols; The operation result includes the initial number of symbols, and the number of calculations corresponding to the first calculation order is equal to the number of binary bits of the maximum number of symbols.
6. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes a second calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: Determine an initial fill factor by performing a binary division operation based on the second calculation order and the number of bits remaining in the last symbol, the space-time block code value corresponding to the coding parameter, and the shortest symbol length; Among them, the calculation result includes the initial filling factor, the number of calculations corresponding to the second calculation order is equal to the number of binary bits of the first extreme value, and the first extreme value is the ratio between the maximum value of the product of the symbol length and the space-time block code value and the minimum value of the product of the shortest symbol length and the space-time block code value.
7. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes a third calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: According to the third calculation order, a binary division operation is performed based on the number of bits and the code rate of the preset field to determine the number of transmission codewords; Among them, the calculation result includes the number of transmission codewords, the number of calculations corresponding to the third calculation order is equal to the number of binary bits of the second extreme value, and the second extreme value is the ratio of the maximum value of the product of the transmission length and the first value plus the second value to the third value.
8. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes a fourth calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: According to the fourth calculation order, a binary division operation is performed based on the number of transmission codewords and the code rate to determine the shortened number of bits; Among them, the operation result includes the shortened number of bits, the number of calculations corresponding to the fourth calculation order is equal to the number of binary bits of the third extreme value, and the third extreme value is the product of the maximum value of the product of the sending length and the first value plus the second value and the fourth value.
9. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes a fifth calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: performing a binary division operation based on the number of symbols and the fifth value according to the fifth calculation order to determine an estimated number of symbols; Among them, the calculation result includes the estimated number of symbols, the number of calculations corresponding to the fifth calculation order is equal to the number of fourth extreme value binary bits, and the fourth extreme value is the product of the maximum number of symbols and the fifth value.
10. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes a sixth calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: According to the sixth calculation order, a binary division operation is performed based on the data transmission length and the data rate to determine a first transmission time; Among them, the calculation result includes the first sending time, the number of calculations corresponding to the sixth calculation order is equal to the number of binary bits of the fifth extreme value, and the fifth extreme value is the ratio of the maximum value of the product of the longest data sending length and the first value to the minimum value of the data rate.
11. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes a seventh calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: According to the seventh calculation order, a binary division operation is performed based on the data transmission length and the symbol length to determine a second transmission time; Among them, the calculation result includes the second sending time, the number of calculations corresponding to the seventh calculation order is equal to the number of binary bits of the sixth extreme value, and the sixth extreme value is the ratio of the maximum value of the product of the longest data sending length and the first value plus the second value to the sixth value.
12. The method according to any one of claims 1 to 4, characterized in that: The calculation order includes an eighth calculation order; The step of performing binary division operations on the dividend and the divisor in each division operation according to the calculation order corresponding to each division operation to determine the operation result includes: According to the eighth calculation order, performing a binary division operation based on the number of symbols and the symbol time to determine a third sending time; The calculation result includes the third sending time, and the number of calculations corresponding to the eighth calculation order is equal to the number of binary bits of the maximum value of the symbol time.
13. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: For each of the division operations, determining an extreme value of the quotient according to the maximum value of the dividend and the minimum value of the divisor; The calculation order is determined according to the binary bits of the extreme value of the quotient.
14. A chip, characterized in that: The chip comprises: An operation module, used for performing binary division operation on the dividend and divisor in each division operation according to the calculation order corresponding to each division operation, and determining the operation result; wherein the calculation order represents the binary bits of the extreme value of the quotient in the division operation, the binary bits of the extreme value of the quotient are less than or equal to the maximum bit width of the dividend in the division operation, and the number of calculations corresponding to the calculation order is equal to the number of binary bits of the extreme value of the quotient in the division operation; A transmission module is used for transmitting data based on the calculation result.
15. A chip, characterized in that: The chip comprises: A first memory for storing an executable computer program; The first processor is configured to implement the method according to any one of claims 1 to 13 when executing the executable computer program stored in the first memory.
16. A data processing device, characterized in that: The data processing device is a terminal device or a network device; The device comprises: a second memory for storing an executable computer program; The second processor is configured to implement the method according to any one of claims 1 to 13 when executing the executable computer program stored in the second memory.
17. A computer-readable storage medium, characterized in that: A computer program is stored, and is used to implement the method described in any one of claims 1 to 13 when executed by the first processor or the second processor.
Citation Information
Cited By
Division calculation method and device based on hardware implementation and electronic equipment
CN119376690A
Hardware-based Division Calculation Method, Device and Electronic Equipment
CN119376690B
