A PCIE code type automatic switching system and a switching method

The automatic switching system, composed of a control module, a timer, and a crystal oscillator module, solves the problems of long testing cycles and high costs caused by manual operation in PCIe pattern switching, realizes automatic pattern switching of PCIe devices, and ensures timely signal adaptation and recognition.

CN115562917BActive Publication Date: 2026-06-30INSPUR (SHANDONG) COMPUTER TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR (SHANDONG) COMPUTER TECH CO LTD
Filing Date
2022-09-29
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In existing technologies, PCIe pattern switching requires manual operation, which leads to long testing cycles, high costs, and an inability to adapt to data transmission needs in a timely manner, resulting in signal loss and recognition problems.

Method used

An automatic switching system consisting of a control module, timer, switch chip, and crystal oscillator module uses a 555 timer and an SG3225 crystal oscillator to output signals with preset intervals and frequencies to achieve automatic pattern switching for PCIe devices.

Benefits of technology

It enables automatic pattern switching for PCIe devices, simplifies the testing process, reduces the lag effect of manual operation, lowers testing costs and time, and ensures timely signal switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115562917B_ABST
    Figure CN115562917B_ABST
Patent Text Reader

Abstract

This invention proposes an automatic PCIe pattern switching system and method. The system includes a control module, a timer, a switching chip, a crystal oscillator module, and a PCIe device. The signal output terminal of the control module is connected to the input terminal of the timer, controlling the timer to continuously output level signals at preset intervals. The crystal oscillator module outputs differential signals at preset frequencies. The output terminals of both the timer and the crystal oscillator module are connected to the input terminal of the switching chip. The switching chip connects the differential signals at preset frequencies to the PCIe device via a connector. The PCIe device performs pattern switching based on the received differential signals at preset intervals. The preset interval is a 1ms level signal, and the differential clock signal is a 100MHz differential clock signal. Based on this system, an automatic PCIe pattern switching method is also proposed. This invention achieves automatic PCIe pattern switching in a simple and easy-to-operate manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of PCIE pattern switching technology, and specifically relates to a PCIE pattern automatic switching system and switching method. Background Technology

[0002] PCI Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard, abbreviated as PCIE. PCIE uses multiple pairs of high-speed serial differential signals for transmission. The signal rate on each differential pair can be 2.5Gbps for GEN1, 5Gbps for GEN2, 8Gbps for GEN3, and 16Gbps for GEN4. Specifically, GEN1 is PCIE 1.0 mode, GEN2 is PCIE 2.0 mode, GEN3 is PCIE 3.0 mode, compatible with PCIE 1.0 and PCIE 2.0 devices, and also supports operating frequencies of 2.5Gbps and 5Gbps. GEN4 is PCIE 4.0 mode, compatible with PCIE 1.0, PCIE 2.0, and PCIE 3.0 devices, and also supports operating frequencies of 2.5Gbps, 5Gbps, and 8Gbps. In practical applications, PCIE can switch between different transmission rates to adapt to sudden surges in data transmission demands. To ensure proper PCIe functionality, signal testing is required for each PCIe speed. This necessitates switching speeds within the same PCIe network. One method is manual speed switching, but this requires on-site monitoring, increasing the workload of test engineers and presenting inconvenience.

[0003] Currently, solutions for the inability to automatically switch PCIe patterns include changing test fixtures to detect different PCIe patterns or manually switching PCIe patterns using buttons. In actual use, PCIe needs to switch between different transmission rates to adapt to sudden surges in data transmission demand. Failure to switch PCIe patterns in a timely manner can lead to PCIe signal loss and the inability to recognize PCIe signals. Switching PCIe patterns via buttons, due to manual operation and the lag effect of the buttons, cannot be timed for testing, is time-consuming and labor-intensive, and increases the testing cycle and cost. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention proposes an automatic PCIe code type switching system and method for switching between different PCIe code types.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] An automatic PCIe pattern switching system, the system includes a control module, a timer, a switch chip, a crystal oscillator module, and a PCIe device;

[0007] The signal output terminal of the control module is connected to the input terminal of the timer, and the timer is controlled to continuously output a level signal at a preset interval. The crystal oscillator module is used to output a differential signal at a preset frequency. The output terminals of the timer and the crystal oscillator module are both connected to the input terminal of the SWITCH chip. The SWITCH chip connects the differential signal at the preset frequency to the PCIe device through a connector. The PCIe device performs code switching according to the received differential signal at the preset interval at the preset frequency.

[0008] Furthermore, the timer is a 555 timer; the 555 timer is used to send level signals with a preset interval of 1ms.

[0009] Furthermore, the TRIG pin of the 555 timer is connected to the control signal output by the control module; the OUT pin of the 555 timer is connected to the BE1 and BE2 pins of the SWITCH chip.

[0010] Furthermore, the output pin of the 555 timer is also connected to the test module via a test probe; the test module uses the test probe to detect whether the 555 timer is outputting a preset interval level signal normally.

[0011] Furthermore, the crystal oscillator module uses an SG3225 crystal oscillator;

[0012] The SG3225 crystal oscillator is used to generate differential 100MHz clock signals CLK_TRIG_DP and CLK_TRIG_DN; the differential signal CLK_TRIG_DP is connected to pin A1 of the SWITCH chip; and the differential signal CLK_TRIG_DN is connected to pin A2 of the SWITCH chip.

[0013] Furthermore, the connector adopts an SMA socket; the differential signal of the output preset frequency of the SWITCH chip is applied to the SMA socket, and the PCIe device performs code switching according to the received preset frequency differential signal at preset intervals.

[0014] Furthermore, the model number of the SWITCH chip is: SN74CBTLV3126.

[0015] This invention also proposes an automatic PCIe pattern switching method, which is implemented based on a PCIe pattern automatic switching system and runs on a SWITCH chip. The method includes the following steps:

[0016] Obtain the level signal emitted by the timer at a preset interval;

[0017] Obtain the differential clock signal of the preset frequency emitted by the crystal oscillator;

[0018] A clock signal of a preset frequency is applied to the SMA socket, causing the PCIe device to switch codes according to the received preset frequency differential signals at preset intervals.

[0019] Furthermore, the preset interval level signal is a level signal with a preset interval of 1ms.

[0020] Furthermore, the preset frequency differential clock signal is a 100MHz differential clock signal.

[0021] The effects described in the invention are merely those of the embodiments, and not all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

[0022] This invention proposes an automatic PCIe pattern switching system and method. The system includes a control module, a timer, a switch chip, a crystal oscillator module, and a PCIe device. The signal output terminal of the control module is connected to the input terminal of the timer, controlling the timer to continuously output level signals at preset intervals. The crystal oscillator module outputs differential signals at preset frequencies. The output terminals of both the timer and the crystal oscillator module are connected to the input terminal of the switch chip. The switch chip connects the differential signals at preset frequencies to the PCIe device via a connector. The PCIe device performs pattern switching based on the received differential signals at preset intervals. Based on the PCIe pattern switching system, an automatic PCIe pattern switching method is also proposed. This invention effectively solves the problem that in practical use, PCIe needs to switch between different transmission rates to adapt to sudden surges in data transmission demand. Failure to switch PCIe patterns in a timely manner can lead to PCIe signal loss and the inability to recognize PCIe signals.

[0023] This invention can also effectively solve the problem that when switching PCIE patterns via buttons, the manual operation and the lag effect of the buttons make it impossible to switch patterns for testing at regular intervals, which is time-consuming, labor-intensive, and increases the testing cycle and cost.

[0024] This application uses an STM32 microcontroller to control a 555 timer to continuously send level signals at 1ms intervals, which, together with the 100MHz signal from the SG3225, acts on the SWITCH chip SN74CBTLV3126 to achieve automatic PCIe code switching. The implementation process is simple and easy to operate. Attached Figure Description

[0025] likeFigure 1 This is a schematic diagram of a PCIe code type automatic switching system connection according to Embodiment 1 of the present invention;

[0026] like Figure 2 This is a circuit diagram of a 555 timer in a PCIE pattern automatic switching system according to Embodiment 1 of the present invention;

[0027] like Figure 3 This is a circuit diagram of a SWITCH chip in a PCIE pattern automatic switching system according to Embodiment 1 of the present invention;

[0028] like Figure 4 This is a circuit diagram of the crystal oscillator module in a PCIE pattern automatic switching system according to Embodiment 1 of the present invention;

[0029] like Figure 5 This is a flowchart of an automatic PCIE code type switching method according to Embodiment 2 of the present invention. Detailed Implementation

[0030] To clearly illustrate the technical features of this solution, the invention will be described in detail below through specific embodiments and in conjunction with the accompanying drawings. The following disclosure provides many different embodiments or examples for implementing different structures of the invention. To simplify the disclosure of the invention, components and arrangements of specific examples are described below. Furthermore, reference numerals and / or letters may be repeated in different examples. This repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. It should be noted that the components illustrated in the drawings are not necessarily drawn to scale. Descriptions of well-known components, processing techniques, and processes are omitted in this invention to avoid unnecessarily limiting the invention.

[0031] Example 1

[0032] Embodiment 1 of the present invention proposes an automatic PCIe pattern switching system to solve the problems existing in the PCIe pattern switching in the prior art.

[0033] PCI Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard, abbreviated as PCIE. PCIE uses multiple pairs of high-speed serial differential signals for transmission. The signal rate on each differential pair can be 2.5Gbps for GEN1, 5Gbps for GEN2, 8Gbps for GEN3, and 16Gbps for GEN4. Specifically, GEN1 is PCIE 1.0 mode, GEN2 is PCIE 2.0 mode, GEN3 is PCIE 3.0 mode, compatible with PCIE 1.0 and PCIE 2.0 devices, and also supports operating frequencies of 2.5Gbps and 5Gbps. GEN4 is PCIE 4.0 mode, compatible with PCIE 1.0, PCIE 2.0, and PCIE 3.0 devices, and also supports operating frequencies of 2.5Gbps, 5Gbps, and 8Gbps. In practical applications, PCIE can switch between different transmission rates to adapt to sudden surges in data transmission demands. To ensure that PCIe can be used properly, signal tests need to be performed on each PCIe speed.

[0034] The system includes: a control module, a timer, a switch chip, a crystal oscillator module, and a PCIe device;

[0035] The signal output terminal of the control module is connected to the input terminal of the timer, and the timer is controlled to continuously output a level signal at a preset interval. The crystal oscillator module is used to output a differential signal at a preset frequency. The output terminals of the timer and the crystal oscillator module are both connected to the input terminal of the SWITCH chip. The SWITCH chip connects the differential signal at the preset frequency to the PCIe device through a connector. The PCIe device performs code switching according to the received differential signal at the preset interval at the preset frequency.

[0036] like Figure 1 This is a schematic diagram of a PCIe code type automatic switching system connection according to Embodiment 1 of the present invention;

[0037] The control module uses an STM32 chip. The STM32 series is an ARM processor designed specifically for embedded applications requiring high performance, low cost, and low power consumption. The STM32 series includes M0, M0+, M3, M4, and M7 cores, categorized into different products based on their core architecture. These include mainstream products (STM32F0, STM32F1, STM32F3), ultra-low power products (STM32L0, STM32L1, STM32L4, STM32L4+), and high-performance products (STM32F2, STM32F4, STM32F7, STM32H7).

[0038] Other chips capable of issuing control signals can also be used in this application to control the 555 timer to emit level signals at preset intervals. Therefore, the scope of protection of this invention is not limited to the chips listed in Embodiment 1. Other chips that can be implemented can be selected by those skilled in the art based on actual circumstances.

[0039] The timer used is a 555 timer. The 555 timer is an integrated circuit chip commonly used in timers, pulse generators, and oscillator circuits. The 555 can be used as a delay device, trigger, or oscillator element in a circuit.

[0040] like Figure 2 This is a circuit diagram of a 555 timer in a PCIe pattern automatic switching system according to Embodiment 1 of the present invention; as shown. Figure 3 This is a circuit diagram of a SWITCH chip in a PCIE pattern automatic switching system according to Embodiment 1 of the present invention;

[0041] The pin functions of the 555 timer include:

[0042] GND (ground) is grounded and represents a low level (0V).

[0043] TRIG (trigger) outputs a high level when the voltage on this pin drops to 1 / 3 VCC (or the threshold voltage determined by the control terminal);

[0044] OUT (output): Outputs a high level (+VCC) or a low level.

[0045] RST (Reset): When this pin is high, the timer operates; when this pin is grounded, the chip resets and outputs a low level.

[0046] CTRL (Control) controls the chip's threshold voltage. (When this pin is unconnected, the default two threshold voltages are 1 / 3VCC and 2 / 3VCC.)

[0047] THR (threshold), the output is low when the voltage on this pin rises to 2 / 3VCC (or the threshold voltage determined by the control terminal);

[0048] DIS (Discharge), with an internal OC gate, is used to discharge capacitors;

[0049] V+ and VCC (power supply) provide a high level and power the chip.

[0050] In Embodiment 1 of this invention, the TRIG pin of the 555 timer is connected to the control signal output by the controller, and is used to trigger the 555 timer to emit a level signal at a preset interval. The OUT pin of the 555 timer is connected to the BE1 and BE2 pins of the SWITCH chip.

[0051] The OUT pin of the 555 timer is also connected to the J317 detection chip. The J317 detection chip has probes No. 1 and No. 2. The test probes are connected to the test module. The test module uses the test probes to detect whether the 555 timer is outputting a preset interval level signal normally.

[0052] The VCC (power supply) pin of the 555 timer is connected to a 3.3V power supply in one way, and to a parallel circuit of resistors R269 and R270 in series in the other way; after the R circuit is connected in series, it is connected in series with capacitor C179 and then grounded.

[0053] Both the DIS (discharge) pin and the THR (threshold) pin are connected in series with capacitor C179 and then grounded.

[0054] The RST (reset) pin is connected to the 3.3V power supply through resistor R266, and grounded through series with capacitor C175.

[0055] In this application, the output pins of the STM32 are automatically opened and closed by a program, thereby controlling the 555 timer to continuously emit a level signal with a 1ms interval.

[0056] The crystal oscillator module is used to output a differential signal at a preset frequency. In this application, the crystal oscillator module uses an SG3225 crystal oscillator, whose operating circuit can output differential 100MHz clock signals CLK_TRIG_DP and CLK_TRIG_DN; Figure 4 This is a circuit diagram of the crystal oscillator module in a PCIE pattern automatic switching system according to Embodiment 1 of the present invention;

[0057] In this application, the output of the SG3225 crystal oscillator is connected to pins A1 and A2 of the SWITCH chip, and the OUT (output) pin of the 555 timer is connected to pins BE1 and BE2 of the SWITCH chip. The model of the SWITCH chip is SN74CBTLV3126. The B1 pin of the SWITCH chip outputs to the first SMA socket, and the B2 pin of the SWITCH chip outputs to the second SMA socket. In this application, the first SMA socket is J226, and the second SMA socket is J227. The PCIe clock signal is connected to the SMA socket via a cable. After receiving the 100MHz differential clock signals CLK_TRIG_DP and CLK_TRIG_DP with 1ms intervals through the SMA, the PCIe can switch the code pattern. Specifically, the STM32 microcontroller sets the time required for the tester to switch the code pattern, which controls the 555 timer to send a level signal with 1ms intervals to the SG3225. The differential 100MHz clock signals CLK_TRIG_DP and CLK_TRIG_DP emitted by the SG3225's working circuit are applied to the SMA socket. After receiving the CLK_TRIG_DP and CLK_TRIG_DP clock signals, the PCIe can automatically switch between GEN1 (2.5Gbps), GEN2 (5Gbps), GEN3 (8Gbps), and GEN4 (16Gbps). In this way, the tester can automatically switch the PCIe speed for signal testing.

[0058] In this application, pins A3 and A4 of the SWITCH chip are configured as input detection points. Pins BE3 and BE4 of the SWITCH chip are grounded. Pin B1 is connected to the first SMA socket J226 through capacitor C176; pin B2 is connected to the second SMA socket J227 through capacitor C177; pins B3 and B4 are configured as output detection points respectively.

[0059] The PCIe pattern automatic switching system proposed in Embodiment 1 of this invention can effectively solve the problem that in actual use, PCIe needs to switch to different rates for transmission to adapt to the sudden surge in data transmission demand. If the PCIe pattern is not switched in time, the PCIe signal will be lost, resulting in the inability to recognize the PCIe signal.

[0060] The PCIE pattern automatic switching system proposed in Embodiment 1 of this invention can also effectively solve the problem that when switching PCIE patterns via buttons, the manual operation and the lag effect of the buttons make it impossible to switch patterns for testing at regular intervals, which is time-consuming, labor-intensive, and increases the testing cycle and testing cost.

[0061] The PCIE pattern automatic switching system proposed in Embodiment 1 of this invention uses an STM32 microcontroller. By controlling the 555 timer to continuously send level signals at 1ms intervals and the 100MHz signal sent by the SG3225 to act on the SWITCH chip SN74CBTLV3126, the PCIE pattern automatic switching is achieved. The implementation process is simple and easy to operate.

[0062] Example 2

[0063] Based on the PCIE pattern automatic switching system proposed in Embodiment 1 of this invention, Embodiment 2 of this invention proposes a PCIE pattern automatic switching method, such as... Figure 5 Here is a flowchart of an automatic PCIe code type switching method according to Embodiment 2 of the present invention:

[0064] In step S500: the level signal of the preset interval issued by the timer is obtained; the level signal of the preset interval is a level signal with a preset interval of 1ms.

[0065] In step S510: a differential clock signal of a preset frequency is obtained from the crystal oscillator; the differential clock signal of the preset frequency is a differential clock signal of 100MHz.

[0066] In step S520: A clock signal of a preset frequency is applied to the SMA socket, causing the PCIe device to switch code patterns according to the received differential signals of a preset frequency at preset intervals. PCI Express (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard, abbreviated as PCIe. PCIe uses multiple pairs of high-speed serial differential signals for transmission, and the signal rate on each pair of differential lines can be 2.5Gbps for GEN1, 5Gbps for GEN2, 8Gbps for GEN3, and 16Gbps for GEN4. Among them, GEN1 is PCIe 1.0 mode, GEN2 is PCIe 2.0 mode, and GEN3 is PCIe 3.0 mode, compatible with PCIe 1.0 and PCIe 2.0 devices, and also supporting operating frequencies of 2.5Gbps and 5Gbps. GEN4 is PCIe 4.0 mode, compatible with PCIe 1.0, PCIe 2.0, and PCIe 3.0 devices, and also supporting operating frequencies of 2.5Gbps, 5Gbps, and 8Gbps. In practical use, PCIe can switch between different speeds to adapt to sudden surges in data transmission demand. To ensure that PCIe functions properly, signal testing is required for each PCIe speed.

[0067] This method is based on an automatic PCIe pattern switching system disclosed in Embodiment 1, which includes: a control module, a timer, a switch chip, a crystal oscillator module, and a PCIe device;

[0068] The signal output terminal of the control module is connected to the input terminal of the timer, and the timer is controlled to continuously output a level signal at a preset interval. The crystal oscillator module is used to output a differential signal at a preset frequency. The output terminals of the timer and the crystal oscillator module are both connected to the input terminal of the SWITCH chip. The SWITCH chip connects the differential signal at the preset frequency to the PCIe device through a connector. The PCIe device performs code switching according to the received differential signal at the preset interval at the preset frequency.

[0069] like Figure 1 This is a schematic diagram of a PCIe code type automatic switching system connection according to Embodiment 1 of the present invention;

[0070] The control module uses an STM32 chip. The STM32 series is an ARM processor designed specifically for embedded applications requiring high performance, low cost, and low power consumption. The STM32 series includes M0, M0+, M3, M4, and M7 cores, categorized into different products based on their core architecture. These include mainstream products (STM32F0, STM32F1, STM32F3), ultra-low power products (STM32L0, STM32L1, STM32L4, STM32L4+), and high-performance products (STM32F2, STM32F4, STM32F7, STM32H7).

[0071] Other chips capable of issuing control signals can also be used in this application to control the 555 timer to emit level signals at preset intervals. Therefore, the scope of protection of this invention is not limited to the chips listed in Embodiment 1. Other chips that can be implemented can be selected by those skilled in the art based on actual circumstances.

[0072] The timer used is a 555 timer. The 555 timer is an integrated circuit chip commonly used in timers, pulse generators, and oscillator circuits. The 555 can be used as a delay device, trigger, or oscillator element in a circuit.

[0073] like Figure 2 This is a circuit diagram of a 555 timer in a PCIe pattern automatic switching system according to Embodiment 1 of the present invention; as shown. Figure 3 This is a circuit diagram of a SWITCH chip in a PCIE pattern automatic switching system according to Embodiment 1 of the present invention;

[0074] The pin functions of the 555 timer include:

[0075] GND (ground) is grounded and represents a low level (0V).

[0076] TRIG (trigger) outputs a high level when the voltage on this pin drops to 1 / 3 VCC (or the threshold voltage determined by the control terminal);

[0077] OUT (output): Outputs a high level (+VCC) or a low level.

[0078] RST (Reset): When this pin is high, the timer operates; when this pin is grounded, the chip resets and outputs a low level.

[0079] CTRL (Control) controls the chip's threshold voltage. (When this pin is unconnected, the default two threshold voltages are 1 / 3VCC and 2 / 3VCC.)

[0080] THR (threshold), the output is low when the voltage on this pin rises to 2 / 3VCC (or the threshold voltage determined by the control terminal);

[0081] DIS (Discharge), with an internal OC gate, is used to discharge capacitors;

[0082] V+ and VCC (power supply) provide a high level and power the chip.

[0083] In Embodiment 1 of this invention, the TRIG pin of the 555 timer is connected to the control signal output by the controller, and is used to trigger the 555 timer to emit a level signal at a preset interval. The OUT pin of the 555 timer is connected to the BE1 and BE2 pins of the SWITCH chip.

[0084] The OUT pin of the 555 timer is also connected to the J317 detection chip. The J317 detection chip has probes No. 1 and No. 2. The test probes are connected to the test module. The test module uses the test probes to detect whether the 555 timer is outputting a preset interval level signal normally.

[0085] The VCC (power supply) pin of the 555 timer is connected to a 3.3V power supply in one way, and to a parallel circuit of resistors R269 and R270 in series in the other way; after the R circuit is connected in series, it is connected in series with capacitor C179 and then grounded.

[0086] Both the DIS (discharge) pin and the THR (threshold) pin are connected in series with capacitor C179 and then grounded.

[0087] The RST (reset) pin is connected to the 3.3V power supply through resistor R266, and grounded through series with capacitor C175.

[0088] In this application, the output pins of the STM32 are automatically opened and closed by a program, thereby controlling the 555 timer to continuously emit a level signal with a 1ms interval.

[0089] The crystal oscillator module is used to output a differential signal at a preset frequency. In this application, the crystal oscillator module uses an SG3225 crystal oscillator, whose operating circuit can output differential 100MHz clock signals CLK_TRIG_DP and CLK_TRIG_DN; Figure 4 This is a circuit diagram of the crystal oscillator module in a PCIE pattern automatic switching system according to Embodiment 1 of the present invention;

[0090] In this application, the output of the SG3225 crystal oscillator is connected to pins A1 and A2 of the SWITCH chip, and the OUT (output) pin of the 555 timer is connected to pins BE1 and BE2 of the SWITCH chip. The model of the SWITCH chip is SN74CBTLV3126. The B1 pin of the SWITCH chip outputs to the first SMA socket, and the B2 pin of the SWITCH chip outputs to the second SMA socket. In this application, the first SMA socket is J226, and the second SMA socket is J227. The PCIe clock signal is connected to the SMA socket via a cable. After receiving the 100MHz differential clock signals CLK_TRIG_DP and CLK_TRIG_DP with 1ms intervals through the SMA, the PCIe can switch the code pattern. Specifically, the STM32 microcontroller sets the time required for the tester to switch the code pattern, which controls the 555 timer to send a level signal with 1ms intervals to the SG3225. The differential 100MHz clock signals CLK_TRIG_DP and CLK_TRIG_DP emitted by the SG3225's working circuit are applied to the SMA socket. After receiving the CLK_TRIG_DP and CLK_TRIG_DP clock signals, the PCIe can automatically switch between GEN1 (2.5Gbps), GEN2 (5Gbps), GEN3 (8Gbps), and GEN4 (16Gbps). In this way, the tester can automatically switch the PCIe speed for signal testing.

[0091] In this application, the A3 and A4 pins of the SWITCH chip are set as detection points.

[0092] The PCIe code pattern automatic switching method proposed in Embodiment 2 of this invention can effectively solve the problem that in actual use, PCIe needs to switch to different rates for transmission to adapt to the sudden surge in data transmission demand. If the PCIe code pattern is not switched in time, the PCIe signal will be lost, resulting in the inability to recognize the PCIe signal.

[0093] The PCIE pattern automatic switching method proposed in Embodiment 2 of this invention can also effectively solve the problem that when switching PCIE patterns by pressing a button, the manual operation and the lag effect of the button will cause the pattern to be switched at a time for testing, which is time-consuming, labor-intensive, and increases the testing cycle and testing cost.

[0094] The PCIe pattern automatic switching method proposed in Embodiment 2 of this invention uses an STM32 microcontroller. By controlling the 555 timer to continuously send level signals at 1ms intervals and the 100MHz signal sent by the SG3225 to act on the SWITCH chip SN74CBTLV3126, the PCIe pattern automatic switching is achieved. The implementation process is simple and easy to operate.

[0095] For a description of the relevant parts of the PCIE code type automatic switching method provided in this application embodiment, please refer to the detailed description of the corresponding parts of the PCIE code type automatic switching system provided in embodiment 1 of this application, and will not be repeated here.

[0096] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that the elements inherent in a process, method, article, or apparatus that includes a list of elements are included. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. Additionally, portions of the technical solutions provided in the embodiments of this application that are consistent with the implementation principles of corresponding technical solutions in the prior art have not been described in detail to avoid excessive elaboration.

[0097] While specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art can make other modifications or variations based on the above description. It is neither necessary nor possible to exhaustively describe all embodiments here. Various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A PCIe code type automatic switching system, characterized in that, Includes control modules, timers, switch chips, crystal oscillator modules, and PCIe devices; The signal output terminal of the control module is connected to the input terminal of the timer, and the timer is controlled to continuously output a level signal at a preset interval; the crystal oscillator module is used to output a differential signal at a preset frequency; the output terminal of the timer and the output terminal of the crystal oscillator module are both connected to the input terminal of the SWITCH chip; the SWITCH chip connects the differential signal at the preset frequency to the PCIe device through a connector. PCIe devices switch code patterns based on received preset frequency differential signals at preset intervals; The timer is a 555 timer; the output pin of the 555 timer is also connected to the test module via a test probe; the test module uses the test probe to detect whether the 555 timer is outputting a level signal at a preset interval normally; The trigger pin of the 555 timer is connected to the control signal output by the controller, which is used to trigger the 555 timer to emit a level signal at a preset interval; the output pin of the 555 timer is connected to the BE1 and BE2 pins of the SWITCH chip. The output pin of the 555 timer is also connected to the J317 detection chip. The J317 detection chip has probes No. 1 and No.

2. The test probes are connected to the test module. The test module uses the test probes to detect whether the 555 timer is outputting a preset interval level signal normally.

2. The PCIe pattern automatic switching system according to claim 1, characterized in that, The 555 timer is used to send level signals with a preset interval of 1ms.

3. The PCIe pattern automatic switching system according to claim 1, characterized in that, The TRIG pin of the 555 timer is connected to the control signal output by the control module; the OUT pin of the 555 timer is connected to the BE1 and BE2 pins of the SWITCH chip.

4. The PCIe pattern automatic switching system according to claim 1, characterized in that, The crystal oscillator module uses an SG3225 crystal oscillator. The SG3225 crystal oscillator is used to generate differential 100MHz clock signals CLK_TRIG_DP and CLK_TRIG_DN; the differential signal CLK_TRIG_DP is connected to pin A1 of the SWITCH chip; and the differential signal CLK_TRIG_DN is connected to pin A2 of the SWITCH chip.

5. The PCIe pattern automatic switching system according to claim 1, characterized in that, The connector uses an SMA socket; the differential signal of the output preset frequency of the SWITCH chip is applied to the SMA socket, and the PCIe device performs code switching according to the received preset frequency differential signal at preset intervals.

6. The PCIe pattern automatic switching system according to claim 1, characterized in that, The model number of the SWITCH chip is: SN74CBTLV3126.

7. A method for automatic PCIe code type switching, implemented based on the PCIe code type automatic switching system according to any one of claims 1 to 6, characterized in that, Operating on a switch chip, the method includes the following steps: Obtain the level signal emitted by the timer at a preset interval; Obtain the differential clock signal of the preset frequency emitted by the crystal oscillator; A clock signal of a preset frequency is applied to the SMA socket, causing the PCIe device to switch codes according to the received preset frequency differential signals at preset intervals.

8. The PCIe code type automatic switching method according to claim 7, characterized in that, The preset interval level signal is a level signal with a preset interval of 1ms.

9. The PCIe code type automatic switching method according to claim 7, characterized in that, The preset frequency differential clock signal is a 100MHz differential clock signal.