z/Architecture, initially and briefly called ESA Modal Extensions (ESAME), is IBM's 64-bit complex instruction set computer (CISC) instruction set architecture, implemented by its mainframe computers. IBM introduced its first z/Architecture-based system, the z900, in late 2000. Subsequent z/Architecture systems include the IBM z800, z990, z890, System z9, System z10, zEnterprise 196, zEnterprise 114, zEC12, zBC12, z13, z14, z15, z16, and z17. z/Architecture retains backward compatibility with previous 32-bit-data/31-bit-addressing architecture ESA/390 and its predecessors back to the 32-bit-data/24-bit-addressing System/360. The IBM z13 is the last z Systems server to support running an operating system in ESA/390 architecture mode. However, all 24-bit and 31-bit problem-state application programs originally written to run on the ESA/390 architecture will be unaffected by this change.
Features
z/Architecture includes almost all of the features of ESA/390, and adds some new features. Among the features of z/Architecture are
A channel subsystem with the architecture introduced by S/370-XA Branch relative instructions introduced by ESA/390, with 16-bit signed halfword offsets Relative long instructions, with 32-bit signed halfword offsets Trimodal (24/31/64-bit) addresses 16 32-bit access registers (ARs) introduced by ESA/370 16 64-bit general registers (GRs), 32-bit on older architectures 16 64-bit control registers (CRs) introduced by System/370 as 32-bit 16 64-bit floating-point registers (FPRs) 32 128-bit vector registers (VRs); bits 0–63 of VR0–VR15 contain FPR0–FPR15 1 32-bit floating-point control (FPC) register 1 128-bit program-status word (PSW), which includes a 64-bit instruction address An 8-KiB prefix storage area (PSA) Cryptographic Facility IEEE Binary-floating-point instructions added by ESA/390 IEEE Decimal-floating-point instructions For information on when each feature was introduced, consult the Principles of Operation.
Extended-immediate facility The extended-immediate facility adds instructions with 32-bit signed and unsigned immediate operands, Find Leftmost ones, and miscellaneous load instructions, e.g., Load and test, Load byte, Load logical character.
General-instructions-extension facility The general-instructions-extension facility add 3 dozen instructions, including
Compare and branch instructions Compare and trap instructions Load instructions, e.g. Load and test (LT) Store instructions
High-word facility The high-word facility provides instructions operating on the high word of a 64-bit general register.
Long-displacement facility The long-displacement facility adds instructions with a 20-bit signed displacement, e.g., LAY.
Miscellaneous-instruction-extensions Facility 1 The miscellaneous-instruction-extensions Facility 1 adds
Compare logical and trap (CLT and CLGT) Rotate then insert selected bits (RISBGN)
Miscellaneous-instruction-extensions Facility 2 The miscellaneous-instruction-extensions Facility 2 adds
Branch indirect on condition (BIC) new add, multiply and subtract instructions
Miscellaneous-instruction-extensions Facility 3 The miscellaneous-instruction-extensions Facility 3
And with complement (NCRK, NCGRK) Move right to left (MVCRL) Not and (NNRK, NNGRK) Not exclusive or (NXRK, NXGRK) Not or (NORK, NOGRK) Or with complement (OCRK, OCGRK) Select (SELR, SELGR) Select high (SELFHR)
Vector facility The z13 introduced a 128-bit Packed SIMD facility named "Vector Facility", which was first documented in edition 11 of z/Architecture Principles of Operation. It adds 32 vector registers, each 128 bits wide; the existing 16 floating-point registers are overlaid on the new vector registers. The new architecture adds over 150 new instructions to operate on data in vector registers, including integer, floating-point, and string data types. The z13 implementation includes two independent SIMD units to operate on vector data. The older vector processor facility first introduced from the IBM 3090 and also supported in the ES/9000 is not supported in z/Architecture.
Neural-network-processing-assist facility The z16 introduced the Neural-network-processing-assist facility, which introduces several instructions performing operations on model-dependent data types. For the z16 this is the 16-bit NNP-Data-Type-1 Format. The new instructions include tensor operations useful for AI and neural network applications.
Registers
Each processor has these registers
Access registers Breaking-event-address register (BEAR) Control registers Floating-point Control (FPC) register Floating-point registers General registers Prefix register Program status word (PSW) Vector registers
Access registers Each CPU has 16 32-bit access registers. When a program running in AR mode specifies register 1–15 as a base register or as a register operand containing an address, the CPU uses the associated access register during address translation.
Breaking-event-address register (BEAR) The 64-bit BEAR contains the address of the last instruction that broke the sequential execution of instructions; an interrupt stores the BEAR in the doubleword at real address 272 (11016). After an Execute of a branch, the BEAR contains the address of the execute, not that of the branch.
Control registers The 16 64-bit control registers provide controls over and the status of a CPU, except for information included in the PSW. They are an evolutionary enhancement to the control registers on the earlier ESA/390 on the IBM S/390 processors. For details on which fields are dependent on specific features, consult the Principles of Operation. Because z/Architecture expands the control registers from 32 bits to 64, the bit numbering differs from that in ESA/390.
Floating-point Control (FPC) register The FPC register contains Interrupt Masks (IM), Status Flags (SF), Data Exception Code (DXC), Decimal Rounding Mode (DRM) and Binary Rounding Mode (BRM). An interruption only stores the DXC if the FPC register if the AFP-register (additional floating-point register) control bit, bit 13 of control register 0, is one. Also, while individual bits of the DXC usually have significance, programs should normally treat it as an 8-bit integer rather than querying individual bits.
Floating-point registers Each CPU had 16 64-bit floating-point registers; FP0–15 occupy bits 0–63 of VR0–15. Ignoring the vector registers, floating point data may be in one of three formats and are in one of three sizes. z/Architecture supports
… excerpt ends here. Continue reading the full article.