WO2022194133A1 - 控制电路装置、电子设备、控制方法和可读存储介质 - Google Patents
控制电路装置、电子设备、控制方法和可读存储介质 Download PDFInfo
- Publication number
- WO2022194133A1 WO2022194133A1 PCT/CN2022/080886 CN2022080886W WO2022194133A1 WO 2022194133 A1 WO2022194133 A1 WO 2022194133A1 CN 2022080886 W CN2022080886 W CN 2022080886W WO 2022194133 A1 WO2022194133 A1 WO 2022194133A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock
- state machine
- control
- signal
- tested
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/08—Clock generators with changeable or programmable clock frequency
Definitions
- the present application belongs to the field of electronic technology, and specifically relates to a control circuit device, an electronic device, a control method and a readable storage medium.
- the clock signal is a necessary signal for all sequential logic circuits in the chip, and its signal quality and correctness directly determine whether the logic circuit of the chip can work normally.
- soft errors such as systematic errors, single-event upsets, and transient pulses may all lead to the failure of the chip's clock circuit. Therefore, in an electronic device, it is necessary to judge the occurrence of a fault and notify the system to perform a corresponding warning operation or function degradation operation to ensure the reliability and functional safety of the electronic system where the chip is located and higher-level systems. If this chip is used in vehicles and other equipment, the real-time monitoring of the clock signal is a necessary means to ensure that the automotive functional safety standards are met and avoid personal injury incidents.
- the method of judging the phase difference through the phase detection circuit of the phase-locked loop is used to realize the monitoring of the clock signal.
- the purpose of the embodiments of the present application is to provide a control circuit device, which can solve the problem that in the monitoring method of the prior art, an analog circuit is required, and the analog circuit cannot be placed at any position or node in the chip on a large scale, and at the same time, the analog circuit is easy to Issues affected by process deviations or working environmental conditions.
- an embodiment of the present application provides a control circuit device, the control circuit device includes: a reference clock control state machine, the reference clock control state machine is configured to generate a standby state machine according to the control logic of the reference clock control state machine The state transition reference signal required by the clock control part under test; the clock control state machine under test, the clock control state machine under test is connected with the reference clock control state machine, and the clock control state machine under test is used in the state In the case where the conversion reference signal is synchronized to the clock domain to be tested, a counting enable condition of the monitoring counter in the clock domain to be tested is generated; a result generator, the result generator is connected to the clock control state machine to be tested, and the result The generator is configured to compare the monitoring count result with a preset reference value, generate a comparison result, and output an error flag signal when the comparison result indicates that the monitoring count result is greater than the preset reference value.
- an embodiment of the present application provides an electronic device, where the electronic device includes the control circuit device described in the first aspect.
- an embodiment of the present application provides a control method, the control method includes: acquiring a monitoring count result of a monitoring counter in a clock domain to be tested; and generating a comparison after comparing the monitoring count result with a preset reference value Result: when the comparison result indicates that the monitoring count result is greater than the preset reference value, output an error flag signal.
- an embodiment of the present application provides a control device, the control device includes: an acquisition module for acquiring a monitoring count result of a monitoring counter in a clock domain to be tested; a comparison module for comparing the monitoring count result with the monitoring count result. After the preset reference values are compared, a comparison result is generated; an output module is configured to output an error flag signal when the comparison result indicates that the monitoring count result is greater than the preset reference value.
- an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor.
- the program or instruction is executed by the processor, the The steps of the method of the third aspect.
- an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method of the third aspect are implemented.
- an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the method of the third aspect.
- the reference clock control state machine uses it as the initial control signal, and then generates the state transition reference signal required by the control part of the clock to be tested according to the control logic of the state machine.
- the clock control state machine under test adopts a state control method similar to that of the reference clock control state machine, but has different start and state transition trigger conditions. After the state transition reference signal is synchronized to the clock domain under test, the clock under test controls The state machine generates and outputs the count enable condition of the monitor counter in the clock domain under test. Therefore, the result generator compares the monitoring count result with the preset register reference value, and then generates the comparison result.
- the output of the error flag signal is triggered.
- a pure digital logic circuit is used, and the logic gate scale is small, which can be conveniently placed in different positions of the chip and in different clock domains; at the same time, the control circuit provided by the embodiment of the present application
- the device is convenient to configure, simple to use, and is not affected by process deviation and working environment.
- the embodiments of the present application can solve the need for an analog circuit in the monitoring method of the prior art, and the analog circuit cannot be placed in the chip on a large scale. location, arbitrary nodes, and analog circuits are susceptible to process variations or operating environmental conditions.
- FIG. 1 is a schematic diagram of a hardware structure of a control circuit device according to an embodiment of the present application.
- FIG. 2 is a schematic state diagram of a reference clock state control machine according to an embodiment of the present application.
- FIG. 3 is a flowchart of a control method according to an embodiment of the present application.
- FIG. 4 is a block diagram of a control device according to an embodiment of the present application.
- FIG. 5 is one of the schematic diagrams of the hardware structure of the electronic device according to the embodiment of the present application.
- FIG. 6 is the second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application.
- first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
- the objects are usually of one type, and the number of objects is not limited.
- the first object may be one or more than one.
- “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
- FIG. 1 shows a schematic diagram of the hardware structure of a control circuit device according to an embodiment of the present application, and the control circuit device includes:
- the reference clock control state machine 1, the reference clock control state machine 1 is used for generating the state transition reference signal required by the clock control part to be tested according to the control logic of the reference clock control state machine 1;
- the clock control state machine 2 to be tested is connected to the reference clock control state machine 1, and the clock control state machine 2 to be tested is used to generate the state machine to be tested under the condition that the state transition reference signal is synchronized to the clock domain to be tested. Measure the count enable condition of the monitoring counter in the clock domain;
- the result generator 3, the result generator 3 is connected with the clock control state machine 2 to be tested, and the result generator 3 is used to compare the monitoring count result with the preset reference value, and generate a comparison result, and the comparison result indicates that the monitoring count is When the result is greater than the preset reference value, an error flag signal is output.
- the reference clock control state machine 1 uses it as the initial control signal, and then generates the state transition reference signal required by the control part of the clock to be tested according to the control logic of the state machine.
- the clock control state machine 2 to be tested adopts a state control method similar to that of the reference clock control state machine 1, but has different start and state transition trigger conditions.
- the state transition reference signal is synchronized to the clock domain to be tested, the The clock control state machine 2 generates and outputs the count enable condition of the monitoring counter in the clock domain to be tested. Therefore, the result generator 3 compares the monitoring count result with the preset register reference value, and then generates the comparison result.
- the output of the error flag signal is triggered.
- a pure digital logic circuit is used, and the logic gate scale is small, which can be conveniently placed in different positions of the chip and in different clock domains; at the same time, the control circuit provided by the embodiment of the present application
- the device is convenient to configure, simple to use, and is not affected by process deviation and working environment.
- the embodiments of the present application can solve the need for an analog circuit in the monitoring method of the prior art, and the analog circuit cannot be placed in the chip on a large scale. location, arbitrary nodes, and analog circuits are susceptible to process variations or operating environmental conditions.
- the clock signal to be monitored can also be monitored by mutually sampling the clock to be tested and the reference clock.
- the relationship between the frequency of the clock to be tested and the frequency of the reference clock is limited, and there are problems such as inconvenient timing analysis and low detection accuracy.
- this embodiment adopts dual-state machine control, each of which is in an independent clock domain, which is convenient for control and simple in timing analysis, and the logic circuit itself does not limit the frequency range and mutual relationship between the clock to be tested and the reference clock, so that the prior art is effective. problems in .
- FIG. 1 a schematic diagram of the hardware structure of a control circuit device according to another embodiment of the present application is also shown, and the control circuit device further includes:
- the first synchronization controller 4 is connected with the reference clock control state machine 1, and the first synchronization controller 4 is used to convert the trigger signal into a pulse in the reference clock domain when receiving the trigger signal signal, and output the pulse signal to the reference clock control state machine 1;
- the trigger signal includes any one of an externally input trigger signal and a trigger signal input from a configuration register.
- the first synchronization controller 4 selects the trigger signal input from the outside or the trigger signal input from the configuration register as the initial trigger condition.
- the external trigger signal may be a signal related to the chip application, such as a frame start signal of an image frame.
- the first synchronization controller 4 converts it into a pulse signal in the reference clock domain, and outputs it to the reference clock control state machine 1 .
- the first synchronization controller 4 can realize the real-time synchronization of the signals to ensure the real-time monitoring of the clock signals.
- FIG. 1 a schematic diagram of the hardware structure of a control circuit device according to another embodiment of the present application is also shown, and the control circuit device further includes:
- the second synchronization controller 5 is connected to the reference clock control state machine 1, the second synchronization controller 5 is also connected to the under-test clock control state machine 2, and the second synchronization controller 5 is used to connect the reference clock
- the state transition reference signal generated by the control state machine 1 is synchronized to the clock domain to be tested.
- the second synchronization controller 5 mainly synchronizes the state transition reference signal generated by the reference clock control state machine 1 to the clock domain to be tested.
- the second synchronization controller 5 can realize the real-time synchronization of the signals, so as to ensure the real-time monitoring of the clock signal.
- FIG. 1 a schematic diagram of the hardware structure of a control circuit device according to another embodiment of the present application is also shown, and the control circuit device includes a first synchronization controller 4 and a second synchronization controller 5 .
- independent dual-state machine drivers are used, combined with their corresponding synchronization controllers, and through specially designed synchronization control signals, the uncertain error of multi-signal synchronization across clock domains is eliminated, and with appropriate preset reference value can achieve higher monitoring accuracy.
- FIG. 1 a schematic diagram of the hardware structure of a control circuit device according to another embodiment of the present application is also shown, and the control circuit device further includes:
- the first timeout controller 6 is used to receive the reference clock signal, and output the first interrupt flag when the state machine 2 under test is controlled by the reference clock signal under the action of the reference clock signal and the state does not change within the first preset time period. Signal.
- the first timeout controller 6 is mainly used for monitoring the fault condition that the clock to be tested does not turn over at all.
- the first preset duration is used to represent the duration for which the clock to be tested does not flip at all, and the specific value is defined according to the design scheme.
- the first timeout controller 6 uses the reference clock to count, and uses the clock to be tested to control the state transition signal of the state machine 2 to clear the count state.
- the first timeout controller 6 provided in this embodiment can ensure that the fault can be monitored when the clock to be tested no longer flips, so that on the basis of supporting the output of the error signal, it also supports the output of other fault state signals such as the interrupt signal, which is System warnings and functional degradation actions provide the basis for improving system reliability and making the system compliant with relevant functional safety requirements.
- FIG. 1 a schematic diagram of the hardware structure of a control circuit device according to another embodiment of the present application is also shown, and the control circuit device further includes:
- the second timeout controller 7 is used for receiving the clock signal to be tested, and when the state machine 1 is controlled by the reference clock under the action of the clock signal to be tested and the state does not change within the second preset time period, it outputs the first Two interrupt flag signals.
- the second timeout controller 7 is mainly used to monitor the fault condition that the reference clock does not flip at all.
- the second preset duration is used to represent the duration during which the reference clock does not flip at all, and the specific value is defined according to the design scheme.
- the second timeout controller 7 uses the clock to be tested to count, and uses the reference clock to control the transition signal of the state machine 1 to clear the count state.
- the second timeout controller 7 provided in this embodiment can ensure that the fault can be monitored when the reference clock is no longer flipped, so on the basis of supporting the output of the error signal, it also supports the output of other fault state signals such as the interrupt signal, which is a system Warnings and functional degradation actions provide the basis for improving system reliability and enabling the system to comply with relevant functional safety requirements.
- the control circuit device includes a first timeout controller 6 and a second timeout controller 7 .
- the structures of the first timeout controller 6 and the second timeout controller 7 may be completely the same, but the sampling clocks used are the reference clock and the clock to be tested, respectively.
- the timeout controller contains a counter, a manual clear control signal, an enable control signal and a timeout output signal.
- the dual timeout controller provided in this embodiment can ensure that the fault when the reference clock or the clock under test is no longer flipped can be monitored, so that on the basis of supporting the output of the error signal, it also supports other fault states such as the output of the interrupt signal. Signals to provide a basis for system warnings and functional degradation operations, improve system reliability and make the system comply with relevant functional safety requirements.
- FIG. 1 a schematic diagram of the hardware structure of a control circuit device according to another embodiment of the present application is also shown, and the control circuit device further includes:
- Configuration register 8 the configuration register 8 is connected to the reference clock control state machine 1, the configuration register 8 is also connected to the clock control state machine 2 to be tested, and the configuration register 8 is used to control the state machine 1 of the reference clock and/or the clock to be tested.
- Machine 2 inputs the associated signal.
- the configuration register 8 mainly includes some control registers mapped by address.
- the configuration register 8 receives read and write commands and data from the configuration interface or returns read data, generates control register signal output, and controls the working modes of other internal modules.
- the number of configuration registers 8 in this embodiment is not limited.
- the configuration register 8 includes, but is not limited to: a reference clock count length configuration register, a preset reference value configuration register for the clock to be tested, a window number configuration register, a transition state length configuration register, an intermittent state length configuration register, and a startup mode configuration register. , Enable configuration register, interrupt control register, error signal output enable configuration register 8, state clear control register, etc.
- the configuration of the reference value configuration register of the clock to be tested needs to follow the following principles: if you need to monitor accumulated jitter or time interval failure, you may need to set a smaller preset reference value, if you need to monitor long-term frequency error, you need to set a smaller value Large preset reference value, the absolute size of the value can be determined according to the relationship between the reference clock frequency and the clock frequency to be tested.
- the device parameters, judgment conditions, etc. can be adjusted through the configuration register 8.
- the preset reference value in this embodiment can be adjusted through the configuration register 8, so that a flexible and changeable adjustment method is adopted.
- To achieve the purpose of supporting error signal output provide basis for system warning and function degradation operation, improve system reliability and make the system meet relevant functional safety requirements.
- FIG. 1 a schematic diagram of the hardware structure of a control circuit device according to another embodiment of the present application is also shown, and the control circuit device further includes:
- the configuration interface 9 is connected with the configuration register 8, and the configuration interface 9 is used to connect the configuration bus, receive the control signal, address signal, and data signal of the configuration bus, and parse it into read and write commands and data, and convert the write command and write Data is sent to configuration register 8, a read command is sent to configuration register 8 and read data is returned to the configuration bus.
- the configuration interface 9 is connected to the configuration bus and the configuration register 8 to realize the transmission of data such as signals, ensure the integrity of the control circuit device, and ensure the normal operation of the control circuit device.
- the states in the reference clock control state machine 1 and the clock control state machine 2 under test both include at least: initial state, transition state 1, transition state 2, transition state 3, monitoring state and intermittent state.
- the key control parts of the control circuit device of the present application are the reference clock control state machine 1 and the test clock control state machine 2 .
- the state definitions and transitions of the reference clock control state machine 1 are shown in FIG. 2 .
- the state definition includes initial state, transition state one, transition state two, transition state three, monitoring state and intermittent state. After the entire control circuit device is reset by the reset signal, the reference clock control state machine 1 will be in the initial state first, and if the initial control signal is monitored, the initial state will transition to the transition state, and a start flag signal will be generated. Conversion state 1 is a transition state. During this state time, the start flag signal will be synchronized to the clock domain to be tested and kept stable. If the conversion counter is full, it will switch to the monitoring state.
- transition state 2 In the monitoring state, the reference clock monitoring counter will start counting, and output the reference clock monitoring counter's status as "on”, if the reference clock monitoring counter is full, it will exit the monitoring state and jump to transition state 2.
- transition state 2 The function of transition state 2 is the same as that of transition state 1. During this state, the "on” or “off” state of the reference clock monitoring counter is synchronized to the clock domain under test.
- the conversion state 2 if the conversion count is full and the window count is full, the full monitoring process will end and jump to the initial state. If only the conversion count is full but the window count is not full, it will jump to the intermittent state.
- the burst count is started and a status signal of the burst count is "on” is generated, which needs to be synchronized to the state machine of the clock domain under test.
- the intermittent state will jump to the transition state three.
- the "on” or “off” state signal of the intermittent count will be transmitted to the clock domain to be tested and kept stable, and when the conversion count is full, it will jump to the monitoring state to start the next round of monitoring process.
- the state definition of the clock control state machine 2 to be tested is exactly the same as that of the reference clock control state machine 1, including initial state, transition state 1, transition state 2, transition state 3, monitoring state and intermittent state.
- the starting condition from the initial state to the transition state 1 comes from the cross-clock domain synchronization signal of the start flag signal of the reference clock control state machine 1 .
- the transition between transition state and monitor state or intermittent state is not determined by the count state of the clock domain to be tested, but by the cross-clock domain synchronization signal of the “on” or “off” state signal of the monitor counter of the reference clock domain.
- the counters involved in the above-mentioned reference clock control state machine 1 all refer to a counter state when the corresponding counter is equal to the preset value of the configuration register 8 .
- the monitoring counter and the intermittent counter use the same counter multiplexing method. In the monitoring state, the counter is used as the monitoring counter, and in the intermittent state, the counter is used as the intermittent counter.
- the conversion counters involved in conversion state 1, conversion state 2 and conversion state 3 are the same counter, and are used as corresponding counters in the corresponding conversion states.
- the start flag signal generated in the reference clock control state machine 1 and the "on" or "off” state signal of the monitoring counter are all single-bit wide signals, and are synchronized to the clock domain to be tested by the control signal inverted by the single-bit signal. , can achieve relatively accurate clock monitoring.
- control circuit device in this embodiment supports a single-window mode and a multi-window mode.
- transition state 2 needs to wait until all windows have been monitored before jumping to the initial state; if there is a window that has not been monitored, but a single window has been monitored, it needs to go through intermittent state and transition state three to continue. Jump to the monitoring state to continue monitoring the next window.
- the number of monitoring windows can be set through configuration register 8.
- a transition state and a unique synchronization mechanism are set in the state machine to ensure the accuracy of frequency comparison between different clocks.
- the reference clock controls the state machine 1 to start in two modes: single-start and continuous-start.
- the next start condition will not restart until the next start condition.
- the continuous start mode the next monitoring process will be automatically started after one monitoring is completed and returns to the initial state.
- a flexible startup mode is adopted to support error signal output, provide basis for system warning and function degradation operations, improve system reliability and make the system meet relevant functional safety requirements.
- the result generator 3 includes:
- the first result generation unit is used to compare the result saved by the monitoring counter with the preset reference value in the single-window mode
- the second result generating unit is configured to compare the average value of the results stored in the monitoring counter with the preset reference value in the multi-window mode.
- the result generator 3 contains a comparison logic circuit.
- the saved result of the monitoring counter of the clock to be tested will be directly compared with the preset reference value. If the saved result of the monitoring counter is greater than the preset reference value, an error flag signal will be generated and output. If it is in multi-window mode, the multi-window count saving results of the clock monitoring counter under test will be read at the same time and the average value of all its count saving values will be calculated. The calculated average value will be compared with the preset reference value. If the average value is not within the preset target value range, an error flag signal will be generated and output.
- the involved flag signal and the value of the monitoring counter can be read through the readable register in the configuration register 8, and can be cleared by the clearing control register.
- a flexible window counting method which supports error signal output, provides a basis for system warning and function degradation operations, improves system reliability and makes the system meet relevant functional safety requirements.
- the embodiment of the present application adopts an independent reference clock, which meets the requirements of the automotive functional safety standard for the reference clock of the clock monitoring circuit, and is more suitable for related electronic devices such as automobiles.
- control circuit device of the present application can be placed in different positions and clock domains of the chip at multiple points, and by configuring the preset reference value, the number of windows, the startup mode, and the enable signal, it is possible to monitor all the device's functions.
- the purpose of the frequency deviation of the clock signal to be tested and the accumulated jitter fault in the chip area is to provide a guarantee for the normal operation and functional safety of the system.
- An electronic device includes the control circuit device in any of the foregoing embodiments.
- the reference clock control state machine 1 uses it as the initial control signal, and then generates the state transition reference signal required by the control part of the clock to be tested according to the control logic of the state machine.
- the clock control state machine 2 to be tested adopts a state control method similar to that of the reference clock control state machine 1, but has different start and state transition trigger conditions.
- the state transition reference signal is synchronized to the clock domain to be tested, the The clock control state machine 2 generates and outputs the count enable condition of the monitoring counter in the clock domain to be tested. Therefore, the result generator 3 compares the monitoring count result with the preset register reference value, and then generates the comparison result.
- the output of the error flag signal is triggered.
- a pure digital logic circuit is used, and the logic gate scale is small, which can be conveniently placed in different positions of the chip and in different clock domains; at the same time, the control circuit provided by the embodiment of the present application
- the device is convenient to configure, simple to use, and is not affected by process deviation and working environment.
- the embodiments of the present application can solve the need for an analog circuit in the monitoring method of the prior art, and the analog circuit cannot be placed in the chip on a large scale. location, arbitrary nodes, and analog circuits are susceptible to process variations or operating environmental conditions.
- FIG. 3 shows a flowchart of a control method according to another embodiment of the present application.
- the control method is applied to the control circuit device in any of the foregoing embodiments, and the method includes:
- Step S1 Obtain the monitoring counting result of the monitoring counter in the clock domain to be tested.
- Step S2 After comparing the monitoring count result with the preset reference value, a comparison result is generated.
- Step S3 Output an error flag signal when the comparison result indicates that the monitoring count result is greater than the preset reference value.
- the reference clock control state machine 1 uses it as the initial control signal, and then generates the state transition reference signal required by the control part of the clock to be tested according to the control logic of the state machine.
- the clock control state machine 2 to be tested adopts a state control method similar to that of the reference clock control state machine 1, but has different start and state transition trigger conditions.
- the state transition reference signal is synchronized to the clock domain to be tested, the The clock control state machine 2 generates and outputs the count enable condition of the monitoring counter in the clock domain to be tested. Therefore, the result generator 3 compares the monitoring count result with the preset register reference value, and then generates the comparison result.
- the output of the error flag signal is triggered.
- a pure digital logic circuit is used, and the logic gate scale is small, which can be conveniently placed in different positions of the chip and in different clock domains; at the same time, the control circuit provided by the embodiment of the present application
- the device is convenient to configure, simple to use, and is not affected by process deviation and working environment.
- the embodiments of the present application can solve the need for an analog circuit in the monitoring method of the prior art, and the analog circuit cannot be placed in the chip on a large scale. location, arbitrary nodes, and analog circuits are susceptible to process variations or operating environmental conditions.
- the execution body may be a control device, or a control module in the control device for executing the control method.
- the control device of the control method provided by the embodiment of the present application is described by taking the control device executing the control method as an example.
- FIG. 4 shows a block diagram of a control apparatus according to another embodiment of the present application.
- the apparatus is used to implement the control method provided by the embodiment shown in FIG. 3 , and the apparatus includes:
- an acquisition module 10 for acquiring the monitoring count result of the monitoring counter in the clock domain to be tested
- a comparison module 20 configured to generate a comparison result after comparing the monitoring count result with the preset reference value
- the output module 30 is configured to output an error flag signal when the comparison result indicates that the monitoring counting result is greater than the preset reference value.
- the reference clock control state machine 1 uses it as the initial control signal, and then generates the state transition reference signal required by the control part of the clock to be tested according to the control logic of the state machine.
- the clock control state machine 2 to be tested adopts a state control method similar to that of the reference clock control state machine 1, but has different start and state transition trigger conditions.
- the state transition reference signal is synchronized to the clock domain to be tested, the The clock control state machine 2 generates and outputs the count enable condition of the monitoring counter in the clock domain to be tested. Therefore, the result generator 3 compares the monitoring count result with the preset register reference value, and then generates the comparison result.
- the output of the error flag signal is triggered.
- a pure digital logic circuit is used, and the logic gate scale is small, which can be conveniently placed in different positions of the chip and in different clock domains; at the same time, the control circuit provided by the embodiment of the present application
- the device is convenient to configure, simple to use, and is not affected by process deviation and working environment.
- the embodiments of the present application can solve the need for an analog circuit in the monitoring method of the prior art, and the analog circuit cannot be placed in the chip on a large scale. location, arbitrary nodes, and analog circuits are susceptible to process variations or operating environmental conditions.
- the control device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
- the apparatus may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
- UMPC ultra-mobile personal computer
- PDA personal digital assistant
- non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
- the control device in this embodiment of the present application may be a device with an operating system.
- the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
- control device provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, which is not repeated here to avoid repetition.
- an embodiment of the present application further provides an electronic device 100, including a processor 101, a memory 102, a program or instruction stored in the memory 102 and executable on the processor 101,
- an electronic device 100 including a processor 101, a memory 102, a program or instruction stored in the memory 102 and executable on the processor 101,
- the program or instruction is executed by the processor 101, each process of the above-mentioned control method embodiment can be implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
- the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
- FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
- the electronic device 1000 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power functions. consumption management and other functions.
- a power source such as a battery
- the power management system can manage charging, discharging, and power functions. consumption management and other functions.
- the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
- the processor 1010 is configured to obtain the monitoring counting result of the monitoring counter in the clock domain to be tested; after comparing the monitoring counting result with the preset reference value, a comparison result is generated; when the comparison result indicates that the monitoring counting result is greater than the preset reference value If the value is set, an error flag signal is output.
- the reference clock control state machine of the electronic device 1000 uses it as the initial control signal, and then generates the state transition required by the control part of the clock to be tested according to the control logic of the state machine reference signal.
- the clock control state machine under test of the electronic device 1000 adopts a state control method similar to the reference clock control state machine, but has different start and state transition trigger conditions.
- the clock under test control state machine After the state transition reference signal is synchronized to the clock domain under test, The clock under test control state machine generates and outputs the count enable condition of the monitoring counter in the clock domain under test.
- the result generator of the electronic device 1000 compares the monitoring count result with the preset register reference value, and then generates the comparison result.
- the output of the error flag signal is triggered.
- a pure digital logic circuit is used, and the logic gate scale is small, which can be conveniently placed in different positions of the chip and in different clock domains; at the same time, the control circuit provided by the embodiment of the present application
- the device is convenient to configure, simple to use, and is not affected by process deviation and working environment.
- the embodiments of the present application can solve the need for an analog circuit in the monitoring method of the prior art, and the analog circuit cannot be placed in the chip on a large scale. location, arbitrary nodes, and analog circuits are susceptible to process variations or operating environmental conditions.
- the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042. Such as camera) to obtain still pictures or video image data for processing.
- the display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
- the user input unit 1007 includes a touch panel 10071 and other input devices 10072 .
- the touch panel 10071 is also called a touch screen.
- the touch panel 10071 may include two parts, a touch detection device and a touch controller.
- Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
- the memory 1009 may be used to store software programs as well as various data.
- the memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, image playback function, etc.), etc.
- memory 1009 may include volatile memory or non-volatile memory, or memory 1009 may include both volatile and non-volatile memory.
- the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically programmable read-only memory (Erasable PROM, EPROM). Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
- Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous random access memory) DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
- RAM Random Access Memory
- SRAM static random access memory
- DRAM dynamic random access memory
- DRAM synchronous dynamic random access memory
- Synchronous random access memory double data rate synchronous dynamic random access memory
- Double Data Rate SDRAM Double Data Rate SDRAM, DDRSDRAM
- enhanced SDRAM synchronous dynamic random access memory
- Synch link DRAM synchronous link dynamic random access memory
- SLDRAM direct memory bus random access memory
- the processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations involving an operating system, a user interface, and an application program, etc. Modem processors mainly deal with wireless communication signals, such as baseband processors. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1010.
- Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing control method embodiment can be implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here.
- the processor is the processor in the electronic device described in the foregoing embodiments.
- the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
- An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing control method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
- the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
- the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
- the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
- a storage medium such as ROM/RAM, magnetic disk, CD-ROM
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
Claims (13)
- 一种控制电路装置,所述控制电路装置包括:参考时钟控制状态机,所述参考时钟控制状态机用于依据所述参考时钟控制状态机的控制逻辑产生待测时钟控制部分需要的状态转换参考信号;待测时钟控制状态机,所述待测时钟控制状态机与所述参考时钟控制状态机连接,所述待测时钟控制状态机用于在所述状态转换参考信号同步至待测时钟域的情况下,产生待测时钟域内的监测计数器的计数使能条件;结果产生器,所述结果产生器与所述待测时钟控制状态机连接,所述结果产生器用于将监测计数结果和预设参考值进行比较后,产生比较结果,以及在所述比较结果指示为所述监测计数结果大于所述预设参考值的情况下,输出错误标志信号。
- 根据权利要求1所述的控制电路装置,其中,所述控制电路装置还包括:第一同步控制器,所述第一同步控制器与所述参考时钟控制状态机连接,所述第一同步控制器用于在接收到触发信号的情况下,将所述触发信号转化为参考时钟域中的脉冲信号,并将所述脉冲信号输出至所述参考时钟控制状态机;其中,所述触发信号包括外部输入的触发信号和配置寄存器输入的触发信号中的任一种。
- 根据权利要求1所述的控制电路装置,其中,所述控制电路装置还包括:第二同步控制器,所述第二同步控制器与所述参考时钟控制状态机连接,所述第二同步控制器还与所述待测时钟控制状态机连接,所述第二同步控制器用于将所述参考时钟控制状态机产生的状态转换参考信号同步至待测时钟域。
- 根据权利要求1所述的控制电路装置,其中,所述控制电路装置还包 括:第一超时控制器,用于接收参考时钟信号,并在所述待测时钟控制状态机在所述参考时钟信号的作用下、出现第一预设时长内状态不转换的情况,输出第一中断标志信号。
- 根据权利要求1所述的控制电路装置,其中,所述控制电路装置还包括:第二超时控制器,用于接收待测时钟信号,并在所述参考时钟控制状态机在所述待测时钟信号的作用下、出现第二预设时长内状态不转换的情况,输出第二中断标志信号。
- 根据权利要求1所述的控制电路装置,其中,所述参考时钟控制状态机和所述待测时钟控制状态机中的状态均至少包括:初始态、转换态一、转换态二、转换态三、监测态和间歇态。
- 根据权利要求1所述的控制电路装置,其中,所述结果产生器包括:第一结果产生单元,所述第一结果产生单元用于在单窗口模式下,将监测计数器保存的结果和预设参考值进行比较;第二结果产生单元,所述第二结果产生单元用于在多窗口模式下,将监测计数器保存结果的平均值和预设参考值进行比较。
- 一种电子设备,所述电子设备包括权利要求1~7任一项所述的控制电路装置。
- 一种控制方法,所述控制方法包括:获取待测时钟域内的监测计数器的监测计数结果;将所述监测计数结果和预设参考值进行比较后,产生比较结果;在所述比较结果指示为所述监测计数结果大于所述预设参考值的情况下,输出错误标志信号。
- 一种控制装置,所述控制装置包括:获取模块,用于获取待测时钟域内的监测计数器的监测计数结果;比较模块,用于将所述监测计数结果和预设参考值进行比较后,产生比 较结果;输出模块,用于在所述比较结果指示为所述监测计数结果大于所述预设参考值的情况下,输出错误标志信号。
- 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求9所述的控制方法的步骤。
- 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被所述处理器执行时实现如权利要求9所述的控制方法的步骤。
- 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求9所述的控制方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110298638.8 | 2021-03-19 | ||
| CN202110298638.8A CN113031695B (zh) | 2021-03-19 | 2021-03-19 | 控制电路装置、电子设备、控制方法和可读存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022194133A1 true WO2022194133A1 (zh) | 2022-09-22 |
Family
ID=76471972
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/080886 Ceased WO2022194133A1 (zh) | 2021-03-19 | 2022-03-15 | 控制电路装置、电子设备、控制方法和可读存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113031695B (zh) |
| WO (1) | WO2022194133A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2026081453A1 (zh) * | 2024-10-15 | 2026-04-23 | 北京开源芯片研究院 | 一种同步控制方法、装置、电子设备及可读存储介质 |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113031695B (zh) * | 2021-03-19 | 2024-04-12 | 维沃移动通信有限公司 | 控制电路装置、电子设备、控制方法和可读存储介质 |
| CN117110707B (zh) * | 2023-10-24 | 2024-01-30 | 芯潮流(珠海)科技有限公司 | Soc集成芯片、频率测量电路及频率测量方法 |
| CN118605692A (zh) * | 2024-06-25 | 2024-09-06 | 维沃移动通信有限公司 | 时钟域转换电路、方法及相关装置 |
| CN119597129B (zh) * | 2024-10-21 | 2026-04-21 | 南京航空航天大学 | 复位电路 |
| CN120142905B (zh) * | 2025-03-24 | 2025-09-05 | 芯洲科技(北京)股份有限公司 | Pmic数字时钟异常检测方法、装置和芯片 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140320181A1 (en) * | 2013-04-29 | 2014-10-30 | Microsemi Semiconductor Ulc | Phase locked loop with simultaneous locking to low and high frequency clocks |
| CN104702278A (zh) * | 2013-12-10 | 2015-06-10 | 炬芯(珠海)科技有限公司 | 一种频率校准方法及装置 |
| WO2020037485A1 (zh) * | 2018-08-21 | 2020-02-27 | 深圳市汇顶科技股份有限公司 | 检测电路、方法、芯片及设备 |
| CN110932815A (zh) * | 2019-12-18 | 2020-03-27 | 锐捷网络股份有限公司 | 一种时间同步方法、装置、网络设备及存储介质 |
| CN113031695A (zh) * | 2021-03-19 | 2021-06-25 | 维沃移动通信有限公司 | 控制电路装置、电子设备、控制方法和可读存储介质 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6519301B1 (en) * | 1999-09-28 | 2003-02-11 | Anthony S. Rowell | Circuits, systems, and methods for passing request information across differing clock domains |
| EP1276028A1 (en) * | 2001-07-09 | 2003-01-15 | Telefonaktiebolaget L M Ericsson (Publ) | Status indication detection device and method |
-
2021
- 2021-03-19 CN CN202110298638.8A patent/CN113031695B/zh active Active
-
2022
- 2022-03-15 WO PCT/CN2022/080886 patent/WO2022194133A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140320181A1 (en) * | 2013-04-29 | 2014-10-30 | Microsemi Semiconductor Ulc | Phase locked loop with simultaneous locking to low and high frequency clocks |
| CN104702278A (zh) * | 2013-12-10 | 2015-06-10 | 炬芯(珠海)科技有限公司 | 一种频率校准方法及装置 |
| WO2020037485A1 (zh) * | 2018-08-21 | 2020-02-27 | 深圳市汇顶科技股份有限公司 | 检测电路、方法、芯片及设备 |
| CN110932815A (zh) * | 2019-12-18 | 2020-03-27 | 锐捷网络股份有限公司 | 一种时间同步方法、装置、网络设备及存储介质 |
| CN113031695A (zh) * | 2021-03-19 | 2021-06-25 | 维沃移动通信有限公司 | 控制电路装置、电子设备、控制方法和可读存储介质 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2026081453A1 (zh) * | 2024-10-15 | 2026-04-23 | 北京开源芯片研究院 | 一种同步控制方法、装置、电子设备及可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113031695B (zh) | 2024-04-12 |
| CN113031695A (zh) | 2021-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022194133A1 (zh) | 控制电路装置、电子设备、控制方法和可读存储介质 | |
| US6823224B2 (en) | Data processing system having an on-chip background debug system and method therefor | |
| US6556208B1 (en) | Network management card for use in a system for screen image capturing | |
| US10048720B2 (en) | Timebase synchronization | |
| US8935574B2 (en) | Correlating traces in a computing system | |
| US8892269B2 (en) | Power down and quick start of thermal sensor | |
| US20100070792A1 (en) | System and method for testing overclocking capability of cpu | |
| US8892922B2 (en) | Voltage detection | |
| US10671467B2 (en) | Semiconductor device | |
| US9549373B2 (en) | Method for waking a data transceiver through data reception | |
| JP2019506656A (ja) | 単一回線pmicホスト低レベル制御インターフェース | |
| CN112765082A (zh) | 多主机仲裁方法、装置和可读存储介质 | |
| US9367081B2 (en) | Method for synchronizing independent clock signals | |
| JP5920564B2 (ja) | タイマー装置及び電子機器 | |
| US12355439B2 (en) | Reset independent glitch filter | |
| JP5939374B2 (ja) | タイマー装置及び電子機器 | |
| CN110673691B (zh) | 电子系统、感测电路以及感测方法 | |
| US20240326867A1 (en) | Processor-based system employing a safety island architecture for fail-safe operation | |
| TW202101411A (zh) | 源極驅動電路、顯示裝置及資訊處理裝置 | |
| WO2024112352A1 (en) | Flexible bus communication | |
| US10761581B2 (en) | Method and module for programmable power management, and system on chip | |
| CN114696809B (zh) | 信号产生电路及操作系统 | |
| CN108089649B (zh) | 电子装置及检测方法 | |
| WO2025264309A1 (en) | Simplified clocking and input/output timing using single data rate link for multiple system-on-chip device | |
| JP2025061946A (ja) | 集積回路におけるクロックネットワークの監視方法、装置及び機器 |
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: 22770486 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22770486 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.03.2024) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22770486 Country of ref document: EP Kind code of ref document: A1 |