Microprocessor and Computer Architecture

⌘K
  1. Home
  2. Docs
  3. Microprocessor and Comput...
  4. Central Processing Unit a...
  5. Register Organization

Register Organization

Here is the description of Register Organization:

A register is a small, high-speed storage location within the CPU (Central Processing Unit) of a computer that is used to store temporary data and instructions that are actively being processed by the CPU.

• They are fast but have limited capacity compared to main memory (RAM).

Register organization refers to the way registers are structured and managed within the CPU. This includes the arrangement of different types of registers, such as data registers, address registers, and control registers.

• Efficient register organization is crucial for optimizing the performance of the CPU and ensuring smooth execution of instructions.

General register organization refers to the arrangement and management of various types of registers within the Central Processing Unit (CPU) of a computer system. These registers play essential roles in the execution of instructions and the manipulation of data within the CPU.

  • These registers are used for various computational and data manipulation tasks during program execution.
  • The organization typically defines the number of registers available, their size, and their specific roles, including temporary data storage, addressing, and operand manipulation.
  • The organization of general registers can vary between different CPU architectures and designs, impacting the CPU’s performance and capabilities.

The below image depicts the general organization of seven CPU registers:

general register organization 1 1645849156

The control unit is in charge of the CPU bus system. The control unit specifies the data flow via the ALU by selecting the ALU’s function and system components.

Let us consider R1←R2 + R3, and the functions implemented within the CPU are as follows:

Function nameDescription
MUX A Selector (SELA)It can insert R2 into bus A.
MUX B Selector (SELB) It can insert R3 in bus B.
ALU Operation Selector (OPR)It can select the arithmetic addition(ADD).
Decoder Destination Selector (SELD)It can transfer the result into R1.

The buses are used to perform the multiplexers of 3-state gates. The control word is determined by the status of 14 binary selection inputs. The 14-bit control word defines the micro-operation.

A control word typically refers to a binary word or a group of bits used to control various operations or configurations within a system.

There are 14 binary selection inputs in the unit, and the combined value specifies a control word.

The table specifies the encoding of register selection fields:

Binary CodeSELASELB SELD
000InputInputNone
001R1R1R1
010R2R2R2
011R3R3R3
100R4R4R4
101R5R5R5
110R6R6R6
111R7R7R7

The table shows a few of the operations that the ALU performs.

OPR SelectOperationSymbol
00000 Transfer ATSFA
00001Increment AINCA
00010Add A + BADD
00101Subtract A – BSUB
00110Decrement ADECA
01000ADD A and BAND
01010OR A and BOR
01100XOR A and BXOR
01110Complement ACOMA
10000Shift right ASHRA
11000Shift left ASHLA

Here is the Examples of Microoperations for the CPU:

Micro-operationSELASELBSELDOPRControl Word
R1 ← R2 – R3R2R3R1SUB010 011 001 00101
R4 ← R4 ∨ R5R4R5R4OR100 101 100 01010
R6 ← R6 + R1R6R1INCA110 000 110 00001
R7 ← R1R1R7TSFA001 000 111 00000
Output ← R2R2NoneTSFA010 000 000 00000
Output ← InputInputNoneTSFA000 000 000 00000
R4 ← shl R4R4R4SHLA100 000 100 11000
R5 ← 0R5R5R5XOR101 101 101 01100

SELA, SELB, SELD, OPR

R2, R3, R1, SUB

010, 011, 001, 00101

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *