Pseudo-random sequence consistency detection method, device and storage medium
By determining the seed based on the received pseudo-random sequence data in the receiving end device and generating corresponding data for detection, the problem of high power consumption in the existing technology is solved, and efficient pseudo-random sequence consistency detection and signal transmission performance evaluation are achieved. .
Patent Information
- Application Number
- CN202410211611.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-02-26
AI Technical Summary
In the existing technology, the pseudo-random sequence consistency detection scheme has high requirements on the clock frequency of the digital circuit, resulting in large power consumption. A new method is needed to improve detection efficiency while reducing power consumption.
The receiving device determines the seed based on the received first pseudo-random binary sequence data sent by the sending device, generates the second pseudo-random binary sequence data, and performs consistency detection in the subsequent detection cycle after meeting the predetermined conditions to avoid premature generation. To seed and calculate data delays, shift registers and XOR operations are used to reduce the circuit clock frequency.
It improves the efficiency of pseudo-random sequence consistency detection, reduces the power consumption of digital circuits, simplifies circuit design, and enables flexible signal transmission performance evaluation.
Smart Images

Figure CN117938181B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of SerDes serial communication technology, and in particular to a pseudo-random sequence consistency detection method, device and storage medium. Background Art
[0002] SerDes is the abbreviation of Serializer / De-Serializer. At the sending end, multiple low-speed parallel signals are converted into high-speed serial signals, which are then transmitted through the transmission medium (optical cable or copper wire) and finally converted back into low-speed parallel signals at the receiving end. This point-to-point serial communication technology fully utilizes the channel capacity of the transmission medium, reduces the number of transmission channels and device pins required, and increases the signal transmission speed, thereby greatly reducing communication costs.
[0003] PRBS (pseudo-random binary sequence) is a pseudo-random binary sequence in which 0 and 1 appear randomly with equal probability, but the order of appearance of 0 and 1 is determined by the seed that generates the sequence, so it is pseudo-random. PRBS is a commonly used test data for SerDes, which can evaluate the transmission performance of the transmit-receive link of SerDes. However, the existing pseudo-random sequence consistency detection scheme for SerDes usually has a high clock frequency requirement for the digital circuit, resulting in high power consumption. Therefore, there is an urgent need for a new pseudo-random sequence consistency detection method that can reduce power consumption while improving detection efficiency. Summary of the invention
[0004] In view of this, the present disclosure proposes a pseudo-random sequence consistency detection method, device and storage medium.
[0005] According to one aspect of the present disclosure, a pseudo-random sequence consistency detection method is provided. The method is used in a receiving device, and the method includes:
[0006] Receiving first pseudo-random binary sequence PRBS data sent by a transmitting end device;
[0007] Determine a seed based on the first PRBS data, and generate second PRBS data according to the seed;
[0008] When the first PRBS data and the second PRBS data received in the current detection cycle meet the predetermined conditions, the pseudo-random sequence consistency detection result between the receiving device and the transmitting device is determined based on the received first PRBS data and the generated second PRBS data in the subsequent detection cycle.
[0009] In a possible implementation, the first PRBS data is multi-bit parallel data sent by a transmitting device; and the second PRBS data is multi-bit parallel data generated by a receiving device.
[0010] In a possible implementation, determining a seed based on the first PRBS data, and generating second PRBS data according to the seed, includes:
[0011] Using the lower n bits of the first PRBS data as a seed, where n is a positive integer and the size of n is determined according to a predetermined PRBS code pattern;
[0012] The seed is used as an initial value of the shift register to generate second PRBS data based on a predetermined PRBS pattern.
[0013] In a possible implementation manner, the shift register is a rising edge or falling edge driven shift register.
[0014] In a possible implementation, the method further includes:
[0015] Determine whether the first PRBS data and the second PRBS data of the current detection cycle are consistent;
[0016] When the first PRBS data and the second PRBS data of the current detection cycle are consistent, determining that a predetermined condition is satisfied;
[0017] When the first PRBS data and the second PRBS data received in the current detection period meet a predetermined condition, determining a pseudo-random sequence consistency detection result between the receiving end device and the transmitting end device based on the received first PRBS data and the generated second PRBS data in a subsequent detection period includes:
[0018] When predetermined conditions are met, a fixed seed is used, and in the next m detection cycles of the current detection cycle, first PRBS data is received in each detection cycle and second PRBS data is generated according to the fixed seed. A bitwise XOR comparison is performed on the first PRBS data received in each detection cycle and the generated second PRBS data to determine the pseudo-random sequence consistency test result between the receiving device and the transmitting device, where m is a positive integer.
[0019] In a possible implementation, the method further includes:
[0020] When the first PRBS data and the second PRBS data of the current detection cycle are inconsistent, the steps of receiving the first PRBS data sent by the transmitting end device and subsequent steps are repeated in the next detection cycle until a predetermined condition is met.
[0021] In a possible implementation, determining a seed based on the first PRBS data, and generating second PRBS data according to the seed, includes:
[0022] In response to a pseudo-random sequence consistency detection request, a seed is determined based on the first PRBS data, and second PRBS data is generated according to the seed.
[0023] In a possible implementation, when the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, determining a pseudo-random sequence consistency detection result between the receiving end device and the transmitting end device based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle includes:
[0024] When the first PRBS data and the second PRBS data received in the current detection cycle meet the predetermined conditions, the first PRBS data is delayed processed by using a register beat method based on the processing cycle in the subsequent detection cycle, and the processing cycle includes a processing cycle for generating the second PRBS data and a processing cycle for determining whether the predetermined conditions are met;
[0025] A pseudo-random sequence consistency detection result between a receiving device and a transmitting device is determined based on the first PRBS data after delay processing and the generated second PRBS data.
[0026] In a possible implementation, the pseudo-random sequence consistency detection result includes a bit error rate of signal transmission, and when the first PRBS data and the second PRBS data received in the current detection period meet a predetermined condition, determining the pseudo-random sequence consistency detection result between the receiving end device and the transmitting end device based on the received first PRBS data and the generated second PRBS data in a subsequent detection period includes:
[0027] When the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, a bitwise XOR operation is performed on the first PRBS data received in each detection cycle in the subsequent m detection cycles and the generated second PRBS data to determine the number of bits of erroneous data transmitted in the detection cycle;
[0028] The bit error rate is the ratio of the total number of bits of data transmitted in error within m detection cycles to the total number of bits of data received within m detection cycles. The total number of bits of data received within m detection cycles is the bit width of the first PRBS data sent by the transmitting device within one detection cycle multiplied by m.
[0029] In a possible implementation manner, the PRBS code type is any one of PRBS7, PRBS9, PRBS15, PRBS23, and PRBS31.
[0030] According to another aspect of the present disclosure, a pseudo-random sequence consistency detection device is provided. The device is used in a receiving end device, and the device includes:
[0031] A receiving module, used for receiving a first pseudo-random binary sequence PRBS data sent by a transmitting device;
[0032] A generating module, configured to determine a seed based on the first PRBS data, and generate second PRBS data according to the seed;
[0033] The first determination module is used to determine the pseudo-random sequence consistency detection result between the receiving device and the transmitting device based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle when the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition.
[0034] In a possible implementation, the first PRBS data is multi-bit parallel data sent by a transmitting device; and the second PRBS data is multi-bit parallel data generated by a receiving device.
[0035] In a possible implementation, a module is generated to:
[0036] Using the lower n bits of the first PRBS data as a seed, where n is a positive integer and the size of n is determined according to a predetermined PRBS code pattern;
[0037] The seed is used as an initial value of the shift register to generate second PRBS data based on a predetermined PRBS pattern.
[0038] In a possible implementation manner, the shift register is a rising edge or falling edge driven shift register.
[0039] In a possible implementation, the device further includes:
[0040] A judging module, used to judge whether the first PRBS data and the second PRBS data of the current detection cycle are consistent;
[0041] A second determination module is used to determine that a predetermined condition is satisfied when the first PRBS data and the second PRBS data of the current detection cycle are consistent;
[0042] The first determination module is used to:
[0043] When predetermined conditions are met, a fixed seed is used, and in the next m detection cycles of the current detection cycle, first PRBS data is received in each detection cycle and second PRBS data is generated according to the fixed seed. A bitwise XOR comparison is performed on the first PRBS data received in each detection cycle and the generated second PRBS data to determine the pseudo-random sequence consistency test result between the receiving device and the transmitting device, where m is a positive integer.
[0044] In a possible implementation, the device further includes:
[0045] The repeated execution module is used to repeatedly execute the first PRBS data sent by the transmitting end device and subsequent steps in the next detection cycle when the first PRBS data and the second PRBS data of the current detection cycle are inconsistent until a predetermined condition is met.
[0046] In a possible implementation, a module is generated to:
[0047] In response to a pseudo-random sequence consistency detection request, a seed is determined based on the first PRBS data, and second PRBS data is generated according to the seed.
[0048] In a possible implementation manner, the first determining module is configured to:
[0049] When the first PRBS data and the second PRBS data received in the current detection cycle meet the predetermined conditions, the first PRBS data is delayed processed by using a register beat method based on the processing cycle in the subsequent detection cycle, and the processing cycle includes a processing cycle for generating the second PRBS data and a processing cycle for determining whether the predetermined conditions are met;
[0050] A pseudo-random sequence consistency detection result between a receiving device and a transmitting device is determined based on the first PRBS data after delay processing and the generated second PRBS data.
[0051] In a possible implementation manner, the pseudo-random sequence consistency detection result includes a bit error rate of signal transmission, and the first determination module is used to:
[0052] When the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, a bitwise XOR operation is performed on the first PRBS data received in each detection cycle in the subsequent m detection cycles and the generated second PRBS data to determine the number of bits of erroneous data transmitted in the detection cycle;
[0053] The bit error rate is the ratio of the total number of bits of data transmitted in error within m detection cycles to the total number of bits of data received within m detection cycles. The total number of bits of data received within m detection cycles is the bit width of the first PRBS data sent by the transmitting device within one detection cycle multiplied by m.
[0054] In a possible implementation manner, the PRBS code type is any one of PRBS7, PRBS9, PRBS15, PRBS23, and PRBS31.
[0055] According to another aspect of the present disclosure, a pseudo-random sequence consistency detection device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0056] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.
[0057] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0058] According to an embodiment of the present application, a seed can be determined by a receiving device at any time based on the first PRBS data sent by a transmitting device, and second PRBS data can be generated according to the seed. If the first PRBS data received in the current detection cycle and the second PRBS data generated meet predetermined conditions, the signal transmission performance between the receiving device and the transmitting device can be detected based on the first PRBS data received in the subsequent detection cycle and the second PRBS data generated, so that the receiving device does not need to generate a seed in advance and does not need to calculate the data delay between the transmitting end and the receiving end, thereby improving the detection efficiency and reducing the power consumption of the digital circuit during the pseudo-random sequence consistency detection process.
[0059] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0061] Figure 1A schematic diagram of an application scenario according to an embodiment of the present application is shown.
[0062] Figure 2 A flowchart of a pseudo-random sequence consistency detection method according to an embodiment of the present application is shown.
[0063] Figure 3 A schematic diagram of generating first PRBS data according to an embodiment of the present application is shown.
[0064] Figure 4 A schematic diagram showing the generation of second PRBS data according to an embodiment of the present application is shown.
[0065] Figure 5 A flowchart of a pseudo-random sequence consistency detection method according to an embodiment of the present application is shown.
[0066] Figure 6 A schematic diagram showing a data correctness check according to an embodiment of the present application is shown.
[0067] Figure 7 A schematic diagram showing a working mode of a shift register according to an embodiment of the present application is shown.
[0068] Figure 8 A schematic diagram showing a statistical bit error rate according to an embodiment of the present application is shown.
[0069] Fig. 9 A structural diagram of a pseudo-random sequence consistency detection device according to an embodiment of the present application is shown.
[0070] Fig.10 It is a block diagram of a device 1900 for detecting consistency of a pseudo-random sequence according to an exemplary embodiment. DETAILED DESCRIPTION
[0071] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0072] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0073] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0074] SerDes is the abbreviation of Serializer / Deserializer. At the transmitting end, multiple low-speed parallel signals are converted into high-speed serial signals, which are transmitted through the transmission medium (optical cable or copper wire) and finally converted back into low-speed parallel signals at the receiving end. This point-to-point serial communication technology makes full use of the channel capacity of the transmission medium, reduces the number of required transmission channels and device pins, and improves the transmission speed of the signal, thereby greatly reducing the communication cost. PRBS (pseudo-random binary sequence) is a pseudo-random binary sequence in which 0 and 1 appear randomly with equal probability, but the order of appearance of 0 and 1 is determined by the seed that generates the sequence, so it is pseudo-random. PRBS is a commonly used test data for SerDes, which can evaluate the transmission performance of the transmit-receive link of SerDes. However, in the existing pseudo-random sequence consistency detection scheme for SerDes, there is usually a high clock frequency requirement for the digital circuit, resulting in high power consumption. Therefore, there is an urgent need for a new pseudo-random sequence consistency detection method that can reduce power consumption while improving detection efficiency.
[0075] In view of this, the present application provides a pseudo-random sequence consistency detection method, which can be used for bit error rate estimation by a receiving device. It can determine the seed at any time based on the first PRBS data sent by the transmitting device through the receiving device, and generate the second PRBS data according to the seed. When the first PRBS data received in the current detection cycle and the second PRBS data generated meet the predetermined conditions, the signal transmission performance between the receiving device and the transmitting device can be evaluated based on the first PRBS data received in the subsequent detection cycle and the second PRBS data generated. The receiving device does not need to generate a seed in advance, and does not need to calculate the data delay between the transmitting end and the receiving end, which improves the detection efficiency and reduces the power consumption of the digital circuit during the pseudo-random sequence consistency detection process.
[0076] Figure 1 The schematic diagram of an application scenario according to an embodiment of the present application is shown. The method of the embodiment of the present application can be used in a scenario where pseudo-random sequence consistency detection is performed in a SerDes link, such as Figure 1 As shown, the receiving device and the transmitting device can be devices in a SerDes link. In the scenario of performing pseudo-random sequence consistency detection according to the embodiment of the present application, PRBS data can be used as test data to evaluate the performance of signal transmission between the receiving device and the transmitting device.
[0077] Among them, the transmitting device can use a shift register to generate a first PRBS data and send it to the receiving device. The receiving device can receive the first PRBS data sent by the transmitting device, determine the seed based on the first PRBS data, and generate the second PRBS data using the shift register. Thus, when the seed correctness check passes (that is, the first PRBS data received in the current detection cycle and the generated second PRBS data meet the predetermined conditions), the receiving device can perform a pseudo-random sequence consistency test based on the received first PRBS data and the generated second PRBS data in the subsequent detection cycle, such as counting the bit error rate of data transmission between the receiving device and the transmitting device, so as to obtain an evaluation result of the signal transmission performance between the receiving device and the transmitting device (that is, the pseudo-random sequence consistency test result in the figure).
[0078] The following Figure 2-Figure 8 , the pseudo-random sequence consistency detection method of the embodiment of the present application is introduced.
[0079] Figure 2 FIG. 4 is a flowchart of a pseudo-random sequence consistency detection method according to an embodiment of the present application. The method can be used in a receiving device, such as Figure 2 As shown, the method may include:
[0080] Step S201, receiving first PRBS data sent by a transmitting device.
[0081] The first PRBS data may be a segment of first PRBS data that is generated by the transmitting device using a shift register based on a seed and sent to the receiving device, and then intercepted by the receiving device. Bit errors may have occurred during the link transmission of the segment of first PRBS data.
[0082] See also Figure 3 , showing a schematic diagram of generating first PRBS data according to an embodiment of the present application. Figure 3 As shown, the seed used by the transmitting end device to generate the first PRBS data can be initialized by asynchronously resetting to all 1 (n-bit 1'b1), or pre-configured by the shift register (register configure value) to a value other than all 0 for initialization, and the PRBS seed initialization selection signal (prbs_seed_sel) can be used to select one of the above two initialization methods (2mux1). The seed can be data with a bit width of n bits, and the size of n can be determined according to a predetermined PRBS pattern, wherein the PRBS pattern can be any one of PRBS7, PRBS9, PRBS15, PRBS23, and PRBS31, and accordingly, the value of n can be 7, 9, 15, 23, or 31.
[0083] The first PRBS data is multi-bit parallel data sent by the transmitting device. Based on the seed, the shift register on the transmitting device can continuously generate 128-n bits of serial data in one clock cycle based on the digital circuit according to the generating polynomial of the corresponding PRBS code pattern, and together with the n-bit seed, it forms 128 bits of serial data. By converting the 128-bit serial data into parallel data, a first PRBS data (prbs_128b[127:0]) can be obtained.
[0084] like Figure 3 In response to a PRBS pattern selection signal (prbs_value_sel[2:0], with a bit width of 3 bits), the five PRBS patterns can be selected into one of five (5mux1) to determine the generation of the first PRBS data according to a generating polynomial of one of the patterns.
[0085] Among them, the PRBS7 generating polynomial (prbs7 generate) is: X 7 +X 6 +1;
[0086] The generating polynomial of PRBS9 is: 9 +X 5 +1;
[0087] The generating polynomial of PRBS15 (prbs15 generate) is: X 15 +X 14 +1;
[0088] The generating polynomial of PRBS23 is: 23 +X 18 +1;
[0089] The generating polynomial of PRBS31 is: 31 +X 28 +1.
[0090] In one clock cycle, the transmitting end device can send a first PRBS data with a bit width of 128 bits to the output end device, and the receiving end device can receive a first PRBS data with a bit width of 128 bits in one clock cycle.
[0091] Step S202, determining a seed based on the first PRBS data, and generating second PRBS data according to the seed.
[0092] Among them, in response to a pseudo-random sequence consistency detection request, a seed can be determined based on the first PRBS data, and the second PRBS data can be generated according to the seed. Therefore, the signal transmission performance between the receiving device and the transmitting device can be detected at any time, without considering the delay in the data transmission process between the two end devices, reducing the complexity of circuit design and improving flexibility.
[0093] In S202, the receiving end device may use the lower n bits of the first PRBS data as a seed, use the seed as an initial value of a shift register, and generate second PRBS data according to a predetermined PRBS code pattern.
[0094] Wherein, n is a positive integer, and the size of n is determined according to a predetermined PRBS code type.
[0095] See also Figure 4 , showing a schematic diagram of generating second PRBS data according to an embodiment of the present application. Figure 4 As shown, the receiving device can use the lower n bits of the first PRBS data as a seed (rx_prbs_seed[n-1,0]).
[0096] The bit width of the seed is n bits, and the size of n can be determined according to a predetermined PRBS code type, wherein the PRBS code type can be any one of PRBS7, PRBS9, PRBS15, PRBS23, and PRBS31. Correspondingly, the value of n can be 7, 9, 15, 23, or 31.
[0097] The second PRBS data is multi-bit parallel data generated by the receiving end. The shift register on the receiving end device can continuously generate 128-n bits of serial data in one clock cycle based on the seed and the digital circuit according to the generating polynomial of the corresponding PRBS pattern, and together with the n-bit seed, it forms 128 bits of serial data. The 128-bit serial data is converted into parallel data, and the second PRBS data (rx_prbs_gen_128b[127:0]) can be obtained.
[0098] like Figure 4, the five PRBS patterns can be selected from five (5mux1) in response to the PRBS pattern selection signal (prbs_value_sel[2:0], bit width is 3bit) to determine the second PRBS data generated according to the generating polynomial of one of the patterns. The PRBS pattern selection signal can be pre-configured in the shift register of the receiving device, or it can be adaptive and sent by the transmitting device to the receiving device, as long as the PRBS pattern selection signal on the receiving device is consistent with the PRBS pattern selection signal on the transmitting device. The generating polynomials of each pattern can be referred to above.
[0099] According to the embodiment of the present application, a 128-bit serial data sequence can be continuously generated at each clock edge (rising edge or falling edge), thereby greatly reducing the operating clock frequency of the digital circuit, achieving the effect of simplifying the circuit and reducing power consumption.
[0100] Step S203, when the first PRBS data and the second PRBS data received in the current detection cycle meet the predetermined conditions, determine the pseudo-random sequence consistency detection result between the receiving device and the transmitting device based on the received first PRBS data and the generated second PRBS data in the subsequent detection cycle.
[0101] Among them, since the seed used to generate the second PRBS data is determined from the first PRBS data rather than generated in advance, the seed correctness check can be performed based on the first PRBS and the second PRBS to determine whether the seed used by the receiving end device to generate the PRBS data is correct, and if it is correct, determine that the predetermined condition is met. This process will be described in detail later.
[0102] The pseudo-random sequence consistency detection result between the receiving device and the sending device can be used to indicate the signal transmission performance between the receiving device and the sending device, which can be determined by comparing and verifying the data received by the receiving device with the data generated locally by the receiving end.
[0103] According to an embodiment of the present application, a seed can be determined by a receiving device at any time based on the first PRBS data sent by a transmitting device, and second PRBS data can be generated according to the seed. If the first PRBS data received in the current detection cycle and the second PRBS data generated meet predetermined conditions, the signal transmission performance between the receiving device and the transmitting device can be detected based on the first PRBS data received in the subsequent detection cycle and the second PRBS data generated, so that the receiving device does not need to generate a seed in advance and does not need to calculate the data delay between the transmitting end and the receiving end, thereby improving the detection efficiency and reducing the power consumption of the digital circuit during the pseudo-random sequence consistency detection process.
[0104] Figure 5 FIG. 5 is a flow chart showing a method for detecting consistency of a pseudo-random sequence according to an embodiment of the present application. Figure 5 As shown, the method may also include:
[0105] Step S501, determining whether the first PRBS data and the second PRBS data of the current detection cycle are consistent.
[0106] Among them, one detection cycle may include one or more clock cycles, and a pseudo-random sequence consistency test may be completed in each detection cycle, that is, a comparison between the first PRBS data with a bit width of 128 bits and the second PRBS data with a bit width of 128 bits is completed.
[0107] See also Figure 6 , showing a schematic diagram of performing data correctness check according to an embodiment of the present application. Figure 6 As shown, the first PRBS data (rx_prbs_128b[127:0]) received by the receiving device and the second PRBS data (rx_prbs_gen_128b[127:0]) generated locally can be subjected to bitwise XOR processing to obtain a bitwise XOR result (prbs_128b_xor[127:0]). According to the bitwise XOR result, when all 0s are present, it can be considered that the first PRBS data received by the receiving device and the second PRBS data generated are consistent; when one or more bits are 1, it can be considered that there is an error in the data on the corresponding bit, and the first PRBS data received by the receiving device and the second PRBS data generated are inconsistent.
[0108] Step S502: When the first PRBS data and the second PRBS data of the current detection cycle are consistent, it is determined that a predetermined condition is satisfied.
[0109] When the first PRBS data and the second PRBS data of the current detection cycle are consistent, it can be considered that the seed is loaded successfully. At this time, the seed used by the shift register on the receiving device is correct, that is, it can be considered that the second PRBS data generated by the receiving end based on the seed is consistent with the standard PRBS data.
[0110] The above step S203 further includes:
[0111] Step S503, when the predetermined conditions are met, fix the seed, receive the first PRBS data in each detection cycle and generate the second PRBS data according to the fixed seed in the next m detection cycles of the current detection cycle, perform bit-wise XOR comparison on the first PRBS data received in each detection cycle and the generated second PRBS data, and determine the pseudo-random sequence consistency test result between the receiving device and the transmitting device.
[0112] Wherein, m is a positive integer, which can represent the duration of the pseudo-random sequence consistency detection, and m can be determined as needed to reduce the randomness of subsequent statistical results.
[0113] After the seed is fixed, in each detection cycle within the m detection cycles, the receiving end device can generate the second PRBS data according to the fixed seed, rather than intercepting the seed from the first PRBS data to generate the second PRBS data. Figure 6 In the manner shown, the bitwise XOR result of the first PRBS data received by the receiving device and the generated second PRBS data within the detection period is obtained to perform corresponding statistics and determine the pseudo-random sequence consistency detection result.
[0114] If the pre-set conditions are not met, please continue to Figure 5 , the method may further include:
[0115] Step S504, when the first PRBS data and the second PRBS data of the current detection cycle are inconsistent, repeat the steps of receiving the first PRBS data sent by the transmitting end device and subsequent steps in the next detection cycle until a predetermined condition is met.
[0116] That is to say, when the current detection cycle does not meet the predetermined conditions, that is, the seed is not loaded successfully, the receiving device can dynamically update the seed in the next detection cycle, receive new first PRBS data in the next detection cycle, and obtain an updated seed based on the new first PRBS data, and generate second PRBS data based on the updated seed to compare with the first PRBS data received in the detection cycle to determine whether the current detection cycle meets the predetermined conditions.
[0117] See also Figure 7 , a schematic diagram showing the working mode of the shift register according to an embodiment of the present application is shown. Figure 7The shift register shown works based on the PRBS7 code pattern. reg_value[0]-[6] can represent the bits of the seed to be passed into the shift register. prbs_init can represent the control signal. When prbs_init is set to 1, the shift register can input reg_value[0]-[6] as the seed into the shift register when the rising edge (or falling edge) arrives. X1-X7 can represent different shift registers (reg). X7 outputs 1 bit of data in each clock cycle, and the outputs of X6 and X7 are XORed, and the XOR result is used as the output of X1. This process can be implemented based on the existing technology.
[0118] Assuming that the bit error rate of the data sent by the receiving device is ber, the probability that the above seed satisfies the predetermined condition after loading once is P = (1-ber)^128, so even if ber = 0.01 (usually less than 1E-4 in practice), P = 0.2763 can be obtained. This means that on average, the received 128-bit data can meet the predetermined condition by updating the seed about 1 / P = 3.6 times, so that the subsequent pseudo-random sequence consistency detection can be performed.
[0119] Since the comparison is based on parallel data in the present application, the transmitting device can send data to the receiving device within one clock cycle, so that the delay in the process of the transmitting device sending data to the receiving device can be ignored. However, there may be a data processing delay in the process of judging whether the predetermined condition is met and the receiving device generating the second PRBS data locally. Therefore, the above S203 may also include:
[0120] When the first PRBS data and the second PRBS data received in the current detection cycle meet the predetermined conditions, the first PRBS data is delayed in the subsequent detection cycle based on the processing cycle by using the register tapping method;
[0121] A pseudo-random sequence consistency detection result between a receiving device and a transmitting device is determined based on the first PRBS data after delay processing and the generated second PRBS data.
[0122] The processing cycle may include a processing cycle for generating the second PRBS data and a processing cycle for determining whether a predetermined condition is met.
[0123] That is, the first PRBS data received by the receiving device can be delayed based on the duration of executing steps S202, S501, and S502 to absorb the delay of the receiving device in processing the data. The first PRBS data is synchronized with the second PRBS data, and the first PRBS data and the second PRBS data can be subjected to a bitwise XOR operation.
[0124] In the process of performing the pseudo-random sequence consistency detection, the bit error rate of signal transmission may be counted so that the pseudo-random sequence consistency detection result includes the bit error rate of signal transmission. S203 may include:
[0125] When the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, a bitwise XOR operation is performed on the first PRBS data received in each detection cycle in the subsequent m detection cycles and the generated second PRBS data to determine the number of bits of erroneous data transmitted in the detection cycle;
[0126] See also Figure 8 , shows a schematic diagram of a statistical bit error rate according to an embodiment of the present application. Figure 8 As shown, in each detection cycle within the m detection cycles, the number of bits that are 1 in the result of the bitwise XOR operation (prbs_128b_xor[127:0]) of the first PRBS data and the second PRBS data can be counted (prbs_err_bit_cnt) to obtain the number of bits of data transmitted incorrectly in each detection cycle (o_prbs_err_num[31:0]).
[0127] The number of times the receiving end device receives the first PRBS data (rx_prbs_128b[127:0]) may also be counted (prbs_rx_128b_cnt) to obtain a counting result (o_prbs_rx_num[31:0]), which is the value of m.
[0128] The ratio of the total number of bits of data transmitted in error within m detection cycles to the total number of bits of data received within m detection cycles may be taken as the bit error rate.
[0129] The total number of data bits received in m detection cycles is the bit width (e.g., 128 bits) of the first PRBS data sent by the transmitting device in one detection cycle multiplied by m. The smaller the bit error rate, the smaller the probability of data transmission error between the transmitting device and the receiving device, and the better the signal transmission capability.
[0130] Fig. 9 FIG. 1 is a block diagram of a pseudo-random sequence consistency detection device according to an embodiment of the present application. The device is used in a receiving device, such as Fig. 9 As shown, the device comprises:
[0131] A receiving module 901 is used to receive first pseudo-random binary sequence PRBS data sent by a transmitting end device;
[0132] A generating module 902, configured to determine a seed based on the first PRBS data, and generate second PRBS data according to the seed;
[0133] The first determination module 903 is used to determine the pseudo-random sequence consistency detection result between the receiving device and the transmitting device based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle when the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition.
[0134] In a possible implementation, the first PRBS data is multi-bit parallel data sent by a transmitting device; and the second PRBS data is multi-bit parallel data generated by a receiving device.
[0135] In a possible implementation, the generating module 902 is configured to:
[0136] Using the lower n bits of the first PRBS data as a seed, where n is a positive integer and the size of n is determined according to a predetermined PRBS code pattern;
[0137] The seed is used as an initial value of the shift register to generate second PRBS data based on a predetermined PRBS pattern.
[0138] In a possible implementation manner, the shift register is a rising edge or falling edge driven shift register.
[0139] In a possible implementation, the device further includes:
[0140] A judging module, used to judge whether the first PRBS data and the second PRBS data of the current detection cycle are consistent;
[0141] A second determination module is used to determine that a predetermined condition is satisfied when the first PRBS data and the second PRBS data of the current detection cycle are consistent;
[0142] The first determining module 903 is used to:
[0143] When predetermined conditions are met, a fixed seed is used, and in the next m detection cycles of the current detection cycle, first PRBS data is received in each detection cycle and second PRBS data is generated according to the fixed seed. A bitwise XOR comparison is performed on the first PRBS data received in each detection cycle and the generated second PRBS data to determine the pseudo-random sequence consistency test result between the receiving device and the transmitting device, where m is a positive integer.
[0144] In a possible implementation, the device further includes:
[0145] The repeated execution module is used to repeatedly execute the first PRBS data sent by the transmitting end device and subsequent steps in the next detection cycle when the first PRBS data and the second PRBS data of the current detection cycle are inconsistent until a predetermined condition is met.
[0146] In a possible implementation, the generating module 902 is configured to:
[0147] In response to a pseudo-random sequence consistency detection request, a seed is determined based on the first PRBS data, and second PRBS data is generated according to the seed.
[0148] In a possible implementation, the first determining module 903 is configured to:
[0149] When the first PRBS data and the second PRBS data received in the current detection cycle meet the predetermined conditions, the first PRBS data is delayed processed by using a register beat method based on the processing cycle in the subsequent detection cycle, and the processing cycle includes a processing cycle for generating the second PRBS data and a processing cycle for determining whether the predetermined conditions are met;
[0150] A pseudo-random sequence consistency detection result between a receiving device and a transmitting device is determined based on the first PRBS data after delay processing and the generated second PRBS data.
[0151] In a possible implementation manner, the pseudo-random sequence consistency detection result includes a bit error rate of signal transmission, and the first determination module 903 is used to:
[0152] When the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, a bitwise XOR operation is performed on the first PRBS data received in each detection cycle in the subsequent m detection cycles and the generated second PRBS data to determine the number of bits of erroneous data transmitted in the detection cycle;
[0153] The bit error rate is the ratio of the total number of bits of data transmitted in error within m detection cycles to the total number of bits of data received within m detection cycles. The total number of bits of data received within m detection cycles is the bit width of the first PRBS data sent by the transmitting device within one detection cycle multiplied by m.
[0154] In a possible implementation manner, the PRBS code type is any one of PRBS7, PRBS9, PRBS15, PRBS23, and PRBS31.
[0155] According to an embodiment of the present application, a seed can be determined by a receiving device at any time based on the first PRBS data sent by a transmitting device, and second PRBS data can be generated according to the seed. If the first PRBS data received in the current detection cycle and the second PRBS data generated meet predetermined conditions, the signal transmission performance between the receiving device and the transmitting device can be detected based on the first PRBS data received in the subsequent detection cycle and the second PRBS data generated, so that the receiving device does not need to generate a seed in advance and does not need to calculate the data delay between the transmitting end and the receiving end, thereby improving the detection efficiency and reducing the power consumption of the digital circuit during the pseudo-random sequence consistency detection process.
[0156] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0157] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0158] The embodiment of the present disclosure also proposes a pseudo-random sequence consistency detection device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0159] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0160] Fig.10 1 is a block diagram of an apparatus 1900 for detecting consistency of a pseudo-random sequence according to an exemplary embodiment. For example, the apparatus 1900 may be provided as a server or a terminal device. Fig.10 , the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions, such as an application, that can be executed by the processing component 1922. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0161] The device 1900 may also include a power supply component 1926 configured to perform power management of the device 1900, a wired network interface 1950 configured to connect the device 1900 to a network, and an input / output interface 1958 (I / O interface). The device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2000. TM , Mac OSX TM , Unix TM ,Linux TM , FreeBSD TM or similar.
[0162] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the device 1900 to perform the above method.
[0163] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0164] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0165] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0166] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0167] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0168] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0169] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0170] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0171] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A pseudo-random sequence consistency detection method, characterized in that: The method is used for a receiving end device, and the method comprises: Receiving first pseudo-random binary sequence PRBS data sent by a transmitting end device; Determine a seed based on the first PRBS data, and generate second PRBS data according to the seed; Determine whether the first PRBS data and the second PRBS data of the current detection cycle are consistent; When the first PRBS data and the second PRBS data of the current detection cycle are consistent, determining that a predetermined condition is satisfied; When the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, the pseudo-random sequence consistency detection result between the receiving device and the transmitting device is determined based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle.
2. The method according to claim 1, characterized in that The first PRBS data is multi-bit parallel data sent by a transmitting end device; the second PRBS data is multi-bit parallel data generated by a receiving end.
3. The method according to claim 1, characterized in that The step of determining a seed based on the first PRBS data and generating second PRBS data according to the seed includes: Using the lower n bits of the first PRBS data as the seed, where n is a positive integer and the size of n is determined according to a predetermined PRBS code pattern; The seed is used as an initial value of the shift register to generate second PRBS data based on a predetermined PRBS pattern.
4. The method according to claim 3, characterized in that The shift register is a shift register driven by a rising edge or a falling edge.
5. The method according to claim 1, characterized in that The method further includes: if the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, determining a pseudo-random sequence consistency detection result between the receiving end device and the transmitting end device based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle, including: When the predetermined condition is met, the seed is fixed, and in the next m detection cycles of the current detection cycle, the first PRBS data is received in each detection cycle and the second PRBS data is generated according to the fixed seed, and a bit-wise XOR comparison is performed on the first PRBS data received in each detection cycle and the generated second PRBS data to determine the pseudo-random sequence consistency detection result between the receiving device and the transmitting device, where m is a positive integer.
6. The method according to claim 5, characterized in that The method further comprises: When the first PRBS data and the second PRBS data of the current detection cycle are inconsistent, the steps of receiving the first PRBS data sent by the transmitting end device and subsequent steps are repeated in the next detection cycle until the predetermined condition is met.
7. The method according to claim 1, characterized in that The step of determining a seed based on the first PRBS data and generating second PRBS data according to the seed includes: In response to a pseudo-random sequence consistency detection request, a seed is determined based on the first PRBS data, and second PRBS data is generated according to the seed.
8. The method according to claim 1, characterized in that When the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, determining a pseudo-random sequence consistency detection result between the receiving end device and the transmitting end device based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle includes: When the first PRBS data and the second PRBS data received in the current detection cycle meet the predetermined condition, the first PRBS data is delayed in a register tapping manner based on a processing cycle in a subsequent detection cycle, and the processing cycle includes a processing cycle for generating the second PRBS data and a processing cycle for determining whether the predetermined condition is met; A pseudo-random sequence consistency detection result between the receiving device and the transmitting device is determined based on the first PRBS data after delay processing and the generated second PRBS data.
9. The method according to claim 5, characterized in that The pseudo-random sequence consistency detection result includes a bit error rate of signal transmission, and when the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, determining the pseudo-random sequence consistency detection result between the receiving end device and the transmitting end device based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle, including: When the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition, a bitwise XOR operation is performed on the first PRBS data received in each detection cycle in the subsequent m detection cycles and the generated second PRBS data to determine the number of bits of erroneous data transmitted in the detection cycle; The bit error rate is taken as the ratio of the total number of bits of data transmitted in error within m detection cycles to the total number of bits of data received within m detection cycles, and the total number of bits of data received within the m detection cycles is the bit width of the first PRBS data sent by the transmitting device within one detection cycle multiplied by m.
10. The method according to claim 3, characterized in that The PRBS code type is any one of PRBS7, PRBS9, PRBS15, PRBS23, and PRBS31.
11. A pseudo-random sequence consistency detection device, characterized in that: The device is used for a receiving end device, and the device comprises: A receiving module, used for receiving a first pseudo-random binary sequence PRBS data sent by a transmitting device; A generating module, configured to determine a seed based on the first PRBS data, and generate second PRBS data according to the seed; A judging module, used to judge whether the first PRBS data and the second PRBS data of the current detection cycle are consistent; A second determination module is used to determine that a predetermined condition is satisfied when the first PRBS data and the second PRBS data of the current detection cycle are consistent; The first determination module is used to determine the pseudo-random sequence consistency detection result between the receiving device and the sending device based on the received first PRBS data and the generated second PRBS data in a subsequent detection cycle when the first PRBS data and the second PRBS data received in the current detection cycle meet a predetermined condition.
12. A pseudo-random sequence consistency detection device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method described in any one of claims 1 to 10 when executing the instructions stored in the memory.
13. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Error code measuring method based on pseudo-random code sequence synchronization for communication system
CN102752098A
Method, device and system for processing pseudo random sequence
CN107592673A
Reference signal sending method and device and signal detection method and device
CN114365458A
Apparatus for changing pseudo random binary sequence, direct sequence spread spectrum transmitter / receiver and transmitting / receiving system of changing pseudo random binary sequence
KR101923522B1
Constrained pseudorandom test pattern for in-system logic built-in self-test
US10746790B1
