A bit error rate test circuit and interface chip
By adopting a parallel structure and CMOS circuit in the bit error rate test circuit, the problems of large layout area and power consumption in the existing technology are solved, and a more efficient bit error rate test is achieved.
Patent Information
- Application Number
- CN202410954575.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The existing bit error rate test circuit has a large layout area and circuit power consumption. This is mainly because the pseudo-random code generation module and detection module adopt a serial structure, which requires the use of a current-type logic electrical structure inside the chip, which increases the layout area and power consumption. .
A parallel structure is used to generate and detect test codes, and communication is carried out through signal channels. The signal generation module and the detection module adopt a CMOS circuit structure. The signal generation module performs parallel-to-serial processing, and the detection module performs serial-to-parallel processing to reduce the signal transmission rate. , and replace the current-mode logic electrical structure with a CMOS circuit structure.
It effectively reduces the chip layout area and circuit power consumption, improves the efficiency and accuracy of bit error rate testing, and is suitable for high-speed signal transmission scenarios.
Smart Images

Figure CN118509131B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of test circuits, and in particular to a bit error rate test circuit and an interface chip. Background Art
[0002] In the bit error rate test circuit, the signal passing through the channel needs to be tested to determine the loss of the channel to the signal, that is, the bit error rate test. In the existing test scheme, pseudo-random binary sequence (PRBS) is generally used for bit error rate testing.
[0003] After entering the test mode, the pseudo-random code generation module inside the chip generates a high-speed pseudo-random code, and inputs the pseudo-random code into the signal channel link. The signal channel link then recovers the high-speed clock signal and data signal. The pseudo-random code detection module inside the chip detects the bit errors generated by the data signal recovered after passing through the signal channel link, and calculates the bit error rate.
[0004] At present, the traditional pseudo-random code generation module and pseudo-random code detection module use a serial structure to generate and detect pseudo-random codes. In the high-speed serializer / deserializer circuit, it is necessary to use a D flip-flop and an XOR gate with a current-type logic structure (inductor and transistor) inside, which results in a large layout area and circuit power consumption of the entire chip.
[0005] In summary, the existing bit error rate test circuit has the problems of large layout area and circuit power consumption. Summary of the invention
[0006] The object of the present invention is to provide a bit error rate test circuit and an interface chip to solve the problems of large layout area and circuit power consumption of the bit error rate test circuit in the prior art.
[0007] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0008] On the one hand, an embodiment of the present invention provides a bit error rate test circuit, the bit error rate test circuit includes a signal generation module and / or a signal detection module, the signal generation module and the signal detection module communicate with each other through a signal channel;
[0009] The signal generation module is used to generate a plurality of parallel test codes, and after converting the test codes from parallel to serial, send the codes to the signal detection module through the signal channel;
[0010] The signal detection module is used to recover the test code of the signal channel, and perform a bit error rate test on the recovered test code after serial-to-parallel processing;
[0011] Wherein, the signal generation module and the signal detection module both have a CMOS circuit structure inside.
[0012] Optionally, the signal generating module includes:
[0013] An oscillator, a first frequency divider, a pseudo-random code generating unit and a parallel-to-serial unit, wherein the oscillator, the first frequency divider, the pseudo-random code generating unit and the parallel-to-serial unit are electrically connected in sequence, and the first frequency divider is also electrically connected to the parallel-to-serial unit; wherein,
[0014] The oscillator is used to generate an initial clock signal;
[0015] The first frequency divider is used to divide the frequency of the initial clock signal and obtain a plurality of standby clock signals with different frequencies;
[0016] The pseudo-random code generation unit is used to generate parallel multi-path test codes according to the standby clock signal;
[0017] The parallel-to-serial unit is used to convert parallel multi-path test codes into serial data signals according to a variety of standby clock signals, and send the serial data signals to the signal detection module through a signal channel.
[0018] Optionally, the pseudo-random code generating unit includes a plurality of XOR gates and D flip-flops adopting a CMOS circuit structure, and the plurality of XOR gates and D flip-flops form a loop;
[0019] When the standby clock signal is input, the loop composed of the XOR gate and the D flip-flop outputs a plurality of parallel test codes.
[0020] Optionally, a plurality of the XOR gates and D flip-flops form a series loop or a parallel loop, and the signal detection module also includes a series loop or a parallel loop formed by a plurality of XOR gates and D flip-flops.
[0021] Optionally, the signal detection module includes a serial-to-parallel unit, a second frequency divider, a pseudo-random code test unit, a bit error statistics unit and a phase adjustment unit, the pseudo-random code test unit is electrically connected to the serial-to-parallel unit, the second frequency divider and the bit error statistics unit respectively, the second frequency divider is also electrically connected to the phase adjustment unit and the serial-to-parallel unit, and the phase adjustment unit is also electrically connected to the bit error statistics unit; wherein,
[0022] The second frequency divider is used to divide the frequency of the initial clock signal recovered from the signal channel and obtain a plurality of standby clock signals with different frequencies;
[0023] The serial-to-parallel unit is used to perform serial-to-parallel processing on the test code recovered from the signal channel according to the backup clock signal;
[0024] The phase adjustment unit is used to adjust the phase of the initial clock signal so that the phase of the initial clock signal is the same as the phase of the test code recovered from the signal channel;
[0025] The pseudo-random code test unit is used to perform a bit error test based on the standby clock signal and the parallel test code;
[0026] The bit error statistics unit is used to count the number of bit errors and output the bit error rate.
[0027] Optionally, the phase adjustment unit includes an adjustment component and a phase interpolator, and the adjustment component is electrically connected to the phase interpolator and the bit error statistics unit respectively; wherein,
[0028] The adjustment component is used to output an adjustment instruction to the phase interpolator according to the initial value of the bit error statistics unit;
[0029] The phase interpolator is used to delay the initial clock signal according to the adjustment instruction so that the phase of the delayed initial clock signal is the same as the phase of the test code recovered from the signal channel.
[0030] Optionally, the bit error rate satisfies the formula:
[0031] X=N / T;
[0032] Where X represents the bit error rate, T represents the number of cycles within the test time, and N represents the number of bit errors within the test time.
[0033] Optionally, the pseudo-random code test unit includes an output gate circuit and a plurality of XOR gates and D flip-flops adopting a CMOS circuit structure, the plurality of XOR gates and D flip-flops form a loop, and the output end of the XOR gate is electrically connected to the output gate circuit;
[0034] When the standby clock signal and the parallel test code are input, the output gate circuit outputs a bit error signal.
[0035] Optionally, the output gate circuit includes an OR gate and an accumulator.
[0036] On the other hand, an embodiment of the present application further provides an interface chip, which includes the above-mentioned bit error rate test circuit.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The embodiment of the present invention provides a bit error rate test circuit and an interface chip, the bit error rate test circuit includes a signal generation module and / or a signal detection module, the signal generation module and the signal detection module communicate through a signal channel; the signal generation module is used to generate multiple parallel test codes, and after the test codes are processed from parallel to serial, they are sent to the signal detection module through the signal channel; the signal detection module is used to recover the test code of the signal channel, and after the recovered test code is processed from serial to parallel, a bit error rate test is performed; wherein, the signal generation module and the signal detection module are internally CMOS circuit structures. Since the bit error rate test circuit provided by the present invention adopts a parallel-to-serial structure at the signal generation module end, and a serial-to-parallel structure is adopted in the signal detection module, the transmission rate of the signal can be reduced in a parallel manner, and the high-speed transmission data signal can be converted into a multi-channel low-speed transmission parallel data signal. In addition, in the scenario of low-speed transmission, the internal current-type logic electrical structure of the signal generation module and the signal detection module can be replaced with a CMOS circuit structure, reducing the layout area and circuit power consumption.
[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 It is a module schematic diagram of a bit error rate test circuit in the prior art;
[0042] Figure 2 A schematic diagram of a module of a bit error rate test circuit provided by an embodiment of the present invention;
[0043] Figure 3 A circuit diagram of a bit error rate test circuit provided by an embodiment of the present invention;
[0044] Figure 4 A circuit diagram of a pseudo-random code generation unit provided by an embodiment of the present invention;
[0045] Figure 5 Another circuit diagram of a pseudo-random code generating unit provided by an embodiment of the present invention;
[0046] Figure 6 A circuit diagram of a pseudo-random code test unit provided by an embodiment of the present invention;
[0047] Figure 7 Another circuit diagram of a pseudo-random code test unit provided by an embodiment of the present invention.
[0048] In the figure:
[0049] 110-signal generation module; 111-oscillator; 112-first frequency divider; 113-pseudo-random code generation unit; 114-parallel-to-serial unit; 120-signal detection module; 121-serial-to-parallel unit; 122-second frequency divider; 123-pseudo-random code test unit; 124-phase interpolator; 125-bit error statistics unit; 126-adjustment component; 130-signal channel. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0051] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0053] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0054] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0055] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0056] Currently, interface chips are widely used, for example, they include consumer electronics interface chips, automotive electronics interface chips, etc. Of course, they can also be used in the fields of optical communication interfaces and the like.
[0057] As described in the background art, during the use of the interface chip, it is necessary to test the signal passing through the channel to determine the bit error rate. In current testing schemes, pseudo-random codes are generally used to implement bit error rate side testing.
[0058] Specifically, see Figure 1 After entering the test mode, the pseudo-random code generator inside the chip generates a high-speed pseudo-random code, which is input into the signal channel link, and then the signal channel link recovers the high-speed clock signal and data signal. Figure 1 In the figure, data1 represents the data signal recovered from the signal channel link, and clk1 represents the clock signal recovered from the signal channel link. The pseudo-random code detector detects the bit errors generated by the data signal recovered after passing through the signal channel link, and then calculates the bit error rate.
[0059] However, as Figure 1As shown, the existing generator and detector use a serial structure to generate and detect pseudo-random codes. For high-speed bit error rate test circuits, the use of traditional serial structures will result in large power consumption and area of the chip. For example, SerDes is the abbreviation of serializer / deserializer. In SerDes chips, high-speed SerDes circuits use traditional serial structures, which result in large power consumption and area. This is because in the application scenario of high-speed data signal transmission, the D flip-flop (D Flip-Flop, dff) and exclusive-OR gate (exclusive-OR gate, xor) in the circuit must use a current-mode logic circuit (Current-Mode Logic, CML) structure. This circuit structure is generally built using inductors and transistors, resulting in large layout area and circuit power consumption.
[0060] In view of this, in order to solve the problem of large internal layout area and power consumption of the interface chip in the prior art, an embodiment of the present invention provides a bit error rate test circuit, which generates and detects corresponding test codes by adopting a parallel structure to achieve the reduction of the speed of high-speed transmission data signals, and then a complementary metal oxide semiconductor (CMOS) circuit structure can be adopted inside the chip to reduce the layout area and circuit power consumption.
[0061] The bit error rate test circuit provided by the present invention is exemplarily described below:
[0062] As an alternative implementation, see Figure 2 The bit error rate test circuit includes a signal generating module 110 and / or a signal detecting module 120 , and the signal generating module 110 and the signal detecting module 120 communicate with each other through a signal channel 130 .
[0063] That is, in the application scenarios of the present invention, the following three scenarios may be included:
[0064] The first type is that the bit error rate test circuit only includes the signal generation module 110, that is, the bit error rate test circuit is only used to generate a test code and send the test code, and the detection of the test code is realized by other circuits. For example, the bit error rate test circuit in the X device generates a test code and sends the test code to the Y device, and the Y device detects the bit error rate.
[0065] The second type is that the bit error rate test circuit only includes the signal detection module 120, and can receive the test code sent by other circuits and perform bit error rate detection.
[0066] The third type is that the bit error rate test circuit includes both the signal generation module 110 and the signal detection module 120. On this basis, the bit error rate test circuit can realize the generation and detection of the test code.
[0067] The signal generating module 110 is used to generate a plurality of parallel test codes, and after converting the test codes into serial codes in a parallel-to-serial manner, send the codes to the signal detecting module 120 through the signal channel 130 .
[0068] The signal detection module 120 is used to recover the test code of the signal channel 130, and perform a bit error rate test on the recovered test code after serial-to-parallel processing.
[0069] The signal generation module 110 and the signal detection module 120 both have a CMOS circuit structure.
[0070] It can be understood that the signal generation module 110 is the signal sending end, and the signal detection module 120 is the signal receiving end. After generating the test code, the signal generation module 110 sends the test code to the signal detection module 120 through the signal channel 130. The signal detection module 120 decodes the test code. In this process, bit errors may occur during the decoding process due to hardware, environmental noise, etc. The signal detection module 120 can detect the bit error rate and then determine whether the interface chip meets the application requirements. For example, when the interface chip is used in automotive electronic scenarios, it has a high bit error rate requirement for the signal transmission process, such as not higher than 10 -5 On this basis, by testing the bit error rate, it can be determined whether the interface chip of this model can be used in automotive electronics scenarios.
[0071] Different from the prior art which uses a serial structure to generate and detect test codes, the present invention uses a parallel structure to generate and detect detection codes, so that high-speed transmission data signals are converted into low-speed transmission data signals. Figure 2 As shown, the signal generation module 110 includes a unit A and a unit B. Unit A generates a parallel multi-channel test code and sends the multi-channel test code to unit B. After unit B performs parallel-to-serial processing, the serial signal is sent to the signal detection module 120 through the signal channel 130. The signal detection module 120 includes a unit C and a unit D. After receiving the serial signal, unit C processes the serial-to-parallel signal and sends the parallel signal to unit D. Unit D performs error detection on the parallel signal. By generating and detecting parallel signals, the purpose of reducing the signal transmission rate is achieved.
[0072] For example, when a serial structure is used to generate test codes, a data signal with a 4G transmission rate needs to be generated; but if a 4-way parallel method is used to generate test codes, the transmission data signal of each way is 1G, and the 4G transmission rate can be converted to a 1G transmission rate, thus achieving the purpose of speed reduction. After converting the data signal from a high-speed transmission scenario to a low-speed transmission scenario, the signal generation module and the signal detection module can use a CMOS circuit structure to replace the traditional current-type logic circuit structure, reducing the layout area and circuit power consumption of the entire bit error rate test circuit.
[0073] It should be noted that the low speed and high speed described in the present invention are relative concepts. In practical applications, a threshold can be set according to the actual scenario. When the transmission rate is greater than the threshold, the data signal transmission rate can be defined as high-speed transmission; when the transmission rate is less than the threshold, the data signal transmission rate can be defined as low-speed transmission. For example, if the threshold is set to 2G, the data signal transmission rate greater than 2G is high-speed transmission, and the data signal transmission rate less than 2G is low-speed transmission.
[0074] As an implementation, see Figure 3 The signal generating module 110 includes an oscillator 111 (Voltage controlled oscillator, VCO), a first frequency divider 112 (Divider, DIV), a pseudo-random code generating unit 113 (Pseudo-Random Binary Sequence Generator, PRBS GEN) and a parallel to serial unit 114 (Parallel to Serial, P2S). The oscillator 111, the first frequency divider 112, the pseudo-random code generating unit 113 and the parallel to serial unit 114 are electrically connected in sequence, and the first frequency divider 112 is also electrically connected to the parallel to serial unit 114.
[0075] The oscillator 111 is used to generate an initial clock signal clk; the first frequency divider 112 is used to divide the initial clock signal clk and obtain a plurality of spare clock signals with different frequencies; the pseudo-random code generation unit 113 is used to generate parallel multi-channel test codes according to the spare clock signal; the parallel-to-serial unit 114 is used to convert the parallel multi-channel test codes into serial data signals according to the plurality of spare clock signals, and send the serial data signals to the signal detection module 120 through the signal channel 130.
[0076] The oscillator 111 provided by the present invention can be a voltage-controlled oscillator. On this basis, the signal generation module 110 further includes a digital-to-analog converter (DAC), which is connected to the oscillator 111 and provides a required voltage to the oscillator 111, so that the frequency of the initial clock signal output by the oscillator 111 is the required frequency. In addition, the clock signals described in the present invention are all periodic pulse signals.
[0077] In practical applications, the frequency of the initial clock signal that the oscillator 111 needs to output can be determined based on the backup clock signal required by the parallel-to-serial unit 114, and it is ensured that the frequency of the initial clock signal can cover the demand for the backup clock signal. At the same time, the corresponding voltage can be output to the oscillator 111 through the digital-to-analog converter, so that the frequency of the initial clock signal output by the oscillator 111 meets the demand. For example, when the digital-to-analog converter outputs a 5V voltage to the oscillator 111, the frequency of the initial clock signal output by the oscillator 111 is 32GHz; when the digital-to-analog converter outputs a 12V voltage to the oscillator 111, the frequency of the initial clock signal output by the oscillator 111 is 64GHz.
[0078] Since the parallel-to-serial unit 114 requires backup clock signals of different frequencies when converting parallel data signals into serial data signals, the present invention divides the initial clock signal through the first frequency divider 112, thereby obtaining multiple backup clock signals of different frequencies. It should be noted that after one frequency division, the frequency of the divided clock signal is half of the frequency of the clock signal before the frequency division, and the initial clock signal can be divided multiple times. For example, if the frequency of the initial clock signal is 64GHz, then after one frequency division, a backup clock signal with a frequency of 32GHz can be obtained; after two frequency divisions, a backup clock signal with a frequency of 16GHz can be obtained, and so on. After 5 frequency divisions, backup clock signals with frequencies of 64GHz, 32GHz, 16GHz, 8GHz, 4GHz and 2GHz can be obtained.
[0079] After using the first frequency divider 112 to obtain a backup clock signal of a different frequency, the backup clock signal needs to be sent to the pseudo-random code generation unit 113 and the parallel-to-serial unit 114, so that the pseudo-random code generation unit 113 generates a parallel data signal, and the parallel-to-serial unit 114 converts the parallel data signal into a serial data signal and sends it to the signal detection module 120 through the signal channel 130.
[0080] As an implementation method, the pseudo-random code generation unit 113 includes multiple XOR gates and D flip-flops using a CMOS circuit structure, and the multiple XOR gates and D flip-flops form a loop; when a backup clock signal is input, the loop composed of the XOR gates and D flip-flops outputs multiple parallel test codes.
[0081] When a loop is formed by using an XOR gate and a D flip-flop, a series loop or a parallel loop can be formed, which is not limited here.
[0082] As a first implementation of the present invention, when the pseudo-random code generating unit 113 outputs n-way parallel test codes, the number of XOR gates is set to n, the number of D flip-flops is set to n+1, the output ends of the n XOR gates are respectively connected to the input ends of the second to n+1th D flip-flops, the output end of the n+1th D flip-flop is connected to the input end of the first D flip-flop, and the first n D flip-flops output n-way parallel test codes. At the same time, the outputs of the nth D flip-flop and the n+2th D flip-flop serve as the inputs of the nth XOR gate, and the output of the first XOR gate also serves as the input of the nth XOR gate.
[0083] For example, see Figure 4 , taking the pseudo-random code generation unit 113 outputting 4 parallel test codes as an example, the pseudo-random code generation unit 113 includes 4 XOR gates and 5 D flip-flops, the 4 XOR gates are x1~x4, the 5 D flip-flops are s1~s5, d1~d4 are used as 4 parallel output signals, and are used to output 4 parallel test codes; d5~d9 are used as intermediate signals, the outputs of s1 and s3 are used as the input of x1, and after XOR processing of x1, d6 is output, and d2 is output after input of s2. Similarly, the outputs of s2 and s4 are used as the input of x2, and the outputs of s3 and s5 are used as the input of x3. For the last XOR gate s4, the outputs of s4 and x1 are used as its input, and the outputs of s1~s4 are used as the 4 parallel outputs of the entire random code test unit.
[0084] for Figure 4 For the loop, when any parameter changes, the corresponding global output changes. When it is necessary to generate 4 pseudo-random codes, the entire loop needs to be in the initial state. Generally, when it is in the initial state, s1~s5 are set to 1. When a backup clock signal is input, the loop starts to work and outputs pseudo-random codes. For example, when a backup clock signal is input, s1 changes from 1 to 0, the entire loop works, and outputs 4 pseudo-random codes.
[0085] It should be noted that the pseudo-random code described in the present invention refers to a data signal output by the pseudo-random code generation unit 113 which is not fixed. For example, in one test cycle, one pseudo-random code is 0100, and in the next test cycle, the pseudo-random code is 1010.
[0086] As a second implementation of the present invention, when the pseudo-random code generation unit 113 outputs n-channel parallel test codes, the number of XOR gates is set to n, the number of D flip-flops is also set to n, the output end of each XOR gate is connected to the input end of a D flip-flop, and the outputs of the n D flip-flops serve as the n-channel parallel outputs of the entire pseudo-random code generation unit 113. At the same time, the outputs of the n D flip-flops and the outputs of the n XOR gates are sequentially combined into 2n data signals, and the n+1th data signal and the n+4th data signal serve as the inputs of the nth XOR gate.
[0087] For example, see Figure 5 Taking the pseudo-random code generation unit 113 outputting 32 parallel test codes as an example, the pseudo-random code generation unit 113 includes 32 XOR gates and 32 D flip-flops, the 32 XOR gates are x1 to x32, the 32 D flip-flops are s1 to s32, the outputs of the 32 D flip-flops and the outputs of the 32 XOR gates are sequentially combined into data signals d1 to d64, d2 and d5 are used as inputs of x1, d3 and d6 are used as inputs of x2, and so on. The input of each XOR gate is used as the input of the corresponding D flip-flop, and the outputs of s1 to s32 are used as the 32 parallel outputs of the entire random code test unit.
[0088] In this loop, when a backup clock signal is input, the value of one of the D flip-flops is flipped, thereby enabling the entire loop to run and input 32 parallel pseudo-random codes, which will not be described in detail here.
[0089] It can be understood that, in the above examples, although 4-way and 32-way outputs are used as examples, in actual applications, the pseudo-random code generation unit 113 provided by the present invention can be applied to any other pseudo-random code sequence generation circuit, such as PRBS7, PRBS15, PRBS31 parallel 4-way, 8-way, 16-way and 32-way outputs, etc., only the pseudo-random code generation unit 113 and the signal detection module 120 need to be matching code types. In addition, the above pseudo-random code generation unit 113 adopts a parallel structure, and during use, a series structure can also be adopted. Of course, the signal detection module 120 can also use a series or parallel structure, which is not specifically limited here.
[0090] The pseudo-random code generation unit 113 provided by the present invention can generate multiple parallel low-speed pseudo-random codes when generating pseudo-random codes, so that the XOR gate and the D flip-flop inside the pseudo-random code generation unit 113 can adopt a CMOS circuit structure without adopting a current-type logic circuit structure. Moreover, compared with the current-type logic circuit structure, the CMOS circuit structure has the advantages of small layout area consumption and low power consumption. Therefore, the pseudo-random code generation unit 113 provided by the present application can achieve the effect of reducing the layout area and power consumption. In addition, combined with Figure 4 and Figure 5 It can be seen that the pseudo-random code generating unit 113 provided by the present invention has the advantage of being more scalable, that is, Figure 4 or Figure 5 On the basis of the circuit, by adding or reducing D flip-flops and XOR gates, the number of generated test codes can be increased or reduced accordingly, which is more convenient in practical applications.
[0091] As an implementation method, please continue to see Figure 3 The signal detection module 120 includes a serial to parallel unit 121 (Serial to Parallel, S2P), a second frequency divider 122, and a pseudo-random code test unit 123 (Pseudo-Random Binary Sequence Checker, PRBS Checker), error statistics unit 125 and phase adjustment unit (phase interpolator, PI), pseudo-random code test unit 123 is electrically connected to the serial-to-parallel unit 121, the second frequency divider 122 and the error statistics unit 125 respectively, the second frequency divider 122 is also electrically connected to the phase adjustment unit and the serial-to-parallel unit 121, and the phase adjustment unit is also electrically connected to the error statistics unit 125; wherein the second frequency divider 122 is used to divide the initial clock signal recovered from the signal channel 130 and obtain a plurality of spare clock signals with different frequencies; the serial-to-parallel unit 121 is used to perform serial-to-parallel processing on the test code recovered from the signal channel 130 according to the spare clock signal; the phase adjustment unit is used to adjust the phase of the initial clock signal so that the phase of the initial clock signal is the same as the phase of the test code recovered from the signal channel 130; the pseudo-random code test unit 123 is used to perform error testing according to the spare clock signal and the parallel test code; the error statistics unit 125 is used to count the number of bit errors and output the bit error rate. Figure 3 In the figure, clk represents the initial clock signal, data represents the data signal, clk1 represents the clock signal recovered from the signal channel link, and data1 represents the data signal recovered from the signal channel link.
[0092] It can be understood that when the signal generation module 110 generates a pseudo-random code and sends the pseudo-random code to the signal detection module 120 through the signal channel 130, the signal detection module 120 can recover the corresponding data signal (data1) from the signal channel 130. Among them, the data signal recovered by the signal detection module 120 includes a pseudo-random code and a corresponding clock signal. For example, when the signal generation module 110 outputs a 64G pseudo-random code through the signal channel 130, the signal detection module 120 can recover the 64G pseudo-random code and the corresponding 64GHz clock signal. In order to enable the pseudo-random code test unit 123 to also use a CMOS circuit structure with a smaller layout area and circuit power consumption, it is necessary to convert the recovered pseudo-random code into a parallel data signal. That is, in the present invention, the signal generation module 110 is used to generate a parallel data signal, and convert the parallel data signal into a serial data signal and send it to the signal detection module 120. After the signal detection module 120 recovers the serial data signal from the signal channel 130, it converts the serial data signal into a parallel data signal for bit error rate detection.
[0093] When converting a serial data signal into a parallel data signal, a serial-to-parallel unit 121 is required. The serial-to-parallel unit 121 and the parallel-to-serial unit 114 have opposite data signal processing processes, but clock signals of different frequencies are required when processing data signals. For example, when converting a 64G data signal into a 2G data signal, clock signals of 64GHz, 32GHz, 16GHz, 8GHz, 4GHz and 2GHz are required, and the clock signal recovered by the signal detection module 120 from the signal channel 130 is the initial clock signal corresponding to the signal generation module 110. For example, if the signal generation module 110 generates multiple parallel pseudo-random codes under the action of the initial clock signal with a frequency of 64GHz, and then converts the multiple parallel pseudo-random codes into serial pseudo-random codes with a transmission rate of 64G and sends them to the signal detection module 120, the data signal recovered by the signal detection module 120 includes the serial pseudo-random code of 64G and the initial clock signal of 64GHz. On this basis, in order to realize serial-to-parallel data signal conversion, the initial clock signal needs to be divided and multiple backup clock signals need to be obtained.
[0094] After the pseudo-random code passes through the signal channel 130 and is recovered by the signal detection module 120, the phase between the data signal and the initial clock signal may be inconsistent, resulting in all signals being bit errors during the bit error test, causing misjudgment. In view of this, before the initial clock signal is divided by the second frequency divider 122, the phase of the initial clock signal needs to be adjusted by the phase adjustment unit, so that the phase of the initial clock signal is the same as the phase of the test code recovered from the signal channel 130.
[0095] Optionally, the phase adjustment unit includes an adjustment component 126 and a phase interpolator 124, and the adjustment component 126 is electrically connected to the phase interpolator 124 and the bit error statistics unit 125, respectively; wherein the adjustment component 126 is used to output an adjustment instruction to the phase interpolator 124 according to the initial value of the bit error statistics unit 125; the phase interpolator 124 is used to delay the initial clock signal according to the adjustment instruction, so that the phase of the delayed initial clock signal is the same as the phase of the test code recovered from the signal channel 130.
[0096] It should be noted that, in the present invention, the bit error statistics unit 125 has two specific functions, one of which is bit error statistics, and the other is to generate an initial value based on the loop of the entire signal detection module 120 when adjusting the initial clock signal, so that the adjustment component 126 can adjust the phase interpolator 124 according to the initial value, thereby ensuring that the phase of the initial clock signal after adjustment by the phase interpolator 124 is the same as the phase of the test code recovered from the signal channel 130.
[0097] When performing phase adjustment, it is generally achieved by delaying the initial clock signal.
[0098] After the phase adjustment unit adjusts the phase of the initial clock signal, the second divider 122 divides the initial clock signal recovered from the signal channel 130 and adjusted, and obtains a plurality of backup clock signals with different frequencies. At the same time, the second divider 122 transmits the plurality of backup clock signals to the serial-to-parallel unit 121 and the pseudo-random code test unit 123 respectively.
[0099] After receiving multiple backup clock signals and the test codes recovered from the signal channel 130, the serial-to-parallel unit 121 performs serial-to-parallel processing on the test codes. For example, after receiving a 64G serial pseudo-random code and backup clock signals of 64GHz, 32GHz, 16GHz, 8GHz, 4GHz, and 2GHz, the serial pseudo-random code is converted into 32 parallel pseudo-random codes.
[0100] The pseudo-random code test unit 123 is used to perform a bit error test based on a backup clock signal and a parallel test code. The pseudo-random code test unit 123 includes an output gate circuit and a plurality of XOR gates and D flip-flops using a CMOS circuit structure, wherein the plurality of XOR gates and the D flip-flops form a loop, and the output end of the XOR gate is electrically connected to the output gate circuit; when the backup clock signal and the parallel test code are input, the output gate circuit outputs a bit error signal.
[0101] It can be understood that since the XOR gate and the D flip-flop in the pseudo-random code test unit 123 also adopt a CMOS circuit structure, it can also achieve the effect of reducing the layout area and circuit power consumption.
[0102] As an implementation of the present invention, the output gate circuit in the pseudo-random code test unit 123 can be an OR gate. On this basis, when the pseudo-random code test unit 123 detects n parallel test codes, the number of XOR gates is set to 2n, and the number of D flip-flops is set to 2n+1, wherein, in the first to nth D flip-flops, the input end of each D flip-flop receives one test code (a total of n parallel test codes), and outputs the first intermediate signal to the first to nth XOR gates, respectively, and the n+1th to 2n+1th D flip-flops generate the first to n+1th second intermediate signals, respectively, wherein the first to nth second intermediate signals are sent to the first to nth XOR gates, respectively, so that the first to nth XOR gates perform XOR and output n result signals, and the n result signals perform OR logic through the OR gate, and output the final result to determine whether a bit error occurs. Furthermore, the n+1th to 2nth XOR gates receive the first intermediate signal and the n+1th to n+2th second intermediate signals, respectively, and output the n+2th to 2n+1th second intermediate signals, and the n+1th to 2n+1th D flip-flops receive the n+1th to 2n+1th second intermediate signals, respectively.
[0103] For example, see Figure 6 , taking the pseudo-random code test unit 123 testing 4 parallel test codes as an example, the pseudo-random code test unit 123 includes 8 XOR gates and 9 D flip-flops, the 8 XOR gates are x1~x8, the 9 D flip-flops are Sin1~Sin4 and Schk1~ Schk5, d1~d4 are used as input 4 test codes, do1~do4 are 4 result signals, and the OR gate outputs the final result. In the figure, dinn represents the nth first intermediate signal, such as din1 represents the first first intermediate signal, din8 represents the eighth first intermediate signal; dchkn represents the nth second intermediate signal, such as dchk1 represents the first second intermediate signal, dchk9 represents the ninth second intermediate signal.
[0104] Combination Figure 6It can be seen that in the first to fourth D flip-flops (Sin1~Sin4), the input end of each D flip-flop receives a test code respectively, and outputs the first intermediate signal din1~din4 to the first to fourth XOR gates (X1~X4), respectively. The fifth to ninth D flip-flops generate the first to fifth second intermediate signals (dchk1~dchk5), and the first to fourth second intermediate signals are sent to the first to fourth XOR gates (X1~X4), respectively, so that the first to fourth XOR gates perform XOR and output 4 result signals (do1~do4), and the 4 result signals perform OR logic through the OR gate and output the final result to determine whether a bit error occurs. In addition, the fifth to eighth XOR gates receive the first intermediate signal and the fifth to sixth second intermediate signals respectively, and output the sixth to ninth second intermediate signals. In the fifth to eighth XOR gates, two input terminals of each XOR gate input two interval signals, such as X5 inputs din1 and din3, X6 inputs din2 and din4, and X7 inputs din3 and dchk1. The fifth to ninth D flip-flops receive the fifth to ninth second intermediate signals respectively.
[0105] It is understandable that the pseudo-random code test unit 123 also has the advantage of strong scalability, and can be expanded to input 8-way, 16-way, 32-way parallel test codes, etc. Moreover, after inputting parallel test codes and different backup clocks, the pseudo-random code test unit 123 can automatically run.
[0106] As another implementation of the present invention, the output gate circuit in the pseudo-random code test unit 123 can be an accumulator. On this basis, when the pseudo-random code test unit 123 detects n parallel test codes, the number of XOR gates is set to 2n, and the number of D flip-flops is set to 2n, wherein, in the first to nth D flip-flops, the input end of each D flip-flop receives one test code (a total of n parallel test codes), and outputs the first intermediate signal to the first to nth XOR gates, respectively, and the n+1th to 2nth D flip-flops generate the first to nth second intermediate signals, respectively, and send the first to nth second intermediate signals to the first to nth XOR gates, respectively, so that the first to nth XOR gates perform XOR and output n result signals, and the n result signals are accumulated through the accumulator, and the final result is output to determine whether a bit error occurs. Furthermore, the n+1th to 2nth XOR gates receive the first intermediate signal and the n+1th to n+4th second intermediate signals respectively, and output the n+1th to 2nth second intermediate signals, and send the n+1th to 2nth second intermediate signals to the n+1th to 2nth D flip-flops respectively.
[0107] For example, see Figure 7, taking the pseudo-random code test unit 123 testing 32 parallel test codes as an example, the pseudo-random code test unit 123 includes 64 XOR gates and 64 D flip-flops, the 64 XOR gates are x1~x64, the 64 D flip-flops are Sin1~Sin32 and Schk1~ Schk32, d1~d32 are used as input 32 test codes, do1~do32 are 32 result signals, and the accumulator outputs the final result. In the figure, dinn represents the nth first intermediate signal, such as din1 represents the first first intermediate signal, din8 represents the eighth first intermediate signal; dchkn represents the nth second intermediate signal, such as dchk1 represents the first second intermediate signal, dchk9 represents the ninth second intermediate signal.
[0108] Combination Figure 7 It can be seen that in the first to the thirty-second D flip-flops (Sin1~Sin32), the input end of each D flip-flop receives a test code respectively, and outputs the first intermediate signal din1~din32 to the first to the thirty-second XOR gate (X1~X32), respectively, and the thirty-third to the sixty-fourth D flip-flops generate the first to the thirty-second second intermediate signals (dchk1~dchk32) respectively, and the first to the thirty-second second intermediate signals are sent to the first to the thirty-second XOR gate (X1~X32) respectively, so that the first to the thirty-second XOR gate performs XOR and outputs 32 result signals (do1~do32), and the four result signals are accumulated through the accumulator and the final result is output to determine whether a bit error occurs. In addition, the thirty-third to the sixty-fourth XOR gates receive the first intermediate signal and the thirty-third to the thirty-sixth second intermediate signals respectively, and output the thirty-third to the sixty-fourth second intermediate signals. In the 33rd to 64th XOR gates, two input terminals of each XOR gate receive two separated signals, such as X33 receives din2 and din5, X34 receives din3 and din6, and X64 receives dchk33 and dchk36. The 33rd to 64th D flip-flops receive the 33rd to 64th second intermediate signals respectively.
[0109] The pseudo-random code test unit 123 can perform error testing on the parallel test codes and output the error codes to the error statistics unit 125. The error statistics unit 125 is used to implement the function of an accumulator and count the error codes sent by the pseudo-random code test unit 123 and finally output the error rate.
[0110] In the present invention, the bit error rate satisfies the formula:
[0111] X=N / T;
[0112] Where X represents the bit error rate, T represents the number of cycles within the test time, and N represents the number of bit errors within the test time.
[0113] For example, when the number of cycles in the test time T is 10 5 , N is 1, which means that in 10 5 In a cycle, a bit error occurs, and the bit error rate is 10 -5 .
[0114] Based on the above implementation, an embodiment of the present invention further provides an interface chip, which includes the above bit error rate test circuit. For example, the interface chip can be a consumer electronics interface chip, an automotive electronics interface chip, etc., which is not limited here.
[0115] In summary, the embodiment of the present invention provides a bit error rate test circuit and an interface chip, the bit error rate test circuit includes a signal generation module and a signal detection module, the signal generation module and the signal detection module communicate through a signal channel; the signal generation module is used to generate multiple parallel test codes, and after the test codes are processed in a parallel-to-serial manner, they are sent to the signal detection module through a signal channel; the signal detection module is used to recover the test code of the signal channel, and after the recovered test code is processed in a serial-to-parallel manner, a bit error rate test is performed; wherein, the signal generation module and the signal detection module are internally CMOS circuit structures. Since the bit error rate test circuit provided by the present invention adopts a parallel-to-serial structure at the signal generation module end, and a serial-to-parallel structure is adopted in the signal detection module, the transmission rate of the signal can be reduced in a parallel manner, and the high-speed transmission data signal can be converted into a multi-channel low-speed transmission parallel data signal. In addition, in the scenario of low-speed transmission, the internal current-type logic electrical structure of the signal generation module and the signal detection module can be replaced with a CMOS circuit structure, reducing the layout area and circuit power consumption.
[0116] 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 spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0117] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A bit error rate test circuit, characterized in that: The bit error rate test circuit comprises a signal generation module and a signal detection module, and the signal generation module communicates with the signal detection module through a signal channel; The signal generation module is used to generate a plurality of parallel test codes, and after converting the test codes from parallel to serial, send the codes to the signal detection module through the signal channel; The signal detection module is used to recover the test code of the signal channel, and perform a bit error rate test on the recovered test code after serial-to-parallel processing; Wherein, the signal generation module and the signal detection module both have a CMOS circuit structure; The signal generation module includes: an oscillator, a first frequency divider, a pseudo-random code generation unit and a parallel-to-serial unit, wherein the oscillator, the first frequency divider, the pseudo-random code generation unit and the parallel-to-serial unit are electrically connected in sequence, and the first frequency divider is also electrically connected to the parallel-to-serial unit; wherein, The oscillator is used to generate an initial clock signal; The first frequency divider is used to divide the frequency of the initial clock signal and obtain a plurality of standby clock signals with different frequencies; The pseudo-random code generation unit is used to generate parallel multi-path test codes according to the standby clock signal; The parallel-to-serial unit is used to convert parallel multi-channel test codes into serial data signals according to multiple backup clock signals, and send the serial data signals to the signal detection module through a signal channel; When the pseudo-random code generating unit outputs n parallel test codes, the number of XOR gates in the pseudo-random code generating unit is set to n, the number of D flip-flops is set to n+1, the output ends of the n XOR gates are respectively connected to the input ends of the second to n+1th D flip-flops, the output end of the n+1th D flip-flop is connected to the input end of the first D flip-flop, the first n D flip-flops output n parallel test codes, and at the same time, the outputs of the i-th D flip-flop and the i+2th D flip-flop serve as the inputs of the i-th XOR gate, 1≤i≤n-1, the output of the first XOR gate and the output of the n-th D flip-flop serve as the inputs of the n-th XOR gate; Alternatively, when the pseudo-random code generating unit outputs n parallel test codes, the number of XOR gates in the pseudo-random code generating unit is set to n, and the number of D flip-flops is also set to n, the output end of each of the XOR gates is connected to the input end of a D flip-flop, and the outputs of the n D flip-flops serve as the n parallel outputs of the pseudo-random code generating unit, and at the same time, the outputs of the n D flip-flops and the outputs of the n XOR gates are sequentially combined into 2n data signals, the j+1th data signal and the j+4th data signal serve as the inputs of the jth XOR gate, 1≤j≤n.
2. The bit error rate test circuit according to claim 1, characterized in that: The pseudo-random code generation unit includes a plurality of XOR gates and D flip-flops using a CMOS circuit structure, wherein the plurality of XOR gates and D flip-flops form a loop; When the standby clock signal is input, the loop composed of the XOR gate and the D flip-flop outputs a plurality of parallel test codes.
3. The bit error rate test circuit according to claim 2, characterized in that: The multiple XOR gates and D flip-flops form a series loop or a parallel loop, and the signal detection module also includes a series loop or a parallel loop composed of multiple XOR gates and D flip-flops.
4. The bit error rate test circuit according to claim 1, characterized in that: The signal detection module includes a serial-to-parallel unit, a second frequency divider, a pseudo-random code test unit, a bit error statistics unit and a phase adjustment unit, wherein the pseudo-random code test unit is electrically connected to the serial-to-parallel unit, the second frequency divider and the bit error statistics unit respectively, the second frequency divider is also electrically connected to the phase adjustment unit and the serial-to-parallel unit, and the phase adjustment unit is also electrically connected to the bit error statistics unit; wherein, The second frequency divider is used to divide the frequency of the initial clock signal recovered from the signal channel and obtain a plurality of standby clock signals with different frequencies; The serial-to-parallel unit is used to perform serial-to-parallel processing on the test code recovered from the signal channel according to the backup clock signal; The phase adjustment unit is used to adjust the phase of the initial clock signal so that the phase of the initial clock signal is the same as the phase of the test code recovered from the signal channel; The pseudo-random code test unit is used to perform a bit error test based on the standby clock signal and the parallel test code; The bit error statistics unit is used to count the number of bit errors and output the bit error rate.
5. The bit error rate test circuit according to claim 4, characterized in that: The phase adjustment unit includes an adjustment component and a phase interpolator, and the adjustment component is electrically connected to the phase interpolator and the bit error statistics unit respectively; wherein, The adjustment component is used to output an adjustment instruction to the phase interpolator according to the initial value of the bit error statistics unit; The phase interpolator is used to delay the initial clock signal according to the adjustment instruction so that the phase of the delayed initial clock signal is the same as the phase of the test code recovered from the signal channel.
6. The bit error rate test circuit according to claim 4, characterized in that: The bit error rate satisfies the formula: X=N / T; Where X represents the bit error rate, T represents the number of cycles within the test time, and N represents the number of bit errors within the test time.
7. The bit error rate test circuit according to claim 4, characterized in that: The pseudo-random code test unit includes an output gate circuit and a plurality of XOR gates and D flip-flops adopting a CMOS circuit structure, wherein the plurality of XOR gates and D flip-flops form a loop, and the output end of the XOR gate is electrically connected to the output gate circuit; When the standby clock signal and the parallel test code are input, the output gate circuit outputs a bit error signal.
8. The bit error rate test circuit according to claim 7, characterized in that: The output gate circuit includes an OR gate and an accumulator.
9. An interface chip, characterized in that: The interface chip comprises the bit error rate test circuit as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
FPGA (Field Programmable Gate Array) based error code testing method
CN102123060A
Parallel path delay line
CN113728241A
