[go: up one dir, main page]

CN104467760B - A kind of control method and electronic equipment - Google Patents

A kind of control method and electronic equipment Download PDF

Info

Publication number
CN104467760B
CN104467760B CN201310418823.1A CN201310418823A CN104467760B CN 104467760 B CN104467760 B CN 104467760B CN 201310418823 A CN201310418823 A CN 201310418823A CN 104467760 B CN104467760 B CN 104467760B
Authority
CN
China
Prior art keywords
module
state
control signal
logic
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310418823.1A
Other languages
Chinese (zh)
Other versions
CN104467760A (en
Inventor
安之平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310418823.1A priority Critical patent/CN104467760B/en
Publication of CN104467760A publication Critical patent/CN104467760A/en
Application granted granted Critical
Publication of CN104467760B publication Critical patent/CN104467760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a kind of control method, methods described includes:The judge module detects the working condition of the logic module, when the working condition meets the first preparatory condition, the judge module enters first state and generates the first control signal, export first control signal to control module, the control module switches to first state according to the first control signal by logic module simultaneously;When judge module detects the second preparatory condition, the judge module enters the second state and generates the second control signal, export second control signal to control module, the control module switches to the second state according to the second control signal by logic module simultaneously.The present invention also discloses a kind of electronic equipment.Using technical scheme, the control of large-scale clock status is realized, reduces circuit power consumption, and without the configuration by software, effectively reduce cost.

Description

Control method and electronic equipment
Technical Field
The invention relates to a control technology, in particular to a control method and electronic equipment.
Background
Clock gating techniques are mainly used to reduce the dynamic power consumption of digital circuits by turning off the clock when the digital circuits do not need to operate. The current gating clock technology mainly comprises the following steps: manual gated clocks and tool insertion gated clocks. The former is to close the clock by using software through a configuration register, although the control range is large, the intervention of the software is needed, the cost is increased, and large delay is brought; the latter is to insert a gated clock control circuit during compiling through an electronic design automation tool, and although the design through software is not needed, the control range of the method is small, and usually only one set of registers is used, and for the whole logic function module, the method may need to insert a plurality of gated clock circuits to realize the control of the clock of the whole logic function module.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a control method and an electronic device, which can implement control of clock states in a wide range, and do not need to configure software, thereby effectively reducing cost.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a control method, which is applied to electronic equipment, wherein the electronic equipment comprises a logic module, and the electronic equipment further comprises: the logic module is internally provided with a communication interface with the judgment module; the method comprises the following steps:
the judgment module detects the working state of the logic module, when the working state meets a first preset condition, the judgment module enters a first state and generates a first control signal, and simultaneously outputs the first control signal to the control module, and the control module switches the logic module to the first state according to the first control signal;
when the judging module detects a second preset condition, the judging module enters a second state and generates a second control signal, and simultaneously outputs the second control signal to the control module, and the control module switches the logic module into the second state according to the second control signal.
An embodiment of the present invention further provides an electronic device, where the electronic device includes a logic module, and the electronic device further includes: the device comprises a judgment module and a control module; wherein,
the judging module is used for detecting the working state of the logic module, entering a first state and generating a first control signal when the working state meets a first preset condition, and outputting the first control signal to the control module; the controller is also used for entering a second state and generating a second control signal when a second preset condition is detected, and meanwhile outputting the second control signal to the control module;
the control module is used for switching the logic module to a first state according to the first control signal output by the judgment module; and the logic module is switched to a second state according to a second control signal output by the judgment module.
According to the control method and the electronic device provided by the embodiment of the invention, the electronic device comprises a judgment module and a control module; detecting the working state of a logic module through a judging module, when the working state meets a first preset condition, enabling the judging module to enter a first state and generate a first control signal, and simultaneously outputting the first control signal to a control module, wherein the control module switches the logic module into the first state according to the first control signal; when the judging module detects a second preset condition, the judging module enters a second state and generates a second control signal, and simultaneously outputs the second control signal to the control module, and the control module switches the logic module into the second state according to the second control signal. According to the technical scheme of the embodiment of the invention, a new judgment module is added at the top layer of module design, the control of the clock state in a large range is realized by switching the state of the whole logic module, and the cost is effectively reduced without the configuration of software.
Drawings
Fig. 1 is a schematic flowchart of a control method according to a first embodiment of the invention;
FIG. 2 is a flowchart illustrating a control method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a control method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating a control method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a schematic flowchart of a control method according to a first embodiment of the present invention, where the control method is used for an electronic device, and the electronic device includes a logic module; in a preferred embodiment of the present invention, the electronic device further includes: the logic module is internally provided with a communication interface with the judgment module; as shown in fig. 1, the control method includes the steps of:
step 101: the judging module detects the working state of the logic module.
In this embodiment, the logic module is an original module in the electronic device, and includes a chip, a logic circuit, and the like, which can implement various logic functions; the logic functions may include various data processing functions such as data collection, storage, computation, transformation, transmission, and so on.
Here, the determining module may detect the working state of the logic module by detecting a data transmission rate or a data calculation rate in the logic module, and obtain the working state of the logic module according to the data transmission rate or the data calculation rate; or the judging module sends a message to the logic module and determines the working state of the logic module according to the received response message; wherein the working state comprises a working state and a working end state.
Step 102: when the working state meets a first preset condition, the judging module enters a first state and generates a first control signal, and the first control signal is output to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a first preset condition and a first state, and when the working state of the logic module detected by the judgment module meets the first preset condition, the logic module is triggered to enter the first state, and a first control signal is generated according to the first state, and is sent to the control module.
Step 103: the control module switches the logic module to a first state according to the first control signal.
Here, the control module may be a clock gating unit, and the logic module is switched to the first state by control of the clock gating unit.
Step 104: when the judging module detects a second preset condition, the judging module enters a second state and generates a second control signal, and meanwhile, the second control signal is output to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a second preset condition and a second state, and when the judging module detects the second preset condition, the judging module triggers entering the second state, generates a second control signal according to the second state, and sends the second control signal to the control module.
Step 105: and the control module switches the logic module into a second state according to the second control signal.
Here, the control module may be a clock gate, and the logic module is switched from the first state to the second state by the control of the clock gate.
According to the control method in the embodiment of the invention, the working state of the logic module is detected by the judgment module, different control signals are generated according to different working states and sent to the external control module, and the control module switches the clock state of the whole logic module.
Fig. 2 is a flowchart illustrating a control method according to a second embodiment of the present invention, where the control method is applied to an electronic device, and the electronic device includes a logic module; in another preferred embodiment of the present invention, the electronic device further includes: the logic module is internally provided with a communication interface with the judgment module; the logic module comprises more than one logic operation unit; as shown in fig. 2, the control method includes the steps of:
step 201: the judging module detects the working state of the more than one logic operation units.
In this embodiment, the logic module is an original module in the electronic device, and includes a chip, a logic circuit, and the like, which can implement various logic functions; the logic function may include various data processing functions such as data acquisition, storage, calculation, transformation, transmission, etc.; the various logical functions may be implemented by the one or more logical operation units.
Here, the determining module may detect the working state of the one or more logical operation units by detecting a data transmission rate or a data calculation rate in the one or more logical operation units, and obtain the working state of the logical module according to the data transmission rate or the data calculation rate; or the judging module sends a message to the logic module and determines the working state of the logic module according to the received response message; wherein the working state comprises a working state and a working end state.
Step 202: when the working states of the more than one logic operation units all meet a first preset condition, the judging module enters the first state and generates a first control signal, and the first control signal is output to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a first preset condition and a first state, and when the working state of the logic module detected by the judgment module meets the first preset condition, the logic module is triggered to enter the first state, and a first control signal is generated according to the first state, and is sent to the control module.
Step 203: the control module switches the logic module to a first state according to the first control signal.
Here, the control module may be a clock gating unit, and the logic module is switched to the first state by control of the clock gating unit.
Step 204: when the judging module detects a second preset condition, the judging module enters a second state and generates a second control signal, and meanwhile, the second control signal is output to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a second preset condition and a second state, and when the judging module detects the second preset condition, the judging module triggers entering the second state, generates a second control signal according to the second state, and sends the second control signal to the control module.
Step 205: and the control module switches the logic module into a second state according to the second control signal.
Here, the control module may be a clock gate, and the logic module is switched from the first state to the second state by the control of the clock gate.
According to the control method in the embodiment of the invention, the working state of the logic module is detected by the judgment module, different control signals are generated according to different working states and sent to the external control module, and the control module switches the clock state of the whole logic module.
Fig. 3 is a flowchart illustrating a control method according to a third embodiment of the present invention, where the control method is applied to an electronic device, and the electronic device includes a logic module; in another preferred embodiment of the present invention, the electronic device further includes: the logic module is internally provided with a communication interface with the judgment module; as shown in fig. 3, the control method includes the steps of:
step 301: the judging module sets a clock period.
Here, the determining module may set a clock period through a timer, where the clock period may be set to a clock period with an equal time interval, and may also be set to a clock period with a different time interval according to different operating states of the logic module.
Step 302: the judging module detects the working state of the logic module.
In this embodiment, the logic module is an original module in the electronic device, and includes a chip, a logic circuit, and the like, which can implement various logic functions; the logic functions may include various data processing functions such as data collection, storage, computation, transformation, transmission, and so on.
Here, the determining module may detect the working state of the logic module by detecting a data transmission rate or a data calculation rate in the logic module, and obtain the working state of the logic module according to the data transmission rate or the data calculation rate; or the judging module sends a message to the logic module and determines the working state of the logic module according to the received response message; wherein the working state comprises a working state and a working end state.
Step 303: and when the working state meets the condition that the logic module finishes working and does not receive a new task request in the current clock period, the judging module enters a first state and generates a first control signal, and simultaneously outputs the first control signal to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a first preset condition and a first state, and when the working state of the logic module detected by the judgment module meets the first preset condition, the logic module is triggered to enter the first state, and a first control signal is generated according to the first state, and is sent to the control module.
In this embodiment, the first preset condition includes: the logic module finishes working and does not receive a new task request in the current clock period; when the working state of the logic module detected by the judging module meets the conditions that the logic module finishes working and does not receive a new task request in the current clock period, triggering to enter a first state, generating a first control signal according to the first state, and sending the first control signal to a control module.
Step 304: the control module switches the logic module to a first state according to the first control signal.
Here, the control module may be a clock gating unit, and the logic module is switched to the first state by control of the clock gating unit.
Step 305: when the judging module detects that a new task requests the logic module or the clock cycle time is up, the judging module enters a second state and generates a second control signal, and meanwhile, the second control signal is output to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a second preset condition and a second state, and when the judging module detects the second preset condition, the judging module triggers entering the second state, generates a second control signal according to the second state, and sends the second control signal to the control module.
In this embodiment, the second preset condition includes: a new task requests the arrival of the clock cycle time set by the logic module or the judgment module; and when the judging module detects that the new task requests the logic module or the clock cycle time is up, triggering to enter a second state, generating a second control signal according to the second state, and sending the second control signal to a control module.
Step 306: and the control module switches the logic module into a second state according to the second control signal.
Here, the control module may be a clock gate, and the logic module is switched from the first state to the second state by the control of the clock gate.
According to the control method in the embodiment of the invention, the working state of the logic module is detected by the judgment module, different control signals are generated according to different working states and sent to the external control module, and the control module switches the clock state of the whole logic module.
Fig. 4 is a flowchart illustrating a control method according to a fourth embodiment of the present invention, where the control method is applied to an electronic device, and the electronic device includes a logic module; in another preferred embodiment of the present invention, the electronic device further includes: the logic module is internally provided with a communication interface with the judgment module; as shown in fig. 4, the control method includes the steps of:
step 401: the judging module detects the working state of the logic module.
In this embodiment, the logic module is an original module in the electronic device, and includes a chip, a logic circuit, and the like, which can implement various logic functions; the logic functions may include various data processing functions such as data collection, storage, computation, transformation, transmission, and so on.
Here, the determining module may detect the working state of the logic module by detecting a data transmission rate or a data calculation rate in the logic module, and obtain the working state of the logic module according to the data transmission rate or the data calculation rate; or the judging module sends a message to the logic module and determines the working state of the logic module according to the received response message; wherein the working state comprises a working state and a working end state.
Step 402: when the working state meets a first preset condition, the judging module enters a low power consumption state or a clock closing state to generate a first control signal, and the first control signal is output to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a first preset condition and a first state, and when the working state of the logic module detected by the judgment module meets the first preset condition, the logic module is triggered to enter the first state, and a first control signal is generated according to the first state, and is sent to the control module.
In this embodiment, the first state is a low power consumption state or a clock off state; the state table is provided with a corresponding relation between the first preset condition and the low power consumption state or the clock closing state, when the working state of the logic module detected by the judging module meets the first preset condition, the logic module is triggered to enter the low power consumption state or the clock closing state, a first control signal is generated according to the first state, and meanwhile the first control signal is sent to the control module.
Step 403: the control module switches the logic module into a low power consumption state or a closed state according to the first control signal.
Here, the control module may be a clock gating unit, and the logic module is switched to a low power consumption state or a clock off state by the control of the clock gating unit, and the logic module turns off its own clock, is in a work suspension state, and does not receive any data or instruction sent by other logic modules.
Step 404: when the judging module detects a second preset condition, the judging module enters a clock starting state and generates a second control signal, and meanwhile, the second control signal is output to the control module.
Here, the determining module may be a state machine, where a state table is stored in the state machine, and a corresponding relationship between a condition and a state and a corresponding action executed in the state are recorded in the state table, and when a certain condition is satisfied, the state is triggered to enter a certain state, and the corresponding action is executed according to the certain state; specifically, the state table is configured with a corresponding relationship between a second preset condition and a second state, and when the judging module detects the second preset condition, the judging module triggers entering the second state, generates a second control signal according to the second state, and sends the second control signal to the control module.
In this embodiment, the second state is a clock on state, a corresponding relationship between the second preset condition and the clock on state is set in the state table, when the determining module detects the second preset condition, the determining module is triggered to enter the clock on state, and generates a second control signal according to the clock on state, and sends the second control signal to the control module.
Step 405: and the control module switches the logic module into a clock starting state according to the second control signal.
Here, the control module may be a clock gating unit, and the logic module is switched from the low power consumption state or the clock off state to a clock on state by the control of the clock gating unit, and the logic module is not controlled by the clock gating of the control module, and turns on its own clock to start receiving data or instructions sent by other logic modules.
According to the control method in the embodiment of the invention, the working state of the logic module is detected by the judgment module, different control signals are generated according to different working states and sent to the external control module, and the control module switches the clock state of the whole logic module.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device includes a logic module 50, and in a preferred embodiment of the present invention, the electronic device further includes: a judgment module 51 and a control module 52; wherein:
the judging module 51 is configured to detect a working state of the logic module 50, enter a first state and generate a first control signal when the working state meets a first preset condition, and output the first control signal to the control module 52; the controller is further configured to enter a second state and generate a second control signal when a second preset condition is detected, and output the second control signal to the control module 52;
the control module 52 is configured to switch the logic module 50 to the first state according to the first control signal output by the determining module 51; and is further configured to switch the logic module 50 to the second state according to the second control signal output by the judging module 51.
Preferably, the judging module 51 in this embodiment may be disposed at a top layer inside the logic module 50, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the judging module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the judging module 51; the determining module 51 may also be disposed outside the logic module 50, but the determining module 50 is disposed at a transmission entrance of the logic module 50, that is, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the determining module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the determining module 51.
Preferably, the control module 52 may be a clock gating.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
An electronic device is further described in the embodiment of the present invention, as shown in fig. 5, the electronic device includes a logic module 50, and in another preferred embodiment of the present invention, the logic module 50 includes more than one logic operation unit; the electronic device further includes: a judgment module 51 and a control module 52; wherein:
the judging module 51 is configured to detect the working states of the more than one logical operation units, enter a first state and generate a first control signal when the working states of the more than one logical operation units all satisfy a first preset condition, and output the first control signal to the control module 52; the controller is further configured to enter a second state and generate a second control signal when a second preset condition is detected, and output the second control signal to the control module 52;
the control module 52 is configured to switch the at least one logic operation unit to a first state according to the first control signal output by the determining module 51; and is further configured to switch the one or more logic operation units to a second state according to a second control signal output by the determining module 51.
Preferably, the judging module 51 in this embodiment may be disposed at a top layer inside the logic module 50, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the judging module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the judging module 51; the determining module 51 may also be disposed outside the logic module 50, but the determining module 50 is disposed at a transmission entrance of the logic module 50, that is, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the determining module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the determining module 51.
Preferably, the control module 52 may be a clock gating.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
An electronic device is further described in the embodiment of the present invention, as shown in fig. 5, the electronic device includes a logic module 50, and in another preferred embodiment of the present invention, the electronic device further includes: a judgment module 51 and a control module 52; wherein:
the judging module 51 is configured to set a clock period; the logic module is further configured to detect a working state of the logic module 50, enter a first state and generate a first control signal when the working state satisfies that the logic module is finished and no new task request is received in a current clock cycle, and output the first control signal to the control module 52; specifically, the logic module 50 is further configured to enter a second state and generate a second control signal when detecting that a new task requests the logic module 50 or the clock cycle time is up, and output the second control signal to the control module 52;
the control module 52 is configured to switch the logic module 50 to the first state according to the first control signal output by the determining module 51; and is further configured to switch the logic module 50 to the second state according to the second control signal output by the judging module 51.
Preferably, the judging module 51 in this embodiment may be disposed at a top layer inside the logic module 50, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the judging module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the judging module 51; the determining module 51 may also be disposed outside the logic module 50, but the determining module 50 is disposed at a transmission entrance of the logic module 50, that is, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the determining module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the determining module 51.
Preferably, the control module 52 may be a clock gating.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
An electronic device is further described in the embodiment of the present invention, as shown in fig. 5, the electronic device includes a logic module 50, and in another preferred embodiment of the present invention, the electronic device further includes: a judgment module 51 and a control module 52; wherein:
the determining module 51 is specifically configured to detect a working state of the logic module 50, enter a low power consumption state or a clock off state and generate a first control signal when the working state meets a first preset condition, and output the first control signal to the control module 52; the clock start circuit is further configured to enter a clock start state and generate a second control signal when a second preset condition is detected, and output the second control signal to the control module 52;
the control module 52 is configured to switch the logic module 50 into a low power consumption state or a clock off state according to the first control signal output by the determining module 51; and is further configured to switch the logic module 50 to a clock on state according to the second control signal output by the judging module 51.
Preferably, the judging module 51 in this embodiment may be disposed at a top layer inside the logic module 50, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the judging module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the judging module 51; the determining module 51 may also be disposed outside the logic module 50, but the determining module 50 is disposed at a transmission entrance of the logic module 50, that is, the data/signaling output by the logic module 50 can be output to the outside of the logic module 50 only through the determining module 51, and the data/signaling input to the logic module 50 can be input to the inside of the logic module 50 also through the determining module 51.
Preferably, the control module 52 may be a clock gating.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
In practical application, the determining module 51 in the electronic device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or a Programmable logic Array (FPGA) in the electronic device, and a state machine; the control module 52 may be implemented by a gated clock in practical applications.
In the technical scheme provided by the embodiment of the invention, a threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives the data communication request sent by the terminal, the data communication request information of the terminal is compared with the corresponding threshold value, and the operation of the data communication request is executed according to the comparison result, so that on one hand, the full utilization of data bandwidth resources in the electronic equipment is met, the waste is avoided, on the other hand, the minimum bandwidth requirement of a user is ensured, the data communication quality of the user is ensured, and the user experience is greatly improved.
In the technical scheme provided by the embodiment of the invention, a threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives the data communication request sent by the terminal, the data communication request information of the terminal is compared with the corresponding threshold value, and the operation of the data communication request is executed according to the comparison result, so that on one hand, the full utilization of data bandwidth resources in the electronic equipment is met, the waste is avoided, on the other hand, the minimum bandwidth requirement of a user is ensured, the data communication quality of the user is ensured, and the user experience is greatly improved.
In the embodiments provided in the present invention, it should be understood that the disclosed method and electronic device can be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit according to the embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A control method, the method being applied to an electronic device, the electronic device including a logic module, characterized in that: the electronic device further includes: the logic module is internally provided with a communication interface with the judgment module; the method comprises the following steps:
the judgment module detects the working state of the logic module, when the working state meets a first preset condition, the judgment module enters a first state and generates a first control signal, and simultaneously outputs the first control signal to the control module, and the control module switches the logic module to the first state according to the first control signal;
when the judging module detects a second preset condition, the judging module enters a second state and generates a second control signal, and simultaneously outputs the second control signal to the control module, and the control module switches the logic module into the second state according to the second control signal;
the judging module is used for setting a clock period;
the first preset condition includes: the logic module finishes working and does not receive a new task request in the current clock period;
the second preset condition includes: there is a new task request, or the clock cycle time out, for the logic module.
2. The method of claim 1, wherein the logic module comprises more than one logical operation unit; the judging module detects the working state of the logic module, and when the working state meets a first preset condition, the judging module enters a first state and generates a first control signal, and the judging module comprises:
the judging module detects the working states of the more than one logic operation units, and when the working states of the more than one logic operation units meet a first preset condition, the judging module enters a first state and generates a first control signal.
3. The method of claim 1, wherein the first state comprises a low power consumption state or a clock off state;
the second state comprises a clock-on state.
4. The method of claim 1, wherein the control module is a clock gating unit.
5. An electronic device comprising a logic module, the electronic device further comprising: the device comprises a judgment module and a control module; wherein,
the judging module is used for detecting the working state of the logic module, entering a first state and generating a first control signal when the working state meets a first preset condition, and outputting the first control signal to the control module; the controller is also used for entering a second state and generating a second control signal when a second preset condition is detected, and meanwhile outputting the second control signal to the control module;
the control module is used for switching the logic module to a first state according to the first control signal output by the judgment module; the logic module is also used for switching to a second state according to a second control signal output by the judgment module;
the judging module is also used for setting a clock period;
the first preset condition includes: the logic module finishes working and does not receive a new task request in the current clock period; the second preset condition includes: a new task requests the logic module, or the clock cycle time to come.
6. The electronic device of claim 5, wherein the logic module comprises more than one logical operation unit;
the judging module is specifically used for detecting the working states of the more than one logic operation units, entering a first state and generating a first control signal when the working states of the more than one logic operation units all meet a first preset condition, and outputting the first control signal to the control module; the control module is specifically used for entering a second state and generating a second control signal when a second preset condition is detected, and meanwhile outputting the second control signal to the control module;
the control module is specifically configured to switch the at least one logic operation unit to a first state according to the first control signal output by the judgment module; and the logic operation unit is also used for switching the more than one logic operation units into a second state according to a second control signal output by the judgment module.
7. The electronic device of claim 5,
the judging module is further used for detecting the working state of the logic module, entering a first state and generating a first control signal when the working state meets the condition that the logic module finishes working and does not receive a new task request in the current clock period, and outputting the first control signal to the control module; and the logic module is specifically further configured to enter a second state and generate a second control signal when detecting that a new task requests the logic module or when the clock cycle time is up, and output the second control signal to the control module.
8. The electronic device of claim 5, wherein the first state comprises a low power consumption state or a clock off state; the second state comprises a clock-on state;
the judging module is specifically used for detecting the working state of the logic module, entering a low power consumption state or a clock closing state when the working state meets a first preset condition, generating a first control signal, and outputting the first control signal to the control module; the clock starting circuit is also used for entering a clock starting state and generating a second control signal when a second preset condition is detected, and meanwhile, the second control signal is output to the control module;
the control module is used for switching the logic module into a low power consumption state or a clock closing state according to the first control signal output by the judgment module; and the logic module is switched to a clock starting state according to the second control signal output by the judgment module.
9. The electronic device of claim 5, wherein the control module is a clock gating unit.
CN201310418823.1A 2013-09-13 2013-09-13 A kind of control method and electronic equipment Active CN104467760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310418823.1A CN104467760B (en) 2013-09-13 2013-09-13 A kind of control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310418823.1A CN104467760B (en) 2013-09-13 2013-09-13 A kind of control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104467760A CN104467760A (en) 2015-03-25
CN104467760B true CN104467760B (en) 2017-12-29

Family

ID=52913243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310418823.1A Active CN104467760B (en) 2013-09-13 2013-09-13 A kind of control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104467760B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388500A (en) * 2018-02-28 2018-08-10 郑州云海信息技术有限公司 A kind of method, apparatus, the equipment of the opening and closing of control ten thousand mbit ethernets of PCH

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105713A (en) * 2007-08-24 2008-01-16 威盛电子股份有限公司 Data transmission rate adjusting method and computer system
CN102043460A (en) * 2009-10-15 2011-05-04 三星电子株式会社 Computer system and control method thereof
CN102109899A (en) * 2009-12-23 2011-06-29 联想(北京)有限公司 Computer, displayer, and display method of computer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100346836B1 (en) * 2000-06-07 2002-08-03 삼성전자 주식회사 Delay locked loop circuit having duty cycle correction function and delay locking method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105713A (en) * 2007-08-24 2008-01-16 威盛电子股份有限公司 Data transmission rate adjusting method and computer system
CN102043460A (en) * 2009-10-15 2011-05-04 三星电子株式会社 Computer system and control method thereof
CN102109899A (en) * 2009-12-23 2011-06-29 联想(北京)有限公司 Computer, displayer, and display method of computer

Also Published As

Publication number Publication date
CN104467760A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN103543811B (en) CPU control method
US11016548B2 (en) Single chip system and reset method for single chip system
EP2938137B1 (en) Power management method and apparatus for network access module
CN105589825B (en) Electric detonator state method for quickly querying in master-slave mode serial communication network
CN204515496U (en) A kind of route system with Intelligent housing and monitoring and warning function
CN103645794A (en) Chip and method for achieving sleep mode wake-up through edge detection circuit
CN108777862B (en) Bluetooth transmission method, Bluetooth controller and Bluetooth device
RU2010136052A (en) ARCHITECTURE OF A WIRELESS SENSOR UNIT WITH AUTONOMOUS STREAM DATA TRANSFER
CN105634502A (en) Realization method of key scanning based on state machine
CN107533353A (en) Conversion of the control device between normal condition and inactive state
CN109992314B (en) Data reporting method, device, terminal and storage medium
CN104467760B (en) A kind of control method and electronic equipment
CN116266066A (en) Clock switching control method, device, electronic equipment and medium
CN111192581A (en) Voice wake-up method, device and storage medium
WO2020113929A1 (en) Page skip control method and device
CN204945252U (en) Portable electromagnetic radiation detection equipment
CN113741634B (en) State control method based on wearable device and wearable device
WO2016180241A1 (en) Energy-conservation management method and apparatus for terminal and terminal
CN101825962B (en) Touch device capable of saving electric energy and related method thereof
CN104850417B (en) A kind of method and electronic equipment of information processing
CN107729136B (en) Processing priority configuration method and device based on FPGA
CN102938699A (en) Method and device for balanced power supply
CN104331304A (en) Standby waking-up method of external notebook computer of audio equipment
CN104572193A (en) Control method among multiple apparatuses and electronic apparatus thereof
CN113359499B (en) Method, device, home appliance and readable storage medium for controlling home appliances

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant