Sequence-adjustable multi-protocol switching chip and reset control method thereof

By introducing a reset state machine unit into the multi-protocol switching chip and flexibly adjusting the reset release sequence, the problem of unadjustable reset control in the existing technology is solved, and the startup reliability and robustness of the chip are improved.

CN118631767BActive Publication Date: 2024-10-18WELL CORE MICROELECTRONICS TECH (TIANJIN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411104159.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-18
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

The reset control process of existing multi-protocol switching chips is deterministic and cannot be adjusted, causing the chip to fail to start normally when the functional module is abnormal, affecting the flexibility and reliability of the chip.

Method used

By introducing a reset state machine unit into the multi-protocol switching chip, the reset release sequence is flexibly adjusted using the pins i2c_release_sel and ecpu_clk_sel, and the first, second, and third reset release sequences are determined based on the debugging results to ensure that the Core PLL, CMU PLL and eCPU The module can still start normally when there is an abnormality, and the clock unit is reconfigured to lock the PLL.

Benefits of technology

The reliability and flexibility of the chip's reset structure are improved to ensure that it can still start normally under abnormal circumstances, and the initial configuration is implemented through eCPU or I2C, which enhances the robustness of the chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631767B_ABST
    Figure CN118631767B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-protocol switching chip with adjustable sequence and a reset control method thereof. The chip includes a global reset module, a clock module, a global register module, an AXI module, a QSPI module, an I2C module, an eCPU module, a SerDes module, a switching module, a multi-protocol controller module and a power-on / hard reset module; the clock module includes a frequency divider unit, a Core PLL unit and a CMU PLL unit; the global reset module includes a glitch filter unit and a reset state machine unit. The method includes: based on the debugging result of the multi-protocol switching chip, determining the reset release sequence of the multi-protocol switching chip. The scheme flexibly adjusts the reset release sequence through pins, and can still ensure the normal startup of the chip when, for example, the Core PLL unit, the CMU PLL unit and the eCPU module have functional abnormalities, and can realize the initialization configuration of the chip through the eCPU or I2C, thereby improving the reliability and flexibility of the reset structure and the robustness of the chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of chip reset control, integrated circuit design and integrated circuit data processing, and in particular to a sequence-adjustable multi-protocol switching chip and a reset control method thereof, so as to effectively improve the flexibility of reset control and the robustness of the chip. Background Art

[0002] The reset module is the key module of the entire switching chip system, because the correctness of the reset control often determines whether the chip can work properly. In particular, the multi-protocol switching chip supports multiple protocols, the chip reset structure is more complex, and there are higher requirements for reset stability and reliability. Therefore, the reset control of each module in the multi-protocol switching chip is particularly important. A flexible and reliable reset structure will be an important factor in determining whether the entire switching chip can work properly.

[0003] The reset control process of the existing switching chip is based on the interdependence of the various functional modules of the entire chip during initialization. When set, each functional module triggers the reset at the same time, and when the reset is released, it is released in sequence according to the predetermined reset process. In other words, the reset process of the entire chip is fixed and cannot be adjusted. Once an abnormality occurs in a functional module and the reset initialization process cannot be adjusted, it will affect the normal operation of the chip. Summary of the invention

[0004] In view of this, in order to solve at least part of the technical problems in the above-mentioned prior art, the present invention provides a reset control method for a multi-protocol switching chip with adjustable sequence, wherein the multi-protocol switching chip includes a global reset module, a clock module, a global register module, an AXI module, a QSPI module, an I2C module, an eCPU module, a SerDes module, a switching module, a multi-protocol controller module and a power-on / hard reset module; the clock module includes a frequency divider unit, a Core PLL unit and a CMU PLL unit; the global reset module includes a glitch filter unit and a reset state machine unit;

[0005] The method comprises: determining a reset release sequence of the multi-protocol switching chip based on a debugging result of the multi-protocol switching chip, wherein the reset release sequence comprises a first reset release sequence, a second reset release sequence and a third reset release sequence;

[0006] If the debugging result is normal, configure the pins i2c_release_sel=0 and ecpu_clk_sel=0 of the multi-protocol switching chip to enter the first reset release sequence, and reset and release the multi-protocol switching chip according to the default sequence;

[0007] If the eCPU module is abnormal, the pins i2c_release_sel=1 and ecpu_clk_sel=0 of the multi-protocol switch chip are configured to enter the second reset release sequence, so that the I2C module resets and releases in advance to complete the FW loading instead of the eCPU module;

[0008] If the Core PLL unit and the CMU PLL unit cannot be locked, configure the pins i2c_release_sel=0 and ecpu_clk_sel=1 of the multi-protocol switching chip to enter the third reset release sequence, so that the eCPU module works under the reference clock, and re-powers on and resets. After it is determined that the Core PLL unit and the CMU PLL unit have timed out from locking, continue to release subsequent resets until the eCPU module is reset and released, and then reconfigure the Core PLL unit and the CMU PLL unit.

[0009] Preferably, in the reset release sequence, the reset of the frequency divider unit is first released to generate a configuration clock; then the reset of the reset state machine unit and the reset of the global register module are sequentially released; thereafter, the reset of the CMU PLL unit and the Core PLL unit are released.

[0010] Preferably, in the first reset release sequence, when the reset of the CMU PLL unit and the Core PLL unit is released, and after the CMU PLL unit and the Core PLL unit are locked, the reset of the AXI module, the QSPI module, the eCPU module, the SerDes module, the switching module and the multi-protocol controller module are released in sequence.

[0011] Preferably, in the first reset release sequence, after the reset of the multi-protocol controller module is released, the reset of the I2C module is released, and it is started to determine whether the I2C module enters the master mode;

[0012] If entering the master mode, the multi-protocol switching chip enters reconfiguration and reinitialization; if entering the slave mode, the multi-protocol switching chip completes initialization and enters the default operating state.

[0013] Preferably, in the second reset release sequence, when the reset of the CMU PLL unit and the Core PLL unit is released and after the CMU PLL unit and the Core PLL unit are locked, the AXI module, the QSPI module, and the I2C module are released in sequence;

[0014] When the I2C module completes FW loading, the reset of the eCPU module, SerDes module, switch module, and multi-protocol controller module is released in sequence;

[0015] After that, the multi-protocol switching chip completes initialization and enters the default operating state.

[0016] Preferably, in the third reset release sequence, after the reset of the CMU PLL unit and the Core PLL unit is released, after it is determined that the lock timeout of the CMU PLL unit and the Core PLL unit has occurred, the AXI module and the QSPI module are released in sequence;

[0017] After that, the eCPU module is released, and then it is determined whether the CMU PLL unit and the Core PLL unit are locked after reconfiguration and whether the FW loading is completed; if the CMU PLL unit and the Core PLL unit are locked and the FW loading is completed, the reset of the SerDes module, the switch module and the multi-protocol controller module is released in sequence;

[0018] After that, the reset of the I2C module is released, and it is started to determine whether the I2C module enters the master mode; if it enters the master mode, the multi-protocol switching chip enters reconfiguration and reinitialization; if it enters the slave mode, the multi-protocol switching chip completes initialization and enters the default operating state.

[0019] Preferably, the pins i2c_release_sel and ecpu_clk_sel of the multi-protocol switching chip act on the reset state machine unit, and the reset state machine unit controls the multi-protocol switching chip to enter a corresponding reset release sequence based on the values ​​of the pins i2c_release_sel and ecpu_clk_sel.

[0020] Preferably, before the I2C module is reset and released, the AXI module is required to configure the bus in place and all registers are configurable, and the registers include internal registers of the multi-protocol controller module.

[0021] Preferably, in the third reset release sequence, the reference clock uses a 100M reference clock signal ref_clk of the multi-protocol switching chip.

[0022] On the other hand, the present invention also provides a multi-protocol switching chip, which includes a global reset module, a clock module, a global register module, an AXI module, a QSPI module, an I2C module, an eCPU module, a SerDes module, a switching module, a multi-protocol controller module and a power-on / hard reset module; the clock module includes a frequency divider unit, a CorePLL unit and a CMU PLL unit; the global reset module includes a glitch filter unit and a reset state machine unit;

[0023] The reset state machine unit is respectively connected to the Core PLL unit, the CMU PLL unit, the global register module, the AXI module, the QSPI module, the I2C module, the eCPU module, the SerDes module, the switch module and the multi-protocol controller module;

[0024] The power-on / hard reset module is connected to the burr filtering unit, and the burr filtering unit is respectively connected to the reset state machine unit and the frequency divider unit;

[0025] The reset state machine unit realizes the control of the reset and reset release sequence of each functional module of the multi-protocol switching chip;

[0026] Based on the debugging result of the multi-protocol switching chip, the reset release sequence of the multi-protocol switching chip is determined through the pins i2c_release_sel and ecpu_clk_sel; the pins i2c_release_sel and ecpu_clk_sel act on the reset state machine unit.

[0027] Preferably, the clock module is used to generate the working clock required by each module;

[0028] The global register module is used to store registers of the multi-protocol switching chip; here, preferably, the global register stores key registers related to the initialization configuration of the multi-protocol switching chip and debug registers (i.e., debug registers) used for debugging the multi-protocol switching chip;

[0029] The AXI module is the configuration bus of the multi-protocol switch chip, which completes the reading and writing of the configuration registers of the multi-protocol switch chip;

[0030] The QSPI module and I2C module are configuration management interfaces, serving as channels for external control and management of multi-protocol switching chips;

[0031] The eCPU module is an embedded CPU that implements FW loading;

[0032] The SerDes module is a serializer-deserializer;

[0033] The switching module implements the scheduling and forwarding of input data packets from the input port buffer to the destination port buffer;

[0034] The multi-protocol controller module includes RapidIO controller, FC controller, Ethernet controller and PCIe controller.

[0035] Compared with the prior art, this solution has at least the following advantages:

[0036] 1. This solution can flexibly adjust the reset release order through pins, and can still ensure the normal startup of the chip when the Core PLL unit, CMU PLL unit and eCPU module have functional abnormalities, thereby improving the reliability and flexibility of the reset structure.

[0037] 2. This solution can achieve the purpose of initializing and configuring the entire chip through both eCPU and I2C by adjusting the reset release sequence, thereby improving the robustness of the entire chip;

[0038] 3. This solution can readjust the reset release sequence of the Core PLL and CMU PLL units through the eCPU configuration, and can still be relocked when the Core PLL and CMU PLL units have functional abnormalities. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A reset structure of a multi-protocol switching chip according to an embodiment of the present invention;

[0041] Figure 2 This is a full chip reset initialization flow chart of an embodiment of the present invention;

[0042] Figure 3 A flow chart of a reset release sequence according to an embodiment of the present invention;

[0043] Figure 4 This is a flow chart of reset release sequence 2 of an embodiment of the present invention;

[0044] Figure 5 FIG. 3 is a flow chart of the reset release sequence according to an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.

[0046] Those skilled in the art should know that the following specific embodiments or specific implementations are a series of optimized settings listed by the present invention to further explain the specific content of the invention, and these settings can be combined or used in association with each other, unless the present invention clearly states that some or a specific embodiment or implementation cannot be associated or used together with other embodiments or implementations. At the same time, the following specific embodiments or implementations are only used as the most optimized settings, and are not to be understood as limiting the scope of protection of the present invention.

[0047] In view of the problems existing in the prior art, the purpose of this solution is to provide a reset control solution and chip for a multi-protocol switching chip, aiming to provide a reset processing mechanism with adjustable reset sequence to meet the requirements of ensuring that the multi-protocol switching chip can start and work normally under different abnormal scenarios, thereby effectively improving the flexibility and robustness of the chip.

[0048] In one embodiment, Figure 1 As shown, the overall reset structure of the multi-protocol switching chip includes a global reset module, a clock module, a global register module, an AXI module, a QSPI module, an I2C module, an eCPU module, a SerDes module, a switching module, a multi-protocol controller module, and a power-on / hard reset module.

[0049] The global reset module includes a glitch filter unit (i.e. Figure 1 The filter_glitch in the chip and the reset state machine unit, where the glitch filter unit implements glitch filtering for the power-on / hard reset module, and the reset state machine unit implements the control of the reset and reset release sequence of each functional module of the whole chip.

[0050] The clock module includes a frequency divider unit, a Core PLL unit and a CMU PLL unit, which are used to generate the working clock required by each functional module of the whole chip. The global register module is used to store the registers of the whole chip. Here, preferably, the global register stores the key registers related to the initialization configuration of the multi-protocol switching chip and the debug registers used for debugging the multi-protocol switching chip. The AXI module is a global configuration bus, which completes the reading and writing of the configuration registers of the whole chip. The QSPI module and the I2C module are configuration management interfaces, which serve as channels for the external main control module to control and manage the whole chip. The eCPU module is an embedded CPU, which mainly realizes the loading of chip firmware FW (i.e. firmware). The SerDes module is a serializer deserializer that supports four protocols: RapidIO, FC, PCIe and Ethernet. The switching module mainly realizes the scheduling and forwarding of input data packets from the input port cache to the destination port cache. The multi-protocol controller module includes a RapidIO controller, a FC controller, an Ethernet controller and a PCIe controller.

[0051] The pins i2c_release_sel and ecpu_clk_sel of the multi-protocol switching chip act on the reset state machine unit. The reset state machine unit controls the multi-protocol switching chip to enter a corresponding reset release sequence based on the values ​​of the pins i2c_release_sel and ecpu_clk_sel.

[0052] For the full chip initialization process, in terms of execution order, when the reset is set, each functional module in the reset range triggers reset at the same time. In one embodiment, the reset release order is determined according to the mutual dependence of each functional module during initialization. After the power-on / hard reset module enters the power-on reset, the glitch filter unit (i.e. Figure 1 filter_glitch in the power-on reset signal to filter the glitch, and then enter the reset release process, combined with Figure 1 , Figure 2 As shown, in this embodiment, the main dependencies between modules and reset release restrictions are as follows:

[0053] 1. Configuration clock is a necessary condition for all modules to work, so first release the reset divider_rst_n of the divider unit in the clock module to generate the configuration clock;

[0054] 2. After the configuration clock is in place, the reset state machine unit mstate_rst_n is released, and the reset state machine unit releases the reset of each module of the whole chip in sequence according to the preset order;

[0055] 3. Most of the configuration parameters required for module initialization are stored in global registers, so the global register module resets cfg_rst_n and then releases it;

[0056] 4. The reference clock used by SerDes is provided by the CMU PLL unit, and the clocks required by other modules of the chip are provided by the CorePLL unit. Therefore, the reset cmu_pll_rst_n of the CMU PLL unit and the reset core_pll_rst_n of the Core PLL unit are released immediately;

[0057] 5. After the Core PLL unit and CMU PLL unit are locked, namely cmu_pll_locked and core_pll_locked, release the reset axi_rst_n and qspi_rst_n of the AXI module configuration bus and the QSPI module.

[0058] 6. After the reset of the QSPI module and the AXI module are released, the eCPU module is released. This is because if the reset of the eCPU module, the AXI module, and the QSPI module are released at the same time, the eCPU module will start reading data as soon as the reset is released, and the configuration bus will be hung. This is because although the reset of the AXI module and the QSPI module is released, it is not ready to pass the read request. Therefore, after the reset of the AXI module and the QSPI module is released, the reset ecpu_rst_n of the eCPU module is released after a period of time (for example, 10,000 clock cycles). At this time, the eCPU can read the FW (firmware) from the flash outside the chip and load it into the SerDesmemory. In addition, if the Core PLL unit and the CMU PLL unit cannot be locked in the default configuration, it is necessary to control the eCPU through the pin to select the reference clock ref_clk of the full chip 100M and re-power it on. The Core PLL unit and the CMU PLL unit can be reconfigured here to lock them.

[0059] 7. After cmu_pll_locked, core_pll_locked and fw_load_complete, the SerDes module MCU reset reset_mcu_n can be released. FW will control the triggering and release of the internal reset of the SerDes module;

[0060] 8. Before the multi-protocol controller module responds to requests and performs link building operations, the SerDes module must be in place, so the SerDes module reset must be released before the multi-protocol controller module reset. Since there is no special requirement for the reset and release order of the switch module and the multi-protocol controller module, the switch module reset sw_rst_n and the multi-protocol controller module reset mac_rst_n are released at the same time after the SerDes module is in place.

[0061] 9. Before the I2C module reset is released, the AXI module configuration bus is required to be in place, and all registers can be configured, including the internal registers of each protocol controller. Therefore, the I2C module reset i2c_rst_n is released after the reset of each protocol controller is released. At this time, the I2C module bootloader can be used to configure the full chip registers, or the I2C module can be put into slave mode, and the chip is initialized according to the default configuration.

[0062] According to the main dependencies between modules and reset release restrictions, the full chip reset initialization process is designed as follows: Figure 2 As shown, the process can adjust the reset release sequence of the corresponding module according to the pin control. In practical applications, there are mainly three situations. We use different pin control methods to implement the reset release sequence execution of three different situations. The following, combined with the three pin control methods, the reset release sequence control method under each method is described in detail:

[0063] 1. Combination Figure 3 In one embodiment, in the reset release sequence 1, the pins i2c_release_sel=0 and ecpu_clk_sel=0 are set. This sequence is the default power-on sequence, and all modules of the whole chip can start normally without adjusting the reset release sequence. That is, after power-on, the Core PLL unit and the CMU PLL unit can be locked normally according to the default configuration. After the reset state machine unit detects core_pll_locked and cmu_pll_locked, it automatically releases the reset of subsequent modules, and the eCPU module functions normally and can load the SerDes firmware (load FW) normally.

[0064] The reset process of reset release sequence 1 can be set as follows: After the power-on reset is started, that is, after the power-on / hard reset module sends the power-on reset start signal, the glitch filter unit (that is, Figure 1The filter_glitch in the filter module performs a glitch filtering operation on the signal, and the signal after glitch filtering is sent to the divider unit and reset state machine unit in the clock module. Next, release the reset divider_rst_n of the divider unit in the clock module to generate the configuration clock; after that, delay for a period of time, for example, it can be set to 9T, T represents the clock cycle, for example, T=20ns, and then release the reset mstate_rst_n of the reset state machine unit. After the reset of mstate_rst_n is released, set an appropriate delay, such as 32T, and then proceed to the next step; next, release the global register reset cfg_rst_n. After this step is released, set a delay, such as 32T, and then proceed to the next step; thereafter, release the reset cmu_pll_rst_n of the CMU PLL unit and the reset core_pll_rst_n of the Core PLL unit. The reference clock used by the SerDes is provided by the CMU PLL unit, and the clocks required by other modules of the chip are provided by the Core PLL unit; etc. The Core PLL unit, CMU After the PLL unit is locked, that is, cmu_pll_locked and core_pll_locked, the reset axi_rst_n of the AXI module configuration bus and the reset qspi_rst_n of the QSPI module are released. When judging whether to lock, the reset state machine unit monitors whether the cmu_pll_locked and core_pll_locked signals are pulled high (that is, locked when equal to 1) to determine whether the lock is completed.

[0065] Next, a delay is set, for example, it can be set to 10000T (here, a counter can be set inside the reset state machine unit to determine whether the delay reaches 10000T as a condition for determination), and then the reset ecpu_rst_n of the eCPU module is released. At this time, the eCPU can read the FW (firmware) from the flash outside the chip and load it into the SerDesmemory, waiting for the FW to be loaded (i.e. Figure 3fw_load_complete in is pulled high, that is, the signal is equal to 1), the SerDes module MCU reset reset_mcu_n is released, the firmware controls the triggering and release of the internal reset of the SerDes module, and sets a delay, such as 32T thereafter; thereafter, the reset sw_rst_n of the switching module and the reset mac_rst_n of the multi-protocol controller module are released at the same time, and a delay, such as 32T, is set; then, the reset i2c_rst_n of the I2C module is released, at this time, the full chip register can be configured by the I2C module bootloader, or the I2C module can be made to enter the slave mode, and the chip is initialized according to the default configuration. In this embodiment, it can be determined whether the I2C enters the master mode (i.e., the master boot mode) at this time. If it enters the master mode, the chip enters the reconfiguration and is reinitialized. If it enters the slave mode, the chip enters the default running state after the initialization is completed, completing the release process of the reset release sequence one.

[0066] It should be noted that the above-mentioned reset release sequence 1 is the default reset release sequence in this embodiment, which is mainly used for execution when the chip debugging is fault-free. It is a preferred implementation method. This sequence can be adjusted according to the reset release requirements of the chip or the functional requirements in actual applications.

[0067] 2. Combination Figure 4 In another embodiment, the reset release sequence 2 will make the pin i2c_release_sel=1, ecpu_clk_sel=0. This sequence is when the eCPU module works abnormally after power-on and cannot load the SerDes firmware (loadFW). At this time, we can set the pin i2c_release_sel to 1 to release the I2C module reset in advance, and use I2C to replace the eCPU to complete the SerDes firmware loading (load FW), ensuring that the chip can start normally. In this case, we find that the eCPU module is working abnormally by judging the eCPU abnormality in the multi-protocol switching chip, that is, the fw_load_complete register is always 0, which means that the SerDes firmware loading failed, that is, the eCPU module is working abnormally. At this time, we use the pin setting to execute the reset release sequence 2.

[0068] The reset process of reset release sequence 2 can be set as follows: After the power-on reset is started, that is, after the power-on / hard reset module sends the power-on reset start signal, the glitch filter unit (that is, Figure 1The filter_glitch in the filter module is used to filter the glitch of the signal, and the signal after filtering the glitch is sent to the divider unit and the reset state machine unit in the clock module. Next, release the reset divider_rst_n of the divider unit in the clock module to generate the configuration clock; then delay for a period of time, for example, it can be set to 9T, T represents the clock cycle, for example, T=20ns, and then release the reset mstate_rst_n of the reset state machine unit. After the reset of mstate_rst_n is released, set an appropriate delay, such as 32T, and then proceed to the next step; then, release the global register reset cfg_rst_n. After this step is released, set a delay, such as 32T, and then proceed to the next step; thereafter, release the reset cmu_pll_rst_n of the CMU PLL unit and the reset core_pll_rst_n of the Core PLL unit; wait for the Core PLL and CMU After the PLL unit is locked, that is, cmu_pll_locked and core_pll_locked, the reset axi_rst_n of the AXI module configuration bus, the reset qspi_rst_n of the QSPI module, and the reset i2c_rst_n of the I2C module are released. When judging whether to lock, the reset state machine unit monitors whether the cmu_pll_locked and core_pll_locked signals are pulled high (that is, locked when equal to 1) to determine whether the lock is completed.

[0069] After that, it is determined whether the I2C FW loading is completed. If the loading is completed, a delay is set, for example, it can be set to 10000T, and then the reset ecpu_rst_n of the eCPU module is released. At this time, the eCPU can read the FW (firmware) from the off-chip flash and load it into the SerDes memory, waiting for the FW to be loaded (i.e. Figure 4 fw_load_complete in the MCU reset_mcu_n of the SerDes module is released, and the FW will control the triggering and release of the internal reset of the SerDes module, and set a delay, such as 32T; thereafter, the reset sw_rst_n of the switch module and the reset mac_rst_n of the multi-protocol controller module are released at the same time, and a delay, such as 32T, is set; thereafter, the chip initialization is completed and enters the default operating state. So far, the reset release sequence when the eCPU module works abnormally is completed.

[0070] 3. Combination Figure 5In one embodiment, the reset release sequence three can be set as follows: pin i2c_release_sel=0, ecpu_clk_sel=1. This sequence is mainly for the following situations: after power-on, it is found that the Core PLL and CMU PLL units cannot be locked according to the default configuration, and the CMU PLL unit cannot output the 312.5M reference clock required by the SerDes module, resulting in the SerDes module being unable to initialize normally, and the Core PLL unit cannot output the working clock required by the system, including the working clock required by the eCPU module. At this time, because the eCPU module has no working clock, the chip cannot be configured and the SerDes FW cannot be loaded normally. At this time, we can set the pin i2c_release_sel to 0 and ecpu_clk_sel to 1 to make the eCPU module work under the 100M reference clock of the chip and perform power-on reset again. At this time, since the CMU PLL and Core PLL are locked without unit method, the reset state machine unit can release the subsequent reset by judging the timeout of core_pll_locked and cmu_pll_locked (that is, waiting for 4ms). After the ecpu_rst_n reset is released, the Core PLL and CMU PLL units are first reconfigured through the eCPU module, and then the SerDes FW is loaded through the eCPU module. After the Core PLL unit and CMU PLL unit are relocked and the SerDes FW is loaded, the reset of subsequent modules is released, so that the multi-protocol SerDes module can complete the initialization normally, thereby ensuring that the chip can start normally. Here, the determination that the Core PLL and CMU PLL units cannot be locked can preferably also be determined by setting register reading in the multi-protocol switching chip, that is, by reading the register to check whether core_pll_locked and cmu_pll_locked are 1, 1 represents locked, and 0 represents unlocked.

[0071] Further preferably, the reset state machine unit determines that core_pll_locked and cmu_pll_locked time out, taking waiting for 4ms as an example, and is specifically executed in the following manner: a counter is designed inside the reset state machine unit, and the reset state machine unit monitors whether the counter reaches 4ms for judgment. If before the counter reaches 4ms, core_pll_locked and cmu_pll_locked are both equal to 1, it means that the CMU PLL unit and the Core PLL unit can be locked normally; if after the counter reaches 4ms, core_pll_locked=1, cmu_pll_locked=0, it means that the Core PLL unit is normal and the CMU PLL unit is abnormal, and the subsequent eCPU module only needs to reconfigure the CMU PLL unit; if after the counter reaches 4ms, core_pll_locked=0, cmu_pll_locked=1, it means that the Core PLL unit is abnormal and the CMU PLL unit is normal, and the subsequent eCPU module only needs to reconfigure the Core PLL unit; if core_pll_locked = 0 and cmu_pll_locked = 0 after the counter reaches 4ms, it means that both the Core PLL unit and the CMU PLL unit are abnormal. The subsequent eCPU module needs to reconfigure the CorePLL unit and the CMU PLL unit.

[0072] The reset process of reset release sequence three can be set as follows: After the power-on reset is started, that is, after the power-on / hard reset module sends the power-on reset start signal, the glitch filter unit (that is, Figure 1The signal after glitch filtering is sent to the divider unit and reset state machine unit in the clock module. Next, release the reset divider_rst_n of the divider unit in the clock module to generate the configuration clock; then delay for a period of time, for example, it can be set to 9T, T represents the clock cycle, for example, T=20ns, and then release the reset mstate_rst_n of the reset state machine unit. After the reset of mstate_rst_n is released, set an appropriate delay, such as 32T, and then proceed to the next step; then, release the global register reset cfg_rst_n. After this step is released, set a delay, such as 32T, and then proceed to the next step; then, release the reset cmu_pll_rst_n of the CMU PLL unit and the reset core_pll_rst_n of the Core PLL unit; at this time, since the Core PLL unit and the CMU PLL unit cannot be locked according to the default configuration, we set a delay, such as 4ms (that is, the Core PLL and CMU PLL lock timeout), and then release the reset axi_rst_n of the AXI module configuration bus and the reset qspi_rst_n of the QSPI module.

[0073] After that, set the pin i2c_release_sel=0 and set a delay, for example, 10000T; after that, release the reset ecpu_rst_n of the eCPU module; then, determine whether the eCPU reconfiguration PLL and FW loading are completed (this judgment process can be completed by the judgment of the reset state machine unit, that is, determine whether the conditions of core_pll_locked=1, cmu_pll_locked=1 and fw_load_complete=1 are met). If completed, the Core PLL unit and CMU PLL unit can be locked, that is, cmu_pll_locked, core_pll_locked, and FW loading is completed (that is, Figure 5fw_load_complete in ). Thereafter, the SerDes module MCU reset reset_mcu_n is released, and the FW controls the triggering and release of the internal reset of the SerDes module, and sets a delay, such as 32T, thereafter; thereafter, the reset sw_rst_n of the switch module and the reset mac_rst_n of the multi-protocol controller module are released at the same time, and a delay, such as 32T, is set; then, the reset i2c_rst_n of the I2C module is released, and the full chip register can be configured by the I2C module bootloader at this time, or the I2C module can be made to enter the slave mode, and the chip is initialized according to the default configuration. In this embodiment, it can be determined whether the I2C enters the master mode (i.e., the master boot mode) at this time. If it enters the master mode, the chip enters the reconfiguration and is reinitialized. If it enters the slave mode, the chip enters the default running state after the initialization is completed, and the reset release process when the Core PLL and CMUPLL cannot be locked according to the default configuration after power-on is completed.

[0074] In addition, the present scheme can be implemented in another embodiment by means of a device, which may include a corresponding module for performing each or several steps in each of the above-mentioned embodiments. Therefore, each step or several steps of each of the above-mentioned embodiments may be performed by a corresponding module, and the device may include one or more modules in these modules. A module may be one or more hardware modules specifically configured to perform the corresponding steps, or implemented by a processor configured to perform the corresponding steps, or stored in a computer-readable medium for implementation by a processor, or implemented by some combination. The device may be implemented using a bus architecture. The bus architecture may include any number of interconnected buses and bridges, depending on the specific application and overall design constraints of the hardware.

[0075] Any process or method description in the flow chart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiment of the present scheme includes other implementations, wherein the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a technician in the technical field of the embodiment of the present scheme. The processor performs the various methods and processes described above. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods by any other appropriate means (e.g., by means of firmware).

[0076] The logic and / or steps represented in the flowchart or otherwise described herein may be embodied in any readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions on an instruction execution system, apparatus, or device), or in combination with such instruction execution systems, apparatuses, or devices.

[0077] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for controlling the reset of a multi-protocol switching chip with adjustable sequence, characterized in that: The multi-protocol switching chip includes a global reset module, a clock module, a global register module, an AXI module, a QSPI module, an I2C module, an eCPU module, a SerDes module, a switching module, a multi-protocol controller module and a power-on / hard reset module; the clock module includes a frequency divider unit, a Core PLL unit and a CMU PLL unit; the global reset module includes a glitch filter unit and a reset state machine unit; The glitch filtering unit implements glitch filtering for the power-on / hard reset module, and the reset state machine unit implements the control of the reset and reset release sequence of each functional module of the whole chip; The clock module includes a frequency divider unit, a Core PLL unit, and a CMU PLL unit, which are used to generate the working clock required by each functional module of the full chip; The global register module is used to store the registers of the entire chip; the AXI module is the global configuration bus, which completes the reading and writing of the configuration registers of the entire chip; The QSPI module and I2C module are configuration management interfaces, serving as channels for the external master control module to control and manage the entire chip; The eCPU module is an embedded CPU that implements chip firmware loading; the SerDes module is a serializer-deserializer; The switching module implements the scheduling and forwarding of input data packets from the input port buffer to the destination port buffer; Multi-protocol controller modules include RapidIO controller, FC controller, Ethernet controller and PCIe controller; The method comprises: determining a reset release sequence of the multi-protocol switching chip based on a debugging result of the multi-protocol switching chip, wherein the reset release sequence comprises a first reset release sequence, a second reset release sequence and a third reset release sequence; If the debugging result is normal, configure the pins i2c_release_sel=0 and ecpu_clk_sel=0 of the multi-protocol switching chip to enter the first reset release sequence, and reset and release the multi-protocol switching chip according to the default sequence; If the eCPU module is abnormal, the pins i2c_release_sel=1 and ecpu_clk_sel=0 of the multi-protocol switch chip are configured to enter the second reset release sequence, so that the I2C module resets and releases in advance to complete the FW loading instead of the eCPU module; If the Core PLL unit and the CMU PLL unit cannot be locked, the pins i2c_release_sel=0 and ecpu_clk_sel=1 of the multi-protocol switching chip are configured to enter the third reset release sequence, so that the eCPU module works under the reference clock, and re-powers on and resets. After the Core PLL unit and the CMU PLL unit are determined to have timed out from locking, the subsequent resets are continued to be released until the reset of the eCPU module is released, and then the Core PLL unit and the CMU PLL unit are reconfigured; In the reset release sequence, the reset of the frequency divider unit is first released to generate the configuration clock; then the reset of the reset state machine unit and the reset of the global register module are released in sequence; thereafter, the reset of the CMU PLL unit and the Core PLL unit are released; In the second reset release sequence, when the reset of the CMU PLL unit and the Core PLL unit is released, and after the CMU PLL unit and the Core PLL unit are locked, the AXI module, the QSPI module, and the I2C module are released in sequence; When the I2C module completes FW loading, the reset of the eCPU module, SerDes module, switch module, and multi-protocol controller module is released in sequence; After that, the multi-protocol switching chip completes initialization and enters the default operating state; In the third reset release sequence, after the reset of the CMU PLL unit and the Core PLL unit is released, after it is determined that the lock of the CMUPLL unit and the Core PLL unit has timed out, the AXI module and the QSPI module are released in sequence; After that, the eCPU module is released, and then it is determined whether the CMU PLL unit and the Core PLL unit are locked after reconfiguration and whether the FW loading is completed; if the CMU PLL unit and the Core PLL unit are locked and the FW loading is completed, the reset of the SerDes module, the switch module and the multi-protocol controller module is released in sequence; After that, the reset of the I2C module is released, and it is started to determine whether the I2C module enters the master mode; if it enters the master mode, the multi-protocol switching chip enters reconfiguration and reinitialization; if it enters the slave mode, the multi-protocol switching chip completes initialization and enters the default operating state.

2. The method according to claim 1, characterized in that In the first reset release sequence, when the reset of the CMU PLL unit and the Core PLL unit is released and after the CMU PLL unit and the Core PLL unit are locked, the reset of the AXI module, the QSPI module, the eCPU module, the SerDes module, the switch module and the multi-protocol controller module are released in sequence.

3. The method according to claim 1, characterized in that: In the first reset release sequence, after the reset of the multi-protocol controller module is released, the reset of the I2C module is released, and it is started to determine whether the I2C module enters the master mode; If entering the master mode, the multi-protocol switching chip enters reconfiguration and reinitialization; if entering the slave mode, the multi-protocol switching chip completes initialization and enters the default operating state.

4. The method according to claim 1, characterized in that: The pins i2c_release_sel and ecpu_clk_sel of the multi-protocol switching chip act on the reset state machine unit, and the reset state machine unit controls the multi-protocol switching chip to enter a corresponding reset release sequence based on the values ​​of the pins i2c_release_sel and ecpu_clk_sel.

5. The method according to claim 1, characterized in that Before the I2C module is reset and released, the AXI module is required to configure the bus in place and all registers are configurable, including the internal registers of the multi-protocol controller module.

6. The method according to claim 1, characterized in that In the third reset release sequence, the reference clock uses the 100M reference clock signal ref_clk of the multi-protocol switching chip.

7. Multi-protocol switching chip, characterized in that: The multi-protocol switching chip includes a global reset module, a clock module, a global register module, an AXI module, a QSPI module, an I2C module, an eCPU module, a SerDes module, a switching module, a multi-protocol controller module and a power-on / hard reset module; the clock module includes a frequency divider unit, a Core PLL unit and a CMU PLL unit; the global reset module includes a glitch filter unit and a reset state machine unit; The reset state machine unit is respectively connected to the Core PLL unit, the CMU PLL unit, the global register module, the AXI module, the QSPI module, the I2C module, the eCPU module, the SerDes module, the switch module and the multi-protocol controller module; The power-on / hard reset module is connected to the burr filtering unit, and the burr filtering unit is respectively connected to the reset state machine unit and the frequency divider unit; The reset state machine unit realizes the control of the reset and reset release sequence of each functional module of the multi-protocol switching chip; Based on the debugging result of the multi-protocol switching chip, the reset release order of the multi-protocol switching chip is determined through the pins i2c_release_sel and ecpu_clk_sel; the pins i2c_release_sel and ecpu_clk_sel act on the reset state machine unit; The glitch filtering unit implements glitch filtering for the power-on / hard reset module, and the reset state machine unit implements the control of the reset and reset release sequence of each functional module of the whole chip; The clock module includes a frequency divider unit, a Core PLL unit, and a CMU PLL unit, which are used to generate the working clock required by each functional module of the full chip; The global register module is used to store the registers of the entire chip; the AXI module is the global configuration bus, which completes the reading and writing of the configuration registers of the entire chip; The QSPI module and I2C module are configuration management interfaces, serving as channels for the external master control module to control and manage the entire chip; The eCPU module is an embedded CPU that implements chip firmware loading; the SerDes module is a serializer-deserializer; The switching module implements the scheduling and forwarding of input data packets from the input port buffer to the destination port buffer; the multi-protocol controller module includes RapidIO controller, FC controller, Ethernet controller and PCIe controller; The reset release sequence includes a first reset release sequence, a second reset release sequence and a third reset release sequence; If the debugging result is normal, configure the pins i2c_release_sel=0 and ecpu_clk_sel=0 of the multi-protocol switching chip to enter the first reset release sequence, and reset and release the multi-protocol switching chip according to the default sequence; If the eCPU module is abnormal, the pins i2c_release_sel=1 and ecpu_clk_sel=0 of the multi-protocol switch chip are configured to enter the second reset release sequence, so that the I2C module resets and releases in advance to complete the FW loading instead of the eCPU module; If the Core PLL unit and the CMU PLL unit cannot be locked, the pins i2c_release_sel=0 and ecpu_clk_sel=1 of the multi-protocol switching chip are configured to enter the third reset release sequence, so that the eCPU module works under the reference clock, and re-powers on and resets. After the Core PLL unit and the CMU PLL unit are determined to have timed out from locking, the subsequent resets are continued to be released until the reset of the eCPU module is released, and then the Core PLL unit and the CMU PLL unit are reconfigured; In the reset release sequence, the reset of the frequency divider unit is first released to generate the configuration clock; then the reset of the reset state machine unit and the reset of the global register module are released in sequence; thereafter, the reset of the CMU PLL unit and the Core PLL unit are released; In the second reset release sequence, when the reset of the CMU PLL unit and the Core PLL unit is released, and after the CMU PLL unit and the Core PLL unit are locked, the AXI module, the QSPI module, and the I2C module are released in sequence; When the I2C module completes FW loading, the reset of the eCPU module, SerDes module, switch module, and multi-protocol controller module is released in sequence; After that, the multi-protocol switching chip completes initialization and enters the default operating state; In the third reset release sequence, after the reset of the CMU PLL unit and the Core PLL unit is released, after it is determined that the lock of the CMUPLL unit and the Core PLL unit has timed out, the AXI module and the QSPI module are released in sequence; After that, the eCPU module is released, and then it is determined whether the CMU PLL unit and the Core PLL unit are locked after reconfiguration and whether the FW loading is completed; if the CMU PLL unit and the Core PLL unit are locked and the FW loading is completed, the reset of the SerDes module, the switch module and the multi-protocol controller module is released in sequence; After that, the reset of the I2C module is released, and it is started to determine whether the I2C module enters the master mode; if it enters the master mode, the multi-protocol switching chip enters reconfiguration and reinitialization; if it enters the slave mode, the multi-protocol switching chip completes initialization and enters the default operating state.

Citation Information

Patent Citations

  • Module reset circuit, reset module and chip reset architecture of system on chip

    CN115309248A

  • Low-power-consumption design structure based on server management chip and implementation method of low-power-consumption design structure

    CN116909381A