CN115932548A - Chip-based alarm signal detection method and device - Google Patents

Chip-based alarm signal detection method and device Download PDF

Info

Publication number
CN115932548A
CN115932548A CN202211646596.3A CN202211646596A CN115932548A CN 115932548 A CN115932548 A CN 115932548A CN 202211646596 A CN202211646596 A CN 202211646596A CN 115932548 A CN115932548 A CN 115932548A
Authority
CN
China
Prior art keywords
alarm
signal
chip
time point
module
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.)
Pending
Application number
CN202211646596.3A
Other languages
Chinese (zh)
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.)
Beijing Ziguang Xinneng Technology Co Ltd
Original Assignee
Beijing Ziguang Xinneng Technology Co 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 Beijing Ziguang Xinneng Technology Co Ltd filed Critical Beijing Ziguang Xinneng Technology Co Ltd
Priority to CN202211646596.3A priority Critical patent/CN115932548A/en
Publication of CN115932548A publication Critical patent/CN115932548A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The application discloses a chip-based alarm signal detection method, which is applied to a chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module; the method can lead a plurality of alarm signals to multiplex the same digital control module, can realize the simultaneous detection of the plurality of alarm signals, and reduces the consumption of the digital control module, thus not only meeting the anti-error alarm requirement, but also having the advantages of less occupied circuit resources, higher reliability and precision because only one digital control module is used for finishing the filtering operation of the plurality of alarm signals; that is to say, through the multiplexing of the digital control module, not only the stability, reliability and accuracy of the filtering effect are ensured, but also a large amount of digital circuit resources are saved, and the chip design has lower design difficulty, risk and area overhead.

Description

Chip-based alarm signal detection method and device
Technical Field
The present application relates to the field of signal processing technologies, and in particular, to a method and an apparatus for detecting an alarm signal based on a chip.
Background
The conditions of the working voltage, the current, the temperature and the like of the chip need to be limited within a reasonable range, and the abnormal condition is judged when the range is exceeded. In order to monitor the working environment of the chip, an alarm detection function is usually added in the chip, and is usually implemented by an analog circuit. However, in a period of time after the alarm function of the chip is turned on and turned off, false alarm information is easily generated because the analog circuit needs a certain setup and hold time for stabilization, and the common alarm can mislead the system to generate serious harm response and hinder the system from running, so that an anti-error alarm mechanism needs to be added.
Disclosure of Invention
The application provides a chip-based alarm signal detection method and device, which can meet the requirement of preventing false alarm, ensure the stability, reliability and accuracy of a filtering effect, save a large amount of digital circuit resources and enable chip design to have lower design difficulty, risk and area overhead.
In a first aspect, the present application provides a chip-based alarm signal detection method, which is applied to a chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module; the method comprises the following steps:
the digital control module responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and records the sending time point of the alarm switch control signal;
the alarm signal source signal generating module responds to the alarm switch control signal and starts or stops collecting working operation parameters of a target chip;
if the working operation parameters of the target chip collected by the alarm signal source signal generation module meet alarm conditions, the alarm signal source signal generation module generates an alarm signal and sends the alarm signal to the data control module;
the data control module determines the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module;
and if the validity of the alarm signal is in an effective state, the data control module sends the alarm signal to an alarm signal processing unit.
In a second aspect, the present application provides a chip-based alarm signal detection apparatus, which is applied to a chip alarm apparatus, wherein the chip alarm apparatus includes an alarm signal source signal generation module and a digital control module; the device comprises:
the sending unit is used for controlling the digital control module to respond to an alarm switch instruction, sending an alarm switch control signal to the alarm signal source signal generating module and recording the sending time point of the alarm switch control signal;
the control unit is used for controlling the alarm signal source signal generating module to respond to the alarm switch control signal and start or stop collecting working operation parameters of a target chip;
the generating unit is used for generating an alarm signal by the alarm signal source signal generating module and sending the alarm signal to the data control module if the working operation parameters of the target chip collected by the alarm signal source signal generating module meet an alarm condition;
the determining unit is used for controlling the data control module to determine the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module;
and the transmission unit is used for controlling the data control module to send the alarm signal to the alarm signal processing unit if the validity of the alarm signal is in an effective state.
In a third aspect, the present application provides a readable medium comprising executable instructions, which when executed by a processor of an electronic device, perform the method according to any of the first aspect.
In a fourth aspect, the present application provides an electronic device comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
According to the technical scheme, the chip-based alarm signal detection method can be applied to a chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module. In the method, the digital control module responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and records the sending time point of the alarm switch control signal; then, the alarm signal source signal generating module responds to the alarm switch control signal to start or stop collecting working operation parameters of a target chip; then, if the working operation parameters of the target chip collected by the alarm signal source signal generating module meet alarm conditions, the alarm signal source signal generating module generates an alarm signal and sends the alarm signal to the data control module; finally, the data control module determines the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module; and if the validity of the alarm signal is in an effective state, the data control module sends the alarm signal to an alarm signal processing unit. In this embodiment, since the plurality of alarm signals can multiplex the same digital control module, simultaneous detection of the plurality of alarm signals can be realized, and consumption of the digital control module is reduced, so that filtering operations for the plurality of alarm signals can be completed only by using one digital control module (i.e., the chip alarm device with higher reusability and few interface resources can complete the anti-false alarm task), and therefore, the anti-false alarm requirement can be met, and the anti-false alarm device has the advantages of less occupied circuit resources (i.e., smaller area overhead of the chip alarm device can be ensured), and higher reliability and precision; moreover, as the chip alarm device uses a pure digital circuit, compared with analog filtering in an analog module, the stability and the precision of the chip alarm device are obviously improved, and the design risk is lower. That is to say, by multiplexing the digital control module, not only the stability, reliability and accuracy of the filtering effect are ensured, but also a large amount of digital circuit resources are saved, so that the chip design has lower design difficulty, risk and area overhead.
Further effects of the above-described unconventional preferred modes will be described below in conjunction with the detailed description.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present application, the drawings needed for describing the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings can be obtained by those skilled in the art without inventive exercise.
FIG. 1 is a schematic flow chart of a chip-based alarm signal detection method according to the present application;
fig. 2 is a schematic structural diagram of a chip alarm device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an alarm signal detection apparatus based on a chip according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The inventor finds that in the prior art, in order to monitor the working environment of the chip, an alarm detection function is usually added in the chip, and is usually implemented by an analog circuit. However, in a period of time after the alarm function of the chip is turned on and turned off, false alarm information is easily generated because the analog circuit needs a certain setup and hold time for stabilization, and the common alarm can mislead the system to generate serious harm response and hinder the system from running, so that an anti-error alarm mechanism needs to be added.
Therefore, the chip-based alarm signal detection method can be applied to a chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module. In the method, the digital control module responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and records the sending time point of the alarm switch control signal; then, the alarm signal source signal generating module responds to the alarm switch control signal to start or stop collecting working operation parameters of a target chip; then, if the working operation parameters of the target chip collected by the alarm signal source signal generating module meet alarm conditions, the alarm signal source signal generating module generates an alarm signal and sends the alarm signal to the data control module; finally, the data control module determines the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module; and if the validity of the alarm signal is in an effective state, the data control module sends the alarm signal to an alarm signal processing unit. In this embodiment, since the plurality of alarm signals can multiplex the same digital control module, simultaneous detection of the plurality of alarm signals can be realized, and consumption of the digital control module is reduced, so that filtering operations for the plurality of alarm signals can be completed only by using one digital control module (i.e., the chip alarm device with higher reusability and few interface resources can complete the anti-false alarm task), and therefore, the anti-false alarm requirement can be met, and the anti-false alarm device has the advantages of less occupied circuit resources (i.e., smaller area overhead of the chip alarm device can be ensured), and higher reliability and precision; moreover, as the chip alarm device uses a pure digital circuit, compared with analog filtering in an analog module, the stability and the precision of the chip alarm device are obviously improved, and the design risk is lower. That is to say, through the multiplexing of the digital control module, not only the stability, reliability and accuracy of the filtering effect are ensured, but also a large amount of digital circuit resources are saved, and the chip design has lower design difficulty, risk and area overhead.
Referring next to fig. 1, a chip-based alarm signal detection method in an embodiment of the present application is shown. The method is applied to a chip alarm device shown in fig. 2, wherein the chip alarm device comprises an alarm signal source signal generating module and a digital control module, wherein the digital control module comprises an alarm function switch register and an anti-error alarm timing filter circuit; the alarm function switch register and the anti-misoperation alarm timing filter circuit are both connected with an alarm signal source signal generation module, and a digital control module in the chip alarm device is connected with an alarm signal processing unit. It should be noted that the digital control module in the chip alarm device is a digital circuit, and the alarm signal source signal generating module is an analog circuit. The chip alarm device is usually integrated in a digital circuit control module, and controls an analog circuit through a digital-analog interface to be used as a controller of the analog circuit. In this embodiment, the method may include, for example, the steps of:
s101: and the digital control module responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and records the sending time point of the alarm switch control signal.
In this embodiment, if the digital control module receives an alarm switch instruction, the digital control module may send an alarm switch control signal to the alarm signal source signal generation module in response to the alarm switch instruction, and record a sending time point of the alarm switch control signal. The alarm switch instruction can be understood as an instruction for controlling whether the chip alarm device monitors the target chip and detects an alarm signal.
In one implementation, if the alarm switch command is a command for controlling the chip alarm device to monitor the target chip and detect an alarm signal, the alarm switch control signal may include an alarm on signal; if the alarm switch command is a command for controlling the chip alarm device to stop monitoring the target chip and detecting the alarm signal, the alarm switch control signal may include an alarm off signal. The sending time point of the alarm switch control signal (i.e. the sending time point of the alarm on signal or the sending time point of the alarm off signal) can be understood as the time point when the detection of the anti-error alarm of the target chip is turned on or off, i.e. the time point when the chip alarm device starts or stops monitoring the target chip and detecting the alarm signal.
Specifically, the alarm function switch register may obtain an alarm switch instruction sent by the control device through the bus. The alarm function switch register can respond to an alarm switch instruction, send an alarm switch control signal to the alarm signal source signal generation module, and control the anti-misoperation alarm timing filter circuit to record the sending time point of the alarm switch control signal. The transmission time point of the alarm switch control signal may be understood as a transmission time point at which the alarm function switch register transmits an alarm on signal or an alarm off signal to the alarm signal source signal generating module.
It CAN be understood that the alarm function switch register may be connected to the control device (i.e., the upper computer) via the CAN bus, so that the control device may perform read/write operations on the alarm function switch register, and the register space of the alarm function switch register may store corresponding instructions corresponding to the read/write operations. The alarm function switch register can respond to an alarm switch instruction and send an alarm switch control signal to the alarm signal source signal generation module so as to control the alarm signal source signal generation module to turn on or turn off a corresponding function of acquiring an alarm signal; and the alarm function switch register can respond to an alarm switch instruction and control the anti-misoperation alarm timing filter circuit to start or stop filtering operation on the alarm signal (namely, judge the validity of the alarm signal generated by the alarm signal source signal generation module).
S102: and the alarm signal source signal generating module responds to the alarm switch control signal and starts or stops collecting the working operation parameters of the target chip.
S103: and if the working operation parameters of the target chip collected by the alarm signal source signal generation module meet alarm conditions, the alarm signal source signal generation module generates an alarm signal and sends the alarm signal to the data control module.
It can be understood that, after receiving the alarm switch control signal, the alarm signal source signal generating module may start or stop collecting the operating parameters of the target chip in response to the alarm switch control signal. When the alarm switch control signal is an alarm starting signal, the alarm signal source signal generating module responds to the alarm switch control signal and starts to acquire working operation parameters of the target chip; and when the alarm switch control signal is an alarm closing signal, the alarm signal source signal generating module responds to the alarm switch control signal and stops collecting the working operation parameters of the target chip. The operating parameters of the target chip may be understood as parameters capable of reflecting the operating state of the chip, and may include, for example, parameters such as voltage, current, and temperature when the chip operates. In this embodiment, the alarm signal source signal generating module may be connected to one or more target chips.
In the process of acquiring the working operation parameters of the target chip by the alarm signal source signal generation module, if the alarm signal source signal generation module determines that the working operation parameters of the target chip meet alarm conditions, the alarm signal source signal generation module generates an alarm signal and sends the alarm signal to the data control module. The alarm condition may be that the working operation parameter is not within a preset parameter range, such as voltage, current, and temperature, which are not within a preset normal parameter range.
It should be noted that, only when the alarm function switch in the digital control module is turned on, the sensor and the detection circuit in the alarm signal source signal generation module can operate, and various sensors and detection circuits in the alarm signal source signal generation module generate corresponding alarm signals according to the operating parameters of the target chip.
That is to say, after the alarm function is turned on, the sensor and the detection circuit in the alarm signal source signal generation module start to work, whether the voltage, the current and the temperature of the target chip during working are within a normal range is checked, and if abnormal conditions such as overvoltage, high temperature, low voltage, low current and low temperature exist, a corresponding alarm signal can be generated and sent to the anti-error alarm timing filter circuit in the digital control module, so that the anti-error alarm timing filter circuit carries out filtering operation (namely anti-error alarm detection).
S104: and the data control module determines the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generation module.
S105: and if the validity of the alarm signal is in an effective state, the data control module sends the alarm signal to an alarm signal processing unit.
After the data control module receives the alarm signal, the data control module can determine the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module. If the validity of the alarm signal is in an effective state, the data control module sends the alarm signal to an alarm signal processing unit so that the alarm signal processing unit can perform subsequent processing on the alarm signal, such as sending an alarm prompt and the like. That is to say, the data control module may filter and filter the alarm signal generated by the alarm signal source signal generating module based on the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module, so as to obtain the alarm signal with the validity being in the valid state.
In one implementation, when the alarm function of the alarm signal source signal generation module is turned on or turned off (i.e., the collection of the working operation parameters of the target chip is started or stopped and whether alarm information is generated or not is determined according to the working operation parameters), the anti-error alarm timing filter circuit in the data control module starts timing, and the received source alarm signals are all unstable and need to be filtered out in a period of stable time of the analog circuit after the alarm function is turned on and in a period of stable time of the analog circuit before the alarm function is turned off, so that the alarm signals received in the alarm signal effective interval can be output to the alarm signal processing unit in an effective state. It should be noted that the analog circuit settling time may be understood as a preset circuit settling time period.
It should be emphasized that, when the alarm signal source signal generating module is connected to a plurality of target chips at the same time, the alarm function switch register in the digital control module can control the alarm signal source signal generating module to separately turn on or turn off the alarm information detection for each target chip, that is, the alarm signal source signal generating module can only turn on the alarm information detection for one or several or all of the target chips; therefore, the anti-misoperation alarm timing filter circuit in the embodiment can simultaneously filter the alarm signals of a plurality of target chips. Therefore, because a plurality of alarm signals can multiplex the anti-error alarm timing filter circuit in the same digital control module, the simultaneous detection of the alarm signals can be realized, and the consumption of the anti-error alarm timing filter circuit in the digital control module is reduced, and thus, because the filtering operation of the alarm signals can be completed by using the anti-error alarm timing filter circuit of one digital control module (namely, the chip alarm device with higher reusability and few interface resources can complete the anti-error alarm task), the anti-error alarm requirement can be met, and meanwhile, the anti-error alarm timing filter circuit has the advantages of less occupied circuit resources (namely, the area overhead of the chip alarm device can be ensured to be smaller), and higher reliability and precision; in addition, because the digital control module in the chip alarm device uses a pure digital circuit, compared with analog filtering in an analog module, the stability and the precision of the chip alarm device are obviously improved, and the design risk is lower. That is to say, through the multiplexing of the digital control module, not only the stability, reliability and accuracy of the filtering effect are ensured, but also a large amount of digital circuit resources are saved, and the chip design has lower design difficulty, risk and area overhead. It should be noted that when the detection alarm signal function of two or more target chips is turned on or off, timing is performed with reference to the sending time point of the last alarm switch control signal for turning on or off the alarm information detection function of the alarm signal source signal generation module, and the received alarm signals are unstable and need to be filtered out in a period of analog circuit stabilization time after the sending time point of the last alarm switch control signal for turning on the alarm information detection function and in a period of analog circuit stabilization time before the turning off of the alarm function after the sending time point of the last alarm switch control signal for turning off the alarm information detection function.
Specifically, if the alarm switch control signal is an alarm start signal, and the working state of the alarm signal source signal generating module is in working operation (that is, the alarm signal source signal generating module is in working operation parameters of a target chip being acquired, and whether the working operation parameters meet alarm conditions and further whether an alarm signal needs to be generated or not) the anti-false alarm timing filter circuit determines whether the receiving time of the alarm signal is later than a signal receiving starting time, wherein the signal receiving starting time is determined according to a sending time point of the alarm start signal and a preset circuit stabilization duration; if yes, the validity of the alarm signal is in an effective state; if not, the validity of the alarm signal is in an invalid state. It can be understood that, if the alarm signal source signal generating module is connected to a target chip, the signal receiving start time is later than the sending time point of the alarm on signal, and the time interval between the signal receiving start time and the sending time point of the alarm on signal is the preset circuit stabilization time. For example, it is assumed that the alarm signal source signal generating module is connected to only one target chip, the alarm switch control signal is an alarm on signal, and the working state of the alarm signal source signal generating module is in working operation, the sending time point of the alarm on signal for the target chip is 3 points, the preset circuit stable time is 30 seconds, the signal receiving start time is 3 points, 0 minutes and 30 seconds, if the receiving time of the alarm signal is 3 points, 0 minutes and 20 seconds, the validity of the alarm signal is an invalid state, otherwise, if the receiving time of the alarm signal is 3 points, 0 minutes and 40 seconds, the validity of the alarm signal is an valid state.
If the alarm signal source signal generation module is connected with a plurality of target chips, the signal receiving starting time is later than the latest sending time point of the alarm starting signal, and the time interval between the signal receiving starting time and the latest sending time point of the alarm starting signal is the preset circuit stable time, that is, the signal receiving starting time is determined according to the last sending time point of the alarm starting signal. For example, assuming that the alarm switch control signal is an alarm on signal, and the working state of the alarm signal source signal generating module is in working operation, the alarm signal source signal generating module is connected to 2 target chips, the sending time point of the alarm on signal for a first target chip is 3 points, the sending time point of the alarm on signal for a second target chip is 4 points, the preset circuit stabilization duration is 30 seconds, the signal receiving start time is 4 points, 0 minutes and 30 seconds (i.e., the signal receiving start time is determined according to the sending time point of the alarm on signal for the last second target chip), if the receiving time of the alarm signal is 3 points, 0 minutes and 20 seconds, the validity of the alarm signal is in an invalid state, otherwise, if the receiving time of the alarm signal is 4 points, 0 minutes and 40 seconds, the validity of the alarm signal is in an valid state.
If the alarm switch control signal is an alarm closing signal and the working state of the alarm signal source signal generating module is in a stop operation state (namely the alarm signal source signal generating module stops acquiring working operation parameters of a target chip and does not need to judge whether the working operation parameters meet alarm conditions or not and further needs to generate an alarm signal), the anti-misoperation alarm timing filter circuit judges whether the receiving time of the alarm signal is later than the signal receiving termination time or not, wherein the signal receiving termination time is determined according to the sending time point of the alarm closing signal and the stable time of a preset circuit; if not, the validity of the alarm signal is in an effective state; and if so, the validity of the alarm signal is in an invalid state.
It can be understood that, if the alarm signal source signal generating module is connected to a target chip, the signal reception termination time is earlier than the transmission time point of the alarm shutdown signal, and the time interval between the signal reception termination time and the transmission time point of the alarm shutdown signal is the preset circuit stabilization time length. For example, it is assumed that the alarm signal source signal generating module is connected to a target chip, the alarm switch control signal is an alarm off signal, and the operating state of the alarm signal source signal generating module is in a stop operation, a sending time point of the alarm off signal for the target chip is 3 points, a preset circuit stabilization duration is 30 seconds, a signal reception termination time is 2 points, 59 minutes and 30 seconds, if a receiving time of the alarm signal is 3 points, 0 minutes and 20 seconds, the validity of the alarm signal is an invalid state, otherwise, if the receiving time of the alarm signal is 2 points, 58 minutes and 10 seconds, the validity of the alarm signal is an valid state.
If the alarm signal source signal generation module is connected to a plurality of target chips, the signal reception termination time is earlier than the transmission time point of the latest alarm shutdown signal, and the time interval between the signal reception termination time and the transmission time point of the latest alarm shutdown signal is the preset circuit stabilization time, that is, the signal reception termination time is determined according to the transmission time point of the last alarm shutdown signal. For example, assuming that the alarm switch control signal is an alarm off signal, and the working state of the alarm signal source signal generating module is in a stop operation, the alarm signal source signal generating module is connected to 2 target chips, the sending time point of the alarm off signal for a first target chip is 3 points, the sending time point of the alarm off signal for a second target chip is 4 points, the preset circuit stabilization duration is 30 seconds, the signal reception termination time is 3 points, 59 minutes and 30 seconds (that is, the signal reception termination time is determined according to the sending time point of the alarm off signal of a last second target chip), if the receiving time of the alarm signal is 3 points, 0 minutes and 20 seconds, the validity of the alarm signal is an effective state, otherwise, if the receiving time of the alarm signal is 4 points, 0 minutes and 40 seconds, the validity of the alarm signal is an invalid state.
According to the technical scheme, the chip-based alarm signal detection method can be applied to a chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module. In the method, the digital control module responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and records the sending time point of the alarm switch control signal; then, the alarm signal source signal generating module responds to the alarm switch control signal to start or stop collecting working operation parameters of a target chip; then, if the working operation parameters of the target chip collected by the alarm signal source signal generating module meet alarm conditions, the alarm signal source signal generating module generates an alarm signal and sends the alarm signal to the data control module; finally, the data control module determines the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module; and if the validity of the alarm signal is in an effective state, the data control module sends the alarm signal to an alarm signal processing unit. In this embodiment, since the plurality of alarm signals can multiplex the same digital control module, simultaneous detection of the plurality of alarm signals can be realized, and consumption of the digital control module is reduced, so that filtering operations for the plurality of alarm signals can be completed only by using one digital control module (i.e., the chip alarm device with higher reusability and few interface resources can complete the anti-false alarm task), and therefore, the anti-false alarm requirement can be met, and the anti-false alarm device has the advantages of less occupied circuit resources (i.e., smaller area overhead of the chip alarm device can be ensured), and higher reliability and precision; and because the chip alarm device uses a pure digital circuit, compared with analog filtering in an analog module, the stability and the precision of the chip alarm device are obviously improved, and the design risk is lower. That is to say, by multiplexing the digital control module, not only the stability, reliability and accuracy of the filtering effect are ensured, but also a large amount of digital circuit resources are saved, so that the chip design has lower design difficulty, risk and area overhead.
That is to say, the chip-based alarm signal detection method (i.e. an anti-false alarm chip detection mechanism) provided in this embodiment can enable the chip alarm device to complete the above-mentioned anti-false alarm task by using an internal timing control circuit (i.e. an anti-false alarm timing filter circuit) with high reusability and by using very few interface resources, and has the advantages of less occupied circuit resources, high reliability and precision, and capability of monitoring dozens of alarm signals by one timing circuit. In the embodiment, the digital filter circuit (namely, the alarm function switch register) is not provided with a separate filter circuit for a single alarm signal, but a plurality of alarm signals multiplex the same timing circuit and filter circuit (namely, the alarm function switch register and the anti-misoperation alarm timing filter circuit), so that the simultaneous detection of a plurality of alarm signals can be realized, and the consumption of the timing circuit is reduced. Compared with analog filtering in an analog module, the scheme has the advantages of obviously improved stability and precision and lower design risk. Meanwhile, filtering operation on more than ten alarm signals can be completed only by using one timing point, the requirement of items on error-proof alarm can be met, and the area overhead is small. The key point of the scheme is that the anti-alarm timing filter circuit is multiplexed, so that the stability, reliability and accuracy of the filter effect are guaranteed, a large amount of digital circuit resources are cleaned, and the chip design has lower design difficulty, risk and area overhead.
Fig. 3 shows a specific embodiment of the alarm signal detection device based on a chip according to the present application. The apparatus of this embodiment is an entity apparatus for executing the method of the above embodiment. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device is applied to chip alarm device, wherein, chip alarm device includes alarm signal source signal generation module and digital control module, and the device includes in this embodiment:
a sending unit 301, configured to control the digital control module to send an alarm switch control signal to the alarm signal source signal generation module in response to an alarm switch instruction, and record a sending time point of the alarm switch control signal;
the control unit 302 is configured to control the alarm signal source signal generation module to start or stop collecting working operation parameters of a target chip in response to the alarm switch control signal;
a generating unit 303, configured to generate an alarm signal by the alarm signal source signal generating module if the working operation parameter of the target chip acquired by the alarm signal source signal generating module meets an alarm condition, and send the alarm signal to the data control module;
a determining unit 304, configured to control the data control module to determine validity of the alarm signal according to a sending time point of the alarm switch control signal and a working state of the alarm signal source signal generating module;
a transmitting unit 305, configured to control the data control module to send the alarm signal to an alarm signal processing unit if the validity of the alarm signal is in an effective state.
Optionally, the digital control module includes an alarm function switch register and an anti-error alarm timing filter circuit.
Optionally, the sending unit 301 is configured to:
the alarm function switch register acquires an alarm switch instruction sent by the control equipment through a bus;
and the alarm function switch register responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and controls the anti-misoperation alarm timing filter circuit to record the sending time point of the alarm switch control signal.
Optionally, the alarm switch control signal includes an alarm on signal or an alarm off signal.
Optionally, the determining unit 304 is configured to:
if the alarm switch control signal is an alarm starting signal and the working state of the alarm signal source signal generation module is in working operation, the anti-misoperation alarm timing filter circuit judges whether the receiving time of the alarm signal is later than the signal receiving starting time, wherein the signal receiving starting time is determined according to the sending time point of the alarm starting signal and the preset circuit stable time; if yes, the validity of the alarm signal is in an effective state; if not, the validity of the alarm signal is in an invalid state.
Optionally, if the alarm signal source signal generating module is connected to a target chip, the signal receiving start time is later than the sending time point of the alarm start signal, and the time interval between the signal receiving start time and the sending time point of the alarm start signal is the preset circuit stabilization duration; if the alarm signal source signal generation module is connected with a plurality of target chips, the signal receiving starting time is later than the latest sending time point of the alarm starting signal, and the time interval between the signal receiving starting time and the latest sending time point of the alarm starting signal is the preset circuit stable time.
Optionally, the determining unit 304 is configured to:
if the alarm switch control signal is an alarm closing signal and the working state of the alarm signal source signal generation module is in a stop operation state, the anti-misoperation alarm timing filter circuit judges whether the receiving time of the alarm signal is later than the signal receiving termination time, wherein the signal receiving termination time is determined according to the sending time point of the alarm closing signal and the preset circuit stable time; if not, the validity of the alarm signal is in an effective state; and if so, the validity of the alarm signal is in an invalid state.
Optionally, if the alarm signal source signal generating module is connected to a target chip, the signal reception termination time is earlier than the sending time point of the alarm shutdown signal, and a time interval between the signal reception termination time and the sending time point of the alarm shutdown signal is the preset circuit stabilization time; if the alarm signal source signal generation module is connected with a plurality of target chips, the signal receiving termination time is earlier than the latest sending time point of the alarm closing signal, and the time interval between the signal receiving termination time and the latest sending time point of the alarm closing signal is the preset circuit stabilization time.
According to the technical scheme, the alarm signal detection device based on the chip is applied to the chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module, and the device comprises: the sending unit is used for controlling the digital control module to respond to an alarm switch instruction, sending an alarm switch control signal to the alarm signal source signal generating module and recording the sending time point of the alarm switch control signal; the control unit is used for controlling the alarm signal source signal generating module to respond to the alarm switch control signal and start or stop collecting working operation parameters of a target chip; the generating unit is used for generating an alarm signal by the alarm signal source signal generating module and sending the alarm signal to the data control module if the working operation parameters of the target chip collected by the alarm signal source signal generating module meet alarm conditions; the determining unit is used for controlling the data control module to determine the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module; and the transmission unit is used for controlling the data control module to send the alarm signal to the alarm signal processing unit if the validity of the alarm signal is in an effective state. In this embodiment, since the plurality of alarm signals can multiplex the same digital control module, simultaneous detection of the plurality of alarm signals can be realized, and consumption of the digital control module is reduced, so that filtering operations for the plurality of alarm signals can be completed only by using one digital control module (i.e., the chip alarm device with higher reusability and few interface resources can complete the anti-false alarm task), and therefore, the anti-false alarm requirement can be met, and the anti-false alarm device has the advantages of less occupied circuit resources (i.e., smaller area overhead of the chip alarm device can be ensured), and higher reliability and precision; and because the chip alarm device uses a pure digital circuit, compared with analog filtering in an analog module, the stability and the precision of the chip alarm device are obviously improved, and the design risk is lower. That is to say, by multiplexing the digital control module, not only the stability, reliability and accuracy of the filtering effect are ensured, but also a large amount of digital circuit resources are saved, so that the chip design has lower design difficulty, risk and area overhead.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory to the memory and then runs the execution instruction, and the corresponding execution instruction can also be obtained from other equipment, so as to form the alarm signal detection device based on the chip on a logic level. The processor executes the execution instructions stored in the memory, so that the chip-based alarm signal detection method provided by any embodiment of the application is realized through the executed execution instructions.
The method executed by the chip-based alarm signal detection device according to the embodiment shown in fig. 1 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
The embodiment of the present application further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can execute the chip-based alarm signal detection method provided in any embodiment of the present application, and is specifically configured to execute the chip-based alarm signal detection method.
The electronic device described in the foregoing embodiments may be a computer.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises that element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. The chip-based alarm signal detection method is characterized by being applied to a chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module; the method comprises the following steps:
the digital control module responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and records the sending time point of the alarm switch control signal;
the alarm signal source signal generating module responds to the alarm switch control signal and starts or stops collecting working operation parameters of a target chip;
if the working operation parameters of the target chip collected by the alarm signal source signal generation module meet alarm conditions, the alarm signal source signal generation module generates an alarm signal and sends the alarm signal to the data control module;
the data control module determines the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module;
and if the validity of the alarm signal is in an effective state, the data control module sends the alarm signal to an alarm signal processing unit.
2. The method of claim 1, wherein the digital control module comprises an alarm function switch register and an anti-false alarm timing filter circuit.
3. The method of claim 2, wherein the digital control module transmitting an alarm switch control signal to the alarm signal source signal generating module and recording a transmission time point of the alarm switch control signal in response to an alarm switch command comprises:
the alarm function switch register acquires an alarm switch instruction sent by the control equipment through a bus;
and the alarm function switch register responds to an alarm switch instruction, sends an alarm switch control signal to the alarm signal source signal generation module, and controls the anti-misoperation alarm timing filter circuit to record the sending time point of the alarm switch control signal.
4. The method of claim 2, wherein the alarm switch control signal comprises an alarm on signal or an alarm off signal.
5. The method of claim 4, wherein the data control module determines the validity of the alarm signal according to a transmission time point of the alarm switch control signal and an operation state of the alarm signal source signal generation module, including:
if the alarm switch control signal is an alarm starting signal and the working state of the alarm signal source signal generating module is in working operation, the anti-misoperation alarm timing filter circuit judges whether the receiving time of the alarm signal is later than the signal receiving initial time, wherein the signal receiving initial time is determined according to the sending time point of the alarm starting signal and the preset circuit stable time; if yes, the validity of the alarm signal is in an effective state; if not, the validity of the alarm signal is in an invalid state.
6. The method according to claim 5, wherein if the alarm signal source signal generating module is connected to a target chip, the signal reception start time is later than the transmission time point of the alarm on signal, and the time interval between the signal reception start time and the transmission time point of the alarm on signal is the preset circuit stabilization duration; if the alarm signal source signal generation module is connected with a plurality of target chips, the signal receiving starting time is later than the latest sending time point of the alarm starting signal, and the time interval between the signal receiving starting time and the latest sending time point of the alarm starting signal is the preset circuit stable time.
7. The method of claim 4, wherein the data control module determines the validity of the alarm signal according to a transmission time point of the alarm switch control signal and an operation state of the alarm signal source signal generation module, including:
if the alarm switch control signal is an alarm closing signal and the working state of the alarm signal source signal generating module is in a stop operation state, the anti-misoperation alarm timing filter circuit judges whether the receiving time of the alarm signal is later than the signal receiving termination time, wherein the signal receiving termination time is determined according to the sending time point of the alarm closing signal and the preset circuit stabilization time; if not, the validity of the alarm signal is in an effective state; and if so, the validity of the alarm signal is in an invalid state.
8. The method according to claim 7, wherein if the alarm signal source signal generating module is connected to a target chip, the signal reception termination time is earlier than the transmission time point of the alarm shutdown signal, and the time interval between the signal reception termination time and the transmission time point of the alarm shutdown signal is the preset circuit stabilization duration; if the alarm signal source signal generation module is connected with a plurality of target chips, the signal receiving termination time is earlier than the latest alarm closing signal sending time point, and the time interval between the signal receiving termination time and the latest alarm closing signal sending time point is the preset circuit stable time length.
9. The chip-based alarm signal detection device is characterized by being applied to a chip alarm device, wherein the chip alarm device comprises an alarm signal source signal generation module and a digital control module; the device comprises:
the sending unit is used for controlling the digital control module to respond to an alarm switch instruction, sending an alarm switch control signal to the alarm signal source signal generating module and recording the sending time point of the alarm switch control signal;
the control unit is used for controlling the alarm signal source signal generating module to respond to the alarm switch control signal and start or stop collecting working operation parameters of a target chip;
the generating unit is used for generating an alarm signal by the alarm signal source signal generating module and sending the alarm signal to the data control module if the working operation parameters of the target chip collected by the alarm signal source signal generating module meet an alarm condition;
the determining unit is used for controlling the data control module to determine the validity of the alarm signal according to the sending time point of the alarm switch control signal and the working state of the alarm signal source signal generating module;
and the transmission unit is used for controlling the data control module to send the alarm signal to the alarm signal processing unit if the validity of the alarm signal is in an effective state.
10. A readable medium comprising executable instructions that, when executed by a processor of an electronic device, cause the electronic device to perform the method of any one of claims 1-8.
CN202211646596.3A 2022-12-21 2022-12-21 Chip-based alarm signal detection method and device Pending CN115932548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211646596.3A CN115932548A (en) 2022-12-21 2022-12-21 Chip-based alarm signal detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211646596.3A CN115932548A (en) 2022-12-21 2022-12-21 Chip-based alarm signal detection method and device

Publications (1)

Publication Number Publication Date
CN115932548A true CN115932548A (en) 2023-04-07

Family

ID=86553733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211646596.3A Pending CN115932548A (en) 2022-12-21 2022-12-21 Chip-based alarm signal detection method and device

Country Status (1)

Country Link
CN (1) CN115932548A (en)

Similar Documents

Publication Publication Date Title
CN111782522B (en) Tracking message output method, electronic device and storage medium
CN113093619A (en) Method and device for controlling power-on and power-off time sequence, chip and storage medium
JPH0792764B2 (en) Microprocessor
CN115932548A (en) Chip-based alarm signal detection method and device
CN113157504A (en) Touch screen equipment testing method and touch screen equipment testing system
CN109922014B (en) Method and system for judging cold and hot start of switch
CN101630278A (en) Method for recording crash abnormal information of electronic device and electronic device
CN115543759A (en) Log lookup method and device for operating system, electronic device and storage medium
CN117632454A (en) Linux operating system resource monitoring method and device, storage medium and electronic equipment
CN115114118A (en) Server monitoring method and related equipment
JP2020156222A (en) Power supply controller of in-vehicle camera module
CN114318766B (en) Fault detection method and device based on vibration device and readable storage medium
CN108415788B (en) Data processing apparatus and method for responding to non-responsive processing circuitry
CN112306810B (en) Function monitoring method and device, heterogeneous multi-core SOC (system on chip) and electronic equipment
JP2009301079A (en) Electronic computer device and data storage method when software processing delay is detected
US7216261B2 (en) Method for controlling a program run of a central data processor
CN116466638A (en) Pulse number acquisition equipment and system, pulse signal processing method and device
JP2004034854A (en) Electronic control device
JP2001186652A (en) Digital protective relay
CN112947841A (en) Method, device, equipment and storage medium for reading embedded flash memory data
CN118099565A (en) Energy storage system control method, energy storage system, equipment and storage medium
JP2012069063A (en) P-run signal output device and incorporated control device
JP2003256037A (en) Plant controller
JPH06309182A (en) Interrupt processing method
CN115014423A (en) Sensor diagnosis method and device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination