Data conversion method and device, storage medium and electronic device
By reordering, cross-clock and bit-width conversion of the sampling data and link layer transmission data of the JESD204C interface, the problem of low acquisition efficiency in the existing technology is solved, flexible conversion between data is achieved, circuit design is simplified and Reduced power consumption.
Patent Information
- Application Number
- CN202011639456.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-12-31
AI Technical Summary
In the existing technology, the acquisition efficiency of JESD204C sampling data and link layer transmission data is low and needs to be obtained separately, resulting in complexity and inconvenience.
By obtaining sampling data or link layer transmission data in network communication, reordering, cross-clock operations and bit-width conversion are performed to achieve flexible conversion between data and avoid separate acquisition.
It improves data acquisition efficiency, simplifies circuit design, reduces power consumption and complexity of transmission layer circuits, and enhances flexibility and versatility.
Smart Images

Figure CN114765628B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a data conversion method and device, a storage medium, and an electronic device. Background Art
[0002] In the prior art, the sampling data and link layer transmission data of JESD204C need to be acquired separately according to the requirements of the specific protocol. The above method needs to acquire the sampling data and link layer transmission data separately. The present application proposes a conversion method between sampling data and link layer transmission data to realize the conversion between sampling data and link layer transmission data. Summary of the invention
[0003] Embodiments of the present invention provide a data conversion method and device, a storage medium, and an electronic device to at least solve the problem of low efficiency in acquiring sampling data and link layer transmission data in the related art.
[0004] According to one embodiment of the present invention, a data conversion method is provided, comprising: acquiring sampled data sampled during a network communication process; reordering the sampled data; performing a cross-clock operation and a bit width conversion operation on the reordered sampled data to obtain converted link layer transmission data.
[0005] According to another embodiment of the present invention, a data conversion method is provided, comprising: acquiring link layer transmission data to be converted during network communication; performing a bit width conversion operation and a cross-clock operation on the link layer transmission data to obtain processed link layer transmission data; and determining the data after reordering the processed link layer transmission data as sampling data.
[0006] According to another embodiment of the present invention, there is provided a data conversion device, comprising: an acquisition unit, used to acquire sampled data sampled during network communication; a reordering unit, used to reorder the sampled data; and a processing unit, used to perform cross-clock operation and bit width conversion operation on the reordered sampled data to obtain converted link layer transmission data.
[0007] According to another embodiment of the present invention, there is provided a data conversion device, comprising: an acquisition unit, used to acquire link layer transmission data to be converted during network communication; a processing unit, used to perform a bit width conversion operation and a cross-clock operation on the above-mentioned link layer transmission data to obtain the processed link layer transmission data; and a reordering unit, used to determine the data after the processing of the above-mentioned link layer transmission data is reordered as sampling data.
[0008] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0009] According to another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0010] Through the present invention, after the sampling data or the link layer transmission data is obtained, the data can be converted by the above method, so that after one of the sampling data or the link layer transmission data is obtained, the other data can be converted by data conversion without the need to obtain it separately, thereby realizing flexible conversion between the sampling data and the link layer transmission data. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a hardware structure block diagram of a mobile terminal according to a data conversion method according to an embodiment of the present invention;
[0012] Figure 2 is a flow chart of a data conversion method according to an embodiment of the present invention;
[0013] Figure 3 is a flow chart of another data conversion method according to an embodiment of the present invention;
[0014] Figure 4 is a schematic diagram of data reordering according to a data conversion method according to an embodiment of the present invention;
[0015] Figure 5 is a schematic diagram of data frequency division according to a data conversion method according to an embodiment of the present invention;
[0016] Figure 6 is a schematic diagram of data bit width conversion according to a data conversion method according to an embodiment of the present invention;
[0017] Figure 7 is a schematic diagram of data bit width conversion according to a data conversion method according to an embodiment of the present invention;
[0018] Figure 8 is a schematic diagram of data frequency multiplication according to a data conversion method according to an embodiment of the present invention;
[0019] Fig. 9 is a schematic diagram of data reordering according to a data conversion method according to an embodiment of the present invention;
[0020] Fig.10is a structural block diagram of a data conversion device according to an embodiment of the present invention;
[0021] Fig.11 is a structural block diagram of a data conversion device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0024] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure diagram of a mobile terminal of a data conversion method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data conversion method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a data conversion method is provided. Figure 2 is a flow chart of a data conversion method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0028] Step S202, acquiring sampled data obtained by sampling during the network communication process;
[0029] Step S204, reordering the sampled data;
[0030] Step S206 , performing a cross-clock operation and a bit width conversion operation on the reordered sampled data to obtain converted link layer transmission data.
[0031] Through the above steps, after obtaining the sampling data or the link layer transmission data, the data can be converted through the above method, so that after obtaining one of the sampling data or the link layer transmission data, the other data can be converted through data conversion.
[0032] The execution subject of the above steps may be a base station, a terminal, etc., but is not limited thereto.
[0033] As an optional example, reordering the sampled data includes:
[0034] Output data is selected from the multi-channel sampling data, the output data is written into a first memory module, and the output data in the first memory module is read in sequence to obtain the reordered sampling data.
[0035] As an optional example, selecting output data from multiple sampling data, writing the output data into a first memory module, and sequentially reading the output data in the first memory module to obtain the reordered sampling data includes:
[0036] The multi-channel data selection module selects output data from the multi-channel sampled data according to the selection configuration information in the first configuration information module, and writes the selected output data into the first memory module according to the write address information in the first configuration information module, wherein the data that needs to appear in the lane first is written into the low address of the first memory module, and the data that needs to appear in the lane later is written into the high address of the first memory module;
[0037] The reordered sampled data is acquired in an increasing manner according to the read address of the first memory module.
[0038] As an optional example, performing a cross-clock operation on the reordered sampled data includes:
[0039] Writing the sampled data into the second memory module at a first clock;
[0040] The sampled data is read from the second memory module at a second clock, wherein the first clock and the second clock are different.
[0041] As an optional example, performing a bit width conversion operation on the reordered sample data includes:
[0042] A read enable parameter rd_en and a shift amount shift_num of a shift register are obtained, and according to the rd_en and the shift_num, the sampled data in the second memory module are stored in the shift register and a corresponding shift operation is completed.
[0043] As an optional example, obtaining a read enable parameter rd_en and a shift amount shift_num of a shift register, storing the sampled data in the second memory module into the shift register according to the rd_en and the shift_num, and completing a corresponding shift operation includes:
[0044] The following operations are performed through the bit width conversion module: the read enable parameter rd_en and the shift amount shift_num of the shift register saved in the second configuration information module are obtained, and the parameter cnt is set, where cnt represents the remaining data in the shift register that has not been taken away in the next beat;
[0045] In the case where cnt is greater than or equal to w, it is determined that the read enable parameter rd_en is invalid, and cnt=cnt-w is determined, wherein, in the case where rd_en is invalid, the sampled data in the second memory module is prohibited from being stored in the shift register, and in the case where rd_en is valid, the sampled data in the second memory module is read out and stored in the shift register;
[0046] When cnt is less than w, rd_en is determined to be valid, and cnt is determined to be cnt=cnt-w+n*N'*x, where n is the number of channels of the reordered sampled data, N' is the transmission bit width of the reordered sampled data, w is the data bit width transmitted on each lane, and x is the frequency division ratio for frequency division and merging of the reordered sampled data;
[0047] When rd_en is invalid, the lower w bits of data in the shift register are directly sent out, and the shift amount of the shift register is determined to be shift_num=w. When rd_en is valid, the lower w bits of data in the shift register are directly sent out, and the shift amount of the shift register is determined to be shift_num=w-cnt.
[0048] As an optional example, before performing the cross-clock operation and the bit width conversion operation on the reordered sampled data, the method further includes: performing data frequency division and merging on the reordered sampled data;
[0049] Performing a cross-clock operation on the reordered sampled data includes: performing a cross-clock operation on the sampled data after the data is divided and merged.
[0050] As an optional example, performing frequency division and merging on the reordered sampled data includes:
[0051] In the reordered sampled data, when n*N' is less than w, the n*N' bit width data is divided by x times, and the x beats of data before and after are spliced into n*N'*x data, where n is the number of channels of the reordered sampled data, N' is the transmission bit width of the reordered sampled data, w is the data bit width transmitted on each lane, x is the frequency division ratio, n*N'*x is greater than w, and n*N'*(x-1) is less than w;
[0052] In the reordered sampled data, when n*N' is greater than w, the reordered sampled data is directly transparently transmitted.
[0053] As an optional example, the sampling data and the link layer transmission data are the sampling data and the link layer transmission data under JESD204C.
[0054] According to another aspect of this embodiment, a data conversion method is also provided. Figure 3 As shown, the method includes:
[0055] Step S302, obtaining link layer transmission data to be converted during network communication;
[0056] Step S304, performing a bit width conversion operation and a cross-clock operation on the link layer transmission data to obtain processed link layer transmission data;
[0057] Step S306: Determine the processed link layer transmission data after reordering as sampling data.
[0058] As an optional example, performing a bit width conversion operation on link layer transmission data includes:
[0059] The write enable parameter wr_en and the shift amount shift_num of the shift register are obtained, the shift register is controlled by the shift_num to work and the output data of the shift register is written into the third memory module.
[0060] As an optional example, obtaining a write enable parameter wr_en and a shift amount shift_num of a shift register, controlling the shift register to work according to the shift_num and writing the shift register output data into the third memory module includes:
[0061] Use the bit width conversion module to perform the following operations: obtain the write enable parameter wr_en and the shift amount shift_num of the shift register in the third configuration information module, and set the parameter cnt, where cnt represents the remaining data in the shift register that has not been taken away in the next beat;
[0062] When cnt is greater than or equal to n*N'*xw, determine that the write enable parameter wr_en is valid, and determine cnt=cnt=cnt+wn*N'*x, wherein, when wr_en is valid, the link layer transmission data in the shift register is taken out and written into the third memory module, and when wr_en is invalid, the link layer transmission data in the shift register is prohibited from being taken out and written into the third memory module;
[0063] When cnt is less than n*N'*xw, wr_en is determined to be invalid, and cnt is determined to be cnt=cnt+w, where n is the maximum number of sampling data transmitted on the lane, N' is the transmission bit width of the reordered sampling data, w is the data bit width transmitted on each lane, and x is the frequency division ratio for frequency division and merging of link layer transmission data;
[0064] When wr_en is invalid, the lower n*N'*x bits of data in the shift register are prohibited from being sent out, and the shift amount of the shift register is determined to be shift_num=w. When wr_en is valid, the lower n*N'*x bits of data in the shift register are directly sent out and written into the third memory module, and the shift amount of the shift register is determined to be shift_num=w-cnt.
[0065] As an optional example, performing a cross-clock operation on link layer transmission data includes:
[0066] Writing the link layer transmission data into the third memory module with a second clock;
[0067] Link layer transmission data is read from the third memory module using a first clock, wherein the first clock and the second clock are different.
[0068] As an optional example, after performing the bit width conversion operation and the cross-clock operation on the link layer transmission data, the method further includes: performing a frequency division and merging operation on the processed link layer transmission data;
[0069] Determining the data after reordering the processed link layer transmission data as the sampling data includes: determining the data after reordering the link layer transmission data after frequency division and combination as the sampling data.
[0070] As an optional example, performing the frequency division and merging operation on the processed link layer transmission data includes:
[0071] In the processed link layer transmission data, when n*N' is less than w, the n*N'*x bit width data is frequency-multiplied by x times to obtain output data with a bit width of n*N', wherein the n*N'*x bit width data before frequency multiplication is discontinuous, and the n*N' bit width data after the split is continuous;
[0072] When n*N' is greater than or equal to w, the link layer transmission data after transparent transmission is directly transmitted, where n is the maximum number of sampling data transmitted on the lane, N' is the transmission bit width of the reordered sampling data, and x is the frequency division ratio for dividing and merging the link layer transmission data.
[0073] As an optional example, determining the processed link layer transmission data after reordering as the sampled data includes:
[0074] Output data is selected from the processed link layer transmission data, the output data is written into a fourth memory module, and the output data in the fourth memory module is read in sequence to obtain the reordered sampling data.
[0075] As an optional example, selecting output data from the processed link layer transmission data, writing the output data into a fourth memory module, and sequentially reading the output data in the fourth memory module to obtain the reordered sampled data includes:
[0076] The multi-channel data selection module selects output data from the processed link layer transmission data according to the selection configuration information in the fourth configuration information module, and writes the output data into the fourth memory module according to the write address information in the fourth configuration information module, wherein the data that needs to appear first is written into the low address of the fourth memory module, and the data that needs to appear later is written into the high address of the fourth memory module;
[0077] The reordered data is determined as the sampled data in an increasing manner of the read address of the fourth memory module.
[0078] As an optional example, the sampling data and the link layer transmission data are the sampling data and the link layer transmission data under JESD204C.
[0079] The above data transmission method is described with reference to specific examples. The input data mentioned below may be sampled data, and the output data may be link layer transmission data, or the input data may be link layer transmission data, and the output data may be sampled data.
[0080] The data conversion method of this embodiment is intended to complete the conversion of the sampled data received by the JESD204C interface into the link layer transmission data of the JESD204C interface and the conversion of the link layer transmission data of the JESD204C interface into the sampled data sent by the JESD204C interface, and is applied to the circuit design of the JESD204C high-speed interface technology, and can also be used in the circuit design of the protocols such as JESD204C.1 and JESD204_USR. This embodiment realizes the relevant data conversion of JESD204B, and overcomes the shortcomings of the existing JESD204B relevant data conversion method due to the complex circuit and inconvenience in use, avoiding the problems and defects of the JESD204B transmission layer circuit design area and power consumption, and also greatly affecting the correct use of users. The embodiment of the present application involves full parameterization of the content, and the sequence adjustment and shift bit width conversion functions involved are performed according to the software configuration, which has strong flexibility and versatility. The overall circuit structure of the embodiment of the present application is simple, and the shift register is used in the bit width conversion link, which reduces hardware resources and saves circuit power consumption.
[0081] If the sampling data is obtained, the steps can be as follows: obtain the sampling data, obtain the sampling data with the path clock and the path clock of the data to be output (link layer data); reorder the sampling data; perform data frequency division and merging on the reordered output data; cross-clock operation on the data; and convert the data bit width after the cross-clock. If the link layer transmission data is obtained, the steps are as follows: obtain the link layer transmission data with the path clock and the path clock of the sampling data to be output (sampling clock); complete the data bit width conversion on the link layer transmission data; cross-clock operation on the data after the bit width conversion; perform frequency multiplication and splitting on the cross-clock output data, and reorder the split data to obtain the sampling data.
[0082] In the embodiment of the present application, the above-mentioned data conversion method can be implemented through multiple modules: a data reordering module, which is used to reorder the received sampled data, mainly according to the requirements of the transmission layer of the JESD204C interface, to adjust the order of transmission of multiple sampled data; a data frequency division module, which is mainly used to deal with the scenario where the input data bit width is smaller than the output data bit width in the present application, and divides and merges the front and rear 2-beat or multi-beat data; a cross-clock module, which mainly completes the cross-clock operation of the data; a bit width conversion module, which is used to convert the bit width of the cross-clock output data.
[0083] Alternatively, the above data conversion method can be implemented through multiple modules: a bit width conversion module, which is used to convert the bit width of the link layer transmission data output across the clock. The cross-clock module mainly completes the cross-clock operation of the link layer transmission data; the data frequency multiplication module mainly responds to the scenario where the input data bit width is greater than the output data bit width in this application, and multiplies the cross-clock output data; the data reordering module is mainly based on the requirements of the transmission layer of the JESD204C interface, and is used to reorder the output data of the data frequency multiplication module to meet the transmission order requirements of the sampled data.
[0084] In addition to the parameters specified by the JESD204C transport layer itself, the information that needs to be obtained in advance in the present invention includes:
[0085] The maximum number of data converters in the circuit is M, and the maximum number of transmission links in the circuit is L. Here, M and L do not refer to the maximum number of converters and the maximum number of transmission links supported by the current device, but to a minimum specification that can reflect the circuit working cycle law. For example, the maximum number of converters supported by the current device is 64, and the maximum number of transmission links supported is 16. However, in the overall circuit, the principle of 8 converters and 2 transmission links can reflect the law of all working scenarios, that is, (64,16) is actually the repeated superposition of 8 (8,2) circuits, so at this time M=8,L=2.
[0086] The maximum number of sampling data paths transmitted on a link (lane) is n, and one sampling data path can be transmitted by a maximum of k lanes. The data bit width transmitted on each lane is defined as w. The reordering module in the embodiment of the present application is instantiated M times, the data routing and frequency division module is instantiated L times, the cross-clock module is instantiated L times, and the data bit width conversion module is instantiated L times.
[0087] The specific steps of converting the sampled data into link layer transmission data can be:
[0088] S1 completes the reordering function of the input sample data;
[0089] S2, divide and merge the new sequence data according to the needs;
[0090] S3, complete the cross-clock operation of data;
[0091] S4, completes the bit width conversion of data transmitted to the link layer.
[0092] In the above step S1, for each channel of sampled data, the corresponding hardware circuit includes a configuration information module, a multi-channel data selection module and a memory module. The configuration information module completes the storage of configuration information, the multi-channel data selection module is used to complete the selection of one channel from the multi-channel output data, and the memory module completes the data storage function.
[0093] According to the provisions of the protocol, the S (oversample) parameter is different, the order of transmission of the sampled data on the lane is different, and the position of the sampled data at the same time will also be swapped.
[0094] In order to deal with the order in which the sampled data is transmitted on the lane, for the multiple sampling data coming in at the same time, the data that needs to appear in the lane first will be written to the low address of the memory, and the data that appears on the lane later will be written to the high address of the memory. In order to exchange the positions of multiple sampling data at the same time, the data written by each memory comes from the selected output of the M sampling data. The write address of each memory and the selection information of the write data will be configured in advance by software, and the circuit will work according to the configuration information.
[0095] For each memory, its specification is that the width is the transmission bit width N' of the sampled data, and the depth is twice the maximum value required by S. The write operation to the memory is completed according to the configuration information, and the operation of the memory is performed in the manner of increasing the read address. Figure 4 As shown, sampling data is input and new sequence data is output, and the new sequence data is the reordered sampling data.
[0096] The above step S2 will uniformly route the M newly sorted data output by S1 to n channels and perform frequency division processing on the n channels of data. Figure 5 shown.
[0097] Considering that the largest lane in the circuit transmits n sampling data, in actual application, there will be a lane that transmits sampling data with a number less than n, so it is necessary to select the sampling data to be transmitted from the M lanes. This is a static selection process.
[0098] The n-channel data frequency division processing is carried out in two cases.
[0099] When n*N' is less than w, the n*N' bit width data is divided by x times, and the x value is configured by software. The configuration principle is to configure the smallest x so that n*N'*x is greater than w. When dividing the data, the data of the previous and next x beats are spliced in a certain order (from high to low position, or from low position), and the spliced output data width is n*N'*x. At the same time, when a complete x-times splicing operation is completed, the valid indication signal dv of the output data is sent accordingly, and the valid indication signal of the incomplete splicing is invalid.
[0100] When n*N' is greater than or equal to w, the data is directly transparently transmitted without any processing, and can also be considered as 1-fold frequency division, and the corresponding valid indication signal is always valid.
[0101] The above step S3 completes the cross-clock function of the divided data from the sampling clock to the link transmission clock, such as Figure 6 As shown, this is accomplished by controlling the read and write of the memory. The data bit width of the memory is n*N'*x. When the dv signal is valid, the write address is incremented in sequence, and the data is written. When half of the memory depth is filled, the memory read operation is started.
[0102] The above S4 Figure 7 As shown, this step will cross the clock of the n*N'*x bit width data to the link layer transmission layer clock, and realize the conversion of n*N'*x bit width to w bit width in the link layer clock domain. For each lane, its corresponding hardware circuit includes: a configuration information module, a cross-clock module (as shown in step 103), and a bit width conversion module. The configuration information module stores the information required for the bit width conversion and the read enable information of the memory, the memory is used to cache the cross-clock data, and the bit width conversion module completes the bit width conversion according to the configuration information.
[0103] The bit width conversion module is implemented in the form of a shift register, and the bit width of the shift register is n*N'*x+w.
[0104] Its working principle is that when the circuit starts working, the memory read enable rd_en will be set valid and data will be read from the memory. The read data will be sent to the shift register, and the counter cnt will be set at the same time to indicate the remaining data that has not been taken away in the next beat of the shift register. If cnt is not less than w, it means that the data in the shift register is sufficient for output, and there is no need to read new data from the memory at this time, then the read enable rd_en is set invalid, and cnt=cnt-w is set at the same time; if cnt is less than w, it means that the data in the shift register in the next beat is insufficient for output, and new data needs to be read from the memory, then the read enable rd_en is set valid, and cnt=cnt-w+n*N'*x is set at the same time.
[0105] When rd_en is invalid, the lower w bits of data in the shift register will be directly sent out, and the shift amount of the shift register shift_num=w. When rd_en is valid, the lower w bits of data in the shift register will be directly sent out, and the shift amount of the shift register shift_num=w-cnt.
[0106] The two parts of configuration information here are read enable rd_en for controlling memory reading and shift_num for controlling the shift amount of the shift register. From the above principle, as long as the bit width before and after the bit width conversion is obtained, these two parts of control information can be calculated. Therefore, these two parts of information will be written into the configuration information module in advance. When the circuit starts working, the configuration information will be read from the configuration information module and the bit width conversion will be completed according to the configuration information.
[0107] The specific steps of converting link layer transmission data into sampling data can be:
[0108] S5, completing the reordering function of the input sample data;
[0109] S6, performing frequency division and merging of the new sequence data as required;
[0110] S7, complete the cross-clock operation of data;
[0111] S8, complete the bit width conversion of data transmitted to the link layer.
[0112] In addition to the parameters specified by the JESD204C transport layer itself, the information that needs to be obtained in advance in the present invention includes: the maximum number of sampling data paths transmitted on a link (lane) is n, and one sampling data path can be transmitted by a maximum of l lanes. The data bit width transmitted on each lane is defined as w.
[0113] Step S5 is as follows Figure 7As shown, this step will realize the conversion of w bit width to n*N'*x bit width at the link layer. The bit width conversion clock is the link layer working clock, and the data after bit width conversion will be clocked to the sampling clock domain. For each lane, the corresponding hardware circuit includes: configuration information module, bit width conversion module, and cross-clock module. The configuration information module stores the information required for bit width conversion and the write enable information for the memory. The memory is used to cache cross-clock data. The bit width conversion module completes the bit width conversion according to the configuration information.
[0114] The bit width conversion module is implemented in the form of a shift register, and the bit width of the shift register is n*N'*x+w.
[0115] Its working principle is that when the circuit starts working, w-bit wide input data will be continuously sent to the shift register, and the counter cnt will be set at the same time to indicate the remaining data that has not been taken away in the next beat of the shift register. If cnt is not less than n*N'*xw, it means that the shift register has enough n*N'*x bits of data output after w bits of data come in the next beat, so the next beat needs to take out the low n*N'*x data from the shift register, and set the write enable wr_en to be valid and write the taken data into the memory, and set cnt=cnt+wn*N'*x; if cnt is less than n*N'*xw, it means that the shift register does not have enough n*N'*x bits of data output after w bits of data come in the next beat, so the next beat will not take data from the shift register for output, then the write enable wr_en is invalid, and cnt=cnt+w.
[0116] When wr_en is invalid, the lower n*N'*x bits of data in the shift register will not be sent out directly, and the shift register shift amount shift_num = w. When wr_en is valid, the lower n*N'*x bits of data in the shift register will be sent out directly, and the shift register shift amount shift_num = n*N'*x-cnt.
[0117] The two parts of configuration information here are write enable wr_en for controlling the memory write operation and shift_num for controlling the shift amount of the shift register. From the above principle, as long as the bit width before and after the bit width conversion is obtained, the two parts of control information can be calculated. Therefore, these two parts of information will be written into the configuration information module in advance. When the circuit starts working, the configuration information will be read from the configuration information module and the bit width conversion will be completed according to the configuration information.
[0118] Step S6 is as follows Figure 7 As shown, the circuit completes the cross-clock function of the divided data from the sampling clock to the link transmission clock, which is completed by reading and writing control of the memory. The data bit width of the memory is n*N'*x.
[0119] In step S5, when the write enable wr_en is valid, the write address is incremented in sequence, and the data is written. When half of the memory depth is filled, the memory read operation is started.
[0120] The memory read operation control is related to step S7. At this time, the read data bit width is n*N'*x, and the data reading may not be continuous, but will be performed when the corresponding dv signal is valid. The generation principle of the dv signal is as follows Figure 8 As shown, the data bit width of the S6 operation is determined, and the frequency doubling and splitting of the S6 output data are completed at the same time. The processing is divided into the following two cases.
[0121] When n*N' is less than w, the n*N' bit width data is divided by x times, and the x value is configured by software. The configuration principle is to configure the smallest x so that n*N'*x is greater than w. Then, the data bit width corresponding to step 502 is n*N'*x, and the corresponding dv signal is valid once every x sampling clocks. When doubling the data, the 1-beat wide n*N'*x data is split in a certain order (from high to low position, or from low position), and the spliced output data bit width is n*N'. The n*N'*x bit width data before the doubling split is discontinuous, and the n*N' bit width data after the split is continuous.
[0122] When n*N' is greater than or equal to w, the data is directly transparently transmitted without any processing, and can also be considered as 1x frequency multiplication, and the corresponding valid indication signal dv is always valid.
[0123] Step S8 is as follows Fig. 9 As shown, for each channel of sampling data, the corresponding hardware circuit includes a configuration information module, a multi-channel data selection module and a memory module. The configuration information module completes the storage of configuration information, the multi-channel data selection module is used to complete the selection of one channel from the multi-channel output data, and the memory module completes the data storage function.
[0124] According to the provisions of the protocol, the S (oversample) parameter is different, the order of the sampled data transmitted on the lane is different, and the position of the sampled data at the same time will be swapped. Conversely, the data output in step 503 needs to be adjusted in order, and the position between each channel needs to be adjusted for the same beat of data.
[0125] In order to cope with the adjustment of the order, for multiple data coming in at the same time, the sampled data that needs to appear first will be written to the low address of the memory, and the sampled data that comes out later will be written to the high address of the memory. In order to exchange the positions of multiple sampled data at the same time, the data written by each memory comes from the selected output of k*l data. The write address of each memory and the selection information of the write data will be configured in advance by software, and the circuit will work according to the configuration information.
[0126] For each memory, the specification is that the width is the transmission bit width N' of the sampled data, and the depth is twice the maximum value required by S. The write operation to the memory is completed according to the configuration information, and the operation of the memory is performed in an increasing manner according to the read address.
[0127] In this embodiment, the two memory modules and two configuration information modules required to convert the sampling data into link layer transmission data and the two memory modules and two configuration information modules used to convert the link layer transmission data into the sampling data, a total of four memory modules and four configuration information modules, are different, and the configuration information is also different.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0129] In the present embodiment, a data conversion device is also provided, and this device is used to realize the above-mentioned embodiment and preferred implementation mode, and what has been described is not repeated here. As used below, the term "module" can realize the combination of software and / or hardware of predetermined function. Although the device described in the following embodiments is preferably realized with software, the realization of hardware, or the combination of software and hardware is also possible and conceived.
[0130] Fig.10 is a structural block diagram of a data conversion device according to an embodiment of the present invention. Fig.10 As shown, the device comprises:
[0131] An acquisition unit 1002 is used to acquire sampled data obtained by sampling during network communication;
[0132] A reordering unit 1004, used to reorder the sampled data;
[0133] The processing unit 1006 is used to perform a cross-clock operation and a bit width conversion operation on the reordered sampled data to obtain converted link layer transmission data.
[0134] As an optional example, the reordering unit includes:
[0135] The reordering module is used to reorder the sampled data using the configuration information module, the multi-channel data selection module and the memory module.
[0136] As an optional example, the reordering module includes:
[0137] The reordering submodule is used to select output data from the multi-channel sampling data, write the output data into the first memory module, and read the output data in the first memory module in sequence to obtain the reordered sampling data.
[0138] As an optional example, the above-mentioned reordering submodule is also used to control the multi-channel data selection module to select output data from the multi-channel sampling data according to the selection configuration information in the first configuration information module, and write the selected output data into the first memory module according to the write address information in the first configuration information module, wherein the data that needs to appear in the lane first is written to the low address of the first memory module, and the data that needs to appear in the lane later is written to the high address of the first memory module; the reordered sampling data is obtained in an increasing manner according to the read address of the first memory module.
[0139] As an optional example, the processing unit includes:
[0140] A writing module, used for writing the sampled data into the second memory module at a first clock;
[0141] The reading module is used to read the sampled data from the second memory module with a second clock, wherein the first clock and the second clock are different.
[0142] As an optional example, the processing unit further includes:
[0143] The processing module is used to obtain a read enable parameter rd_en and a shift amount shift_num of a shift register, and according to the rd_en and the shift_num, store the sampled data in the second memory module into the shift register and complete a corresponding shift operation.
[0144] As an optional example, the above-mentioned processing module is also used to perform the following operations through the bit width conversion module: obtain the read enable parameter rd_en and the shift amount shift_num of the shift register saved in the second configuration information module, and set the parameter cnt, wherein cnt represents the remaining data that has not been taken away in the next beat of the shift register; when cnt is greater than or equal to w, determine that the read enable parameter rd_en is invalid, and determine that cnt=cnt-w, wherein, when rd_en is invalid, the sampling data in the second memory module is prohibited from being stored in the shift register, and when the rd_en is valid, the sampling data in the second memory module is read out and stored in the shift register ; When cnt is less than w, rd_en is determined to be valid, and cnt is determined to be cnt=cnt-w+n*N'*x, wherein n is the number of paths of the reordered sampling data, N' is the transmission bit width of the reordered sampling data, w is the data bit width transmitted on each lane, and x is the frequency division multiplier for dividing and merging the reordered sampling data; when rd_en is invalid, the low w bits of data in the shift register are directly sent out, and the shift amount shift_num of the shift register is determined to be w. When rd_en is valid, the low w bits of data in the shift register are directly sent out, and the shift amount shift_num of the shift register is determined to be w-cnt.
[0145] As an optional example, the apparatus further includes: a frequency division and merging unit, configured to perform frequency division and merging of the reordered sampled data before performing the cross-clock operation and the bit width conversion operation on the reordered sampled data;
[0146] The processing unit includes: a cross-clock module, which is used to perform a cross-clock operation on the sampled data after the data is divided and combined.
[0147] As an optional example, the frequency division and merging unit includes:
[0148] The frequency division and merging module is used to divide the n*N' bit width data by x times in the reordered sampled data when n*N' is less than w, and splice the x beats of data before and after into n*N'*x data, wherein n is the number of channels of the reordered sampled data, N' is the transmission bit width of the reordered sampled data, w is the data bit width transmitted on each lane, x is the frequency division ratio, n*N'*x is greater than w, and n*N'*(x-1) is less than w; in the reordered sampled data, when n*N' is greater than w, the reordered sampled data is directly transparently transmitted.
[0149] Fig.11 is a structural block diagram of another data conversion device according to an embodiment of the present invention. Fig.11 As shown, the device comprises:
[0150] The acquisition unit 1102 is used to acquire the link layer transmission data to be converted during the network communication process;
[0151] The processing unit 1104 is used to perform a bit width conversion operation and a cross-clock operation on the link layer transmission data to obtain processed link layer transmission data;
[0152] The reordering unit 1106 is used to determine the data after reordering the processed link layer transmission data as the sampling data.
[0153] As an optional example, the processing unit includes:
[0154] The processing module is used to obtain the write enable parameter wr_en and the shift amount shift_num of the shift register, control the shift register to work according to the shift_num and write the output data of the shift register into the third memory module.
[0155] As an optional example, the above-mentioned processing module is also used to control the bit width conversion module to perform the following operations: obtain the write enable parameter wr_en and the shift amount shift_num of the shift register in the third configuration information module, and set the parameter cnt, wherein cnt represents the remaining data that has not been taken away in the next beat of the shift register; when cnt is greater than or equal to n*N'*xw, determine that the write enable parameter wr_en is valid, and determine cnt=cnt=cnt+wn*N'*x, wherein, when wr_en is valid, the link layer transmission data in the shift register is taken out and written into the third memory module, and when wr_en is invalid, the link layer transmission data in the shift register is prohibited from being taken out and written into the third memory module. In the case where cnt is less than n*N'*xw, wr_en is determined to be invalid, and cnt is determined to be cnt=cnt+w, wherein n is the maximum number of sampling data transmitted on the lane, N' is the transmission bit width of the reordered sampling data, w is the data bit width transmitted on each lane, and x is the frequency division multiplier for dividing and merging the link layer transmission data; in the case where wr_en is invalid, the lower n*N'*x bits of data in the shift register are prohibited from being sent out, and the shift amount shift_num of the shift register is determined to be w. In the case where wr_en is valid, the lower n*N'*x bits of data in the shift register are directly sent out and written into the third memory module, and the shift amount shift_num of the shift register is determined to be w-cnt.
[0156] As an optional example, the processing unit includes:
[0157] A writing module, used for writing the link layer transmission data into the third memory module at a second clock;
[0158] The reading module is used to read the link layer transmission data from the third memory module with a first clock, wherein the first clock and the second clock are different.
[0159] As an optional example, the apparatus further includes: a frequency division and merging unit, configured to perform a frequency division and merging operation on the processed link layer transmission data after performing a bit width conversion operation and a cross-clock operation on the link layer transmission data;
[0160] The reordering unit includes: a determination module, which is used to determine the reordered data of the link layer transmission data after the frequency division and combination as the sampling data.
[0161] As an optional example, the frequency division and merging unit includes:
[0162] The frequency division and merging module is used to, in the processed link layer transmission data, when n*N' is less than w, multiply the n*N'*x bit width data by x times to obtain output data with a bit width of n*N', wherein the n*N'*x bit width data before the frequency division is discontinuous, and the n*N' bit width data after the division is continuous; when n*N' is greater than or equal to w, directly transparently transmit the processed link layer transmission data, wherein n is the maximum number of sampling data transmitted on the lane, N' is the transmission bit width of the reordered sampling data, and x is the frequency division ratio for frequency division and merging the link layer transmission data.
[0163] As an optional example, the reordering unit includes:
[0164] A reordering module is used to select output data from the processed link layer transmission data, write the output data into a fourth memory module, and read the output data in the fourth memory module in sequence to obtain the reordered sampling data.
[0165] As an optional example, the reordering module is also used to control the multi-channel data selection module to select output data from the processed link layer transmission data according to the selection configuration information in the fourth configuration information module, and write the output data into the fourth memory module according to the write address information in the fourth configuration information module, wherein the data that needs to appear first is written to the low address of the fourth memory module, and the data that needs to appear later is written to the high address of the fourth memory module; the reordered data is determined as sampling data in an increasing manner according to the read address of the fourth memory module.
[0166] For other examples of this embodiment, please refer to the above examples and will not be described in detail here.
[0167] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0168] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0169] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0170] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0171] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0172] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0173] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0174] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data conversion method, characterized in that: include: Acquire the sampled data obtained during the network communication process; The sampling data is reordered, including: the multi-channel data selection module selects output data from the multi-channel sampling data according to the selection configuration information in the first configuration information module, and writes the selected output data into the first memory module according to the write address information in the first configuration information module, wherein the data that needs to appear first in the lane is written to the low address of the first memory module, and the data that needs to appear later in the lane is written to the high address of the first memory module; the reordered sampling data is obtained in an increasing manner of the read address of the first memory module; A cross-clock operation and a bit width conversion operation are performed on the reordered sampled data to obtain converted link layer transmission data.
2. The method according to claim 1, characterized in that: The reordering of the sampled data comprises: Output data is selected from the multi-channel sampling data, the output data is written into a first memory module, and the output data in the first memory module is read in sequence to obtain the reordered sampling data.
3. The method according to claim 1, characterized in that Performing a cross-clock operation on the reordered sampled data includes: Writing the sampled data into the second memory module at a first clock; The sampled data is read from the second memory module at a second clock, wherein the first clock and the second clock are different.
4. The method according to claim 3, characterized in that Performing a bit width conversion operation on the reordered sampled data includes: A read enable parameter rd_en and a shift amount shift_num of a shift register are obtained, and according to the rd_en and the shift_num, the sampled data in the second memory module are stored in the shift register and a corresponding shift operation is completed.
5. The method according to claim 4, characterized in that The acquiring of the read enable parameter rd_en and the shift amount shift_num of the shift register, storing the sampled data in the second memory module into the shift register according to the rd_en and the shift_num and completing the corresponding shift operation comprises: The following operations are performed through the bit width conversion module: the read enable parameter rd_en and the shift amount shift_num of the shift register saved in the second configuration information module are obtained, and the parameter cnt is set, wherein the cnt represents the remaining data in the shift register that has not been taken away in the next beat; In the case where the cnt is greater than or equal to w, it is determined that the read enable parameter rd_en is invalid, and the cnt=cnt-w is determined, wherein, in the case where the rd_en is invalid, the sampled data in the second memory module is prohibited from being stored in the shift register, and in the case where the rd_en is valid, the sampled data in the second memory module is read out and stored in the shift register; In the case where cnt is less than w, it is determined that rd_en is valid, and cnt is determined to be cnt=cnt-w+n*N'*x, wherein n is the number of paths of the reordered sampled data, N' is the transmission bit width of the reordered sampled data, w is the data bit width transmitted on each lane, and x is the frequency division ratio for frequency division and merging of the reordered sampled data; When rd_en is invalid, the lower w bits of data in the shift register are directly sent out, and the shift amount of the shift register shift_num=w is determined. When rd_en is valid, the lower w bits of data in the shift register are directly sent out, and the shift amount of the shift register shift_num=w-cnt is determined.
6. The method according to any one of claims 1 to 5, characterized in that: Before performing the cross-clock operation and the bit width conversion operation on the reordered sampled data, the method further comprises: performing data frequency division and merging on the reordered sampled data; The performing the cross-clock operation on the reordered sampled data includes: performing the cross-clock operation on the sampled data after data frequency division and merging.
7. The method according to claim 6, characterized in that The performing frequency division and merging of the reordered sampled data comprises: In the reordered sampled data, when n*N' is less than w, the n*N' bit width data is divided by x times, and the x beats of data before and after are spliced into n*N'*x data, wherein n is the number of paths of the reordered sampled data, N' is the transmission bit width of the reordered sampled data, w is the data bit width transmitted on each lane, x is the frequency division ratio, n*N'*x is greater than w, and n*N'*(x-1) is less than w; In the reordered sampled data, when n*N′ is greater than w, the reordered sampled data is directly transparently transmitted.
8. The method according to claim 1, characterized in that The sampled data and the link layer transmission data are sampled data and link layer transmission data under JESD204C.
9. A data conversion method, characterized in that: include: Obtain link layer transmission data to be converted during network communication; Performing a bit width conversion operation and a cross-clock operation on the link layer transmission data to obtain the processed link layer transmission data; The data after reordering the processed link layer transmission data is determined as the sampling data, including: the multi-channel data selection module selects output data from the processed link layer transmission data according to the selection configuration information in the fourth configuration information module, and writes the output data into the fourth memory module according to the write address information in the fourth configuration information module, wherein the data that needs to appear first is written to the low address of the fourth memory module, and the data that needs to appear later is written to the high address of the fourth memory module; the reordered data is determined as the sampling data in an increasing manner according to the read address of the fourth memory module.
10. The method according to claim 9, characterized in that Performing a bit width conversion operation on the link layer transmission data includes: The write enable parameter wr_en and the shift amount shift_num of the shift register are obtained, the shift register is controlled by the shift_num to work and the output data of the shift register is written into the third memory module.
11. The method according to claim 10, characterized in that The step of obtaining a write enable parameter wr_en and a shift amount shift_num of a shift register, controlling the shift register to work by the shift_num, and writing the output data of the shift register into the third memory module comprises: Use the bit width conversion module to perform the following operations: obtain the write enable parameter wr_en and the shift amount shift_num of the shift register in the third configuration information module, and set the parameter cnt, wherein the cnt represents the remaining data in the shift register that has not been taken away in the next beat; In the case where cnt is greater than or equal to n*N'*xw, it is determined that the write enable parameter wr_en is valid, and cnt=cnt+wn*N'*x, wherein, in the case where wr_en is valid, the link layer transmission data in the shift register is taken out and written into the third memory module, and in the case where wr_en is invalid, the link layer transmission data in the shift register is prohibited from being taken out and written into the third memory module; In the case where the cnt is less than the n*N'*xw, it is determined that the wr_en is invalid, and the cnt is determined to be cnt=cnt+w, wherein n is the maximum number of paths of the sampled data transmitted on the lane, N' is the transmission bit width of the reordered sampled data, w is the data bit width transmitted on each lane, and x is the frequency division ratio for frequency division and merging of the link layer transmission data; When wr_en is invalid, the lower n*N'*x-bit data in the shift register are prohibited from being sent out, and the shift amount shift_num of the shift register is determined to be w. When wr_en is valid, the lower n*N'*x-bit data in the shift register are directly sent out and written into the third memory module, and the shift amount shift_num of the shift register is determined to be w-cnt.
12. The method according to claim 9, characterized in that Performing a cross-clock operation on the link layer transmission data includes: Writing the link layer transmission data into a third memory module with a second clock; The link layer transmission data is read from the third memory module at a first clock, wherein the first clock is different from the second clock.
13. The method according to claim 9, characterized in that After performing a bit width conversion operation and a cross-clock operation on the link layer transmission data, the method further comprises: performing a frequency division and merging operation on the processed link layer transmission data; The step of determining the processed link layer transmission data after reordering as the sampling data includes: determining the processed link layer transmission data after reordering after frequency division and merging as the sampling data.
14. The method according to claim 13, characterized in that The performing frequency division and merging operation on the processed link layer transmission data comprises: In the processed link layer transmission data, when n*N' is less than w, the n*N'*x bit width data is frequency-multiplied by x times to obtain output data with a bit width of n*N', wherein the n*N'*x bit width data before frequency multiplication is discontinuous, and the n*N' bit width data after the split is continuous; When n*N' is greater than or equal to w, the link layer transmission data after transparent transmission is directly transmitted, wherein n is the maximum number of paths for transmitting the sampled data on the lane, N' is the transmission bit width of the sampled data after reordering, and x is the frequency division ratio for dividing and merging the link layer transmission data.
15. The method according to claim 9, characterized in that The step of determining the processed link layer transmission data after reordering as the sampling data comprises: Output data is selected from the processed link layer transmission data, the output data is written into a fourth memory module, and the output data in the fourth memory module is read in sequence to obtain the reordered sampling data.
16. The method according to claim 9, characterized in that The sampled data and the link layer transmission data are sampled data and link layer transmission data under JESD204C.
17. A data conversion device, characterized in that: include: An acquisition unit, used to acquire sampled data obtained by sampling during network communication; A reordering unit, used for reordering the sampled data, comprising: a multi-channel data selection module selects output data from the multi-channel sampled data according to the selection configuration information in the first configuration information module, and writes the selected output data into the first memory module according to the write address information in the first configuration information module, wherein the data that needs to appear first in the lane is written to the low address of the first memory module, and the data that needs to appear later in the lane is written to the high address of the first memory module; the reordered sampled data is obtained in an increasing manner of the read address of the first memory module; The processing unit is used to perform a cross-clock operation and a bit width conversion operation on the reordered sampled data to obtain converted link layer transmission data.
18. A data conversion device, characterized in that: include: An acquisition unit, used to acquire link layer transmission data to be converted during network communication; A processing unit, configured to perform a bit width conversion operation and a cross-clock operation on the link layer transmission data to obtain the processed link layer transmission data; A reordering unit, used to determine the reordered data of the processed link layer transmission data as sampling data, including: a multi-channel data selection module selects output data from the processed link layer transmission data according to the selection configuration information in the fourth configuration information module, and writes the output data into a fourth memory module according to the write address information in the fourth configuration information module, wherein the data that needs to appear first is written to the low address of the fourth memory module, and the data that needs to appear later is written to the high address of the fourth memory module; and the reordered data is determined as the sampling data in an increasing manner according to the read address of the fourth memory module.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented, or the steps of the method described in any one of claims 9 to 16 are implemented.
20. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps of the method described in any one of claims 1 to 8, or implements the steps of the method described in any one of claims 9 to 16.
