主权项 |
1. A method of breaking code execution based on time consumption performed by an integrated circuit (IC) device, the method comprising:
receiving a first signal indicating a start point defined in source code, the first signal generated when the start point is executed by the IC device; starting a counter in a time measurement circuit in response to receiving the first signal; counting, using an interrupt level counter coupled to the counter, interrupt levels for nested interrupt signals; receiving a second signal indicating a stop point defined in the source code, the second signal generated when the stop point is executed by the IC device; stopping the counter in the time measurement circuit in response to receiving the second signal; and generating a program break or time event based on a comparison of time measured by the time measurement circuit with a maximum and minimum time setting. |