摘要 |
PURPOSE:To measure the execution time of each part within a CPU with addition of an extremely small quantity of hardware, by providing busy flags and selecting properly one of these flags to start a clock counter. CONSTITUTION:Signals alpha, beta...epsilon showing a working state are supplied to a busy signal register 20 from a function block part which has to measure the execution time within a CPU. The part 20 is connected to an AND gate 60 via AND gates 32-36 and then an AND gate 37. While busy signal selection flags a, b...e are fed to a busy signal selection flag register 31 via a latch 38. These selection flags are connected to the gate 60 via the gates 32-36 and the gate 37. An output of 1 is supplied from the gate 60 when an initialization control bit A in a clock counter 50 is set at 1. Then pulses C are counted until the count value reaches 0. This count value is delivered to buses 11 and 12 via latches 41 and 42, respectively. |