| |||
| Home > System Control > Register descriptions > c0, Main ID Register | |||
The MIDR characteristics are:
Returns the device ID code that contains information about the processor
The MIDR is:
a read-only register
accessible in Privileged mode only.
Available in all processor configurations.
See Table 4.3.
Figure 4.7 shows the shows the MIDR bit assignments.
Table 4.3 shows the MIDR bit assignments.
Table 4.3. MIDR bit assignments
Bits | Name | Function |
|---|---|---|
| [31:24] | Implementer | Indicates implementer.
|
| [23:20] | Variant | Identifies the major revision of the processor. This is the major revision number n in the rn part of the rnpn description of the product revision status. |
| [19:16] | Architecture | Indicates the architecture version.
|
| [15:4] | Primary part number | Indicates processor part number.
|
| [3:0] | Revision | Identifies the minor revision of the processor. This is the minor revision number n in the pn part of the rnpn description of the product revision status. |
If an MRC instruction is executed with
CRn = c0, Opcode_1 = 0, CRm = c0, and an Opcode_2 value corresponding
to an unimplemented or reserved ID register, the system control coprocessor
returns the value of the MIDR.
To access the MIDR, read CP15 with:
MRC p15, 0, <Rd>, c0, c0, 0 ; Read MIDR
For more information on the processor features, see The Processor Feature Registers.