![Digital Equipment Alpha 21164PC Hardware Reference Manual Download Page 198](http://html.mh-extra.com/html/digital-equipment/alpha-21164pc/alpha-21164pc_hardware-reference-manual_2498508198.webp)
5–50
Internal Processor Registers
29 September 1997 – Subject To Change
Memory Address Translation Unit (MTU) IPRs
5.2.19 Cycle Counter (CC) Register (20D)
CC is a read/write register. The 21164PC supports it as described in the Alpha AXP
Architecture Reference Manual. The low half of the counter, when enabled, incre-
ments once each CPU cycle. The upper half of the CC register is the counter offset.
An HW_MTPR instruction writes CC<63:32>. Bits <31:00> are unchanged.
CC_CTL<32> is used to enable or disable the cycle counter. The CC<31:00> is writ-
ten to CC_CTL by an HW_MTPR instruction.
The CC register is read by the RPCC instruction as defined in the Alpha AXP Archi-
tecture Reference Manual. The RPCC instruction returns a 64-bit value. The cycle
counter is enabled to increment only three cycles after the MTPR CC_CTL (with
CC_CTL<32> set) instruction is issued. This means that an RPCC instruction issued
four cycles after an HW_MTPR CC_CTL instruction that enables the counter reads a
value that is one greater than the initial count.
The CC register is disabled on chip reset. Figure 5–43 shows the CC register format.
Figure 5–43 Cycle Counter (CC) Register
00
31
32
63
LJ-03515.AI4
CC, OFFSET
IGN