Clock processing circuit in chip debugging mode and clock processing method thereof
A technology for processing circuits and debugging modes, which is applied in electrical digital data processing, software testing/debugging, error detection/correction, etc., and can solve problems that affect the chip process and chip operating program development efficiency, so as to improve development efficiency , Optimize the effect of the development process
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2020-07-28
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
Technical field
[0001] The present invention relates to the technical field of integrated circuit digital design, and in particular to a clock processing circuit in a chip debugging mode and a clock processing method thereof. Background technique
[0002] During the development of the chip operating program, developers need to continuously debug the chip operating program. At this time, the chip operating mode needs to be switched to the debugging mode, and the chip operating program may contain commands to make the chip system sleep. When the chip enters the sleep state, stopping the system clock will cause the chip to exit the debugging mode, and the program debugging process is interrupted, so that the program following the sleep command cannot be debugged.
[0003] Such as figure 1 Shown is the working principle diagram of the existing chip debugging. In the chip debugging working principle diagram, Chip is the chip, which contains the clock processing circuit CLK Circuit; Uli...
Examples
Embodiment Construction
[0019] See figure 2 , The structure diagram of the clock processing circuit in the chip debugging mode implemented in the present invention. In the structure of the clock processing circuit in the chip debugging mode, the clock processing circuit includes a first selector MUX1, a second selector MUX2, a latch and a logical AND gate AND, the first selector MUX1 is connected to the second selector MUX2 , The second selector MUX2 is connected to the latch Latch, and the latch Latch is connected to the logic AND gate AND.
[0020] See figure 2 When the clock processing circuit works, firstly, the external clock signal CLK is given to the clock processing circuit, and the system sleep signal sfr_idlesleepcon_sleepen, the system deep sleep signal sfr_idledbgcon_dbgsleepen, and the system debug signal sfr_idledbgcon1_en are all set to 0 through the external configuration register; then, The system sleep signal sfr_idlesleepcon_sleepen is input to the first selector, and the system dee...