WO2025066449A1 - Pulse signal monitoring circuit, chip, and electronic device - Google Patents
Pulse signal monitoring circuit, chip, and electronic device Download PDFInfo
- Publication number
- WO2025066449A1 WO2025066449A1 PCT/CN2024/106025 CN2024106025W WO2025066449A1 WO 2025066449 A1 WO2025066449 A1 WO 2025066449A1 CN 2024106025 W CN2024106025 W CN 2024106025W WO 2025066449 A1 WO2025066449 A1 WO 2025066449A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock
- signal
- monitoring module
- pulse
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R29/00—Arrangements for measuring or indicating electric quantities not covered by groups G01R19/00 - G01R27/00
- G01R29/02—Measuring characteristics of individual pulses, e.g. deviation from pulse flatness, rise time or duration
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K5/00—Manipulating of pulses not covered by one of the other main groups of this subclass
- H03K5/125—Discriminating pulses
Definitions
- the present disclosure relates to the field of electronic circuits, and in particular, to a pulse signal monitoring circuit, a chip and an electronic device.
- the pulse sources in digital chips are mainly generated by on-chip oscillators, phase-locked loops and external crystal oscillators. Long-term operation or noise interference from the external environment is very likely to cause pulse signal failure, resulting in relatively large safety accidents and threatening personal safety.
- the monitoring of chip pulse signals mainly monitors clock signals with a duty cycle of 50%, and there is no monitoring of pulse signals with a duty cycle of non-50%.
- clock monitoring there are mainly two categories. One is to monitor clock frequency deviation. The relevant technology uses three links to monitor frequency deviation, which is cumbersome to implement and cannot detect clock loss. The second is to monitor clock loss. When there is a clock signal, a periodic pulse signal will be output. When the clock signal is lost, a high or low level signal will be output. However, when the frequency of the clock signal to be measured changes, a high or low level signal will also be output, so it is impossible to determine whether the clock is locked.
- the embodiments of the present disclosure provide a pulse signal monitoring circuit, a chip and an electronic device to at least solve the problem in the related art that a pulse signal with a duty cycle other than 50% cannot be monitored.
- a pulse signal monitoring circuit which includes: a pulse period monitoring module, which is used to monitor the period of a pulse signal to be measured and the period change between two adjacent periods based on a reference clock signal; and a pulse duty cycle monitoring module, which is used to monitor the duty cycle of the pulse signal to be measured and the duty cycle change between two adjacent periods based on a reference clock signal.
- a chip comprising the pulse signal monitoring circuit in any one of the above embodiments.
- an electronic device comprising the pulse Signal monitoring circuit.
- FIG1 is a block diagram of a pulse signal monitoring circuit according to an embodiment of the present disclosure
- FIG2 is a structural block diagram of a pulse period monitoring module according to an embodiment of the present disclosure.
- FIG3 is a structural block diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure.
- FIG4 is a structural block diagram of a pulse signal monitoring circuit according to an embodiment of the present disclosure.
- FIG5 is a structural block diagram of a clock frequency deviation monitoring module according to an embodiment of the present disclosure.
- FIG6 is a structural block diagram of a clock presence monitoring module according to an embodiment of the present disclosure.
- FIG. 7 is a structural block diagram of a pulse signal monitoring circuit according to another embodiment of the present disclosure.
- FIG8 is a schematic diagram of a processing flow of a pulse monitoring module according to an embodiment of the present disclosure.
- FIG9 is a schematic diagram of a processing flow of a clock monitoring module according to an embodiment of the present disclosure.
- FIG10 is a schematic diagram of a signal aggregation process of multiple clock monitoring modules according to an embodiment of the present disclosure
- FIG11 is a waveform diagram of a pulse period monitoring module according to an embodiment of the present disclosure.
- FIG. 12 is a waveform diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure.
- the pulse signal monitoring circuit in the embodiment of the present disclosure is mainly used in chips to realize real-time monitoring of pulse signals in the chip.
- Chip products may include but are not limited to automotive electronic chips, consumer electronic chips, communication chips, etc.
- FIG1 is a structural block diagram of the pulse signal monitoring circuit of the embodiment of the present disclosure. As shown in FIG1 , the pulse signal monitoring circuit includes a pulse monitoring module 10 .
- the pulse monitoring module 10 may include the following structure:
- a pulse period monitoring module 12 used for monitoring the period of the pulse signal to be measured and the period change between two adjacent periods based on the reference clock signal;
- the pulse duty cycle monitoring module 14 is used to monitor the duty cycle of the pulse signal to be tested and the change of the duty cycle between two adjacent cycles based on the reference clock signal.
- the pulse signal to be measured may be a pulse signal with any duty cycle.
- pulse signals with any duty cycle can be monitored, and period abnormality monitoring and duty cycle abnormality monitoring of pulse signals can be realized, which solves the problem in the related technology that pulse signals with duty cycles other than 50% cannot be monitored.
- Signal abnormalities in the chip can be discovered in time to ensure stable operation of the chip system.
- the pulse monitoring module 10 may include a first synchronizer 16 for synchronizing the input pulse signal to be tested to the clock domain of the reference clock signal to output a synchronized pulse signal.
- the pulse monitoring module 10 may further include a first edge monitoring module 18, whose input end is connected to the output end of the first synchronizer, for monitoring the rising edge of the synchronization pulse signal and outputting a first trigger signal when the rising edge of the synchronization pulse signal arrives.
- a first edge monitoring module 18 whose input end is connected to the output end of the first synchronizer, for monitoring the rising edge of the synchronization pulse signal and outputting a first trigger signal when the rising edge of the synchronization pulse signal arrives.
- the first edge monitoring module 18 is further configured to monitor the falling edge of the synchronization pulse signal and When the falling edge of the synchronization pulse signal arrives, the third trigger signal is output.
- the pulse period monitoring module and the pulse duty cycle monitoring module may share a synchronizer and an edge detection module, or may each independently use a synchronizer and an edge detection module.
- the synchronizer is used to realize the synchronous release of the asynchronous signal in the input clock domain through synchronization processing.
- the synchronizer can synchronize the reset signal to the desired clock domain for release, and reduce the probability of metastable state that may occur when the reset signal is released due to crossing the clock domain.
- FIG. 2 is a structural block diagram of a pulse period monitoring module according to an embodiment of the present disclosure.
- the pulse period monitoring module 12 may include the following structures:
- the period calculation module 122 whose input end is connected to the output end of the first edge monitoring module, is used to start counting the reference clock signal when the first trigger signal arrives, and end counting when the first trigger signal arrives next time, and output the pulse signal period.
- the period change monitoring module 124 has an input end connected to the output end of the period calculation module and is used to compare whether the periods of two adjacent pulse signals are the same, and output a second trigger signal when the periods of the two adjacent pulse signals are different.
- the change cycle counting module 126 has an input end connected to the output end of the period change monitoring module and is used to count the second trigger signal.
- the pulse period monitoring module is also used to compare the number of second trigger signals output by the change period counting module 126 with a preset period change threshold, and output a period change alarm signal when the number of the second trigger signals is greater than the preset period change threshold.
- the pulse period monitoring module uses a single edge detection module.
- the pulse period monitoring module also includes a rising edge monitoring module 128, whose input end is connected to the output end of the first synchronizer, for monitoring the rising edge of the synchronization pulse signal and outputting a first trigger signal when the rising edge of the synchronization pulse signal arrives.
- the input end of the period calculation module 122 is connected to the output end of the rising edge monitoring module.
- the cycle calculation module 122 and the change cycle counting module 126 can be implemented by a counter.
- the cycle calculation module can use the rising edge of the first trigger signal, i.e., the synchronous pulse signal, as a counting mark, start at a counting mark, end at the next counting mark, record the current value and then clear it.
- the change cycle counting module can use the rising edge of the second trigger signal as a counting mark, and clear it when the alarm signal is output or the pulse signal cycle returns to normal.
- the period variation threshold may be set according to the sensitivity of the alarm abnormality. The smaller the period variation threshold, the higher the sensitivity to the pulse signal period abnormality.
- the first edge monitoring module 18 is further used to monitor the falling edge of the synchronization pulse signal, and output a third trigger signal when the falling edge of the synchronization pulse signal arrives.
- FIG3 is a structural block diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure.
- the pulse duty cycle monitoring module 14 may include the following structure:
- a duty cycle calculation module 142 whose input end is connected to the output end of the first edge monitoring module, is used to start counting the reference clock signal when the first trigger signal arrives, and end counting when the third trigger signal arrives.
- the number of high-level pulses is obtained, the ratio of the number of high-level pulses to the pulse signal period is determined as the pulse signal duty cycle, and the pulse signal duty cycle is output.
- the duty cycle change monitoring module 144 has an input end connected to the output end of the duty cycle calculation module and is used to compare whether the duty cycles of two adjacent pulse signals are the same. When the duty cycles of the two adjacent pulse signals are different, a fourth trigger signal is output.
- the pulse duty cycle monitoring module can also compare the number of fourth trigger signals output by the duty cycle change counting module 146 with a preset duty cycle change threshold, and output a duty cycle change alarm signal when the number of the fourth trigger signals is greater than the preset duty cycle change threshold.
- the pulse duty cycle monitoring module uses a single edge detection module.
- the pulse period monitoring module also includes a falling edge monitoring module 148, whose input end is connected to the output end of the first synchronizer, for monitoring the falling edge of the synchronization pulse signal and outputting a third trigger signal when the falling edge of the synchronization pulse signal arrives.
- the duty cycle calculation module 142 has an input end connected to the output end of the rising edge monitoring module and the output end of the falling edge monitoring module.
- the pulse duty cycle monitoring module may include a combination of one or more of the above structures.
- the pulse duty cycle monitoring module may only support real-time monitoring of the duty cycle, or may generate an indication signal when the duty cycle changes to a certain value, and the central control determines whether to respond.
- the duty cycle calculation module 142 and the duty cycle change counting module 146 may be implemented using counters.
- the duty cycle calculation module can use the rising edge of the first trigger signal, i.e., the synchronization pulse signal, as the count start mark, and the falling edge of the third trigger signal, i.e., the synchronization pulse signal, as the count end mark, record the current value and then clear it to zero. Then, the duty cycle is calculated by combining the pulse signal period obtained in the period calculation module 122.
- the duty cycle change counting module may use the rising edge of the fourth trigger signal as a counting mark, and clear it when an alarm signal is output or the duty cycle of the pulse signal returns to normal.
- the duty cycle change threshold can be set according to the sensitivity of the alarm abnormality. The smaller the duty cycle change threshold, the higher the sensitivity to the abnormal duty cycle of the pulse signal.
- pulse signals of any duty cycle can be monitored, abnormal duty cycle monitoring of pulse signals can be achieved, signal abnormalities in the chip can be discovered in time, and stable operation of the chip system can be ensured.
- the pulse period monitoring module and the pulse duty cycle monitoring module share an edge monitoring module
- the rising edge monitoring module and the falling edge monitoring module are the same edge monitoring module, namely, the first edge monitoring module 18 .
- FIG. 4 is a structural block diagram of a pulse signal monitoring circuit according to an embodiment of the present disclosure. As shown in FIG. 4 , the pulse signal monitoring circuit may further include a clock monitoring module 20 .
- the clock monitoring module 20 includes the following structure:
- a clock frequency deviation monitoring module 22 configured to monitor the frequency and frequency deviation of a clock signal to be measured based on the reference clock signal
- the clock presence monitoring module 24 is used to monitor the presence status of the clock signal to be tested based on the reference clock signal.
- the clock signal to be measured may be a pulse signal with a duty cycle of 50%.
- the reference clock signal is the only reference of the clock monitoring module and may be derived from an external crystal oscillator or a stable clock generating unit. The stability of the reference clock must be ensured.
- the clock monitoring module further includes:
- a frequency divider used for dividing the input clock signal to be measured based on a preset frequency division coefficient, and outputting a frequency division signal
- a second synchronizer whose input end is connected to the output end of the frequency divider, is used to synchronize the frequency-divided signal to the clock domain of the reference clock signal and output a synchronized clock signal;
- a second edge monitoring module whose input end is connected to the output end of the second synchronizer, is used to monitor the rising edge of the synchronization clock signal and output a fifth trigger signal when the rising edge of the synchronization clock signal arrives;
- a counting module whose input end is connected to the output end of the second edge monitoring module, is used to start counting the reference clock signal when the fifth trigger signal arrives, and to end counting when the fifth trigger signal arrives next time, and output the count value.
- the count value is the frequency ratio of the reference clock signal and the synchronous clock signal (or the divided clock signal to be measured).
- the clock frequency deviation monitoring module and the clock presence monitoring module may share a frequency divider, a synchronizer, an edge detection module, and a counting module, or may be used independently.
- FIG5 is a structural block diagram of a clock frequency deviation monitoring module according to an embodiment of the present disclosure.
- the clock frequency deviation monitoring module 22 may include the following structures:
- the frequency deviation detection module 222 has an input end connected to the output end of the counting module, and is used to output a frequency deviation alarm signal when the count value is greater than a preset frequency deviation upper limit or less than a preset frequency deviation lower limit.
- the frequency detection module 224 has an input end connected to the output end of the counting module and is used to determine the frequency of the clock signal to be measured according to the counting value, the frequency division coefficient and the reference clock frequency.
- the upper limit value of the frequency deviation and the lower limit value of the frequency deviation can be flexibly configured according to the requirements of the frequency deviation detection accuracy.
- the upper limit value of the frequency deviation is the sum of the standard count value when no frequency deviation occurs and the frequency deviation detection accuracy
- the lower limit value of the frequency deviation is the difference between the standard count value and the frequency deviation detection accuracy.
- the frequency detection module requires a stable clock source as a reference clock, which can come from an external crystal oscillator, an off-chip clock chip, or other stable clock sources.
- a stable clock source can come from an external crystal oscillator, an off-chip clock chip, or other stable clock sources.
- the reference clock frequency in order to ensure accurate sampling, must be greater than twice the frequency of the clock to be measured.
- FIG6 is a structural block diagram of a clock presence monitoring module according to an embodiment of the present disclosure.
- the clock presence monitoring module 24 may include the following structure:
- the in-place detection module 242 has an input end connected to the output end of the counting module, receives the input count value and a preset in-place detection threshold, and is used to determine that the in-place state of the clock signal to be measured is a lost state when the count value is greater than the in-place detection threshold, and output an in-place alarm signal.
- the presence detection threshold may be set according to a frequency range of the clock signal to be detected.
- the signal width after frequency division ranges from 0.5M to 2M, where M is the pulse width of the stable and non-lost low-speed clock source, and the in-place detection threshold can also be set to 0.5M to 2M.
- the input end of the clock frequency deviation monitoring module and the input end of the clock presence monitoring module are connected to the output end of the same counting module;
- the clock frequency deviation monitoring module and the clock presence monitoring module do not share the In the case of a frequency divider, the second synchronizer, the second edge monitoring module and the counting module, the clock frequency deviation monitoring module and the clock in-position monitoring module respectively include a group of the frequency divider, the second synchronizer, the second edge monitoring module and the counting module.
- the input ends of the frequency deviation detection module, the frequency detection module, and the presence detection module may be connected to the counting modules in the corresponding groups.
- FIG. 7 is a structural block diagram of a pulse signal monitoring circuit according to another embodiment of the present disclosure. As shown in FIG. 7 , the pulse signal monitoring circuit may further include the following structure:
- the plurality of clock monitoring modules 20 , the frequency deviation monitoring and summarizing module 30 and the in-position monitoring and summarizing module 40 are provided.
- a plurality of the clock monitoring modules are used to output multiple frequency deviation detection signals and multiple in-place detection signals, wherein each of the clock signals to be measured is input into one of the clock monitoring modules, and a frequency deviation detection signal is output from the clock frequency deviation monitoring module of each of the clock monitoring modules, and a in-place detection signal is output from the clock in-place monitoring module of each of the clock monitoring modules, wherein the frequency deviation detection signal includes a frequency deviation alarm signal and a normal frequency deviation signal, and the in-place detection signal includes an in-place alarm signal and a normal in-place signal;
- the frequency deviation monitoring summary module has an input end connected to the output ends of the multiple clock monitoring modules, receives the input multiple frequency deviation detection signals and a preset frequency deviation detection mask, determines whether each frequency deviation detection signal is output according to the frequency deviation detection mask, and performs an OR operation on the multiple frequency deviation detection signals after mask processing, and outputs a summarized frequency deviation detection result;
- the input end of the in-place monitoring summary module is connected to the output ends of the multiple clock monitoring modules, receives the input multiple in-place detection signals and a preset in-place detection mask, determines whether each of the multiple in-place detection signals is output according to the in-place detection mask, performs an OR operation on the multiple in-place detection signals after mask processing, and outputs a summarized in-place detection result.
- the frequency deviation detection mask and the in-position detection mask can be configured to determine whether the monitoring results are output.
- FIG8 is a schematic diagram of a processing flow of a pulse monitoring module according to an embodiment of the present disclosure.
- the pulse monitoring module includes the following structure:
- the synchronizer realizes the synchronous release of the asynchronous signal in the input clock domain through synchronization processing.
- it is used to synchronize the clock domain of the input pulse (in_pulse), that is, the pulse signal to be measured, with the clock domain of the reference clock.
- the rising edge sampler samples the rising edge of the input pulse under the control of the working clock gating signal (wclk_gate).
- the period calculation module calculates the number of reference clocks between two adjacent rising edges of the pulse signal to be measured, that is, the period of the pulse signal.
- the cycle change monitoring module compares whether the number of cycles has changed between two cycles.
- the change cycle counting module records the number of changes in the cycle number.
- the falling edge sampler samples the falling edge of the input pulse under the control of the working clock gating signal (wclk_gate).
- the duty cycle calculation module calculates the number of reference clocks between the rising edge and the falling edge of the pulse signal to be measured, and calculates the duty cycle of the pulse to be measured in combination with the cycle output by the cycle calculation module.
- the duty cycle change monitoring module compares the duty cycles calculated twice before and after to see if they have changed.
- the duty cycle change counting module records the number of duty cycle changes.
- the synchronizer is equivalent to the first synchronizer in the above embodiment, and the rising edge sampler and the falling edge sampler are equivalent to the first edge monitoring module in the above embodiment.
- the pulse monitoring module also includes registers for storing processing results of other modules.
- the workflow of the pulse monitoring module may include the following steps:
- Step S101 synchronizing input pulses in a reference clock domain.
- Step S102 sampling the rising edge of the input pulse to identify the range of a single cycle.
- Step S103 calculate the number of cycles, determine the number of reference clocks between two rising edges, clear the counter when a rising edge is encountered, perform the next round of counting, and store the current count value in the register.
- the reference clock divided by the current value is the frequency value of the pulse.
- Step S104 start counting the number of cycles of the reference clock when the pulse high level is valid, and record the current value after counting to the maximum value. Since the number of pulses in the entire cycle has been obtained in step S103, the duty cycle can be obtained by dividing it.
- Step S105 monitoring the count values of step S103 and step S104, and comparing them with the count values of the next cycle, and reporting an interrupt when the difference is greater than a threshold, indicating that the cycle and duty cycle have changed.
- the threshold value in step S105 can be set according to the sensitivity of monitoring, and the minimum threshold value can be zero. As long as the number of cycles or duty cycles of two adjacent ones are different, an interrupt signal is reported.
- the process further includes counting the number of period changes or the number of duty cycle changes, and comparing the number of changes with a period change threshold or a duty cycle change threshold, and generating a corresponding alarm signal when the threshold is exceeded.
- the pulse monitoring module is used to perform period monitoring and duty cycle monitoring on pulse signals with any duty cycle
- the clock monitoring module is used to perform frequency deviation monitoring and in-position monitoring on pulse signals (ie, clock signals) with a duty cycle of 50%.
- FIG. 9 is a schematic diagram of a processing flow of a clock monitoring module according to an embodiment of the present disclosure. As shown in FIG. 9 , the clock monitoring module includes the following structure:
- the frequency divider provides clocks of different frequencies and divides the original clock frequency to be tested to achieve the purpose of frequency reduction.
- the synchronizer realizes the synchronous release of asynchronous signals in the input clock domain through synchronous processing.
- the clock signal to be tested can be synchronized to the desired clock domain for release, and the probability of metastable state that may occur when the clock signal to be tested is released due to crossing clock domains can be reduced.
- the rising edge sampler is used to monitor the rising edge of the clock signal to be measured.
- the counter is used to realize the counting function, mainly to calculate the number of reference clocks between two adjacent rising edges of the clock to be measured.
- the frequency deviation detection module is used to compare the count value with the frequency deviation lower limit value and the frequency deviation upper limit value to determine whether the clock is out of lock and output the frequency deviation status (ie, the frequency deviation detection signal).
- the frequency detection module is used to calculate the frequency of the clock signal.
- the presence detection module is used to compare the count value with the presence detection threshold value, thereby determining whether clock loss occurs and outputting a presence status (ie, a presence detection signal).
- the synchronizer is equivalent to the second synchronizer
- the rising edge sampler is equivalent to the second edge monitoring module
- the counter is equivalent to the calculation module.
- the clock monitoring module also includes registers for storing processing results of other modules.
- the clock monitoring module supports three functions, namely, clock frequency deviation monitoring and reporting, clock in place Monitoring and reporting, clock frequency monitoring.
- the workflow of the clock monitoring module for monitoring and reporting clock frequency deviation may include the following steps:
- Step S201 generating a configurable frequency division coefficient, which may be derived from other clock domains, and then needs to be synchronized to the clock domain to be tested, and then used in subsequent frequency division units after the signal is stable.
- step S202 the clock to be tested is divided, wherein the division coefficient comes from step S201, and the clock to be tested is divided to at least one half of the reference clock.
- the reference clock serves as the only reference for the clock monitoring module and can be derived from an external crystal oscillator or a stable clock generating unit. The stability of the reference clock must be ensured.
- Step S203 synchronize the divided clock to be tested in the reference clock domain, synchronize it in the reference clock domain, and use it for the rising edge sampler.
- Each cycle after the division is used as a cycle of the counter. If the frequency of the clock to be tested is normal, then the count value will be the frequency ratio of the reference clock and the divided clock to be tested.
- Step S204 generating a counting flag, counting to the frequency division flag being pulled high and then cleared and counting again, this flag is the rising edge of the clock to be measured after frequency division in the reference clock domain, and the high level duration is one reference clock cycle.
- Step S205 counting starts from zero in the reference clock domain, and when the counting flag is pulled high, it is cleared and restarted.
- Step S206 judging whether the counting period is within an acceptable range.
- the frequencies of the clock to be measured and the reference clock can provide upper and lower threshold values for counting. If the counting value is lower than the lower limit or higher than the upper limit, a clock frequency abnormality will be reported.
- the frequency division coefficient and threshold of the clock to be tested can be flexibly configured. For different chips and scenarios, it is only necessary to modify the parameters according to the actual situation, and the flexibility and maintainability of the system are enhanced.
- the workflow of the clock monitoring module for monitoring and reporting the clock in place may include the following steps:
- Step S301 generate a configurable frequency division coefficient, which can be derived from other clock domains, and then need to be synchronized to the clock domain to be tested, and then used in subsequent frequency division units after the signal is stable.
- step S302 the clock to be tested is divided, wherein the division coefficient comes from step S301, and the clock to be tested is divided to at least one half of the reference clock.
- the reference clock serves as the only reference of this monitoring unit and can be derived from an external crystal oscillator or a stable clock generating unit. The stability of the reference clock must be guaranteed.
- Step S303 synchronize the divided clock to be tested in the reference clock domain, synchronize it in the reference clock domain, and use it for the rising edge sampler.
- Each cycle after the division is used as a cycle of the counter. If the frequency of the clock to be tested is normal, then the count value will be the frequency ratio of the reference clock and the divided clock to be tested.
- Step S304 generating a counting flag, counting to the frequency division flag being pulled high and then cleared and counting again, this flag is the rising edge of the clock to be measured after frequency division in the reference clock domain, and the high level duration is one reference clock cycle.
- Step S305 counting starts from zero in the reference clock domain, and clears to zero and restarts when the counting flag is pulled high.
- Step S306 compare the count value in step S305 with the set threshold. When the count value is greater than the threshold, it means that the clock has not flipped as expected, and the loss alarm is raised.
- the workflow of the clock monitoring module for performing clock frequency monitoring may include the following steps:
- Step S401 generating a configurable frequency division coefficient, which may be derived from other clock domains, and then needs to be synchronized to the clock domain to be tested, and then used in subsequent frequency division units after the signal is stable.
- Step S402 divide the clock to be tested, where the frequency division coefficient is derived from step S401, divide the clock to be tested to at least half of the reference clock.
- the reference clock is the only reference of this monitoring unit and can be derived from an external crystal oscillator. Or a stable clock generating unit must ensure the stability of the reference clock.
- Step S403 synchronize the divided clock to be tested in the reference clock domain, synchronize it in the reference clock domain, and use it for the rising edge sampler.
- Each cycle after the division is used as a cycle of the counter. If the frequency of the clock to be tested is normal, then the count value will be the frequency ratio of the reference clock and the divided clock to be tested.
- Step S404 generating a counting flag, counting to the frequency division flag being pulled high and then cleared and counting again, this flag is the rising edge of the clock to be measured after frequency division in the reference clock domain, and the high level duration is one reference clock cycle.
- Step S405 counting starts from zero in the reference clock domain, and when the count flag is pulled high, it is cleared and restarted, and the count value is output. According to the reference clock frequency and the frequency division coefficient, the frequency of the clock to be measured can be calculated from the count value.
- FIG10 is a schematic diagram of a signal aggregation process of multiple clock monitoring modules according to an embodiment of the present disclosure. As shown in FIG10 , monitoring of multiple clock signals to be measured can be achieved by instantiating the clock monitoring modules multiple times.
- the monitoring result of the clock monitoring module can be sent by register reading and writing. If the output status of multiple clock sources needs to be summarized, a one-bit status bit can be generated through the summary logic for reporting.
- mask bits can be added to determine whether the monitoring results are output by configuring the mask bits. However, the mask value does not affect the operation of the monitoring module.
- the clock monitoring module is only affected by the internal enable signal of the module.
- the mask includes a frequency deviation detection mask and a presence monitoring mask.
- the effective level and level of the mask can be set according to actual needs.
- the detection signal when the mask bit is 1, the detection signal is shielded, and the detection signal is 1, which can indicate the output of an alarm signal.
- Each mask bit is inverted bit by bit and then ANDed with the corresponding frequency deviation/in-place detection signal. Only when the mask bit is 0 and the detection signal is 1, an alarm signal is output, and no alarm signal is output in other cases.
- an OR operation can be performed on multiple masked frequency deviation/in-place detection signals. As long as any frequency deviation/in-place alarm signal is output, the aggregated frequency deviation/in-place detection result is output as 1, generating an alarm.
- the logic operation process of the mask high level is as follows:
- Y total
- Y 0 and Y N represent the frequency deviation/presence detection signals after mask processing. Since the frequency deviation abnormality can also be called clock unlock, clock_unlock0 to clock_unlockN represent the frequency deviation detection signals respectively. The frequency deviation detection signal can be replaced by the presence detection signal.
- Mask 0 and mask N represent the mask bits corresponding to each detection signal.
- Y total represents the summarized frequency deviation/presence detection result.
- the detection signal when the mask bit is 0, the detection signal is shielded, and when the detection signal is 1, an alarm signal is output.
- An AND operation is performed on each mask bit and the corresponding frequency deviation/in-place detection signal. Only when the mask bit is 1 and the detection signal is 1, an alarm signal is output, and no alarm signal is output in other cases.
- an OR operation can be performed on multiple masked frequency deviation/in-place detection signals. As long as any frequency deviation/in-place alarm signal is output, the aggregated frequency deviation/in-place detection result is output as 1, generating an alarm.
- the logic operation process of the mask low level is as follows:
- Y total
- Y 0 and Y N represent the frequency deviation/presence detection signals after mask processing. Since the frequency deviation abnormality can also be called clock unlock, clock_unlock0 to clock_unlockN represent the frequency deviation detection signals respectively, mask 0 and mask N represent the mask bits corresponding to each detection signal, and Y total represents the summarized frequency deviation/presence detection result.
- the frequency deviation detection signal clock_unlock may be replaced by the presence detection signal.
- FIG. 11 is a waveform diagram of a pulse period monitoring module according to an embodiment of the present disclosure. As shown in FIG. 11 , the pulse period monitoring module involves the following signals:
- Reference clock (ref_clk), input pulse (in_pulse), input pulse synchronization signal (in_pulse_sync), input frequency count flag (in_freq_cnt_flag), input frequency count (in_freq_cnt).
- the reference clock may come from a stable clock source such as an external crystal oscillator, an off-chip clock chip, etc.
- the reference clock frequency must be greater than twice the pulse frequency.
- the input pulse (in_pulse) is synchronized to the clock domain of the reference clock (ref_clk) to obtain an input pulse synchronization signal (in_pulse_sync).
- the input frequency count flag (in_freq_cnt_flag) is used as a cycle completion mark, which is triggered by the rising edge of the input pulse synchronization signal (in_pulse_sync) and can last for a reference signal cycle.
- the input frequency count (in_freq_cnt) is used to count the number of reference clocks between two adjacent input frequency count flags. After the counter counts from one flag bit to the next flag bit, it saves the current count value cnt and then clears it to start the next round of counting.
- the frequency of the input pulse (i.e., the pulse signal to be measured) can be calculated using Fref/cnt or Fref/(cnt+1), where the specific use of cnt or cnt+1 is determined by the initial value of the counter. If the counter starts counting from 0, the input pulse frequency is Fref/cnt, and if the counter starts counting from 1, the input pulse frequency is Fref/(cnt+1).
- FIG12 is a waveform diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure. As shown in FIG12 , the pulse duty cycle monitoring module involves the following signals:
- Reference clock (ref_clk), input pulse (in_pulse), input pulse synchronization signal (in_pulse_sync), input frequency count flag (in_freq_cnt_flag), input duty cycle count (in_duty_cnt).
- the calculation of the duty cycle is similar to the frequency calculation, and both are performed by counting the reference clock to calculate the pulse length.
- the pulse duty cycle monitoring module counts the high level of the pulse, and uses the rising edge sampling and falling edge clearing method to store the input duty cycle count (in_duty_cnt) into the register. Then, the duty cycle can be calculated based on the reference clock frequency and the input frequency count value (in_freq_cnt).
- the duty cycle can be expressed as: data_duty/data_freq or (data_duty+1)/(data_freq+1), and whether to add 1 depends on the initial value of the counter.
- the duty cycle calculation of any pulse signal can be realized, which improves the applicability of the chip monitoring system.
- the fault monitoring is realized by comparing the count values before and after the duty cycle/period of the pulse signal, which increases the system's stability.
- An embodiment of the present disclosure further provides a chip, which includes the pulse signal monitoring circuit in any one of the above embodiments.
- the chip can be applied to various scenarios such as automotive electronics, consumer electronics, and communications, etc.
- the present disclosure does not limit this.
- An embodiment of the present disclosure further provides an electronic device, which includes the pulse signal monitoring circuit in any one of the above embodiments.
- the device may also include the chip in the above embodiments.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Nonlinear Science (AREA)
- Manipulation Of Pulses (AREA)
Abstract
Description
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于2023年09月27日提交的发明名称为“脉冲信号监测电路、芯片及电子装置”的中国专利申请CN202311263663.8,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。This disclosure is based on Chinese patent application CN202311263663.8, filed on September 27, 2023, with the invention name “Pulse signal monitoring circuit, chip and electronic device”, and claims the priority of the patent application, and all the contents disclosed therein are incorporated into this disclosure by reference.
本公开涉及电子电路领域,具体而言,涉及一种脉冲信号监测电路、芯片及电子装置。The present disclosure relates to the field of electronic circuits, and in particular, to a pulse signal monitoring circuit, a chip and an electronic device.
随着汽车电动化、智能化、物联化的发展趋势,车规芯片需要集成越来越多的功能来满足市场需求,集成电路(Integrated Circuit,简称IC)设计尤其是系统级芯片(System on Chip,简称SOC)设计需要集成越来越多的知识产权(Intellectual Property,简称IP)来满足更为复杂的市场需求。另一方面,汽车类产品作为代步工具,和生命安全息息相关,所以此类芯片在安全性和可靠性上具有更高的要求。With the development trend of automobile electrification, intelligence and Internet of Things, automotive chips need to integrate more and more functions to meet market demand, and integrated circuit (IC) design, especially system-on-chip (SOC) design, needs to integrate more and more intellectual property (IP) to meet more complex market demands. On the other hand, automobile products, as a means of transportation, are closely related to life safety, so such chips have higher requirements in terms of safety and reliability.
为了保证数字车载芯片上脉冲类信号的稳定性,数字芯片中的脉冲源主要是由片上的振荡器、锁相环及片外晶体振荡器产生,长时间的工作或者来自外界环境的噪声干扰都极有可能导致脉冲信号失效,造成比较大的安全事故,威胁人身安全。In order to ensure the stability of pulse signals on digital vehicle-mounted chips, the pulse sources in digital chips are mainly generated by on-chip oscillators, phase-locked loops and external crystal oscillators. Long-term operation or noise interference from the external environment is very likely to cause pulse signal failure, resulting in relatively large safety accidents and threatening personal safety.
目前针对芯片脉冲信号的监测主要是对占空比为50%的时钟信号的监测,没有对占空比非50%的脉冲信号的监测。而在时钟监测方面,主要有两类,一是监测时钟频偏,相关技术中采用三条链路来监测频偏,实现较为繁琐,且无法检测出时钟丢失。二是监测时钟丢失,有时钟信号时,会输出周期性脉冲信号,时钟信号丢失时,会输出高电平或低电平信号,但是当待测时钟信号频率发生变化时,也会输出高电平或低电平信号,因此无法判断时钟失锁。At present, the monitoring of chip pulse signals mainly monitors clock signals with a duty cycle of 50%, and there is no monitoring of pulse signals with a duty cycle of non-50%. In terms of clock monitoring, there are mainly two categories. One is to monitor clock frequency deviation. The relevant technology uses three links to monitor frequency deviation, which is cumbersome to implement and cannot detect clock loss. The second is to monitor clock loss. When there is a clock signal, a periodic pulse signal will be output. When the clock signal is lost, a high or low level signal will be output. However, when the frequency of the clock signal to be measured changes, a high or low level signal will also be output, so it is impossible to determine whether the clock is locked.
综上,针对上述问题,还没有很好的解决方法。In summary, there is no good solution to the above problems.
发明内容Summary of the invention
本公开实施例提供了一种脉冲信号监测电路、芯片及电子装置,以至少解决相关技术中无法监测占空比非50%的脉冲信号的问题。The embodiments of the present disclosure provide a pulse signal monitoring circuit, a chip and an electronic device to at least solve the problem in the related art that a pulse signal with a duty cycle other than 50% cannot be monitored.
根据本公开的一个实施例,提供了一种脉冲信号监测电路,该脉冲信号监测电路包括:脉冲周期监测模块,用于基于参考时钟信号监测待测脉冲信号的周期和相邻两个周期之间的周期变化;脉冲占空比监测模块,用于基于参考时钟信号监测所述待测脉冲信号的占空比和相邻两个周期之间的占空比变化。According to one embodiment of the present disclosure, a pulse signal monitoring circuit is provided, which includes: a pulse period monitoring module, which is used to monitor the period of a pulse signal to be measured and the period change between two adjacent periods based on a reference clock signal; and a pulse duty cycle monitoring module, which is used to monitor the duty cycle of the pulse signal to be measured and the duty cycle change between two adjacent periods based on a reference clock signal.
根据本公开的又一个实施例,还提供了一种芯片,包括上述任一项实施例中的脉冲信号监测电路。According to another embodiment of the present disclosure, a chip is provided, comprising the pulse signal monitoring circuit in any one of the above embodiments.
根据本公开的又一个实施例,还提供了一种电子装置,包括上述任一项实施例中的脉冲 信号监测电路。According to another embodiment of the present disclosure, an electronic device is provided, comprising the pulse Signal monitoring circuit.
图1是本公开实施例的脉冲信号监测电路的结构框图;FIG1 is a block diagram of a pulse signal monitoring circuit according to an embodiment of the present disclosure;
图2是本公开实施例的脉冲周期监测模块的结构框图;FIG2 is a structural block diagram of a pulse period monitoring module according to an embodiment of the present disclosure;
图3是本公开实施例的脉冲占空比监测模块的结构框图;FIG3 is a structural block diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure;
图4是根据本公开一实施例中的脉冲信号监测电路的结构框图;FIG4 is a structural block diagram of a pulse signal monitoring circuit according to an embodiment of the present disclosure;
图5是本公开实施例的时钟频偏监测模块的结构框图;FIG5 is a structural block diagram of a clock frequency deviation monitoring module according to an embodiment of the present disclosure;
图6是本公开实施例的时钟在位监测模块的结构框图;FIG6 is a structural block diagram of a clock presence monitoring module according to an embodiment of the present disclosure;
图7是根据本公开另一实施例的脉冲信号监测电路的结构框图;7 is a structural block diagram of a pulse signal monitoring circuit according to another embodiment of the present disclosure;
图8是根据本公开一实施例中的脉冲监测模块的处理流程的示意图;FIG8 is a schematic diagram of a processing flow of a pulse monitoring module according to an embodiment of the present disclosure;
图9是根据本公开一实施例中的时钟监测模块的处理流程的示意图;FIG9 is a schematic diagram of a processing flow of a clock monitoring module according to an embodiment of the present disclosure;
图10是根据本公开实施例中的多个时钟监测模块的信号汇总流程的示意图;FIG10 is a schematic diagram of a signal aggregation process of multiple clock monitoring modules according to an embodiment of the present disclosure;
图11是根据本公开实施例中的脉冲周期监测模块的波形示意图;FIG11 is a waveform diagram of a pulse period monitoring module according to an embodiment of the present disclosure;
图12是根据本公开实施例中的脉冲占空比监测模块的波形示意图。FIG. 12 is a waveform diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure.
下文中将参考附图并结合实施例来详细说明本公开的实施例。Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
本公开实施例中的脉冲信号监测电路主要应用于芯片中,对芯片中的脉冲信号实现实时监测,芯片产品可以包括但不限制于汽车电子芯片、消费电子芯片、通讯芯片等。The pulse signal monitoring circuit in the embodiment of the present disclosure is mainly used in chips to realize real-time monitoring of pulse signals in the chip. Chip products may include but are not limited to automotive electronic chips, consumer electronic chips, communication chips, etc.
本公开实施例中提供了一种脉冲信号监测电路。图1是本公开实施例的脉冲信号监测电路的结构框图,如图1所示,该脉冲信号监测电路包括脉冲监测模块10。The embodiment of the present disclosure provides a pulse signal monitoring circuit. FIG1 is a structural block diagram of the pulse signal monitoring circuit of the embodiment of the present disclosure. As shown in FIG1 , the pulse signal monitoring circuit includes a pulse monitoring module 10 .
在本实施例中,脉冲监测模块10可以包括如下结构:In this embodiment, the pulse monitoring module 10 may include the following structure:
脉冲周期监测模块12,用于基于参考时钟信号监测待测脉冲信号的周期和相邻两个周期之间的周期变化;A pulse period monitoring module 12, used for monitoring the period of the pulse signal to be measured and the period change between two adjacent periods based on the reference clock signal;
脉冲占空比监测模块14,用于基于所述参考时钟信号监测所述待测脉冲信号的占空比和相邻两个周期之间的占空比变化。The pulse duty cycle monitoring module 14 is used to monitor the duty cycle of the pulse signal to be tested and the change of the duty cycle between two adjacent cycles based on the reference clock signal.
在本实施例中,待测脉冲信号可以是任意占空比的脉冲信号。In this embodiment, the pulse signal to be measured may be a pulse signal with any duty cycle.
通过本公开实施例,可以对任意占空比的脉冲信号进行监测,实现对脉冲信号的周期异常监测和占空比异常监测,解决了相关技术中无法监测占空比非50%的脉冲信号的问题,可以及时发现芯片中的信号异常,保障芯片系统稳定运行。Through the embodiments of the present disclosure, pulse signals with any duty cycle can be monitored, and period abnormality monitoring and duty cycle abnormality monitoring of pulse signals can be realized, which solves the problem in the related technology that pulse signals with duty cycles other than 50% cannot be monitored. Signal abnormalities in the chip can be discovered in time to ensure stable operation of the chip system.
在一些实施例中,脉冲监测模块10可以包括第一同步器16,用于将输入的所述待测脉冲信号同步到所述参考时钟信号的时钟域,以输出同步脉冲信号。In some embodiments, the pulse monitoring module 10 may include a first synchronizer 16 for synchronizing the input pulse signal to be tested to the clock domain of the reference clock signal to output a synchronized pulse signal.
在一些实施例中,脉冲监测模块10还可以包括第一边沿监测模块18,其输入端与所述第一同步器的输出端相连,用于监测所述同步脉冲信号的上升沿,并在所述同步脉冲信号的上升沿到来时输出第一触发信号。In some embodiments, the pulse monitoring module 10 may further include a first edge monitoring module 18, whose input end is connected to the output end of the first synchronizer, for monitoring the rising edge of the synchronization pulse signal and outputting a first trigger signal when the rising edge of the synchronization pulse signal arrives.
在一些实施例中,第一边沿监测模块18,还用于监测所述同步脉冲信号的下降沿,并在 所述同步脉冲信号的下降沿到来时输出第三触发信号。In some embodiments, the first edge monitoring module 18 is further configured to monitor the falling edge of the synchronization pulse signal and When the falling edge of the synchronization pulse signal arrives, the third trigger signal is output.
在一些实施例中,脉冲周期监测模块和脉冲占空比监测模块可以共用同步器和边沿检测模块,也可以各自独立使用一个同步器和一个边沿检测模块。In some embodiments, the pulse period monitoring module and the pulse duty cycle monitoring module may share a synchronizer and an edge detection module, or may each independently use a synchronizer and an edge detection module.
在本实施例中,同步器用于通过同步处理,实现异步信号在输入时钟域下的同步释放。同步器可以将复位信号同步到我们期望的时钟域下进行释放,并且降低复位信号释放时因为跨时钟域而可能出现的亚稳态概率。In this embodiment, the synchronizer is used to realize the synchronous release of the asynchronous signal in the input clock domain through synchronization processing. The synchronizer can synchronize the reset signal to the desired clock domain for release, and reduce the probability of metastable state that may occur when the reset signal is released due to crossing the clock domain.
图2是本公开实施例的脉冲周期监测模块的结构框图,如图2所示,该脉冲周期监测模块12可以包括如下结构:FIG. 2 is a structural block diagram of a pulse period monitoring module according to an embodiment of the present disclosure. As shown in FIG. 2 , the pulse period monitoring module 12 may include the following structures:
周期计算模块122,其输入端与所述第一边沿监测模块的输出端相连,用于在所述第一触发信号到来时开始对所述参考时钟信号进行计数,并在下一次所述第一触发信号到来时结束计数,输出脉冲信号周期。The period calculation module 122, whose input end is connected to the output end of the first edge monitoring module, is used to start counting the reference clock signal when the first trigger signal arrives, and end counting when the first trigger signal arrives next time, and output the pulse signal period.
周期变化监测模块124,其输入端与所述周期计算模块的输出端相连,用于比较相邻两次脉冲信号周期是否相同,在所述相邻两次脉冲信号周期不同时,输出第二触发信号。The period change monitoring module 124 has an input end connected to the output end of the period calculation module and is used to compare whether the periods of two adjacent pulse signals are the same, and output a second trigger signal when the periods of the two adjacent pulse signals are different.
变化周期计数模块126,其输入端与所述周期变化监测模块的输出端相连,用于对所述第二触发信号进行计数。The change cycle counting module 126 has an input end connected to the output end of the period change monitoring module and is used to count the second trigger signal.
在一些实施例中,脉冲周期监测模块还用于还可以将变化周期计数模块126输出的第二触发信号的数目与预设的周期变化阈值进行比较,并在所述第二触发信号的数目大于预设的周期变化阈值时,输出周期变化告警信号。In some embodiments, the pulse period monitoring module is also used to compare the number of second trigger signals output by the change period counting module 126 with a preset period change threshold, and output a period change alarm signal when the number of the second trigger signals is greater than the preset period change threshold.
在一示例性实施例中,脉冲周期监测模块单独使用一个边沿检测模块,此时,脉冲周期监测模块还包括上升沿监测模块128,其输入端与所述第一同步器的输出端相连,用于监测所述同步脉冲信号的上升沿,并在所述同步脉冲信号的上升沿到来时输出第一触发信号。In an exemplary embodiment, the pulse period monitoring module uses a single edge detection module. In this case, the pulse period monitoring module also includes a rising edge monitoring module 128, whose input end is connected to the output end of the first synchronizer, for monitoring the rising edge of the synchronization pulse signal and outputting a first trigger signal when the rising edge of the synchronization pulse signal arrives.
在本实施例中,周期计算模块122,其输入端与所述上升沿监测模块的输出端相连。In this embodiment, the input end of the period calculation module 122 is connected to the output end of the rising edge monitoring module.
在一些实施例中,根据监测需求,脉冲周期监测模块可以包括以上一种或多种结构的组合。脉冲周期监测模块可以仅支持对脉冲周期或脉冲频率的实时监测,也可以在脉冲变化到一定值时产生指示信号,并由中控确定是否响应。In some embodiments, according to monitoring requirements, the pulse period monitoring module may include a combination of one or more of the above structures. The pulse period monitoring module may only support real-time monitoring of the pulse period or pulse frequency, or may generate an indication signal when the pulse changes to a certain value, and the central control determines whether to respond.
在一些实施例中,周期计算模块122、变化周期计数模块126可以用计数器实现。周期计算模块可以将第一触发信号即同步脉冲信号的上升沿作为计数标记,在一个计数标记处开始,并在下一个计数标记处结束,记录当前数值后清零。变化周期计数模块可以将第二触发信号的上升沿作为计数标记,并在输出告警信号时或脉冲信号周期恢复正常时清零。In some embodiments, the cycle calculation module 122 and the change cycle counting module 126 can be implemented by a counter. The cycle calculation module can use the rising edge of the first trigger signal, i.e., the synchronous pulse signal, as a counting mark, start at a counting mark, end at the next counting mark, record the current value and then clear it. The change cycle counting module can use the rising edge of the second trigger signal as a counting mark, and clear it when the alarm signal is output or the pulse signal cycle returns to normal.
在一些实施例中,周期变化阈值可以根据告警异常情况的敏感度进行设置,周期变化阈值越小,对脉冲信号周期异常的敏感度越高。In some embodiments, the period variation threshold may be set according to the sensitivity of the alarm abnormality. The smaller the period variation threshold, the higher the sensitivity to the pulse signal period abnormality.
通过本公开实施例,可以对任意占空比的脉冲信号实现脉冲周期的实时监测,及时发现脉冲信号的周期异常情况,进而保障了芯片系统的正常运行。Through the embodiments of the present disclosure, real-time monitoring of the pulse period of a pulse signal with any duty cycle can be achieved, and abnormal period conditions of the pulse signal can be discovered in time, thereby ensuring the normal operation of the chip system.
在另一些实施例中,第一边沿监测模块18,还用于监测所述同步脉冲信号的下降沿,并在所述同步脉冲信号的下降沿到来时输出第三触发信号。In some other embodiments, the first edge monitoring module 18 is further used to monitor the falling edge of the synchronization pulse signal, and output a third trigger signal when the falling edge of the synchronization pulse signal arrives.
图3是本公开实施例的脉冲占空比监测模块的结构框图,如图3所示,该脉冲占空比监测模块14可以包括如下结构:FIG3 is a structural block diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure. As shown in FIG3 , the pulse duty cycle monitoring module 14 may include the following structure:
占空比计算模块142,其输入端与所述第一边沿监测模块的输出端相连,用于在所述第一触发信号到来时开始对所述参考时钟信号进行计数,在所述第三触发信号到来时结束计数 得到高电平脉冲数目,将所述高电平脉冲数目与所述脉冲信号周期的比值确定为脉冲信号占空比,输出所述脉冲信号占空比。A duty cycle calculation module 142, whose input end is connected to the output end of the first edge monitoring module, is used to start counting the reference clock signal when the first trigger signal arrives, and end counting when the third trigger signal arrives. The number of high-level pulses is obtained, the ratio of the number of high-level pulses to the pulse signal period is determined as the pulse signal duty cycle, and the pulse signal duty cycle is output.
占空比变化监测模块144,其输入端与所述占空比计算模块的输出端相连,用于比较相邻两次脉冲信号占空比是否相同,在所述相邻两次脉冲信号占空比不同时,输出第四触发信号。The duty cycle change monitoring module 144 has an input end connected to the output end of the duty cycle calculation module and is used to compare whether the duty cycles of two adjacent pulse signals are the same. When the duty cycles of the two adjacent pulse signals are different, a fourth trigger signal is output.
变化占空比计数模块146,其输入端与所述占空比变化监测模块的输出端相连,用于对所述第四触发信号进行计数。The duty cycle change counting module 146 has an input end connected to the output end of the duty cycle change monitoring module and is used to count the fourth trigger signal.
在一些实施例中,脉冲占空比监测模块还可以将变化占空比计数模块146输出的第四触发信号的数目与预设的占空比变化阈值进行比较,并在所述第四触发信号的数目大于预设的占空比变化阈值时,输出占空比变化告警信号。In some embodiments, the pulse duty cycle monitoring module can also compare the number of fourth trigger signals output by the duty cycle change counting module 146 with a preset duty cycle change threshold, and output a duty cycle change alarm signal when the number of the fourth trigger signals is greater than the preset duty cycle change threshold.
在一示例性实施例中,脉冲占空比监测模块单独使用一个边沿检测模块,此时,脉冲周期监测模块还包括下降沿监测模块148,其输入端与所述第一同步器的输出端相连,用于监测所述同步脉冲信号的下降沿,并在所述同步脉冲信号的下降沿到来时输出第三触发信号。In an exemplary embodiment, the pulse duty cycle monitoring module uses a single edge detection module. In this case, the pulse period monitoring module also includes a falling edge monitoring module 148, whose input end is connected to the output end of the first synchronizer, for monitoring the falling edge of the synchronization pulse signal and outputting a third trigger signal when the falling edge of the synchronization pulse signal arrives.
在本实施例中,占空比计算模块142,其输入端与所述上升沿监测模块的输出端和所述下降沿监测模块的输出端相连。In this embodiment, the duty cycle calculation module 142 has an input end connected to the output end of the rising edge monitoring module and the output end of the falling edge monitoring module.
在一些实施例中,根据监测需求,脉冲占空比监测模块可以包括以上一种或多种结构的组合。脉冲占空比监测模块可以仅支持对占空比的实时监测,也可以在占空比变化到一定值时产生指示信号,并由中控确定是否响应。In some embodiments, according to monitoring requirements, the pulse duty cycle monitoring module may include a combination of one or more of the above structures. The pulse duty cycle monitoring module may only support real-time monitoring of the duty cycle, or may generate an indication signal when the duty cycle changes to a certain value, and the central control determines whether to respond.
在一些实施例中,占空比计算模块142、变化占空比计数模块146可以用计数器实现。In some embodiments, the duty cycle calculation module 142 and the duty cycle change counting module 146 may be implemented using counters.
在本实施例中,占空比计算模块可以将第一触发信号即同步脉冲信号的上升沿作为计数开始标记,并将第三触发信号即同步脉冲信号的下降沿作为计数结束标记,记录当前数值后清零。再结合周期计算模块122中得到脉冲信号周期,计算占空比。In this embodiment, the duty cycle calculation module can use the rising edge of the first trigger signal, i.e., the synchronization pulse signal, as the count start mark, and the falling edge of the third trigger signal, i.e., the synchronization pulse signal, as the count end mark, record the current value and then clear it to zero. Then, the duty cycle is calculated by combining the pulse signal period obtained in the period calculation module 122.
在本实施例中,变化占空比计数模块可以将第四触发信号的上升沿作为计数标记,并在输出告警信号时或脉冲信号占空比恢复正常时清零。In this embodiment, the duty cycle change counting module may use the rising edge of the fourth trigger signal as a counting mark, and clear it when an alarm signal is output or the duty cycle of the pulse signal returns to normal.
在一些实施例中,占空比变化阈值可以根据告警异常情况的敏感度进行设置,占空比变化阈值越小,对脉冲信号占空比异常的敏感度越高。In some embodiments, the duty cycle change threshold can be set according to the sensitivity of the alarm abnormality. The smaller the duty cycle change threshold, the higher the sensitivity to the abnormal duty cycle of the pulse signal.
通过本公开实施例,可以对任意占空比的脉冲信号进行监测,实现对脉冲信号的占空比异常监测,及时发现芯片中的信号异常,保障芯片系统稳定运行。Through the embodiments of the present disclosure, pulse signals of any duty cycle can be monitored, abnormal duty cycle monitoring of pulse signals can be achieved, signal abnormalities in the chip can be discovered in time, and stable operation of the chip system can be ensured.
在另一实施例中,在所述脉冲周期监测模块与所述脉冲占空比监测模块共用边沿监测模块的情况下,所述上升沿监测模块和所述下降沿监测模块为同一边沿监测模块,即第一边沿监测模块18。In another embodiment, when the pulse period monitoring module and the pulse duty cycle monitoring module share an edge monitoring module, the rising edge monitoring module and the falling edge monitoring module are the same edge monitoring module, namely, the first edge monitoring module 18 .
图4是根据本公开一实施例中的脉冲信号监测电路的结构框图,如图4所示,脉冲信号监测电路还可以包括时钟监测模块20。FIG. 4 is a structural block diagram of a pulse signal monitoring circuit according to an embodiment of the present disclosure. As shown in FIG. 4 , the pulse signal monitoring circuit may further include a clock monitoring module 20 .
在本实施例中,时钟监测模块20包括如下结构:In this embodiment, the clock monitoring module 20 includes the following structure:
时钟频偏监测模块22,用于基于所述参考时钟信号监测待测时钟信号的频率和频率偏移;A clock frequency deviation monitoring module 22, configured to monitor the frequency and frequency deviation of a clock signal to be measured based on the reference clock signal;
时钟在位监测模块24,用于基于所述参考时钟信号监测所述待测时钟信号的在位状态。The clock presence monitoring module 24 is used to monitor the presence status of the clock signal to be tested based on the reference clock signal.
在本实施例中,待测时钟信号可以是占空比为50%的脉冲信号。In this embodiment, the clock signal to be measured may be a pulse signal with a duty cycle of 50%.
在本实施例中,参考时钟信号是时钟监测模块的唯一基准,可来源于外部晶振或者稳定的时钟产生单元,必须保证参考时钟的稳定性。 In this embodiment, the reference clock signal is the only reference of the clock monitoring module and may be derived from an external crystal oscillator or a stable clock generating unit. The stability of the reference clock must be ensured.
通过本公开实施例,可以实现对占空比非50%的脉冲信号和时钟信号的灵活监测,根据监测需求调用或接入不同的监测模块进行处理,扩大了芯片监测系统的适用范围。Through the embodiments of the present disclosure, flexible monitoring of pulse signals and clock signals with duty cycles other than 50% can be achieved, and different monitoring modules can be called or connected for processing according to monitoring requirements, thereby expanding the scope of application of the chip monitoring system.
在一些实施例中,所述时钟监测模块还包括:In some embodiments, the clock monitoring module further includes:
分频器,用于基于预设的分频系数对输入的所述待测时钟信号进行分频,输出分频信号;A frequency divider, used for dividing the input clock signal to be measured based on a preset frequency division coefficient, and outputting a frequency division signal;
第二同步器,其输入端与所述分频器的输出端相连,用于将所述分频信号同步到所述参考时钟信号的时钟域,输出同步时钟信号;A second synchronizer, whose input end is connected to the output end of the frequency divider, is used to synchronize the frequency-divided signal to the clock domain of the reference clock signal and output a synchronized clock signal;
第二边沿监测模块,其输入端与所述第二同步器的输出端相连,用于监测所述同步时钟信号的上升沿,并在所述同步时钟信号的上升沿到来时输出第五触发信号;A second edge monitoring module, whose input end is connected to the output end of the second synchronizer, is used to monitor the rising edge of the synchronization clock signal and output a fifth trigger signal when the rising edge of the synchronization clock signal arrives;
计数模块,其输入端与所述第二边沿监测模块的输出端相连,用于在所述第五触发信号到来时开始对所述参考时钟信号进行计数,并在下一次所述第五触发信号到来时结束计数,输出计数值。A counting module, whose input end is connected to the output end of the second edge monitoring module, is used to start counting the reference clock signal when the fifth trigger signal arrives, and to end counting when the fifth trigger signal arrives next time, and output the count value.
在一些实施例中,若待测时钟信号频率正确,所述计数值为所述参考时钟信号和所述同步时钟信号(或分频后的待测时钟信号)的频率比。In some embodiments, if the frequency of the clock signal to be measured is correct, the count value is the frequency ratio of the reference clock signal and the synchronous clock signal (or the divided clock signal to be measured).
在一些实施例中,时钟频偏监测模块和时钟在位监测模块可以共用分频器、同步器、边沿检测模块以及计数模块,也可以各自独立使用。In some embodiments, the clock frequency deviation monitoring module and the clock presence monitoring module may share a frequency divider, a synchronizer, an edge detection module, and a counting module, or may be used independently.
图5是本公开实施例的时钟频偏监测模块的结构框图,如图5所示,该时钟频偏监测模块22可以包括如下结构:FIG5 is a structural block diagram of a clock frequency deviation monitoring module according to an embodiment of the present disclosure. As shown in FIG5 , the clock frequency deviation monitoring module 22 may include the following structures:
频偏检测模块222,其输入端与所述计数模块的输出端相连,用于在所述计数值大于预设的频偏上限值或小于预设的频偏下限值的情况下,输出频偏告警信号。The frequency deviation detection module 222 has an input end connected to the output end of the counting module, and is used to output a frequency deviation alarm signal when the count value is greater than a preset frequency deviation upper limit or less than a preset frequency deviation lower limit.
频率检测模块224,其输入端与所述计数模块的输出端相连,用于根据所述计数值、所述分频系数以及所述参考时钟频率确定所述待测时钟信号的频率。The frequency detection module 224 has an input end connected to the output end of the counting module and is used to determine the frequency of the clock signal to be measured according to the counting value, the frequency division coefficient and the reference clock frequency.
在本实施例中,频偏上限值和频偏下限值可以根据频偏检测精度的需求进行灵活配置,频偏上限值为没有发生频偏时的标准计数值与频偏检测精度的和,频偏下限值为标准计数值与频偏检测精度的差。In this embodiment, the upper limit value of the frequency deviation and the lower limit value of the frequency deviation can be flexibly configured according to the requirements of the frequency deviation detection accuracy. The upper limit value of the frequency deviation is the sum of the standard count value when no frequency deviation occurs and the frequency deviation detection accuracy, and the lower limit value of the frequency deviation is the difference between the standard count value and the frequency deviation detection accuracy.
在一些实施例中,频率检测模块需要一个稳定的时钟源作为参考时钟,参考时钟可以来自于外部晶振,片外时钟芯片等稳定时钟源。根据奈奎斯特采样定理,为了保证能够准确采样,参考时钟频率要大于待测时钟频率的两倍。In some embodiments, the frequency detection module requires a stable clock source as a reference clock, which can come from an external crystal oscillator, an off-chip clock chip, or other stable clock sources. According to the Nyquist sampling theorem, in order to ensure accurate sampling, the reference clock frequency must be greater than twice the frequency of the clock to be measured.
图6是本公开实施例的时钟在位监测模块的结构框图,如图6所示,该时钟在位监测模块24可以包括如下结构:FIG6 is a structural block diagram of a clock presence monitoring module according to an embodiment of the present disclosure. As shown in FIG6 , the clock presence monitoring module 24 may include the following structure:
在位检测模块242,其输入端与所述计数模块的输出端相连,接收输入的所述计数值和预设的在位检测阈值,用于在所述计数值大于所述在位检测阈值的情况下,确定所述待测时钟信号的在位状态为丢失状态,输出在位告警信号。The in-place detection module 242 has an input end connected to the output end of the counting module, receives the input count value and a preset in-place detection threshold, and is used to determine that the in-place state of the clock signal to be measured is a lost state when the count value is greater than the in-place detection threshold, and output an in-place alarm signal.
在一些实施例中,在位检测阈值可以根据待测时钟信号的频率范围进行设置。In some embodiments, the presence detection threshold may be set according to a frequency range of the clock signal to be detected.
在一示例性实施例中,如果待测时钟信号没有丢失,分频后的信号宽度范围为0.5M~2M,其中,M为所述稳定且不丢失的低速时钟源的脉宽,则在位检测阈值也可以设置为0.5M~2M。In an exemplary embodiment, if the clock signal to be tested is not lost, the signal width after frequency division ranges from 0.5M to 2M, where M is the pulse width of the stable and non-lost low-speed clock source, and the in-place detection threshold can also be set to 0.5M to 2M.
在一示例性实施例中,在所述时钟频偏监测模块与所述时钟在位监测模块共用所述分频器、所述第二同步器、所述第二边沿监测模块以及所述计数模块的情况下,所述时钟频偏监测模块的输入端和所述时钟在位监测模块的输入端与同一计数模块的输出端相连;In an exemplary embodiment, when the clock frequency deviation monitoring module and the clock presence monitoring module share the frequency divider, the second synchronizer, the second edge monitoring module and the counting module, the input end of the clock frequency deviation monitoring module and the input end of the clock presence monitoring module are connected to the output end of the same counting module;
在另一示例性实施例中,在所述时钟频偏监测模块与所述时钟在位监测模块不共用所述 分频器、所述第二同步器、所述第二边沿监测模块以及所述计数模块的情况下,所述时钟频偏监测模块和所述时钟在位监测模块分别包含一组所述分频器、所述第二同步器、所述第二边沿监测模块以及所述计数模块。In another exemplary embodiment, the clock frequency deviation monitoring module and the clock presence monitoring module do not share the In the case of a frequency divider, the second synchronizer, the second edge monitoring module and the counting module, the clock frequency deviation monitoring module and the clock in-position monitoring module respectively include a group of the frequency divider, the second synchronizer, the second edge monitoring module and the counting module.
在本实施例中,频偏检测模块、频率检测模块、在位检测模块的输入端可以与对应分组中的计数模块相连。In this embodiment, the input ends of the frequency deviation detection module, the frequency detection module, and the presence detection module may be connected to the counting modules in the corresponding groups.
图7是根据本公开另一实施例的脉冲信号监测电路的结构框图,如图7所示,脉冲信号监测电路还可以包括如下结构:FIG. 7 is a structural block diagram of a pulse signal monitoring circuit according to another embodiment of the present disclosure. As shown in FIG. 7 , the pulse signal monitoring circuit may further include the following structure:
多个所述时钟监测模块20,频偏监测汇总模块30以及在位监测汇总模块40。The plurality of clock monitoring modules 20 , the frequency deviation monitoring and summarizing module 30 and the in-position monitoring and summarizing module 40 .
在本实施例中,多个所述时钟监测模块,用于输出多路频偏检测信号和多路在位检测信号,其中,每路所述待测时钟信号输入一个所述时钟监测模块,并从每个所述时钟监测模块的时钟频偏监测模块输出一路所述频偏检测信号,从每个所述时钟监测模块的时钟在位监测模块输出一路所述在位检测信号,其中,所述频偏检测信号包括频偏告警信号和频偏正常信号,所述在位检测信号包括在位告警信号和在位正常信号;In this embodiment, a plurality of the clock monitoring modules are used to output multiple frequency deviation detection signals and multiple in-place detection signals, wherein each of the clock signals to be measured is input into one of the clock monitoring modules, and a frequency deviation detection signal is output from the clock frequency deviation monitoring module of each of the clock monitoring modules, and a in-place detection signal is output from the clock in-place monitoring module of each of the clock monitoring modules, wherein the frequency deviation detection signal includes a frequency deviation alarm signal and a normal frequency deviation signal, and the in-place detection signal includes an in-place alarm signal and a normal in-place signal;
在本实施例中,所述频偏监测汇总模块,其输入端与所述多个所述时钟监测模块的输出端相连,接收所输入的所述多路频偏检测信号和预设的频偏检测掩码,根据所述频偏检测掩码判断每一路频偏检测信号是否输出,并对经过掩码处理后的多路频偏检测信号进行或运算,输出一路汇总后的频偏检测结果;In this embodiment, the frequency deviation monitoring summary module has an input end connected to the output ends of the multiple clock monitoring modules, receives the input multiple frequency deviation detection signals and a preset frequency deviation detection mask, determines whether each frequency deviation detection signal is output according to the frequency deviation detection mask, and performs an OR operation on the multiple frequency deviation detection signals after mask processing, and outputs a summarized frequency deviation detection result;
在本实施例中,所述在位监测汇总模块,其输入端与所述多个所述时钟监测模块的输出端相连,接收输入的所述多路在位检测信号和预设的在位检测掩码,根据所述在位检测掩码判断所述多路在位检测信号中的每一路在位检测信号是否输出,并对经过掩码处理后的多路在位检测信号进行或运算,输出一路汇总后的在位检测结果。In this embodiment, the input end of the in-place monitoring summary module is connected to the output ends of the multiple clock monitoring modules, receives the input multiple in-place detection signals and a preset in-place detection mask, determines whether each of the multiple in-place detection signals is output according to the in-place detection mask, performs an OR operation on the multiple in-place detection signals after mask processing, and outputs a summarized in-place detection result.
通过本公开实施例,可以实现对多时钟输入的监控,监控结果可以经过汇总逻辑进行汇总后上报。根据监测场景对时钟频偏或者在位状态的敏感程度,可以对频偏检测掩码、在位检测掩码进行配置,来决定监测结果是否输出。Through the disclosed embodiments, it is possible to monitor multiple clock inputs, and the monitoring results can be reported after being summarized by the summary logic. According to the sensitivity of the monitoring scenario to the clock frequency deviation or the in-position state, the frequency deviation detection mask and the in-position detection mask can be configured to determine whether the monitoring results are output.
图8是根据本公开一实施例中的脉冲监测模块的处理流程的示意图,如图8所示,该脉冲监测模块包括如下结构:FIG8 is a schematic diagram of a processing flow of a pulse monitoring module according to an embodiment of the present disclosure. As shown in FIG8 , the pulse monitoring module includes the following structure:
同步器,通过同步处理,实现异步信号在输入时钟域下的同步释放。在本实施例中,用于将输入脉冲(in_pulse)即待测脉冲信号的时钟域与参考时钟的时钟域进行同步。The synchronizer realizes the synchronous release of the asynchronous signal in the input clock domain through synchronization processing. In this embodiment, it is used to synchronize the clock domain of the input pulse (in_pulse), that is, the pulse signal to be measured, with the clock domain of the reference clock.
上升沿采样器,在工作时钟门控信号(wclk_gate)的控制下,对输入脉冲进行上升沿采样。The rising edge sampler samples the rising edge of the input pulse under the control of the working clock gating signal (wclk_gate).
周期计算模块,计算待测脉冲信号相邻两个上升沿之间的参考时钟的数目即脉冲信号的周期(period)。The period calculation module calculates the number of reference clocks between two adjacent rising edges of the pulse signal to be measured, that is, the period of the pulse signal.
周期变化监测模块,对比前后两次周期数目是否发生变化。The cycle change monitoring module compares whether the number of cycles has changed between two cycles.
变化周期计数模块,记录周期数目变化次数。The change cycle counting module records the number of changes in the cycle number.
下降沿采样器,在工作时钟门控信号(wclk_gate)的控制下,对输入脉冲进行下降沿采样。The falling edge sampler samples the falling edge of the input pulse under the control of the working clock gating signal (wclk_gate).
占空比计算模块,计算待测脉冲信号上升沿和下降沿之间的参考时钟数目,并结合周期计算模块输出的周期来计算待测脉冲的占空比(duty)。The duty cycle calculation module calculates the number of reference clocks between the rising edge and the falling edge of the pulse signal to be measured, and calculates the duty cycle of the pulse to be measured in combination with the cycle output by the cycle calculation module.
占空比变化监测模块,比较前后两次计算出的占空比是否发生变化。 The duty cycle change monitoring module compares the duty cycles calculated twice before and after to see if they have changed.
变化占空比计数模块,记录占空比变化次数。The duty cycle change counting module records the number of duty cycle changes.
在本实施例中,同步器相当于上述实施例中的第一同步器,上升沿采样器和下降沿采样器相当于上述实施例中的第一边沿监测模块。In this embodiment, the synchronizer is equivalent to the first synchronizer in the above embodiment, and the rising edge sampler and the falling edge sampler are equivalent to the first edge monitoring module in the above embodiment.
在一些实施例中,脉冲监测模块中还包含寄存器,用于存储其他模块的处理结果。In some embodiments, the pulse monitoring module also includes registers for storing processing results of other modules.
在本实施例中,脉冲监测模块的工作流程可以包括以下步骤:In this embodiment, the workflow of the pulse monitoring module may include the following steps:
步骤S101,在参考时钟域下对输入脉冲进行同步。Step S101, synchronizing input pulses in a reference clock domain.
步骤S102,对输入脉冲进行上升沿采样,用于识别单个周期的范围。Step S102, sampling the rising edge of the input pulse to identify the range of a single cycle.
步骤S103,进行周期数目计算,判断两个上升沿之间参考时钟的数目,遇到上升沿计数器清零,进行下一轮的计数,并且把当前计数值存储到寄存器中,参考时钟除以当前值就是脉冲的频率值。Step S103, calculate the number of cycles, determine the number of reference clocks between two rising edges, clear the counter when a rising edge is encountered, perform the next round of counting, and store the current count value in the register. The reference clock divided by the current value is the frequency value of the pulse.
步骤S104,在脉冲高电平有效的情况下开始计参考时钟的周期数,当计数到最大值后记下当前值,由于步骤S103已经得到整个周期的脉冲数,相除便可得到占空比。Step S104, start counting the number of cycles of the reference clock when the pulse high level is valid, and record the current value after counting to the maximum value. Since the number of pulses in the entire cycle has been obtained in step S103, the duty cycle can be obtained by dividing it.
步骤S105,对步骤S103、步骤S104的计数值进行监测,与下一周期的计数值进行对比,相差大于门限之后上报中断,说明周期和占空比产生变化。Step S105, monitoring the count values of step S103 and step S104, and comparing them with the count values of the next cycle, and reporting an interrupt when the difference is greater than a threshold, indicating that the cycle and duty cycle have changed.
在一些实施例中,步骤S105中的门限值可以根据监测的敏感程度进行设置,门限值最小可以为零,只要相邻两个的周期数目或占空比不同,就上报中断信号。In some embodiments, the threshold value in step S105 can be set according to the sensitivity of monitoring, and the minimum threshold value can be zero. As long as the number of cycles or duty cycles of two adjacent ones are different, an interrupt signal is reported.
在一些实施例中,在步骤S105之后,该流程还包括对周期变化次数或占空比变化次数进行计数,并将变化次数与周期变化阈值或占空比变化阈值进行比较,超过阈值时产生对应的告警信号。In some embodiments, after step S105, the process further includes counting the number of period changes or the number of duty cycle changes, and comparing the number of changes with a period change threshold or a duty cycle change threshold, and generating a corresponding alarm signal when the threshold is exceeded.
在一示例性实施例中,脉冲监测模块用于对任意占空比的脉冲信号进行周期监测、占空比监测,时钟监测模块用于对占空比50%的脉冲信号(即时钟信号)进行频偏监测、在位监测。In an exemplary embodiment, the pulse monitoring module is used to perform period monitoring and duty cycle monitoring on pulse signals with any duty cycle, and the clock monitoring module is used to perform frequency deviation monitoring and in-position monitoring on pulse signals (ie, clock signals) with a duty cycle of 50%.
图9是根据本公开一实施例中的时钟监测模块的处理流程的示意图,如图9所示,该时钟监测模块包括如下结构:FIG. 9 is a schematic diagram of a processing flow of a clock monitoring module according to an embodiment of the present disclosure. As shown in FIG. 9 , the clock monitoring module includes the following structure:
分频器,提供不同频率的时钟,将原始待测时钟频率进行分频,达到降频的目的。The frequency divider provides clocks of different frequencies and divides the original clock frequency to be tested to achieve the purpose of frequency reduction.
同步器,通过同步处理,实现异步信号在输入时钟域下的同步释放。可以将待测时钟信号同步到我们期望的时钟域下进行释放,并且降低待测时钟信号释放时因为跨时钟域而可能出现的亚稳态概率。The synchronizer realizes the synchronous release of asynchronous signals in the input clock domain through synchronous processing. The clock signal to be tested can be synchronized to the desired clock domain for release, and the probability of metastable state that may occur when the clock signal to be tested is released due to crossing clock domains can be reduced.
上升沿采样器,用于对待测时钟信号的上升沿进行监测。The rising edge sampler is used to monitor the rising edge of the clock signal to be measured.
计数器,用来实现计数功能,主要是计算待测时钟相邻两个上升沿之间参考时钟的数目。The counter is used to realize the counting function, mainly to calculate the number of reference clocks between two adjacent rising edges of the clock to be measured.
频偏检测模块,用来将计数值与频偏下限值、频偏上限值进行大小比对,从而判断是否发生时钟失锁,输出频偏状态(即频偏检测信号)。The frequency deviation detection module is used to compare the count value with the frequency deviation lower limit value and the frequency deviation upper limit value to determine whether the clock is out of lock and output the frequency deviation status (ie, the frequency deviation detection signal).
频率检测模块,用于计算时钟信号的频率。The frequency detection module is used to calculate the frequency of the clock signal.
在位检测模块,用于比较计数值与在位检测阈值的大小,从而判断是否发生时钟丢失,输出在位状态(即在位检测信号)。The presence detection module is used to compare the count value with the presence detection threshold value, thereby determining whether clock loss occurs and outputting a presence status (ie, a presence detection signal).
在本实施例中,同步器相当于第二同步器,上升沿采样器相当于第二边沿监测模块,计数器相当于计算模块。In this embodiment, the synchronizer is equivalent to the second synchronizer, the rising edge sampler is equivalent to the second edge monitoring module, and the counter is equivalent to the calculation module.
在一些实施例中,时钟监测模块中还包含寄存器,用于存储其他模块的处理结果。In some embodiments, the clock monitoring module also includes registers for storing processing results of other modules.
在一些实施例中,时钟监测模块支持三个功能,分别是时钟频偏监测和上报、时钟在位 监测和上报、时钟频率监测。In some embodiments, the clock monitoring module supports three functions, namely, clock frequency deviation monitoring and reporting, clock in place Monitoring and reporting, clock frequency monitoring.
在一示例性实施例中,时钟监测模块进行时钟频偏监测和上报的工作流程可以包括以下步骤:In an exemplary embodiment, the workflow of the clock monitoring module for monitoring and reporting clock frequency deviation may include the following steps:
步骤S201,产生一个可配置的分频系数,此系数可来源于其他时钟域下,然后需要做同步处理,同步到待测时钟域下,等这个信号稳定之后再用于后续的分频单元。Step S201, generating a configurable frequency division coefficient, which may be derived from other clock domains, and then needs to be synchronized to the clock domain to be tested, and then used in subsequent frequency division units after the signal is stable.
步骤S202,将待测时钟进行分频操作,其中分频系数来源步骤S201,把要测试的时钟分频到至少是参考时钟的二分之一,参考时钟作为时钟监测模块的唯一基准,可来源于外部晶振或者稳定的时钟产生单元,必须保证参考时钟的稳定性。In step S202, the clock to be tested is divided, wherein the division coefficient comes from step S201, and the clock to be tested is divided to at least one half of the reference clock. The reference clock serves as the only reference for the clock monitoring module and can be derived from an external crystal oscillator or a stable clock generating unit. The stability of the reference clock must be ensured.
步骤S203,在参考时钟域下对分频后的待测时钟进行同步处理,将其同步在参考时钟域下,用于上升沿采样器,分频后的每个周期作为计数器的一个周期,如果待测时钟的频率正常,那么计数值将是参考时钟和分频的待测时钟的频率比。Step S203, synchronize the divided clock to be tested in the reference clock domain, synchronize it in the reference clock domain, and use it for the rising edge sampler. Each cycle after the division is used as a cycle of the counter. If the frequency of the clock to be tested is normal, then the count value will be the frequency ratio of the reference clock and the divided clock to be tested.
步骤S204,产生计数标志,计数到分频标志拉高后清零重新计数,此标志为在参考时钟域下取分频后待测时钟的上升沿,高电平持续时间是一个参考时钟周期。Step S204, generating a counting flag, counting to the frequency division flag being pulled high and then cleared and counting again, this flag is the rising edge of the clock to be measured after frequency division in the reference clock domain, and the high level duration is one reference clock cycle.
步骤S205,在参考时钟域下从零开始计数,当计数标志拉高之后清零重新开始。Step S205, counting starts from zero in the reference clock domain, and when the counting flag is pulled high, it is cleared and restarted.
步骤S206,判断计数周期是否在可接受范围内,根据对时钟质量的要求,待测时钟和参考时钟的频率能够给出计数的上下门限值,计数值要低于下限或者高于上限都会上报时钟频率异常。Step S206, judging whether the counting period is within an acceptable range. According to the requirements for clock quality, the frequencies of the clock to be measured and the reference clock can provide upper and lower threshold values for counting. If the counting value is lower than the lower limit or higher than the upper limit, a clock frequency abnormality will be reported.
在本公开实施例中,待测时钟的分频系数和阈值可以灵活配置,对于不同的芯片和场景,只需要根据实际情况修改参数即可,系统的灵活性和可维护性更强。In the disclosed embodiment, the frequency division coefficient and threshold of the clock to be tested can be flexibly configured. For different chips and scenarios, it is only necessary to modify the parameters according to the actual situation, and the flexibility and maintainability of the system are enhanced.
在一示例性实施例中,时钟监测模块进行时钟在位监测和上报的工作流程可以包括以下步骤:In an exemplary embodiment, the workflow of the clock monitoring module for monitoring and reporting the clock in place may include the following steps:
步骤S301,产生一个可配置的分频系数,此系数可来源于其他时钟域下,然后需要做同步处理,同步到待测时钟域下,等这个信号稳定之后再用于后续的分频单元。Step S301, generate a configurable frequency division coefficient, which can be derived from other clock domains, and then need to be synchronized to the clock domain to be tested, and then used in subsequent frequency division units after the signal is stable.
步骤S302,将待测时钟进行分频操作,其中分频系数来源步骤S301,把要测试的时钟分频到至少是参考时钟的二分之一,参考时钟作为本监测单元的唯一基准,可来源于外部晶振或者稳定的时钟产生单元,必须保证参考时钟的稳定性。In step S302, the clock to be tested is divided, wherein the division coefficient comes from step S301, and the clock to be tested is divided to at least one half of the reference clock. The reference clock serves as the only reference of this monitoring unit and can be derived from an external crystal oscillator or a stable clock generating unit. The stability of the reference clock must be guaranteed.
步骤S303,在参考时钟域下对分频后的待测时钟进行同步处理,将其同步在参考时钟域下,用于上升沿采样器,分频后的每个周期作为计数器的一个周期,如果待测时钟的频率正常,那么计数值将是参考时钟和分频的待测时钟的频率比。Step S303, synchronize the divided clock to be tested in the reference clock domain, synchronize it in the reference clock domain, and use it for the rising edge sampler. Each cycle after the division is used as a cycle of the counter. If the frequency of the clock to be tested is normal, then the count value will be the frequency ratio of the reference clock and the divided clock to be tested.
步骤S304,产生计数标志,计数到分频标志拉高后清零重新计数,此标志为在参考时钟域下取分频后待测时钟的上升沿,高电平持续时间是一个参考时钟周期。Step S304, generating a counting flag, counting to the frequency division flag being pulled high and then cleared and counting again, this flag is the rising edge of the clock to be measured after frequency division in the reference clock domain, and the high level duration is one reference clock cycle.
步骤S305,在参考时钟域下从零开始计数,当计数标志拉高之后清零重新开始。Step S305, counting starts from zero in the reference clock domain, and clears to zero and restarts when the counting flag is pulled high.
步骤S306,把步骤S305中的计数值和设置的阈值进行比较,当计数值大于阈值,就说明时钟未发生预期翻转,丢失告警拉高。Step S306, compare the count value in step S305 with the set threshold. When the count value is greater than the threshold, it means that the clock has not flipped as expected, and the loss alarm is raised.
在一示例性实施例中,时钟监测模块进行时钟频率监测的工作流程可以包括以下步骤:In an exemplary embodiment, the workflow of the clock monitoring module for performing clock frequency monitoring may include the following steps:
步骤S401,产生一个可配置的分频系数,此系数可来源于其他时钟域下,然后需要做同步处理,同步到待测时钟域下,等这个信号稳定之后再用于后续的分频单元。Step S401, generating a configurable frequency division coefficient, which may be derived from other clock domains, and then needs to be synchronized to the clock domain to be tested, and then used in subsequent frequency division units after the signal is stable.
步骤S402,将待测时钟进行分频操作,其中分频系数来源步骤S401,把要测试的时钟分频到至少是参考时钟的二分之一,参考时钟作为本监测单元的唯一基准,可来源于外部晶振 或者稳定的时钟产生单元,必须保证参考时钟的稳定性。Step S402, divide the clock to be tested, where the frequency division coefficient is derived from step S401, divide the clock to be tested to at least half of the reference clock. The reference clock is the only reference of this monitoring unit and can be derived from an external crystal oscillator. Or a stable clock generating unit must ensure the stability of the reference clock.
步骤S403,在参考时钟域下对分频后的待测时钟进行同步处理,将其同步在参考时钟域下,用于上升沿采样器,分频后的每个周期作为计数器的一个周期,如果待测时钟的频率正常,那么计数值将是参考时钟和分频的待测时钟的频率比。Step S403, synchronize the divided clock to be tested in the reference clock domain, synchronize it in the reference clock domain, and use it for the rising edge sampler. Each cycle after the division is used as a cycle of the counter. If the frequency of the clock to be tested is normal, then the count value will be the frequency ratio of the reference clock and the divided clock to be tested.
步骤S404,产生计数标志,计数到分频标志拉高后清零重新计数,此标志为在参考时钟域下取分频后待测时钟的上升沿,高电平持续时间是一个参考时钟周期。Step S404, generating a counting flag, counting to the frequency division flag being pulled high and then cleared and counting again, this flag is the rising edge of the clock to be measured after frequency division in the reference clock domain, and the high level duration is one reference clock cycle.
步骤S405,在参考时钟域下从零开始计数,当计数标志拉高之后清零重新开始,并且把计数值输出,根据参考时钟频率,分频系数,计数值可以计算出待测时钟的频率。Step S405, counting starts from zero in the reference clock domain, and when the count flag is pulled high, it is cleared and restarted, and the count value is output. According to the reference clock frequency and the frequency division coefficient, the frequency of the clock to be measured can be calculated from the count value.
图10是根据本公开实施例中的多个时钟监测模块的信号汇总流程的示意图,如图10所示,通过多次例化时钟监测模块可以实现对多个待测时钟信号的监控。FIG10 is a schematic diagram of a signal aggregation process of multiple clock monitoring modules according to an embodiment of the present disclosure. As shown in FIG10 , monitoring of multiple clock signals to be measured can be achieved by instantiating the clock monitoring modules multiple times.
在本实施例中,时钟监测模块的监控结果可以通过寄存器读写的方式上送,对于多时钟源输出状态需要汇总的情况,可经过汇总逻辑产生一比特的状态位上报。In this embodiment, the monitoring result of the clock monitoring module can be sent by register reading and writing. If the output status of multiple clock sources needs to be summarized, a one-bit status bit can be generated through the summary logic for reporting.
在一些实施例中,如果某些场景对时钟频偏或者在位状态不敏感,可以增加掩码位,通过对掩码位的配置决定监测结果是否输出,但掩码值并不影响监测模块的进行,时钟监测模块只受到模块内部使能信号的影响。In some embodiments, if certain scenarios are not sensitive to clock frequency deviation or in-bit status, mask bits can be added to determine whether the monitoring results are output by configuring the mask bits. However, the mask value does not affect the operation of the monitoring module. The clock monitoring module is only affected by the internal enable signal of the module.
在本实施例中,掩码包括频偏检测掩码和在位监测掩码。In this embodiment, the mask includes a frequency deviation detection mask and a presence monitoring mask.
在一些实施例中,掩码(mask)的有效电平和级数可以根据实际需求进行设置。In some embodiments, the effective level and level of the mask can be set according to actual needs.
在一示例性实施例中,以两级掩码高电平有效为例,掩码位为1时屏蔽检测信号,检测信号为1可以表示输出告警信号,对每一个掩码位按位取反后和对应的频偏/在位检测信号进行与运算,只有在掩码位为0且检测信号为1时,有告警信号输出,其他情况无告警信号输出。信号汇总时可以对多个掩码处理后的频偏/在位检测信号进行或运算,只要有任一频偏/在位告警信号输出,则汇总后的频偏/在位检测结果输出为1,产生告警。In an exemplary embodiment, taking the two-level mask high level as an example, when the mask bit is 1, the detection signal is shielded, and the detection signal is 1, which can indicate the output of an alarm signal. Each mask bit is inverted bit by bit and then ANDed with the corresponding frequency deviation/in-place detection signal. Only when the mask bit is 0 and the detection signal is 1, an alarm signal is output, and no alarm signal is output in other cases. When the signal is aggregated, an OR operation can be performed on multiple masked frequency deviation/in-place detection signals. As long as any frequency deviation/in-place alarm signal is output, the aggregated frequency deviation/in-place detection result is output as 1, generating an alarm.
在一些实施例中,掩码高电平有效的逻辑运算过程如下所示:In some embodiments, the logic operation process of the mask high level is as follows:
Y0=clock_unlock0&&(~mask0)Y 0 =clock_unlock 0 &&(~mask 0 )
......
YN=clock_unlockN&&(~maskN)Y N =clock_unlock N &&(~mask N )
Ytotal=|{Y0,Y1,Y2,Y3...YN}Y total =|{Y 0 ,Y 1 ,Y 2 ,Y 3 ...Y N }
其中,Y0、YN表示掩码处理后的各个频偏/在位检测信号,由于频偏异常又可以称为时钟失锁,clock_unlock0至clock_unlockN分别表示各个频偏检测信号,频偏检测信号可以替换成在位检测信号,mask0、maskN表示各个检测信号对应的掩码位,Ytotal表示汇总后的频偏/在位检测结果。Among them, Y 0 and Y N represent the frequency deviation/presence detection signals after mask processing. Since the frequency deviation abnormality can also be called clock unlock, clock_unlock0 to clock_unlockN represent the frequency deviation detection signals respectively. The frequency deviation detection signal can be replaced by the presence detection signal. Mask 0 and mask N represent the mask bits corresponding to each detection signal. Y total represents the summarized frequency deviation/presence detection result.
在一示例性实施例中,以两级掩码低电平有效为例,掩码位为0时屏蔽检测信号,检测信号为1表示输出告警信号,对每一个掩码位和对应的频偏/在位检测信号进行与运算,只有在掩码位为1且检测信号为1时,有告警信号输出,其他情况无告警信号输出。信号汇总时可以对多个掩码处理后的频偏/在位检测信号进行或运算,只要有任一频偏/在位告警信号输出,则汇总后的频偏/在位检测结果输出为1,产生告警。In an exemplary embodiment, taking the two-level mask low level as an example, when the mask bit is 0, the detection signal is shielded, and when the detection signal is 1, an alarm signal is output. An AND operation is performed on each mask bit and the corresponding frequency deviation/in-place detection signal. Only when the mask bit is 1 and the detection signal is 1, an alarm signal is output, and no alarm signal is output in other cases. When the signal is aggregated, an OR operation can be performed on multiple masked frequency deviation/in-place detection signals. As long as any frequency deviation/in-place alarm signal is output, the aggregated frequency deviation/in-place detection result is output as 1, generating an alarm.
在一些实施例中,掩码低电平有效的逻辑运算过程如下所示: In some embodiments, the logic operation process of the mask low level is as follows:
Y0=clock_unlock0&&(mask0)Y 0 =clock_unlock 0 &&(mask 0 )
......
YN=clock_unlockN&&(maskN)Y N =clock_unlock N &&(mask N )
Ytotal=|{Y0,Y1,Y2,Y3...YN}Y total =|{Y 0 ,Y 1 ,Y 2 ,Y 3 ...Y N }
其中,Y0、YN表示掩码处理后的各个频偏/在位检测信号,由于频偏异常又可以称为时钟失锁,clock_unlock0至clock_unlockN分别表示各个频偏检测信号,mask0、maskN表示各个检测信号对应的掩码位,Ytotal表示汇总后的频偏/在位检测结果。Among them, Y 0 and Y N represent the frequency deviation/presence detection signals after mask processing. Since the frequency deviation abnormality can also be called clock unlock, clock_unlock0 to clock_unlockN represent the frequency deviation detection signals respectively, mask 0 and mask N represent the mask bits corresponding to each detection signal, and Y total represents the summarized frequency deviation/presence detection result.
在一些实施例中,在对时钟在位状态进行汇总时,可以将频偏检测信号clock_unlock替换成在位检测信号。In some embodiments, when summarizing the clock presence status, the frequency deviation detection signal clock_unlock may be replaced by the presence detection signal.
图11是根据本公开实施例中的脉冲周期监测模块的波形示意图,如图11所示,脉冲周期监测模块中涉及以下信号:FIG. 11 is a waveform diagram of a pulse period monitoring module according to an embodiment of the present disclosure. As shown in FIG. 11 , the pulse period monitoring module involves the following signals:
参考时钟(ref_clk)、输入脉冲(in_pulse)、输入脉冲同步信号(in_pulse_sync)、输入频率计数标志(in_freq_cnt_flag)、输入频率计数(in_freq_cnt)。Reference clock (ref_clk), input pulse (in_pulse), input pulse synchronization signal (in_pulse_sync), input frequency count flag (in_freq_cnt_flag), input frequency count (in_freq_cnt).
在本实施例中,参考时钟可以来自于外部晶振,片外时钟芯片等稳定时钟源,为保证采样的准确性,参考时钟频率要大于脉冲频率的两倍。In this embodiment, the reference clock may come from a stable clock source such as an external crystal oscillator, an off-chip clock chip, etc. To ensure the accuracy of sampling, the reference clock frequency must be greater than twice the pulse frequency.
在本实施例中,将输入脉冲(in_pulse)同步到参考时钟(ref_clk)的时钟域,可以得到输入脉冲同步信号(in_pulse_sync)。输入频率计数标志(in_freq_cnt_flag)作为一个周期完成的标记,由输入脉冲同步信号(in_pulse_sync)的上升沿触发,可以持续一个参考信号的周期。In this embodiment, the input pulse (in_pulse) is synchronized to the clock domain of the reference clock (ref_clk) to obtain an input pulse synchronization signal (in_pulse_sync). The input frequency count flag (in_freq_cnt_flag) is used as a cycle completion mark, which is triggered by the rising edge of the input pulse synchronization signal (in_pulse_sync) and can last for a reference signal cycle.
在本实施例中,输入频率计数(in_freq_cnt)用于对相邻两个输入频率计数标志之间的参考时钟数目进行计数,计数器从一个标志位计数到下一个标志位后,保存下当前计数值cnt然后清零重新下一轮的计数。In this embodiment, the input frequency count (in_freq_cnt) is used to count the number of reference clocks between two adjacent input frequency count flags. After the counter counts from one flag bit to the next flag bit, it saves the current count value cnt and then clears it to start the next round of counting.
在一些实施例中,已知参考时钟的频率为Fref,则输入脉冲(即待测脉冲信号)的频率可以用Fref/cnt或者Fref/(cnt+1)计算,其中,具体使用cnt还是cnt+1由计数器的初始值决定。若计数器从0开始计数,则输入脉冲频率为Fref/cnt,若计数器从1开始计数,则输入脉冲频率为Fref/(cnt+1)。In some embodiments, if the frequency of the reference clock is known to be Fref, the frequency of the input pulse (i.e., the pulse signal to be measured) can be calculated using Fref/cnt or Fref/(cnt+1), where the specific use of cnt or cnt+1 is determined by the initial value of the counter. If the counter starts counting from 0, the input pulse frequency is Fref/cnt, and if the counter starts counting from 1, the input pulse frequency is Fref/(cnt+1).
图12是根据本公开实施例中的脉冲占空比监测模块的波形示意图,如图12所示,脉冲占空比监测模块中涉及以下信号:FIG12 is a waveform diagram of a pulse duty cycle monitoring module according to an embodiment of the present disclosure. As shown in FIG12 , the pulse duty cycle monitoring module involves the following signals:
参考时钟(ref_clk)、输入脉冲(in_pulse)、输入脉冲同步信号(in_pulse_sync)、输入频率计数标志(in_freq_cnt_flag)、输入占空比计数(in_duty_cnt)。Reference clock (ref_clk), input pulse (in_pulse), input pulse synchronization signal (in_pulse_sync), input frequency count flag (in_freq_cnt_flag), input duty cycle count (in_duty_cnt).
在本实施例中,占空比的计算和频率计算类似,都是通过对参考时钟计数来算出脉冲长度。不同的是,脉冲占空比监测模块是对脉冲的高电平进行计数,采用上升沿采样,下降沿清零的方式,将输入占空比计数(in_duty_cnt)存入寄存器。然后可根据参考时钟频率,并结合输入频率计数值(in_freq_cnt)算出占空比。In this embodiment, the calculation of the duty cycle is similar to the frequency calculation, and both are performed by counting the reference clock to calculate the pulse length. The difference is that the pulse duty cycle monitoring module counts the high level of the pulse, and uses the rising edge sampling and falling edge clearing method to store the input duty cycle count (in_duty_cnt) into the register. Then, the duty cycle can be calculated based on the reference clock frequency and the input frequency count value (in_freq_cnt).
在一示例性实施例中,假设单个周期的频率计数值为data_freq,占空比计数值为data_duty,则占空比可以表示为:data_duty/data_freq或(data_duty+1)/(data_freq+1),是否加1取决于计数器的初始值。In an exemplary embodiment, assuming that the frequency count value of a single cycle is data_freq and the duty cycle count value is data_duty, the duty cycle can be expressed as: data_duty/data_freq or (data_duty+1)/(data_freq+1), and whether to add 1 depends on the initial value of the counter.
通过本公开实施例,可以实现对任意脉冲信号的占空比计算,提高了芯片监测系统的适用性,同时实现了对比脉冲信号占空比/周期前后两次的计数值进行故障监测,增加了系统的 稳定性。Through the embodiments of the present disclosure, the duty cycle calculation of any pulse signal can be realized, which improves the applicability of the chip monitoring system. At the same time, the fault monitoring is realized by comparing the count values before and after the duty cycle/period of the pulse signal, which increases the system's stability.
本公开的实施例还提供了一种芯片,该芯片包括上述任一项实施例中的脉冲信号监测电路。An embodiment of the present disclosure further provides a chip, which includes the pulse signal monitoring circuit in any one of the above embodiments.
在一些实施例中,该芯片可以应用于汽车电子、消费电子、通讯等各个场景。本公开对此不做限制。In some embodiments, the chip can be applied to various scenarios such as automotive electronics, consumer electronics, and communications, etc. The present disclosure does not limit this.
本公开的实施例还提供了一种电子装置,该装置包括上述任一项实施例中的脉冲信号监测电路。An embodiment of the present disclosure further provides an electronic device, which includes the pulse signal monitoring circuit in any one of the above embodiments.
在一些实施例中,该装置还可以包括上述实施例中的芯片。In some embodiments, the device may also include the chip in the above embodiments.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
以上所述仅为本公开的示例性实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。 The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims (19)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311263663.8A CN119766207A (en) | 2023-09-27 | 2023-09-27 | Pulse signal monitoring circuit, chip and electronic device |
| CN202311263663.8 | 2023-09-27 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025066449A1 true WO2025066449A1 (en) | 2025-04-03 |
Family
ID=95193148
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/106025 Pending WO2025066449A1 (en) | 2023-09-27 | 2024-07-17 | Pulse signal monitoring circuit, chip, and electronic device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN119766207A (en) |
| WO (1) | WO2025066449A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120017443A (en) * | 2025-04-21 | 2025-05-16 | 北京全路通信信号研究设计院集团有限公司 | A distributed communication system and method |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120326760A1 (en) * | 2011-06-22 | 2012-12-27 | International Business Machines Corporation | Programmable duty cycle selection using incremental pulse widths |
| CN104079265A (en) * | 2014-06-23 | 2014-10-01 | 四川和芯微电子股份有限公司 | High-speed clock duty ratio detection system |
| CN203951450U (en) * | 2014-06-23 | 2014-11-19 | 四川和芯微电子股份有限公司 | High-frequency clock duty ratio detection system |
| CN112782487A (en) * | 2019-11-08 | 2021-05-11 | 航天科工惯性技术有限公司 | Duty ratio detection system |
| CN115395930A (en) * | 2022-08-30 | 2022-11-25 | 苏州漠陀半导体科技有限公司 | Clock monitoring circuit and monitoring self-calibration method |
-
2023
- 2023-09-27 CN CN202311263663.8A patent/CN119766207A/en active Pending
-
2024
- 2024-07-17 WO PCT/CN2024/106025 patent/WO2025066449A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120326760A1 (en) * | 2011-06-22 | 2012-12-27 | International Business Machines Corporation | Programmable duty cycle selection using incremental pulse widths |
| CN104079265A (en) * | 2014-06-23 | 2014-10-01 | 四川和芯微电子股份有限公司 | High-speed clock duty ratio detection system |
| CN203951450U (en) * | 2014-06-23 | 2014-11-19 | 四川和芯微电子股份有限公司 | High-frequency clock duty ratio detection system |
| CN112782487A (en) * | 2019-11-08 | 2021-05-11 | 航天科工惯性技术有限公司 | Duty ratio detection system |
| CN115395930A (en) * | 2022-08-30 | 2022-11-25 | 苏州漠陀半导体科技有限公司 | Clock monitoring circuit and monitoring self-calibration method |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120017443A (en) * | 2025-04-21 | 2025-05-16 | 北京全路通信信号研究设计院集团有限公司 | A distributed communication system and method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119766207A (en) | 2025-04-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8937496B1 (en) | Clock monitor | |
| US7154305B2 (en) | Periodic electrical signal frequency monitoring systems and methods | |
| CN100565423C (en) | Clock abnormal detection circuit and clock method for detecting abnormality | |
| JP4388571B2 (en) | High-speed clock detection circuit | |
| US20140143596A1 (en) | Processor noise mitigation using differential crictical path monitoring | |
| US8416900B2 (en) | Method and circuit for dynamically changing the frequency of clock signals | |
| US8564355B2 (en) | Clock device | |
| WO2025066449A1 (en) | Pulse signal monitoring circuit, chip, and electronic device | |
| US20040221208A1 (en) | Early clock fault detection method and circuit for detecting clock faults in a multiprocessing system | |
| EP2580864B1 (en) | Integrated circuit device, electronic device and method for detecting timing violations within a clock | |
| JP2001326566A (en) | Clock abnormality detecting circuit | |
| US7684533B2 (en) | Phase lock loop jitter measurement | |
| EP3623826A1 (en) | Error detection within an integrated circuit chip | |
| CN113692562A (en) | Synchronous reset signal generating circuit and digital processing device | |
| US20120033772A1 (en) | Synchroniser circuit and method | |
| EP2343559B1 (en) | A method to detect clock tampering | |
| US6859027B2 (en) | Device and method for measuring jitter in phase locked loops | |
| US7664213B2 (en) | Clock alignment detection from single reference | |
| JP2021184219A (en) | Semiconductor device | |
| US20240337690A1 (en) | Low power and area clock monitoring circuit using ring delay arrangement | |
| US20240340157A1 (en) | Low power and area clock monitoring circuit using ring delay arrangement for clock signal having phase-to-phase variation | |
| KR100221496B1 (en) | Synchronous state monitoring circuit | |
| US20240111345A1 (en) | Capturing of on-chip resets in an integrated circuit | |
| JP2002026704A (en) | Clock fault detector and its method | |
| US20060269030A1 (en) | Phase lock loop jitter measurement |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24870004 Country of ref document: EP Kind code of ref document: A1 |