Distribution network monitoring control chip design method and device, equipment and storage medium
By configuring clock optimization strategies, power management strategies and coding strategies in the distribution network monitoring and control chip, and optimizing the circuit layout, the problem of traditional chips being difficult to take into account high performance and low power consumption is solved, and the monitoring capability and stability of the chip are significantly improved.
Patent Information
- Application Number
- CN202411736474.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-21
AI Technical Summary
Traditional distribution network monitoring and control chips are difficult to meet the needs of low power consumption while achieving high performance, which affects the chip's monitoring capabilities and stability.
By obtaining the working mode, workload and power consumption requirements of each module, configure the clock optimization strategy and power management strategy, and divide the clock domain and power domain; at the same time, configure the encoding strategy based on the switching frequency threshold of the state machine, and select the appropriate device optimization circuit layout.
It realizes effective reduction of power consumption while high performance, and improves the monitoring capability and stability of distribution network monitoring and control chips.
Smart Images

Figure CN119670669A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to but is not limited to the field of chip technology, and in particular to a distribution network monitoring and control chip design method, device, equipment and storage medium. Background Art
[0002] With the rapid growth of power distribution network demand, the requirements for safety, stability and efficient operation of distribution networks are increasing. However, the technical architecture of traditional distribution network monitoring and control chips has limitations, making it difficult to achieve high performance while meeting the requirements of low power consumption. This limitation not only affects the monitoring capability of distribution network monitoring and control chips, but also affects the stability of distribution network monitoring and control chips. Summary of the invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] The embodiments of the present application provide a distribution network monitoring control chip design method, device, equipment and storage medium, which can achieve high performance while meeting the requirements of low power consumption.
[0005] To achieve the above-mentioned objectives, the first aspect of an embodiment of the present application proposes a distribution network monitoring and control chip design method, including: obtaining the working mode, workload and power consumption requirements of each module in the distribution network monitoring and control chip during design, configuring a clock optimization strategy based on the working mode, and configuring a power management strategy based on the workload and the power consumption requirements, wherein the clock optimization strategy is used to perform clock domain division on each of the modules, and the power management strategy is used to perform power domain division on each of the modules; obtaining a switching frequency threshold of a state machine in the distribution network monitoring and control chip, and configuring a coding strategy of the state machine based on the switching frequency threshold, wherein the coding strategy is used to determine a target coding mode of the state machine among multiple candidate coding modes, and the target coding mode refers to a mode for encoding the state of the state machine; obtaining the working requirements of the distribution network monitoring and control chip, selecting corresponding devices based on the working requirements, and optimizing the circuit layout of the distribution network monitoring and control chip based on the devices.
[0006] In some embodiments, the distribution network monitoring control chip is provided with a multiplexer, and the multiplexer is used to perform multiplex selection according to the state of the state machine. The multiple candidate coding modes include a Gray coding mode and a one-hot coding mode. The Gray coding mode refers to a mode in which the state of the state machine is Gray-encoded. The one-hot coding mode refers to a mode in which the state of the state machine is one-hot-encoded. The switching frequency threshold of the state machine in the distribution network monitoring control chip is obtained, including: obtaining multiple test switching frequencies of the state machine; configuring the coding mode of the state machine to the Gray coding mode, and performing power consumption simulation on the distribution network monitoring control chip based on each of the test switching frequencies to obtain each of the test switching frequencies. The first predicted power consumption corresponding to the test switching frequency is configured; the encoding mode of the state machine is configured as the one-hot encoding mode, and the power consumption of the distribution network monitoring control chip is simulated based on each of the test switching frequencies to obtain the second predicted power consumption corresponding to each of the test switching frequencies; based on multiple test switching frequencies, the corresponding first predicted power consumption and the corresponding second predicted power consumption, a switching frequency threshold is determined, wherein the encoding strategy is configured to configure the Gray encoding mode as the target encoding mode of the state machine when the switching frequency of the state machine is less than or equal to the switching frequency threshold, or, when the switching frequency of the state machine is greater than the switching frequency threshold, the one-hot encoding mode is configured as the target encoding mode of the state machine.
[0007] In some embodiments, the switching frequency threshold is determined based on the multiple test switching frequencies, the corresponding first predicted power consumption and the corresponding second predicted power consumption, including: obtaining the number of states corresponding to each of the test switching frequencies, wherein the number of states refers to the total number of discrete states of the state machine; splicing the multiple test switching frequencies, the corresponding first predicted power consumption, the corresponding second predicted power consumption and the corresponding number of states and inputting them into the threshold prediction model for regression processing to determine the switching frequency threshold.
[0008] In some embodiments, configuring the clock optimization strategy based on the operating mode includes: determining the clock frequency requirement of the module based on the operating mode, and determining multiple clock frequency intervals based on the clock frequency requirement; configuring the clock optimization strategy based on the multiple clock frequency intervals, wherein the clock optimization strategy is used to deploy candidate clock domains corresponding to each of the clock frequency intervals, and determine the target clock domain corresponding to the module among the multiple candidate clock domains, and each of the candidate clock domains is independent of each other.
[0009] In some embodiments, configuring the power management policy based on the workload and the power consumption requirement includes: determining the voltage requirement of the module based on the workload and the power consumption requirement, and determining multiple voltage intervals based on the voltage requirement; configuring the power management policy based on multiple voltage intervals, wherein the power management policy is used to deploy candidate power domains corresponding to each of the voltage intervals, and determine a target power domain corresponding to the module among the multiple candidate power domains, and each of the candidate power domains is independent of each other.
[0010] In some embodiments, the distribution network monitoring control chip is provided with a clock gating unit corresponding to each of the modules, and each of the clock gating units is configured with a corresponding clock gating strategy, and the clock gating strategy is configured as follows: when the working state of the module is in an active state, the corresponding clock gating unit is controlled to be turned on to send a clock signal to the module; or, when the working state of the module is in an idle state, the corresponding clock gating unit is controlled to be turned off to stop sending a clock signal to the module.
[0011] In some embodiments, the device includes a decoupling capacitor and a band-stop filter, and the circuit of the distribution network monitoring control chip includes a power path and a clock signal path. The optimization of the circuit layout of the distribution network monitoring control chip based on the device includes: setting the decoupling capacitor in the power path, and setting the band-stop filter in the clock signal path to optimize the circuit layout of the distribution network monitoring control chip; based on differential signal transmission technology and a double-layer power plane structure, the circuit layout of the distribution network monitoring control chip is further optimized.
[0012] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes a distribution network monitoring and control chip design device, including: a first configuration module, used to obtain the working mode, workload and power consumption requirements of each module in the distribution network monitoring and control chip during design, configure a clock optimization strategy based on the working mode, and configure a power management strategy based on the workload and the power consumption requirements, wherein the clock optimization strategy is used to perform clock domain division on each of the modules, and the power management strategy is used to perform power domain division on each of the modules; a second configuration module, used to obtain a switching frequency threshold of a state machine in the distribution network monitoring and control chip, and configure a coding strategy of the state machine based on the switching frequency threshold, wherein the coding strategy is used to determine a target coding mode of the state machine among multiple candidate coding modes, and the target coding mode refers to a mode for encoding the state of the state machine; an optimization module, used to obtain the working requirements of the distribution network monitoring and control chip, select corresponding devices based on the working requirements, and optimize the circuit layout of the distribution network monitoring and control chip based on the devices.
[0013] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the distribution network monitoring control chip design method described in the first aspect when executing the computer program.
[0014] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, it implements the distribution network monitoring control chip design method described in the first aspect above.
[0015] The embodiments of the present application include at least the following beneficial effects: by configuring the clock optimization strategy according to the working mode of each module in the distribution network monitoring and control chip during design, the clock optimization strategy can be used to divide the clock domain of each module, so as to provide a suitable clock signal for each module, and effectively reduce power consumption while ensuring high performance; then, the power management strategy is configured according to the workload and power consumption requirements of each module in the distribution network monitoring and control chip during design, and the power management strategy can be used to divide the power domain of each module, so as to provide a suitable power supply voltage for each module, and further reduce power consumption while ensuring high performance; then, in the RTL-level coding design, the coding strategy of the state machine is configured according to the switching frequency threshold of the state machine, and the coding strategy can be used to determine the target coding mode among multiple candidate coding modes, and the state coding can be performed by selecting the target coding mode, so as to effectively reduce power consumption under various switching frequencies; then, the corresponding device is selected according to the working requirements of the distribution network monitoring and control chip, and then the circuit layout of the distribution network monitoring and control chip is optimized, so as to effectively reduce power consumption; therefore, the RLT-level low-power technology design is realized, and the requirements of low power consumption can be met while achieving high performance, thereby improving the monitoring capability and stability of the distribution network monitoring and control chip.
[0016] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0018] Figure 1 An optional flow chart of a distribution network monitoring control chip design method provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of an optional flow chart for determining a switching frequency threshold provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of another optional flow chart for determining a switching frequency threshold provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of an optional flow chart of the encoding strategy provided in the embodiment of the present application;
[0022] Figure 5 A schematic diagram of an optional flow chart of configuring a clock optimization strategy provided in an embodiment of the present application;
[0023] Figure 6 An optional flow chart of configuring a power management strategy provided in an embodiment of the present application;
[0024] Figure 7 A schematic diagram of an optional flow chart of a clock gating strategy and a clock optimization strategy provided in an embodiment of the present application;
[0025] Figure 8 An optional schematic diagram of a flow chart for optimizing a circuit layout provided in an embodiment of the present application;
[0026] Fig. 9 An optional structural diagram of a distribution network monitoring control chip design device provided in an embodiment of the present application;
[0027] Fig.10 A schematic diagram of an optional hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0029] It should be noted that in each specific embodiment of the present application, when it comes to the need to perform relevant processing based on data related to the characteristics of the target object such as target object attribute information or attribute information set, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. Among them, the target object can be a user. In addition, when the embodiment of the present application needs to obtain the target object attribute information, the target object's separate permission or separate consent will be obtained by means of a pop-up window or jumping to a confirmation page, etc., and after the separate permission or separate consent of the target object is clearly obtained, the necessary target object-related data for enabling the normal operation of the embodiment of the present application will be obtained.
[0030] In the description of this application, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood to exclude the number, and “above”, “below”, “within”, etc. are understood to include the number.
[0031] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0032] With the rapid growth of power distribution network demand, the requirements for safety, stability and efficient operation of distribution networks are increasing. However, the technical architecture of traditional distribution network monitoring and control chips has limitations, making it difficult to achieve high performance while meeting the requirements of low power consumption. This limitation not only affects the monitoring capability of distribution network monitoring and control chips, but also affects the stability of distribution network monitoring and control chips.
[0033] In order to solve the problem that it is difficult to achieve high performance while meeting low power consumption requirements, the present application provides a distribution network monitoring control chip design method, device, equipment and storage medium, which can achieve high performance while meeting low power consumption requirements.
[0034] The distribution network monitoring control chip design method, device, equipment and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the distribution network monitoring control chip design method in the embodiments of the present application is described.
[0035] The distribution network monitoring and control chip design method provided in the embodiment of the present application relates to the field of computer technology. The distribution network monitoring and control chip design method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server side, and can also be software running in a terminal or a server side. In some embodiments, the terminal can be a chip design device, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the distribution network monitoring and control chip design method, etc., but is not limited to the above forms.
[0036] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0037] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0038] like Figure 1 As shown, Figure 1 An optional flow chart of a distribution network monitoring control chip design method provided in an embodiment of the present application, the distribution network monitoring control chip design method can be executed by a server, or can also be executed by a terminal, or can also be executed by a server in cooperation with a terminal, and the distribution network monitoring control chip design method includes but is not limited to the following steps S110 to S130:
[0039] Step S110, obtaining the working mode, workload and power consumption requirements of each module in the distribution network monitoring control chip during design, configuring the clock optimization strategy based on the working mode, and configuring the power management strategy based on the workload and power consumption requirements.
[0040] Among them, the distribution network monitoring and control chip is a special chip used in the power distribution network. The distribution network monitoring and control chip is used to realize real-time monitoring of the operating status of the distribution network, data collection, intelligent control, and communication management. The distribution network monitoring and control chip is an important part of the smart grid and distribution automation system, and is usually embedded in the distribution terminal equipment. For example, the distribution terminal equipment may include switch controllers, intelligent circuit breakers, fault indicators, etc.
[0041] Among them, the clock optimization strategy is used to divide the clock domain of each module, and the power management strategy is used to divide the power domain of each module. The clock optimization strategy and the power management strategy are both configured in the distribution network monitoring and control chip to enable the power distribution network to achieve high performance while meeting the low power consumption requirements.
[0042] Step S120, obtaining a switching frequency threshold of a state machine in the distribution network monitoring control chip, and configuring a coding strategy of the state machine based on the switching frequency threshold.
[0043] Among them, the coding strategy is used to determine the target coding mode of the state machine among multiple candidate coding modes. The target coding mode refers to the mode for encoding the state of the state machine. The coding strategy is configured in the distribution network monitoring and control chip to enable the power distribution network to meet the low power consumption requirements.
[0044] Step S130, obtaining the working requirements of the distribution network monitoring control chip, selecting corresponding devices based on the working requirements, and optimizing the circuit layout of the distribution network monitoring control chip based on the devices.
[0045] It is understandable that by optimizing the circuit layout of the distribution network monitoring and control chip, it is possible to reduce glitches caused by electromagnetic noise, suppress glitch generation, suppress noise, reduce power consumption and noise interference, and thus improve circuit stability and energy efficiency.
[0046] Based on this, by configuring the clock optimization strategy according to the working mode of each module in the distribution network monitoring and control chip during design, the clock optimization strategy can be used to divide the clock domain of each module, so as to provide a suitable clock signal for each module, and effectively reduce power consumption while ensuring high performance. Then, the power management strategy is configured according to the workload and power consumption requirements of each module in the distribution network monitoring and control chip during design, and the power management strategy can be used to divide the power domain of each module, so as to provide a suitable power supply voltage for each module, and further reduce power consumption while ensuring high performance. Then, in the RTL-level coding design, the coding strategy of the state machine is configured through the switching frequency threshold of the state machine, and the coding strategy can be used to determine the target coding mode among multiple candidate coding modes. By selecting the target coding mode for state coding, power consumption can be effectively reduced at various switching frequencies. Then, the corresponding device is selected according to the working requirements of the distribution network monitoring and control chip, and then the circuit layout of the distribution network monitoring and control chip is optimized, which can effectively reduce power consumption. Therefore, the RLT-level low-power technology design is realized, which can meet the requirements of low power consumption while achieving high performance, thereby improving the monitoring capability and stability of the distribution network monitoring and control chip.
[0047] In addition, refer to Figure 2 In one embodiment, the distribution network monitoring control chip is provided with a multiplexer, and the multiplexer is used to perform multiplex selection according to the state of the state machine. The multiple candidate coding modes include a Gray coding mode and a one-hot coding mode. The Gray coding mode refers to a mode of Gray coding the state of the state machine, and the one-hot coding mode refers to a mode of one-hot coding the state of the state machine. Obtaining the switching frequency threshold of the state machine in the distribution network monitoring control chip includes but is not limited to the following steps:
[0048] Step S210, obtaining multiple test switching frequencies of the state machine;
[0049] Step S220, configuring the coding mode of the state machine to be a Gray coding mode, performing power consumption simulation on the distribution network monitoring control chip based on each test switching frequency, and obtaining a first predicted power consumption corresponding to each test switching frequency;
[0050] Step S230, configuring the encoding mode of the state machine to a one-hot encoding mode, performing power consumption simulation on the distribution network monitoring control chip based on each test switching frequency, and obtaining a second predicted power consumption corresponding to each test switching frequency;
[0051] Step S240 , determining a switching frequency threshold based on a plurality of test switching frequencies, corresponding first predicted power consumption, and corresponding second predicted power consumption.
[0052] Among them, the encoding strategy is configured to configure the Gray encoding mode as the target encoding mode of the state machine when the switching frequency of the state machine is less than or equal to the switching frequency threshold, or to configure the one-hot encoding mode as the target encoding mode of the state machine when the switching frequency of the state machine is greater than the switching frequency threshold.
[0053] It should be noted that the function of the Gray coding mode is that only one bit changes between adjacent states, which avoids the signal flip caused by the simultaneous change of multiple bits in traditional binary coding. For example, the relationship between the 4-bit Gray code and the binary code is shown in Table 1 below:
[0054] Table 1
[0055] Binary Code Gray code 0000 0000 0001 0001 0010 0011 0011 0010 0100 0110 0101 0111 0110 0101 0111 0100 1000 1100 1001 1101 1010 1111 1011 1110 1100 1010 1101 1011 1110 1001 1111 1000
[0056] It can be seen that in the Gray coding mode, only one bit of the encoding of adjacent states changes, while multiple bits may change in traditional binary coding.
[0057] In addition, the one-hot encoding mode is used to assign a unique bit to each state so that only one bit changes each time the state switches. For example, for a system containing 4 states, the one-hot code is shown in Table 2 below:
[0058] Table 2
[0059] state One-hot encoding 0 0001 1 0010 2 0100 3 1000
[0060] It can be seen that in the one-hot encoding mode, it is ensured that only one bit changes each time the state switches, which can avoid the situation where multiple bits change at the same time, and each state has an independent encoding representation.
[0061] It is worth noting that, under normal circumstances, when the switching frequency of the state machine is low, the Gray coding mode can effectively reduce the number of flip-flops, thereby reducing power consumption. When the switching frequency of the state machine is high, since the multiplexer is used to perform multiplexing according to the state of the state machine, the switching frequency of the multiplexer will also be high. At this time, the one-hot coding mode is used, and each state change of the state machine will cause only one switch of the multiplexer to switch, which will reduce the number of switching operations and thus reduce the power consumption of switching.
[0062] Based on this, by obtaining multiple test switching frequencies, and then in Gray coding mode, respectively based on each test switching frequency, the power consumption simulation of the distribution network monitoring control chip is performed, so that the first predicted power consumption of the state machine under multiple test switching frequencies can be accurately obtained, and then in one-hot coding mode, respectively based on each test switching frequency, the power consumption simulation of the distribution network monitoring control chip is performed, so that the second predicted power consumption of the state machine under multiple test switching frequencies can be accurately obtained, and then, based on multiple test switching frequencies, the corresponding first predicted power consumption and the corresponding second predicted power consumption, the accurate switching frequency threshold can be determined, so that the switching frequency threshold can be used as both Gray coding mode and one-hot coding mode. The critical value between the formulas, when the coding strategy is subsequently configured based on the switching frequency threshold, when the switching frequency of the state machine is less than or equal to the switching frequency threshold, it can be considered that the switching frequency of the state machine is low. At this time, the Gray coding mode is configured as the target coding mode of the state machine, and the power consumption of the state machine is effectively reduced through the intelligent coding strategy. When the switching frequency of the state machine is greater than the switching frequency threshold, it can be considered that the switching frequency of the state machine is high, and the one-hot coding mode is configured as the target coding mode of the state machine, and the switching power consumption of the multiplexer is effectively reduced through the intelligent coding strategy. Therefore, by configuring the intelligent coding strategy, the power consumption can be further reduced and the stability can be improved.
[0063] In addition, refer to Figure 3 In one embodiment, determining a switching frequency threshold based on a plurality of test switching frequencies, corresponding first predicted power consumption, and corresponding second predicted power consumption includes but is not limited to the following steps:
[0064] Step S310, obtaining the number of states corresponding to each test switching frequency;
[0065] Step S320, multiple test switching frequencies, corresponding first predicted power consumption, corresponding second predicted power consumption and corresponding state quantities are spliced and input into a threshold prediction model for regression processing to determine a switching frequency threshold.
[0066] The number of states refers to the total number of discrete states of the state machine, that is, the number of all possible states that need to be considered when performing power consumption simulation on the distribution network monitoring control chip.
[0067] It should be noted that the threshold prediction model is a trained regression module, and the switching frequency threshold can be accurately predicted through the threshold prediction model.
[0068] Based on this, multiple test switching frequencies, corresponding first predicted power consumption, corresponding second predicted power consumption and corresponding number of states are spliced and input into the threshold prediction model, so that the threshold prediction model can simultaneously refer to the test switching frequency, the first predicted power consumption, the second predicted power consumption and the number of states to predict the accurate switching frequency threshold. Since each state is represented by an independent signal line in the one-hot encoding mode, the more states there are, the more complex the wiring of the circuit will be, and it will also cause additional power consumption. Therefore, referring to the number of states when predicting the switching frequency threshold can further improve the accuracy of the switching frequency threshold.
[0069] Specifically, refer to Figure 4 , Figure 4 An optional flowchart of the encoding strategy provided in the embodiment of the present application.
[0070] Among them, in the design stage of the distribution network monitoring and control chip, the coding strategy will be configured by initializing the RTL design, that is, the coding strategy will be selected. Then in the application stage of the distribution network monitoring and control chip, the Gray coding mode or the one-hot coding mode can be selected through the decision point of the coding strategy, that is, the Gray code or the one-hot code can be selected. Specifically, when the state machine switching frequency is low, that is, in a simple state, the Gray code will be selected, and then the signal flipping of the state machine can be reduced, thereby reducing power consumption. When the state machine switching frequency is high, that is, in a simple state, the one-hot code will be selected, and then the signal flipping of the multiplexer (MUX) can be reduced, thereby reducing power consumption, realizing the comprehensive use of Gray code and one-hot code technology to reduce total power consumption.
[0071] In addition, refer to Figure 5 In one embodiment, the clock optimization strategy is configured based on the working mode, including but not limited to the following steps:
[0072] Step S510, determining a clock frequency requirement of a module based on the working mode, and determining a plurality of clock frequency intervals based on the clock frequency requirement;
[0073] Step S520: configuring a clock optimization strategy based on multiple clock frequency intervals.
[0074] The clock optimization strategy is used to deploy candidate clock domains corresponding to each clock frequency interval, and to determine the target clock domain corresponding to the module among multiple candidate clock domains. Each candidate clock domain is independent of each other.
[0075] Based on this, the clock frequency requirement of the module is determined by the working mode. Generally, the clock frequency requirement is higher in the high-power working mode, and lower in the low-power working mode. For example, the clock frequency requirement is 1.5 GHz in the high-power working mode, and the clock frequency requirement is 0.5 GHz in the low-power working mode. Then, multiple clock frequency intervals can be determined based on the clock frequency requirement. For example, the clock frequency intervals include 0.5 GHz to 0.8 GHz, and 0.8 GHz to 1.5 GHz. Then, the clock optimization strategy is configured through multiple clock frequency intervals, so that the clock optimization strategy can deploy candidate clock domains corresponding to each clock frequency interval. Specifically, a multi-level clock tree structure can be used to divide the system into multiple clock domains, so that each clock domain can correspond to clock signals with different clock frequencies. Therefore, based on the working mode of the module, the module is divided into a suitable target clock domain, which is equivalent to switching to clock signals with different clock frequencies, thereby further reducing power consumption.
[0076] In addition, refer to Figure 6 In one embodiment, the power management policy is configured based on the workload and power consumption requirements, including but not limited to the following steps:
[0077] Step S610, determining a voltage requirement of a module based on workload and power consumption requirement, and determining a plurality of voltage intervals based on the voltage requirement;
[0078] Step S620: configuring a power management strategy based on multiple voltage intervals.
[0079] The power management strategy is used to deploy candidate power domains corresponding to each voltage range, and to determine the target power domain corresponding to the module among multiple candidate power domains. Each candidate power domain is independent of each other.
[0080] Based on this, the voltage requirement is determined by the workload and power consumption requirement, and then multiple voltage intervals are determined by the voltage requirement. Then, the power management strategy is configured through multiple voltage intervals, so that the power management strategy can deploy candidate power domains corresponding to each voltage interval, which is equivalent to dividing the power domain according to the characteristics of the functional module, and realizing different supply voltages in different candidate power domains. Therefore, based on the workload and power consumption requirements of the module, the module is divided into a suitable target power domain. For example, the power domain of the module is switched by the MTCMOS trigger, which provides the module with a suitable power supply voltage, which can effectively reduce power consumption and improve energy efficiency.
[0081] In addition, since the candidate power domains are independent of each other, each candidate power domain independently controls the turning on and off of the power supply. Therefore, high-efficiency power supply can be provided to active modules, and the power supply to idle modules can be cut off. Specifically, the power management unit (PMU) can be responsible for monitoring the activity status of each power domain and disconnecting the power supply when it is inactive to further reduce power consumption.
[0082] In addition, in one embodiment, the distribution network monitoring control chip is provided with a clock gating unit corresponding to each module, each clock gating unit is configured with a corresponding clock gating strategy, and the clock gating strategy is configured as follows:
[0083] When the working state of the module is in the active state, the corresponding clock gating unit is controlled to be turned on to send a clock signal to the module;
[0084] Alternatively, when the working state of the module is in an idle state, the corresponding clock gating unit is controlled to be turned off to stop sending the clock signal to the module.
[0085] Based on this, by configuring the corresponding clock gating strategy for each clock gating unit, the clock gating strategy can be used to control the corresponding clock gating unit to be turned off in the idle state to stop sending clock signals to the module, which is equivalent to automatically turning off unnecessary clock signals, avoiding unnecessary trigger flips, and reducing the power consumption of the clock tree. The clock signal of each module is dynamically enabled or disabled according to its activity state to reduce power consumption when idle.
[0086] Specifically, refer to Figure 7 , Figure 7 An optional flow chart of the clock gating strategy and clock optimization strategy provided in the embodiment of the present application.
[0087] Among them, in the design stage of the distribution network monitoring control chip, it is necessary to initialize the clock tree and design the clock gating unit. At this time, the clock tree can be divided and the clock shutdown condition can be set. For example, the clock shutdown condition is set to: when the clock frequency is <0.1GHz, the clock gating will be turned off. Then in the application stage of the distribution network monitoring control chip, the module activity state can be judged. Through the clock gating strategy, when the module is in the active state, the clock is started, the frequency can be preset to 1Gz, and the power consumption is: 30mW. When the module is in the idle state, the clock is disabled and there is no power consumption. For active modules, high-load modules are switched to high-frequency mode (frequency: 1.5Gz, power consumption: 50mW), and low-load modules are switched to low-frequency mode (frequency: 0.5Gz, power consumption: 15mW). The clock frequency is then dynamically adjusted (frequency: 0.5-1.5GHz), and mode switching is performed through a clock optimization strategy. Specifically, multi-level clock domain division is performed to allocate clock domains, and then power domain switching is performed through MTCMOS trigger selection. Static power consumption is reduced by shutting down unnecessary power domains, which can reduce power consumption by 30% and achieve power consumption monitoring and optimization.
[0088] In addition, refer to Figure 8 In one embodiment, the device includes a decoupling capacitor and a band-stop filter, the circuit of the distribution network monitoring control chip includes a power path and a clock signal path, and the circuit layout of the distribution network monitoring control chip is optimized based on the device, including but not limited to the following steps:
[0089] Step S810, setting a decoupling capacitor in the power path and a band-stop filter in the clock signal path to optimize the circuit layout of the distribution network monitoring control chip;
[0090] Step S820, based on the differential signal transmission technology and the double-layer power plane structure, the circuit layout of the distribution network monitoring control chip is optimized again.
[0091] It should be noted that the double-layer power plane structure means that the power plane and the ground plane are distributed on two layers of the PCB. The power plane is responsible for power signal transmission, the ground plane is responsible for grounding, and the coupling of power noise is reduced through a 1.5mm wide isolation strip.
[0092] Based on this, by setting decoupling capacitors, for example, using a combination of 0.1μF and 10nF capacitors to decouple high-frequency and low-frequency noise, high-frequency noise can be effectively filtered out to ensure low-frequency stability. Then, by setting a band-stop filter in the clock signal path, specific frequency noise can be effectively suppressed. Then, the circuit layout of the distribution network monitoring and control chip is optimized again through differential signal transmission technology, which can effectively suppress burr generation. The circuit layout is optimized again through a double-layer power plane structure, which can reduce the impact of power supply noise and reduce burr transmission. Dual-pair transmission can also be introduced in the circuit layout to reduce external interference and ensure signal symmetry, further suppressing burr generation. A shielding design is used in key circuits to isolate high-frequency and low-frequency signals to avoid cross interference, which is equivalent to reducing the burrs caused by electromagnetic noise by optimizing the circuit layout and signal transmission path. Therefore, circuit-level burr optimization is achieved, which can further reduce the burr phenomenon, avoid unnecessary energy waste, and improve the reliability of the circuit.
[0093] In addition, refer to Fig. 9 The present application also provides a distribution network monitoring control chip design device 900, including:
[0094] The first configuration module 910 is used to obtain the working mode, workload and power consumption requirements of each module in the distribution network monitoring control chip during design, configure the clock optimization strategy based on the working mode, and configure the power management strategy based on the workload and power consumption requirements, wherein the clock optimization strategy is used to divide the clock domain of each module, and the power management strategy is used to divide the power domain of each module;
[0095] The second configuration module 920 is used to obtain a switching frequency threshold of a state machine in the distribution network monitoring control chip, and configure a coding strategy of the state machine based on the switching frequency threshold, wherein the coding strategy is used to determine a target coding mode of the state machine from a plurality of candidate coding modes, and the target coding mode refers to a mode for encoding the state of the state machine;
[0096] The optimization module 930 is used to obtain the working requirements of the distribution network monitoring control chip, select corresponding devices based on the working requirements, and optimize the circuit layout of the distribution network monitoring control chip based on the devices.
[0097] It can be understood that the specific implementation of the distribution network monitoring control chip design device 900 is basically the same as the specific implementation of the distribution network monitoring control chip design method mentioned above, and will not be repeated here.
[0098] In addition, refer to Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0099] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0100] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the distribution network monitoring control chip design method of the embodiment of this application;
[0101] Input / output interface 1003, used to implement information input and output;
[0102] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0103] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );
[0104] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .
[0105] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned distribution network monitoring control chip design method.
[0106] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0107] The distribution network monitoring and control chip design method, device, equipment and storage medium provided in the embodiments of the present application obtain the working mode, workload and power consumption requirements of each module in the distribution network monitoring and control chip during design, configure the clock optimization strategy based on the working mode, and configure the power management strategy based on the workload and power consumption requirements, wherein the clock optimization strategy is used to divide the clock domain of each module, and the power management strategy is used to divide the power domain of each module; obtain the switching frequency threshold of the state machine in the distribution network monitoring and control chip, and configure the coding strategy of the state machine based on the switching frequency threshold, wherein the coding strategy is used to determine the target coding mode of the state machine from multiple candidate coding modes, and the target coding mode refers to the mode for encoding the state of the state machine; obtain the working requirements of the distribution network monitoring and control chip, select the corresponding device based on the working requirements, and optimize the circuit layout of the distribution network monitoring and control chip based on the device. Based on this, by configuring the clock optimization strategy according to the working mode of each module in the distribution network monitoring and control chip during design, the clock optimization strategy can be used to divide the clock domain of each module, so as to provide a suitable clock signal for each module, and effectively reduce power consumption while ensuring high performance. Then, the power management strategy is configured according to the workload and power consumption requirements of each module in the distribution network monitoring and control chip during design, and the power management strategy can be used to divide the power domain of each module, so as to provide a suitable power supply voltage for each module, and further reduce power consumption while ensuring high performance. Then, in the RTL-level coding design, the coding strategy of the state machine is configured through the switching frequency threshold of the state machine, and the coding strategy can be used to determine the target coding mode among multiple candidate coding modes. By selecting the target coding mode for state coding, power consumption can be effectively reduced at various switching frequencies. Then, the corresponding device is selected according to the working requirements of the distribution network monitoring and control chip, and then the circuit layout of the distribution network monitoring and control chip is optimized, which can effectively reduce power consumption. Therefore, the RLT-level low-power technology design is realized, which can meet the requirements of low power consumption while achieving high performance, thereby improving the monitoring capability and stability of the distribution network monitoring and control chip.
[0108] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0109] It can be understood by those skilled in the art that Figures 1 to 8 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.
[0110] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0112] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0113] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0114] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0115] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0116] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0118] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A distribution network monitoring control chip design method, characterized in that: include: Obtain the working mode, workload and power consumption requirements of each module in the distribution network monitoring control chip during design, configure the clock optimization strategy based on the working mode, and configure the power management strategy based on the workload and the power consumption requirements, wherein the clock optimization strategy is used to divide the clock domain of each module, and the power management strategy is used to divide the power domain of each module; Obtaining a switching frequency threshold of a state machine in the distribution network monitoring control chip, and configuring a coding strategy of the state machine based on the switching frequency threshold, wherein the coding strategy is used to determine a target coding mode of the state machine from a plurality of candidate coding modes, and the target coding mode refers to a mode for encoding the state of the state machine; The working requirements of the distribution network monitoring control chip are obtained, corresponding devices are selected based on the working requirements, and the circuit layout of the distribution network monitoring control chip is optimized based on the devices.
2. The distribution network monitoring control chip design method according to claim 1, characterized in that: The distribution network monitoring control chip is provided with a multiplexer, and the multiplexer is used to perform multiplex selection according to the state of the state machine. The multiple candidate coding modes include a Gray coding mode and a one-hot coding mode. The Gray coding mode refers to a mode in which Gray coding is performed on the state of the state machine. The one-hot coding mode refers to a mode in which one-hot coding is performed on the state of the state machine. The switching frequency threshold of the state machine in the distribution network monitoring control chip is obtained, including: Acquire multiple test switching frequencies of the state machine; The coding mode of the state machine is configured as the Gray coding mode, and the power consumption of the distribution network monitoring control chip is simulated based on each of the test switching frequencies to obtain a first predicted power consumption corresponding to each of the test switching frequencies; The encoding mode of the state machine is configured as the one-hot encoding mode, and power consumption simulation is performed on the distribution network monitoring control chip based on each of the test switching frequencies to obtain a second predicted power consumption corresponding to each of the test switching frequencies; A switching frequency threshold is determined based on the multiple test switching frequencies, the corresponding first predicted power consumption and the corresponding second predicted power consumption, wherein the encoding strategy is configured to configure the Gray encoding mode as the target encoding mode of the state machine when the switching frequency of the state machine is less than or equal to the switching frequency threshold, or to configure the one-hot encoding mode as the target encoding mode of the state machine when the switching frequency of the state machine is greater than the switching frequency threshold.
3. The method for designing a distribution network monitoring control chip according to claim 2, characterized in that: The determining the switching frequency threshold based on the plurality of test switching frequencies, the corresponding first predicted power consumption and the corresponding second predicted power consumption includes: Obtaining the number of states corresponding to each of the test switching frequencies, wherein the number of states refers to the total number of discrete states of the state machine; A plurality of the test switching frequencies, the corresponding first predicted power consumption, the corresponding second predicted power consumption and the corresponding number of states are spliced and input into a threshold prediction model for regression processing to determine a switching frequency threshold.
4. The method for designing a distribution network monitoring control chip according to claim 1, characterized in that: The configuring a clock optimization strategy based on the working mode includes: Determine a clock frequency requirement of the module based on the working mode, and determine a plurality of clock frequency intervals based on the clock frequency requirement; A clock optimization strategy is configured based on the multiple clock frequency intervals, wherein the clock optimization strategy is used to deploy candidate clock domains corresponding to each of the clock frequency intervals, and to determine a target clock domain corresponding to the module among the multiple candidate clock domains, and each of the candidate clock domains is independent of each other.
5. The method for designing a distribution network monitoring control chip according to claim 1, characterized in that: The configuring a power management strategy based on the workload and the power consumption requirement includes: Determine a voltage requirement of the module based on the workload and the power consumption requirement, and determine a plurality of voltage intervals based on the voltage requirement; A power management strategy is configured based on the multiple voltage intervals, wherein the power management strategy is used to deploy candidate power domains corresponding to each of the voltage intervals, and to determine a target power domain corresponding to the module among the multiple candidate power domains, and each of the candidate power domains is independent of each other.
6. The method for designing a distribution network monitoring control chip according to claim 1, characterized in that: The distribution network monitoring control chip is provided with a clock gating unit corresponding to each of the modules, and each of the clock gating units is configured with a corresponding clock gating strategy, and the clock gating strategy is configured as follows: When the working state of the module is in an active state, controlling the corresponding clock gating unit to be turned on to send a clock signal to the module; Alternatively, when the working state of the module is in an idle state, the corresponding clock gating unit is controlled to be turned off to stop sending the clock signal to the module.
7. The method for designing a distribution network monitoring control chip according to claim 1, characterized in that: The device includes a decoupling capacitor and a band-stop filter, the circuit of the distribution network monitoring control chip includes a power path and a clock signal path, and the circuit layout of the distribution network monitoring control chip is optimized based on the device, including: The decoupling capacitor is arranged in the power supply path, and the band-stop filter is arranged in the clock signal path, so as to optimize the circuit layout of the distribution network monitoring control chip; Based on the differential signal transmission technology and the double-layer power plane structure, the circuit layout of the distribution network monitoring control chip is further optimized.
8. A distribution network monitoring and control chip design device, characterized in that: include: A first configuration module is used to obtain the working mode, workload and power consumption requirements of each module in the distribution network monitoring control chip during design, configure a clock optimization strategy based on the working mode, and configure a power management strategy based on the workload and the power consumption requirements, wherein the clock optimization strategy is used to divide the clock domains of each module, and the power management strategy is used to divide the power domains of each module; A second configuration module is used to obtain a switching frequency threshold of a state machine in the distribution network monitoring control chip, and configure a coding strategy of the state machine based on the switching frequency threshold, wherein the coding strategy is used to determine a target coding mode of the state machine from a plurality of candidate coding modes, and the target coding mode refers to a mode for encoding the state of the state machine; The optimization module is used to obtain the working requirements of the distribution network monitoring control chip, select corresponding devices based on the working requirements, and optimize the circuit layout of the distribution network monitoring control chip based on the devices.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the distribution network monitoring control chip design method according to any one of claims 1 to 7 when executing the computer program.
10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the distribution network monitoring control chip design method described in any one of claims 1 to 7 is implemented.