Data modulation method, device and storage medium
By calculating the adjustment coefficient and modulating the modulated data, the problems of bit width resource waste and accuracy loss in the fixed-pointing process in the prior art are solved, and more efficient data modulation performance and smaller error vector amplitude are achieved.
Patent Information
- Application Number
- CN202211179084.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-09-27
AI Technical Summary
When converting floating-point data into fixed-point data, the prior art fails to effectively utilize the maximum value of the fixed-point data range, resulting in waste of bit width resources and loss of accuracy.
By obtaining the representative value of the data to be modulated, the data range and representative value of the target data are determined, the adjustment coefficient is calculated, and the to-modification data is modulated based on the coefficient, and finally a fixed-point processing is performed to obtain the modulated fixed-point data.
The data modulation performance is improved, and the phase relationship between the modulated data is retained to the maximum extent, thereby reducing the error vector amplitude of the transmitter.
Smart Images

Figure CN115801520B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data processing, and in particular to a data modulation method, device and storage medium. Background Art
[0002] The standard data in the 3GPP (3rd Generation Partnership Project) 211 protocol is power-normalized floating-point data, but the data in engineering products are all fixed-point data, so it is necessary to convert the floating-point data into fixed-point data. In the related art, fixed-point data is obtained by directly converting the floating-point data into fixed-point data, but when converting the fixed-point data into fixed-point data, the maximum value of the fixed-point data range is not used, which results in wasting some bit width resources and losing some precision. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a data modulation method, device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a data modulation method is provided, the method comprising:
[0005] Obtaining a representative value of the data to be modulated;
[0006] Determine a data range of target data to be modulated and a representative value corresponding to the target data;
[0007] Determining an adjustment coefficient according to the representative value of the data to be modulated and a representative value corresponding to the target data;
[0008] The data to be modulated is modulated based on the adjustment coefficient.
[0009] In an exemplary embodiment, determining the adjustment coefficient according to the representative value of the data to be modulated and the representative value corresponding to the target data includes:
[0010] The ratio of the representative value corresponding to the target data to the representative value of the data to be modulated is determined as the adjustment coefficient.
[0011] In an exemplary embodiment, the representative value of the data to be modulated is the maximum value, minimum value or average value of the data to be modulated; and the representative value corresponding to the target data is the maximum value, minimum value or average value of the target data.
[0012] In an exemplary embodiment, the modulating the to-be-modulated data based on the adjustment coefficient includes:
[0013] Adjust the data to be modulated based on the adjustment coefficient to obtain adjusted data to be modulated;
[0014] The adjusted data to be modulated is processed into fixed-point data to obtain modulated fixed-point data.
[0015] In an exemplary embodiment, the data to be modulated includes standard 256QAM data, standard 16QAM data and standard 64QAM data.
[0016] According to a second aspect of an embodiment of the present disclosure, a data modulation device is provided, the device comprising:
[0017] An acquisition module, configured to acquire a representative value of the data to be modulated;
[0018] A first determining module is configured to determine a data range of target data to be modulated and a representative value corresponding to the target data;
[0019] A second determination module is configured to determine an adjustment coefficient according to the representative value of the to-be-modulated data and a representative value corresponding to the target data;
[0020] The modulation module is configured to modulate the data to be modulated based on the adjustment coefficient.
[0021] In an exemplary embodiment, the second determining module is further configured to:
[0022] The ratio of the representative value corresponding to the target data to the representative value of the data to be modulated is determined as the adjustment coefficient.
[0023] In an exemplary embodiment, the representative value of the data to be modulated is the maximum value, minimum value or average value of the data to be modulated; and the representative value corresponding to the target data is the maximum value, minimum value or average value of the target data.
[0024] In an exemplary embodiment, the modulation module is further configured to:
[0025] Adjust the data to be modulated based on the adjustment coefficient to obtain adjusted data to be modulated;
[0026] The adjusted data to be modulated is processed into fixed-point data to obtain modulated fixed-point data.
[0027] In an exemplary embodiment, the data to be modulated includes standard 256QAM data, standard 16QAM data, standard 64QAM data and QPSK data.
[0028] According to a third aspect of an embodiment of the present disclosure, there is provided a data modulation device, including:
[0029] processor;
[0030] a memory for storing processor-executable instructions;
[0031] The processor is configured to execute a method as described in any one of the first aspects of the embodiments of the present disclosure.
[0032] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a device, the device is enabled to execute a method as described in any one of the first aspects of the embodiment of the present disclosure.
[0033] The above method disclosed in the present invention has the following beneficial effects: it can improve the data modulation performance and retain the phase relationship between the modulated data to the maximum extent, thereby making the error vector amplitude of the transmitter smaller.
[0034] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0036] Figure 1 is a flow chart of a data modulation method according to an exemplary embodiment;
[0037] Figure 2 is a schematic diagram showing a comparison of transmission EVMs of scheme A and scheme B according to an exemplary embodiment;
[0038] Figure 3 is a schematic diagram showing a comparison of demodulation performances of scheme A and scheme B according to an exemplary embodiment;
[0039] Figure 4 is a block diagram of a data modulation device according to an exemplary embodiment;
[0040] Figure 5 The figure is a block diagram of a data modulation device according to an exemplary embodiment. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0042] In the related art, in engineering products, data are all limited in bit width, but a real number may have infinite bit width, for example, π is an infinite non-repeating decimal, and in actual engineering applications, approximate fixed-point values are usually used, for example, 3.14 or 3.1415 is used as the approximate value of π in engineering. The bit width of a number is limited to a limited bit width range, so as to obtain the approximate value b of the number a. The process from a to b is the fixed-point process, and the approximate value b is the fixed-point data after the fixed-point processing.
[0043] In an exemplary embodiment of the present disclosure, a data modulation method is provided. Figure 1 is a flow chart of a data modulation method according to an exemplary embodiment. Figure 1 As shown, the data modulation method includes the following steps:
[0044] Step S101, obtaining a representative value of the data to be modulated;
[0045] Step S102, determining the data range of the target data to be modulated and the representative value corresponding to the target data;
[0046] Step S103, determining an adjustment coefficient according to a representative value of the data to be modulated and a representative value corresponding to the target data;
[0047] Step S104: modulate the data to be modulated based on the adjustment coefficient.
[0048] In an exemplary embodiment of the present disclosure, in order to overcome the problems in the related art, a data modulation method is provided. A representative value of the data to be modulated is obtained, the data range of the target data to be modulated and the representative value corresponding to the target data are determined, an adjustment coefficient is determined according to the representative value of the data to be modulated and the representative value corresponding to the target data, and the modulated data is modulated based on the adjustment coefficient. Using the method in the present disclosure, the data modulation performance can be improved, and the phase relationship between the modulated data can be retained to the maximum extent, thereby making the error vector magnitude (EVM) of the transmitter smaller.
[0049] In step S101, the data to be modulated may be floating point data in the 3GPP 211 protocol, such as standard 256QAM data or standard 16QAM data or standard 64QAM data or QPSK data, or other data that needs to be modulated. Taking standard 256QAM data as an example, the octal bits b(i), b(i+1), b(i+2), b(i+3), b(i+4), b(i+5), b(i+6), b(i+7) are mapped to complex value modulation representation as follows: Where I represents the real axis value, and Q represents the imaginary axis value. Table 1 is the modulation mapping table of standard 256QAM data:
[0050] Table 1 Modulation mapping table for standard 256QAM data
[0051]
[0052]
[0053] The representative value of the data to be modulated is a value that can characterize the characteristics of the data to be modulated, such as the maximum value, minimum value or average value of the data to be modulated. The representative value is selected according to the characteristics of the data to be modulated. For different data to be modulated, the representative values can be the same or different. Since the data to be modulated usually includes multiple different values, when modulating it, multiple different values need to be modulated in the same way. In order to ensure full utilization of bit width resources, the maximum value of the data to be modulated can be selected as the representative value. For example, the maximum value of standard 256QAM data is When the data to be modulated is standard 256QAM data, the representative value is The maximum value of standard 64QAM data is When the data to be modulated is standard 64QAM data, the representative value is The maximum value of standard 16QAM data is When the data to be modulated is standard 16QAM data, the representative value is The maximum value of QPSK data is When the data to be modulated is QPSK data, the representative value is
[0054] In step S102, after obtaining the data to be modulated, the data range of the target data to be modulated is determined, and the corresponding representative value in the target data is determined in the target data range. For example, when the representative value of the data to be modulated is the maximum value, the representative value of the target data also corresponds to the maximum value; when the representative value of the data to be modulated is the minimum value, the representative value of the target data also corresponds to the minimum value; when the representative value of the data to be modulated is the average value, the representative value of the target data also corresponds to the average value.
[0055] In one example, when the data to be modulated is standard 256QAM data and the target data is fixed-point data, the fixed-point data includes two calibration formats, namely S(n, m) format and S(n, 0) format. The total bit width of the signed number represented by the S(n, m) format is nbit, numbered from left to right as bit0 to bit(n-1), the left side is the high bit, the right side is the low bit, bit0 is the sign bit, bit(nm) to bit(n-1) are the decimal places, and the others are integer places; the total bit width of the signed number represented by the S(n, 0) format is nbit, numbered from left to right as bit0 to bit(n-1), the left side is the high bit, the right side is the low bit, bit0 is the sign bit, bit1 to bit(n-1) are the integer places, and there is no decimal place, that is, the decimal place width is 0. The relationship between the above two calibration formats is: S(n, 0) = S(n, m)*2^m. Taking 7-bit calibration as an example, the S(n, 0) format is expressed as S(7, 0), that is, 7 bits are used to store signed numbers, where the first bit from left to right is the sign bit and the remaining 6 bits are integer bits. Therefore, the data range that can be expressed by this format is [-64, -63, ..., 62, 63]; the S(n, m) format is expressed as S(7, 5) format, and the data range that can be expressed is [-64, -63, ..., 62, 63] / 2^5. The corresponding representative value can be determined based on the data range of the target data.
[0056] In step S103, after determining the representative value of the data to be modulated and the representative value corresponding to the target data, the data range of the data to be modulated and the data range of the target data can be scaled to the same data range according to the representative value of the data to be modulated and the representative value of the target data, so that the bit width resources can be fully utilized, thereby improving the accuracy.
[0057] In one implementation, the adjustment coefficient is determined by the ratio of the representative value corresponding to the target data to the representative value of the data to be modulated.
[0058] For example, when the data to be modulated is standard 256QAM data and the representative value is the maximum value, the protocol specifies that the maximum value is The decimal form is 1.15044..., that is, the maximum value is greater than 1 and less than 2, so the integer position requires 1 bit. Taking 7-bit calibration as an example, the decimal position is 7-1-1=5 bits, so the S(n,m) calibration format is expressed as S(7,5). According to the relationship between the S(n,m) calibration format and the S(n,0) calibration format, the value corresponding to the S(n,0) calibration format is: Rounded to 37, that is, the calibration value is 37, corresponding to S(7,0). At this time, the value in the standard 256QAM data is The decimal form is 0.07669... Since the S(n, m) calibration format corresponds to S(7, 5), the value corresponding to the S(n, 0) calibration format is After rounding, it is 2, that is, the calibration value is 2, which is represented by S(7, 0). Since the floating-point data range corresponding to S(7, 5) is -2 to 2, in order to ensure that the data range of the data to be modulated is consistent with the data range of the target data, the maximum value of the data to be modulated needs to be amplified to be consistent with the maximum value of the target data, that is, consistent with the maximum value 2 of the floating-point data corresponding to the calibration format. Therefore, the ratio of the representative value corresponding to the target data and the representative value of the data to be modulated determines the adjustment coefficient, that is, the adjustment coefficient QAMFactor is:
[0059] For example, when the data to be modulated is standard 64QAM data and the representative value is the maximum value, the protocol specifies that the maximum value is The maximum value is greater than 1 and less than 2. The maximum value of the floating-point data corresponding to the calibration format is 2. Therefore, the adjustment factor QAMFactor is:
[0060] For example, when the data to be modulated is standard 16QAM data and the representative value is the maximum value, the protocol stipulates that the maximum value is The maximum value is less than 1, and the maximum value of the floating-point data corresponding to the calibration format is 1. Therefore, the adjustment factor QAMFactor is:
[0061] For example, when the data to be modulated is standard QPSK data and the representative value is the maximum value, the protocol stipulates that the maximum value is It is expressed as 0.707... in decimal form. The maximum value is greater than 0 and less than 1, so the integer bit is not needed. Taking 7-bit calibration as an example, there are 6 decimal places, so the S(n, m) calibration format is expressed as S(7, 6). The maximum floating point data corresponding to S(7, 6) is 1, so the adjustment coefficient QAMFactor is:
[0062] In step S104, after the adjustment coefficient is determined, the data to be modulated is modulated based on the adjustment coefficient, for example, the data to be modulated is fixed-point processed to obtain fixed-point data.
[0063] In one implementation, the data to be modulated is adjusted based on the adjustment coefficient to obtain adjusted data to be modulated; and the adjusted data to be modulated is processed into a fixed-point format to obtain modulated fixed-point data.
[0064] The data to be modulated is multiplied by the adjustment coefficient to obtain the adjusted data to be modulated. The data range of the adjusted data to be modulated is consistent with the data range of the target data, which can avoid the waste of bit width resources. The adjusted data to be modulated is then fixed-point processed to obtain modulated fixed-point data. The fixed-point processing includes converting the adjusted data to be modulated into data in an S (n, m) calibration format or an S (n, 0) calibration format.
[0065] In the exemplary embodiment of the present disclosure, when the data to be modulated is standard 256QAM data, taking data d as an example, When 7-bit calibration is performed on it, the calibration data in the S(n, m) calibration format is expressed as S(7, 5).
[0066] If the modulation data d is not adjusted by using the adjustment coefficient, and the modulation data d is directly fixed-point processed, the calibration data of the S(n, m) calibration format is 1.15625+1j*0.0625, and the calibration data corresponding to the S(n, 0) calibration format is (1.15625+1j*0.0625)*2^5=37+1j*2. Table 2 shows the fixed-point data corresponding to the standard 256QAM data when the modulation data is not adjusted and 7-bit calibration is used. As shown in Table 2, the angle is atan(2 / 37).
[0067] Table 2: Fixed-point data corresponding to standard 256QAM data when 7-bit calibration is used without adjusting the modulated data
[0068] Standard 256QAM data (*1 / sqrt(170)) Fixed-point decimal value Binary value -15 91 1011011 -13 96 1100000 -11 101 1100101 -9 106 1101010 -7 111 1101111 -5 116 1110100 -3 121 1111001 -1 126 1111110 1 2 0000010 3 7 0000111 5 12 0001100 7 17 0010001 9 22 0010110 11 27 0011011 13 32 1000000 15 37 0100101
[0069] If the adjustment factor is used The modulated data d is adjusted, and the adjusted modulated data a is: a=d*QAMFactor=2+1j*2 / 15. The calibration data of the S(n,m) calibration format obtained by fixing the adjusted modulated data a is 1.96875+1j*0.125, and the calibration data corresponding to the S(n,0) calibration format is (1.96875+1j*0.125)*2^5=63+1j*4. Table 3 shows the fixed-point data corresponding to the standard 256QAM data when 7-bit calibration is used after the modulated data is adjusted. As shown in Table 3, the angle is atan(4 / 63).
[0070] Table 3 shows the fixed-point data corresponding to the standard 256QAM data when the modulated data is adjusted and 7-bit calibration is used
[0071]
[0072]
[0073] The angle of the standard modulation data d is atan(1 / 15). Since |atan(1 / 15)-atan(4 / 63)|<|atan(1 / 15)-atan(2 / 37)|, the modulation performance is better when the modulation data is adjusted using the adjustment coefficient and then processed into a fixed point.
[0074] In an exemplary embodiment of the present disclosure, the data modulation method in the present disclosure is applied to processing in the digital domain of the transmitting end. The scheme of directly performing fixed-point processing on the modulated data without using the adjustment coefficient to adjust the modulated data is recorded as Scheme A, and the scheme of using the adjustment coefficient to adjust the modulated data and then performing fixed-point processing on the adjusted modulated data is recorded as Scheme B, taking the data to be modulated as standard 256QAM data as an example. Figure 2 is a schematic diagram showing a comparison of the transmission EVM of scheme A and scheme B according to an exemplary embodiment, as shown in FIG. Figure 2 As shown, the EVM of Scheme B is 0.95232%, and the EVM of Scheme A is 1.6483%. Therefore, the transmit EVM of Scheme B is significantly improved compared with that of Scheme A, that is, after the adjustment coefficient is used to adjust the modulated data, the transmit EVM of the adjusted modulated data is fixed-point processed smaller. After converting the EVM to signal-to-noise ratio, the transmit signal-to-noise ratio of Scheme A is 40.4dB, and the transmit signal-to-noise ratio of Scheme B is 35.6dB. Therefore, the transmit signal-to-noise ratio of Scheme B is improved by 4.8dB compared with Scheme A. Under the configuration of Additive White Gaussian Noise (AWGN) channel, LTE 20M system bandwidth, standard 256QAM data, and code rate 0.84, Figure 3 is a schematic diagram showing a comparison of demodulation performances of scheme A and scheme B according to an exemplary embodiment. Figure 3 As shown in the figure, near the working point of Bler=10%, when calibrated at 7 bits, Scheme B has a demodulation gain of 1.5 dB compared with Scheme A. In summary, after using the adjustment coefficient to adjust the modulated data, the scheme of fixed-point processing of the adjusted modulated data has a smaller transmit EVM, a significantly improved transmit signal-to-noise ratio, and better demodulation performance.
[0075] In an exemplary embodiment of the present disclosure, a data modulation device is provided. Figure 4 is a block diagram of a data modulation device according to an exemplary embodiment. Figure 4 As shown, including:
[0076] An acquisition module 401 is configured to acquire a representative value of the data to be modulated;
[0077] A first determination module 402 is configured to determine a data range of target data to be modulated and a representative value corresponding to the target data;
[0078] A second determination module 403 is configured to determine an adjustment coefficient according to the representative value of the data to be modulated and a representative value corresponding to the target data;
[0079] The modulation module 404 is configured to modulate the data to be modulated based on the adjustment coefficient.
[0080] In an exemplary embodiment, the second determining module 403 is further configured to:
[0081] The ratio of the representative value corresponding to the target data to the representative value of the data to be modulated is determined as the adjustment coefficient.
[0082] In an exemplary embodiment, the representative value of the data to be modulated is the maximum value, minimum value or average value of the data to be modulated; and the representative value corresponding to the target data is the maximum value, minimum value or average value of the target data.
[0083] In an exemplary embodiment, the modulation module 404 is further configured to:
[0084] Adjust the data to be modulated based on the adjustment coefficient to obtain adjusted data to be modulated;
[0085] The adjusted data to be modulated is processed into fixed-point data to obtain modulated fixed-point data.
[0086] In an exemplary embodiment, the data to be modulated includes standard 256QAM data, standard 16QAM data, standard 64QAM data and QPSK data.
[0087] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0088] Figure 5 is a block diagram of a data modulation device 500 according to an exemplary embodiment.
[0089] Reference Figure 5 , the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0090] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0091] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0092] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 500.
[0093] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0094] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0095] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0096] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0097] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0098] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0099] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0100] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a device, enables the device to perform a data modulation method, the method including any of the above methods.
[0101] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0102] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A data modulation method, characterized in that: The method comprises: Obtaining a representative value of the data to be modulated; Determine a data range of target data to be modulated and a representative value corresponding to the target data; Determining an adjustment coefficient according to the representative value of the data to be modulated and a representative value corresponding to the target data; Performing fixed-point processing on the data to be modulated based on the adjustment coefficient to obtain fixed-point data; The step of determining the adjustment coefficient according to the representative value of the data to be modulated and the representative value corresponding to the target data includes: The ratio of the representative value corresponding to the target data and the representative value of the data to be modulated is determined as the adjustment coefficient; when the representative value of the data to be modulated is the maximum value, the representative value of the target data is the maximum value; when the representative value of the data to be modulated is the minimum value, the representative value of the target data is the minimum value; when the representative value of the data to be modulated is the average value, the representative value of the target data is the average value.
2. The data modulation method according to claim 1, characterized in that: The representative value of the data to be modulated is the maximum value, minimum value or average value of the data to be modulated; and the representative value corresponding to the target data is the maximum value, minimum value or average value of the target data.
3. The data modulation method according to claim 1 or 2, characterized in that: The step of performing fixed-point processing on the data to be modulated based on the adjustment coefficient to obtain fixed-point data includes: Adjust the data to be modulated based on the adjustment coefficient to obtain adjusted data to be modulated; The adjusted data to be modulated is processed into fixed-point data to obtain modulated fixed-point data.
4. The data modulation method according to claim 1, characterized in that: The data to be modulated includes standard 256QAM data, standard 16QAM data, standard 64QAM data and QPSK data.
5. A data modulation device, characterized in that: The device comprises: An acquisition module, configured to acquire a representative value of the data to be modulated; A first determining module is configured to determine a data range of target data to be modulated and a representative value corresponding to the target data; A second determination module is configured to determine an adjustment coefficient according to the representative value of the to-be-modulated data and a representative value corresponding to the target data; A modulation module, configured to perform fixed-point processing on the data to be modulated based on the adjustment coefficient to obtain fixed-point data; The second determination module is further configured to: determine the ratio of the representative value corresponding to the target data and the representative value of the data to be modulated as the adjustment coefficient; when the representative value of the data to be modulated is the maximum value, the representative value of the target data is the maximum value; when the representative value of the data to be modulated is the minimum value, the representative value of the target data is the minimum value; when the representative value of the data to be modulated is the average value, the representative value of the target data is the average value.
6. A data modulation device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a device, the device is enabled to perform the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Microarchitecture for floating point fused multiply-add with exponent scaling
CN104520807A
Modulation method and device, and computer storage medium
CN108933753A