Performance counter for microcode instruction execution and counting method

A technology of instruction execution and counting device, which is applied in the field of counting the execution times of microcode instructions, and can solve the problems of microcode difficulty, no function provided, microcode obtaining observation, etc.

Inactive Publication Date: 2010-09-01
VIA TECH INC
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since the microcode is directly located in the microprocessor, unlike user-defined program instructions, the acquisition of the microcode cannot be directly observed from the external pins of the microprocessor. Microcode is harder to measure than user-defined programs
Furthermore, although microprocessors usually provide debugging and efficiency measurement functions for user-defined programs (see, for example, Intel 32-bit Processor Architecture Software Developer's Manual Volume 3B: System Programming Guide Part II, 2006 June Edition, Chapter 18), but does not provide the same functionality for microcode use

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Performance counter for microcode instruction execution and counting method
  • Performance counter for microcode instruction execution and counting method
  • Performance counter for microcode instruction execution and counting method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] refer to figure 1 , shows a block diagram of a microprocessor 100 according to the present invention. In response to the microprocessor 100 receiving user program instructions, the microcode memory 104 stores a plurality of microcode instructions 108 provided by it to a plurality of execution units 112. In addition, although not shown in figure 1 Among them, microcode instructions from other sources, such as microcode instructions from an instruction translator or an instruction cache (not shown) of the microprocessor 100, are also provided to the plurality of execution units 112 for execution. In an embodiment of the present invention, the plurality of execution units 112 execute microcode instructions out of order.

[0033] The microprocessor 100 also includes a reorder buffer 122 coupled to the plurality of execution units 112. microcode instruction 108) assigns an item (entry) 124 or 126, and when a plurality of microcode instructions 108 are sent to a plurality o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a performance counter for microcode instruction execution and a counting method. An apparatus for counting microcode instruction execution in a microprocessor includes a first register, a second register, a comparator, and a counter. The first register stores an address of a microcode instruction. The microcode instruction is stored in a microcode memory of the microprocessor. The second register stores an address of the next microcode instruction to be retired by a retire unit of the microprocessor. The comparator compares the addresses stored in the first and second registers to indicate a match between them. The counter counts the number of times the comparator indicates a match between the addresses stored in the first register and the second register. The overhead required to commence measuring microcode execution and to subsequently obtain the measurements are a small number of writes / reads to / from control registers without professional exterior tools or deepening into a detector inside the microprocessor.

Description

technical field [0001] The present invention mainly relates to a microprocessor, in particular to a technique for counting the execution times of microcode instructions in the microprocessor. Background technique [0002] Many modern microprocessors include sequences of microcode instructions, or microcode, that implement complex and / or infrequently executed microprocessor instruction sets. The microcode memory located in the microprocessor contains a plurality of sequences of microcode instructions, and when the microprocessor decodes one of the instructions implemented in microcode in the instruction set, the microprocessor does not send the instruction directly to the microprocessor Instead, control is handed over to the appropriate microcode program in the microcode ROM. Then, the microprocessor sends the microcode instructions to the execution unit for execution to implement the above-mentioned complex and / or rarely executed microcode instructions, so that the executio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3466G06F2201/88G06F11/3471
Inventor 布兰特·比恩G·葛兰·亨利泰瑞·派克斯陈巨轩
Owner VIA TECH INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products