Chip pin configuration method, device and system and power management chip
By continuously detecting peripheral hardware circuits and loading default values into chip registers in case of failure, the software configuration of power management chip pins is realized, solving the problem of insufficient robustness in the existing technology, and improving the reliability and flexibility of the chip .
Patent Information
- Application Number
- CN202410949408.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-08
AI Technical Summary
When the peripheral hardware circuit or internal detection circuit failure occurs, the existing power management chips are prone to state machine jamming, lacking flexible and reliable escape means, resulting in insufficient robustness.
By continuously detecting peripheral hardware circuits, generating detection results and loading the default value of the internal storage register to the chip register in case of a failure, the functional configuration of the pin is realized in software configuration, and the robustness of the pin configuration is improved.
When a hardware configuration fails, the software configuration ensures the normal operation of the pin function, avoids the state machine from being stuck, and improves the robustness and reliability of the chip.
Smart Images

Figure CN118916223A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of integrated circuit technology, and in particular to a chip pin configuration method, device, system and power management chip. Background Art
[0002] Modern power management chips have a variety of application scenarios and solutions, and require that parameters such as output voltage and operating frequency can be freely configured, which places high demands on the chip's pin configuration circuit and system. For use scenarios such as servers and base stations, higher robustness requirements are placed on chip operation. In high-reliability, complex and diverse application scenarios, the first thing that needs to be guaranteed is the high-reliability configuration of the chip pin function.
[0003] The pin function configuration of existing power management chips usually depends on peripheral hardware circuits and internal detection circuits. When the peripheral hardware circuits or internal detection circuits fail, the state machine may become stuck. There is a lack of flexible and free reliable escape methods, and it is difficult to ensure its robustness. Summary of the invention
[0004] In view of the above problems, the embodiments of the present disclosure provide a chip pin configuration method, device, system and power management chip, which can improve the robustness of the pin configuration.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for configuring the pins of a chip, wherein the chip is connected to a peripheral hardware circuit.
[0006] The method comprises:
[0007] The peripheral hardware circuit is continuously detected until the detection ends when a preset condition is met. A detection result is generated, wherein the detection result includes a fault identification signal, and the fault identification signal is used to indicate whether a hardware configuration circuit has a fault, and the hardware configuration circuit includes the peripheral hardware circuit and the detection circuit. When the fault identification signal is a fault signal, a default value stored in an internal storage register is loaded to a corresponding chip register to configure a corresponding function to the pin, wherein the chip register includes an address register and / or a phase register.
[0008] In some embodiments of the present disclosure, the preset condition is that the number of detections of the peripheral hardware circuit reaches a preset number, or configuration information corresponding to the peripheral hardware circuit is detected.
[0009] In some embodiments of the present disclosure, the detection result also includes a configuration completion identification signal and a configuration fault identification signal, wherein the configuration completion identification signal is used to indicate whether the peripheral hardware circuit has been detected within the preset number of times, and the configuration fault identification signal is used to indicate whether the peripheral hardware circuit is configured correctly.
[0010] The pin configuration method further includes:
[0011] A fault location of the hardware configuration circuit is determined according to the configuration completion identification signal and the configuration fault identification signal.
[0012] In some embodiments of the present disclosure, determining the fault location of the hardware configuration circuit according to the configuration completion identification signal and the configuration fault identification signal includes:
[0013] When the configuration completion identification signal is an incomplete signal, it is determined that the detection circuit fails; when the configuration fault identification signal is a configuration error signal, it is determined that the peripheral hardware circuit fails.
[0014] In some embodiments of the present disclosure, the pin configuration method further includes:
[0015] When the configuration completion identification signal is a completed signal and the configuration fault identification signal is a configuration correct signal, the configuration information is loaded into the corresponding chip register to configure the corresponding function to the pin.
[0016] In some embodiments of the present disclosure, generating a detection result includes:
[0017] The configuration completion identification signal is determined according to the number of detections and whether the configuration information is detected; the configuration fault identification signal is determined according to the configuration information; and the fault identification signal is determined according to the configuration completion identification signal and the configuration fault identification signal.
[0018] In some embodiments of the present disclosure, the pin configuration method further includes:
[0019] Generates a configuration complete signal.
[0020] In a second aspect, an embodiment of the present disclosure provides a pin configuration device for a chip, wherein the chip is connected to a peripheral hardware circuit.
[0021] The pin configuration device comprises:
[0022] The detection circuit is used to continuously detect the peripheral hardware circuit until the detection ends when a preset condition is met.
[0023] A generation module is used to generate a detection result, wherein the detection result includes a fault identification signal, and the fault identification signal is used to indicate whether a hardware configuration circuit has a fault, and the hardware configuration circuit includes the peripheral hardware circuit and the detection circuit.
[0024] A configuration module is used to load the default value stored in the internal storage register to the corresponding chip register when the fault identification signal is a fault signal, so as to configure the corresponding function to the pin; wherein the chip register includes an address register and / or a phase register.
[0025] In a third aspect, an embodiment of the present disclosure provides a chip pin configuration system, comprising: a peripheral hardware circuit; an internal storage register for storing default values; a chip register for storing the default values when the fault identification signal is a fault signal; and a pin configuration device for executing the steps of any method provided in the first aspect.
[0026] In a fourth aspect, an embodiment of the present disclosure provides a power management chip, which is connected to a peripheral hardware circuit.
[0027] The power management chip comprises:
[0028] Pin; an internal storage register for storing a default value; a chip register for storing the default value when the fault identification signal is a fault signal; a pin configuration device for executing the steps of any method provided in the first aspect.
[0029] In the technical solution of the embodiment of the present disclosure, the detection is terminated by continuously detecting the peripheral hardware circuit until the preset conditions are met, and a detection result is generated. When the fault identification signal in the detection result is a fault signal, the default value stored in the internal storage register is loaded to the corresponding chip register to configure the corresponding function to the pin. When a fault occurs in the hardware configuration mode of the pin, the default value stored in the internal storage register can be used as the pin configuration information to implement the functional configuration of the pin in a software configuration manner, thereby improving the robustness of the pin configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 A schematic diagram of a pin configuration method provided in an embodiment of the present disclosure;
[0032] Figure 2A flowchart of another pin configuration method provided by an embodiment of the present disclosure;
[0033] Figure 3 A waveform diagram of a normal read configuration of address information provided in an embodiment of the present disclosure;
[0034] Figure 4 A waveform diagram of a timeout for configuring read of address information provided in an embodiment of the present disclosure;
[0035] Figure 5 A waveform diagram of an address information configuration read error provided by an embodiment of the present disclosure;
[0036] Figure 6 A schematic diagram of the structure of a pin configuration device provided in an embodiment of the present disclosure;
[0037] Figure 7 A schematic diagram of the structure of a pin configuration system provided by an embodiment of the present disclosure;
[0038] Figure 8 A schematic diagram of the structure of a power management chip provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field of the present disclosure; the terms used in the specification disclosed herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure; the terms "including" and "having" in the specification, claims and accompanying drawings of the present disclosure and any variations thereof are intended to cover non-exclusive inclusions.
[0041] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present disclosure. The appearance of the phrase "embodiment" in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0042] In addition, the terms "first", "second", etc. in the specification and claims of the present disclosure or the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order, and may explicitly or implicitly include one or more of the features.
[0043] In the description of the present disclosure, unless otherwise clearly specified and limited, the term "electrical connection" should be understood in a broad sense. For example, the "electrical connection" of a circuit structure can be a direct connection or an indirect connection through at least one intermediate element, as long as the circuit is connected. It can also be internal connection between two elements.
[0044] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0045] In the description of the present disclosure, unless otherwise specified, "plurality" and "at least two" mean more than two (including two), and similarly, "multiple groups" and "at least two groups" mean more than two groups (including two).
[0046] In order to enable those skilled in the art to better understand the solution of the present disclosure, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0047] The chip includes multiple functional modules and multiple pins. Different functional modules are led out from the inside of the chip through different pins, so that different functions can be realized through different pins. For example, the power pin can receive an external power supply and provide the voltage and current required by the chip, and the enable pin can receive an enable signal to make the chip work or shut down. Whether the pins are correctly configured directly affects whether the chip can work normally, especially in usage scenarios such as servers and base stations, where the robustness of the pin configuration is required to be high.
[0048] The chip is usually connected to a peripheral hardware circuit that can provide configuration information for each pin. The chip includes a detection circuit that can detect the peripheral hardware circuit to obtain the configuration information of each pin. When the detection circuit or the peripheral hardware circuit fails, the chip cannot obtain the configuration information of each pin, and thus the pin cannot be configured, resulting in low robustness of the pin configuration.
[0049] In view of this, the present disclosure provides a chip pin configuration method, which continuously detects peripheral hardware circuits until the detection ends when preset conditions are met, generates a detection result, and when a fault identification signal in the detection result is a fault signal, loads the default value stored in the internal storage register to the corresponding chip register to configure the corresponding function to the pin. When a hardware configuration fails, the default value stored in the internal storage register can be used as pin configuration information to implement pin function configuration in a software configuration manner, thereby improving the robustness of the pin configuration.
[0050] Figure 1 A schematic diagram of a pin configuration method provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the specific steps of the pin configuration method include:
[0051] S101, continuously detecting the peripheral hardware circuit until the detection ends when a preset condition is met.
[0052] Exemplarily, the preset condition is that the number of detections of the peripheral hardware circuit reaches a preset number, or configuration information corresponding to the peripheral hardware circuit is detected.
[0053] When the hardware configuration mode is selected, the detection circuit inside the chip starts to detect the peripheral hardware circuit, and the timer is reset and starts counting the number of detections of the peripheral hardware circuit. After the detection starts, it is determined after each detection whether the configuration information corresponding to the peripheral hardware circuit is detected. When the configuration information corresponding to the peripheral hardware circuit is detected, the detection of the peripheral hardware circuit is stopped.
[0054] When the configuration information corresponding to the peripheral hardware circuit is not detected, it is determined whether the current detection number reaches a preset number, for example, the preset number is 1. If the current detection number does not reach the preset number, the detection number is increased by 1, and the next detection of the peripheral hardware circuit is waited. If the current detection number reaches the preset number, the detection of the peripheral hardware circuit is stopped.
[0055] Thus, when the detection ends, the peripheral hardware circuit is detected a preset number of times and the configuration information corresponding to the peripheral hardware circuit is not detected, or the configuration information corresponding to the peripheral hardware circuit is detected and the peripheral hardware circuit is not detected a preset number of times.
[0056] S102, generating detection results.
[0057] The detection result includes a fault identification signal, and the fault identification signal is used to indicate whether a hardware configuration circuit has a fault, and the hardware configuration circuit includes a peripheral hardware circuit and a detection circuit.
[0058] Exemplarily, the fault identification signal is a fault signal or a normal signal. The fault signal indicates that the hardware configuration circuit has a fault, and the normal signal indicates that the hardware configuration circuit is normal. For example, if the hardware configuration circuit has a fault, the fault flag bit is pulled high and set to 1, that is, a fault signal is generated. If the hardware configuration circuit has not a fault, that is, the hardware configuration circuit is normal, the fault flag bit is set to 0, that is, a normal signal is generated.
[0059] If the number of detections of the peripheral hardware circuit reaches the preset number and the configuration information corresponding to the peripheral hardware circuit is not detected, the generated fault identification signal is a fault signal. If the configuration information corresponding to the peripheral hardware circuit is detected and the number of detections of the peripheral hardware circuit does not reach the preset number, the fault identification signal needs to be further determined based on other signals in the detection result.
[0060] S103, when the fault identification signal is a fault signal, loading the default value stored in the internal storage register into the corresponding chip register to configure the corresponding function to the pin.
[0061] The chip register includes an address register and / or a phase register.
[0062] Exemplarily, if the chip register includes an address register, the default value stored in the internal storage register includes default address information. If the chip register includes a phase register, the default value stored in the internal storage register includes default phase information. If the chip register includes an address register and a phase register, the default value stored in the internal storage register includes default address information and default phase information.
[0063] When the fault identification signal is a fault signal, the hardware configuration circuit fails, and the configuration mode of the pin is switched from the hardware configuration mode to the software configuration mode. At this time, if the address needs to be configured for the pin, the default address information stored in the internal storage register can be loaded into the address register. If the phase needs to be configured for the pin, the default phase information stored in the internal storage register can be loaded into the phase register.
[0064] In the technical solution provided by the present disclosure, the peripheral hardware circuit is continuously detected until the detection ends when the preset conditions are met, a fault identification signal is generated, and when the fault identification signal is a fault signal, the default value stored in the internal storage register is loaded to the corresponding chip register to configure the corresponding function to the pin. When a hardware configuration of the pin fails, the default value stored in the internal storage register can be used as the pin configuration information, and the functional configuration of the pin can be implemented in a software configuration manner, thereby improving the robustness of the pin configuration.
[0065] In some embodiments, the detection result also includes a configuration completion identification signal and a configuration failure identification signal. The configuration completion identification signal is used to indicate whether the peripheral hardware circuit has been detected within a preset number of times, and the configuration failure identification signal is used to indicate whether the peripheral hardware circuit is configured correctly.
[0066] Exemplarily, the configuration completion identification signal is a completion signal or an incomplete signal, wherein the completion signal indicates that the peripheral hardware circuit has completed the detection within a preset number of times, and the incomplete signal indicates that the peripheral hardware circuit has not completed the detection within the preset number of times. The configuration failure identification signal is a configuration error signal or a configuration correct signal, wherein the configuration error signal indicates that the peripheral hardware circuit is incorrectly configured, and the configuration correct signal indicates that the peripheral hardware circuit is correctly configured.
[0067] A specific description of a possible implementation method when executing S102 is as follows:
[0068] A configuration completion identification signal is determined according to the number of detections and whether configuration information is detected, a configuration fault identification signal is determined according to the configuration information, and a fault identification signal is determined according to the configuration completion identification signal and the configuration fault identification signal.
[0069] Exemplarily, when the detection is finished, if the number of detections of the peripheral hardware circuit reaches a preset number of times and the configuration information corresponding to the peripheral hardware circuit is not detected, the configuration completion identification signal is determined to be an incomplete signal. At this time, if the configuration information corresponding to the peripheral hardware circuit is detected and the number of detections of the peripheral hardware circuit does not reach the preset number of times, the configuration completion identification signal is determined to be a completion signal.
[0070] When the configuration completion identification signal is a completion signal, the configuration information is loaded into the corresponding chip register, and the peripheral hardware circuit returns a detection feedback signal, and a configuration fault identification signal is generated based on the detection feedback signal. If the detection feedback signal matches the preset value, it means that the peripheral hardware circuit is configured correctly, and the configuration fault identification signal is determined to be a configuration correct signal, for example, the identification flag is pulled high and set to 1. If the detection feedback signal does not match the preset value, it means that the peripheral hardware circuit is configured incorrectly, and the configuration fault identification signal is determined to be a configuration error signal. For example, the identification flag is set to 0.
[0071] When the configuration completion identification signal is a completed signal and the configuration fault identification signal is a correctly configured signal, the fault identification signal is determined to be a normal signal. When the configuration completion identification signal is an incomplete signal or the configuration fault identification signal is a configuration error signal, the fault identification signal is determined to be a fault signal. For example, when the configuration completion identification signal is an incomplete signal, the fault identification signal is a fault signal. When the configuration fault identification signal is a configuration error signal, the fault identification signal is a fault signal.
[0072] In some embodiments, based on the above embodiments, Figure 2 As shown, the pin configuration method also includes:
[0073] S201, determining a fault location of a hardware configuration circuit according to a configuration completion identification signal and a configuration fault identification signal.
[0074] Exemplarily, after the detection is completed, when the configuration completion identification signal is an incomplete signal or the configuration fault identification signal is a configuration error signal, it can be determined that the detection circuit has failed. That is, when the configuration completion identification signal is an incomplete signal, it can be determined that the detection circuit has failed, and when the configuration fault identification signal is a configuration error signal, it can be determined that the peripheral hardware circuit has failed.
[0075] The failure of the hardware configuration circuit includes the failure of the peripheral hardware circuit and the failure of the detection circuit. Through the configuration completion identification signal and the configuration failure identification signal, it can be determined whether the detection circuit fails or the peripheral hardware circuit fails. In this way, when the hardware configuration fails, the specific position of the faulty circuit can be located, which is convenient for repairing the hardware configuration failure.
[0076] Exemplarily, the detection circuit can detect multiple devices or modules of the peripheral hardware circuit, each device or module corresponds to a configuration fault identification signal, thereby obtaining multiple configuration fault identification signals. In the case where the configuration completion identification signal is a completed signal, when at least one configuration fault identification signal among the multiple configuration step identification signals is a configuration error signal, the generated fault identification signal is a fault signal.
[0077] In this way, by setting different configuration fault identification signals for different devices or modules in the peripheral hardware circuit, the specific position of the faulty device or faulty module can be accurately located when a peripheral hardware circuit fails, thereby facilitating the repair of the peripheral hardware circuit failure.
[0078] In some embodiments, when the configuration completion identification signal is a completed signal and the configuration fault identification signal is a configuration correct signal, the fault identification signal is a normal signal. At this time, the configuration information corresponding to the peripheral hardware circuit is loaded into the corresponding chip register to configure the corresponding function to the pin.
[0079] Exemplarily, in the hardware configuration mode, when the configuration completion identification signal is a completed signal and the configuration fault identification signal is a configuration correct signal, the configuration mode of the pin remains in the hardware configuration mode. At this time, if the hardware configuration information corresponding to the peripheral hardware circuit includes address information, the address information is loaded into the address register to configure the address to the pin. If the hardware configuration information corresponding to the peripheral hardware circuit includes phase information, the phase information is loaded into the phase register to configure the phase to the pin. If the hardware configuration information corresponding to the peripheral hardware circuit includes address information and phase information, the phase information is loaded into the phase register, and the address information is loaded into the address register to configure the phase and address to the pin.
[0080] In this way, when the hardware configuration mode is normal, the corresponding functions of the pins are configured through the configuration information corresponding to the peripheral hardware circuit, which is convenient for configuring different information for the same function, that is, facilitating differentiated configuration of the same function. For example, in the scenario of configuring the address, different users have different requirements for the specific value of the address. When configuring the address of the pin through the peripheral hardware circuit, devices of different specifications can be selected to adjust the specific value of the address.
[0081] In some embodiments, before executing S101 , the method further includes: writing a default value into an internal storage register.
[0082] Exemplarily, the default value includes default address information and / or default phase information. The host establishes a communication connection with the chip, for example, the host establishes a communication connection with the chip via IIC.
[0083] If the default value includes default address information, the host can write the default address information into the internal storage register. If the default value includes default phase information, the host can write the default phase information into the internal storage register. If the default value includes default address information and default phase information, the host can write the default address information and default phase information into the internal storage register.
[0084] In some embodiments, before executing S101 , the step further includes: obtaining a default configuration mode selection signal.
[0085] Exemplarily, the configuration mode selection signal is a hardware configuration mode selection signal or a software configuration mode selection signal, wherein the hardware configuration mode selection signal is 1 and the software configuration mode selection signal is 0, or the hardware configuration mode selection signal is 0 and the software configuration mode selection signal is 1. If the configuration mode selection signal is a hardware configuration mode selection signal, the hardware configuration mode is entered. If the configuration mode selection signal is a software configuration mode selection signal, the software configuration mode is entered.
[0086] Usually, the default value of the configuration mode selection signal can be set to the hardware configuration mode selection signal. When configuring the pin, you can enter the hardware configuration mode first, and configure the corresponding function to the pin according to the peripheral hardware circuit, so as to configure different information for the same function, that is, to facilitate the differentiated configuration of the same function. For example, in the scenario of configuring the address, different users have different requirements for the specific value of the address. When configuring the address of the pin through the peripheral hardware circuit, you can select devices of different specifications to adjust the specific value of the address.
[0087] In some embodiments, after executing S103 , the method further includes: generating a configuration completion signal.
[0088] Exemplarily, in software configuration mode, after loading the default value stored in the internal storage register to the corresponding chip register, the pin configuration completion flag is pulled high to generate a configuration completion signal. In hardware configuration mode, after loading the configuration information corresponding to the peripheral hardware circuit to the corresponding chip register, the pin configuration completion flag is pulled high to generate a configuration completion signal.
[0089] In this way, after the pin configuration is completed, a configuration completion signal can be generated to indicate that the pin configuration is completed, which can effectively avoid the state machine from being stuck.
[0090] A specific implementation of the pin configuration method is given below by taking chip registers including address registers as an example.
[0091] The chip initializes the SMBUS address to 30h, and then detects the chip address configuration mode selection signal MFR_ADDR_PMBUS[7]. When the chip address configuration mode selection signal MFR_ADDR_PMBUS[7] = 1, it means that the chip configures the SMBUS address through software, and loads the content of the chip MTP storage address register MFR_ADDR_PMBUS[6:0] into the chip address register pmb_addr[6:0]. After the loading is completed, the digital transfer analog address loading completion signal DA_ADDR_LOAD_OK signal is pulled high to 1, indicating that the address information configuration is completed.
[0092] If the chip address configuration mode selection signal MFR_ADDR_PMBUS[7] = 0, it means that the chip configures the SMBUS address through the peripheral hardware circuit, and the digital enable analog ADDR pin identification circuit signal DA_ADDR_EN is set to 1, and then the address configuration counter addr_watchdog is cleared. After that, the count value of the address configuration counter addr_watchdog continues to increase until the count value of the address configuration counter addr_watchdog is greater than 200. During the process, the value of the analog transfer digital address recognition completion signal AD_ADDR_READ_OK is continuously checked. If the count value of the address configuration counter addr_watchdog is greater than 200 and the analog transfer digital address recognition completion signal AD_ADDR_READ_OK=0, the address recognition fault flag register MFR_INTERNAL_STATES[7] is set to 1, indicating that a fault has occurred. At the same time, the content of the chip MTP storage address register MFR_ADDR_PMBUS[6:0] is loaded into the chip address register pmb_addr[6:0]. Finally, the digital transfer analog address loading completion signal DA_ADDR_LOAD_OK is set to 1 to prevent the state machine from getting stuck.
[0093] If the count value of the address configuration counter addr_watchdog is less than 200, and the analog transfer digital address recognition completion signal AD_ADDR_READ_OK=1, it means that the address information is read successfully, and then the contents of the analog transfer digital address AD_ADDR_INFO[4] and AD_ADDR_INFO[3:0] are loaded into the address recognition fault flag register MFR_INTERNAL_STATES[7] and the chip address register pmb_addr[3:0] respectively. After a delay of 11clk, the chip detects the analog transfer digital address recognition signal AD_EXT_60K. If the analog transfer digital address recognition signal AD_EXT_60K=1, the chip address register pmb_addr[6:4] is set to 011b, otherwise the chip address register pmb_addr[6:4] is set to 100b. After completion, the chip checks the address recognition fault flag register MFR_INTERNAL_STATE[7] signal. If the address recognition fault flag register MFR_INTERNAL_STATE[7] = 1, it means that an error occurred during the processing, then the content of the chip MTP storage address register MFR_ADDR_PMBUS[6:0] is loaded into the chip address register pmb_addr[6:0], and the digital transfer analog address loading completion signal DA_ADDR_LOAD_OK is set to 1. If the address recognition fault flag register MFR_INTERNAL_STATE[7] = 0, it means that there is no fault during the processing, and the digital transfer analog address loading completion signal DA_ADDR_LOAD_OK is normally set to 1.
[0094] Figure 3 A waveform diagram of a normal read of the address information configuration provided in an embodiment of the present disclosure, Figure 4 A waveform diagram of a timeout of configuring a read of address information provided in an embodiment of the present disclosure, Figure 5 The waveform diagram of the address information configuration read error provided by the embodiment of the present disclosure is shown in FIG. The address information configuration is experimentally verified by FPGA, and the signals of the reading process are as follows when the address information is read normally: Figure 3 (a), the signals of the completed reading are as follows Figure 3 As shown in (b), the chip address is normally configured as 3c according to the analog transfer digital address AD_ADDR_INFO[4:0] and the analog transfer digital address identification signal AD_EXT_60K.
[0095] In the case of address information reading timeout, the signals of the reading process are as follows Figure 4 As shown in (a), the signals after reading are as follows Figure 4As shown in (b), after the read timeout, the digital transfer analog address loading completion signal DA_ADDR_LOAD_OK is normally set to 1, and the chip address is configured as 30h by default. In the case of address information reading errors, the signals of the reading process are as follows Figure 5 As shown in (a), the signals after reading are as follows Figure 5 As shown in (b), in the case of a read error, the digital transfer analog address load completion signal DA_ADDR_LOAD_OK is normally set to 1, and the chip address is configured as 30h by default.
[0096] The present disclosure also provides a chip pin configuration device. Figure 6 A schematic diagram of a pin configuration device provided in an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the pin configuration device 100 includes:
[0097] The detection circuit 110 is used to continuously detect the peripheral hardware circuit until the detection ends when a preset condition is met.
[0098] The generating module 120 is used to generate a detection result, wherein the detection result includes a fault identification signal, and the fault identification signal is used to indicate whether a hardware configuration circuit has a fault, and the hardware configuration circuit includes a peripheral hardware circuit and a detection circuit.
[0099] The configuration module 130 is used to load the default value stored in the internal storage register to the corresponding chip register when the fault identification signal is a fault signal, so as to configure the corresponding function to the pin. The chip register includes an address register and / or a phase register.
[0100] In some embodiments, the preset condition is that the number of detections of the peripheral hardware circuit reaches a preset number, or configuration information corresponding to the peripheral hardware circuit is detected.
[0101] In some embodiments, the detection result also includes a configuration completion identification signal and a configuration fault identification signal, wherein the configuration completion identification signal is used to indicate whether the peripheral hardware circuit has been detected within a preset number of times, and the configuration fault identification signal is used to indicate whether the peripheral hardware circuit is configured correctly.
[0102] The pin configuration device 100 further includes:
[0103] The determination module is used to determine the fault location of the hardware configuration circuit according to the configuration completion identification signal and the configuration fault identification signal.
[0104] In some embodiments, the determination module is further used to determine that a fault occurs in the detection circuit when the configuration completion identification signal is an incomplete signal; and to determine that a fault occurs in the peripheral hardware circuit when the configuration fault identification signal is a configuration error signal.
[0105] In some embodiments, the configuration module 130 is further used to load the configuration information into the corresponding chip register to configure the corresponding function to the pin when the configuration completion identification signal is a completed signal and the configuration fault identification signal is a configuration correct signal.
[0106] In some embodiments, the generation module 120 is further used to determine a configuration completion identification signal based on the number of detections and whether configuration information is detected; determine a configuration fault identification signal based on the configuration information; and determine a fault identification signal based on the configuration completion identification signal and the configuration fault identification signal.
[0107] In some embodiments, the generating module 120 is further configured to generate a configuration completion signal.
[0108] In some embodiments, the pin configuration device 100 further includes a host, and the host is used to write default values to the internal storage register.
[0109] Exemplarily, the host establishes a communication connection with the chip. For example, the host establishes a communication connection with the chip via IIC. The user can set different default values, and the host can write the default values into the internal storage register 220.
[0110] The device provided in the embodiments of the present disclosure can be used to execute the steps of the above-mentioned method embodiments accordingly. Its implementation principles and technical effects are similar and will not be repeated here.
[0111] The disclosed embodiment also provides a chip pin configuration system. Figure 7 A schematic diagram of a pin configuration system provided by an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, the pin configuration system 200 includes: a pin configuration device 100 , an internal storage register 210 , a chip register 220 and a peripheral hardware circuit 230 .
[0112] The peripheral hardware circuit 230 is connected to the chip. The internal storage register 210 is used to store the default value. The chip register 220 is used to store the default value when the fault identification signal is a fault signal. The pin configuration device 100 is used to perform the steps of any of the above method embodiments.
[0113] Exemplarily, the pin configuration device 100 includes a detection circuit. When the hardware configuration mode is selected, the detection circuit continuously detects the peripheral hardware circuit 230 until the detection ends when a preset condition is met. After the detection circuit ends the detection of the peripheral hardware circuit 230, other modules in the pin configuration device 100 can generate a detection result, wherein the detection result includes a fault identification signal for indicating whether a hardware configuration circuit fails, and the hardware configuration circuit includes a peripheral hardware circuit and a detection circuit.
[0114] When the fault identification signal is a fault signal, the hardware configuration circuit fails, and other modules in the pin configuration device 100 can read the default values stored in the internal storage register 210 and load the default values stored in the internal storage register 210 to the corresponding chip register 220, thereby configuring the corresponding function to the pin.
[0115] The chip pin configuration system provided by the embodiment of the present disclosure includes a pin configuration device, which can be used to execute the steps of the above-mentioned method embodiments accordingly. The implementation principles and technical effects are similar and will not be repeated here.
[0116] The embodiment of the present disclosure also provides a power management chip, which is connected to a peripheral hardware circuit. Figure 8 A schematic diagram of the structure of a power management chip provided by an embodiment of the present disclosure is shown in FIG. Figure 8 As shown, the power management chip 300 includes an internal storage register 210 , a chip register 220 , a pin configuration device 100 and a pin 310 .
[0117] The internal storage register 210 is used to store a default value. The chip register 220 is used to store a default value when the fault identification signal is a fault signal. The pin configuration device 100 is used to execute the steps of any of the above method embodiments.
[0118] Exemplarily, the pin configuration device 100 includes a detection circuit. When the hardware configuration mode is selected, the detection circuit continuously detects the peripheral hardware circuit until the detection ends when a preset condition is met. After the detection circuit ends the detection of the peripheral hardware circuit, other modules in the pin configuration device 100 can generate a detection result, wherein the detection result includes a fault identification signal for indicating whether a hardware configuration circuit fails, and the hardware configuration circuit includes a peripheral hardware circuit and a detection circuit.
[0119] When the fault identification signal is a fault signal, the hardware configuration circuit fails, and other modules in the pin configuration device 100 can read the default values stored in the internal storage register 210 and load the default values stored in the internal storage register 210 to the corresponding chip register 220, thereby configuring the corresponding function to the pin 310.
[0120] The power management chip provided in the embodiment of the present disclosure includes a pin configuration device, which can be used to execute the steps of the above-mentioned method embodiments accordingly. The implementation principles and technical effects are similar and will not be repeated here.
[0121] The above are only specific embodiments of the present disclosure, but the embodiments of the present disclosure are not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present disclosure.
[0122] The word "comprising" described in the present disclosure does not exclude the existence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the existence of a plurality of such elements. The present disclosure can be implemented with the aid of hardware comprising a number of different elements and with the aid of a suitably programmed computer. In a unit claim that lists a number of devices, several units of these devices may be embodied by the same hardware item. The use of first, second, and third, etc. does not indicate any order, and these words may be interpreted as names. The steps in the above embodiments should not be understood as limitations on the order of execution unless otherwise specified.
[0123] As described above, the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A chip pin configuration method, It is characterized in that The chip is connected to a peripheral hardware circuit; the method comprises: Continuously testing the peripheral hardware circuit until the testing ends when a preset condition is met; Generate a detection result; wherein the detection result includes a fault identification signal, the fault identification signal is used to indicate whether a hardware configuration circuit has a fault, the hardware configuration circuit includes the peripheral hardware circuit and the detection circuit; When the fault identification signal is a fault signal, the default value stored in the internal storage register is loaded into the corresponding chip register to configure the corresponding function to the pin; wherein the chip register includes an address register and / or a phase register.
2. The method according to claim 1, It is characterized in that The preset condition is that the number of detections of the peripheral hardware circuit reaches a preset number, or configuration information corresponding to the peripheral hardware circuit is detected.
3. The method according to claim 2, It is characterized in that The detection result also includes a configuration completion identification signal and a configuration fault identification signal, wherein the configuration completion identification signal is used to indicate whether the peripheral hardware circuit has been detected within the preset number of times, and the configuration fault identification signal is used to indicate whether the peripheral hardware circuit is configured correctly; The method further comprises: A fault location of the hardware configuration circuit is determined according to the configuration completion identification signal and the configuration fault identification signal.
4. The method according to claim 3, It is characterized in that Determining the fault location of the hardware configuration circuit according to the configuration completion identification signal and the configuration fault identification signal includes: When the configuration completion identification signal is an incomplete signal, determining that the detection circuit fails; When the configuration fault identification signal is a configuration error signal, it is determined that the peripheral hardware circuit fails.
5. The method according to claim 3, It is characterized in that The method further comprises: When the configuration completion identification signal is a completed signal and the configuration fault identification signal is a configuration correct signal, the configuration information is loaded into the corresponding chip register to configure the corresponding function to the pin.
6. The method according to claim 3, It is characterized in that Generating the detection result comprises: Determining the configuration completion identification signal according to the number of detections and whether the configuration information is detected; Determining the configuration fault identification signal according to the configuration information; The fault identification signal is determined according to the configuration completion identification signal and the configuration fault identification signal.
7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: Generates a configuration complete signal.
8. A pin configuration device for a chip, It is characterized in that The chip is connected to a peripheral hardware circuit, and the pin configuration device includes: A detection circuit, used to continuously detect the peripheral hardware circuit until the detection ends when a preset condition is met; A generating module, used to generate a detection result; wherein the detection result includes a fault identification signal, the fault identification signal is used to indicate whether a hardware configuration circuit has a fault, the hardware configuration circuit includes the peripheral hardware circuit and the detection circuit; A configuration module is used to load the default value stored in the internal storage register to the corresponding chip register when the fault identification signal is a fault signal, so as to configure the corresponding function to the pin; wherein the chip register includes an address register and / or a phase register.
9. A chip pin configuration system, It is characterized in that include: Peripheral hardware circuits; Internal storage registers for storing default values; A chip register, used for storing the default value when the fault identification signal is a fault signal; A pin configuration device, used to execute the steps of the method described in any one of claims 1-7.
10. A power management chip, It is characterized in that The power management chip is connected to the peripheral hardware circuit, and the power management chip includes: Pins; Internal storage registers for storing default values; A chip register, used for storing the default value when the fault identification signal is a fault signal; A pin configuration device, used to execute the steps of the method described in any one of claims 1-7.
