Register Transfer

Understanding Binary Information Movement in Digital Computers

Register Naming Transfer Operations Control Functions RTL Symbols
1

What are Registers?

Register Designation and Representation

Computer registers are designated by capital letters, sometimes followed by numerals, to indicate their function.

MAR
Memory Address Register
PC
Program Counter
IR
Instruction Register
R1
General Purpose
Key Effects of Transfer:
  • ✅ The content of the source register (R1) remains unchanged
  • 🔄 The previous content of destination register (R2) is replaced
  • ⚡ Transfer requires parallel load capability in destination register

Register Bit Structure

Individual bits within a register can be shown by dividing the rectangle into small boxes, numbered from 0 upwards.

16-bit Register R2 (bits 0-15)
1
15
0
14
1
13
1
12
...
0
3
1
2
0
1
1
0
Register Parts Notation

Parts of a register can be denoted using parentheses:

R2(0-7) or R2(L)

Low-order byte of register R2

PC(8-15) or PC(H)

High-order byte of Program Counter

Hardware Requirements

To implement register transfer, specific hardware components are essential:

Hardware Implementation Requirements:
Circuit Paths
Available circuits from outputs of source register to inputs of destination register
Parallel Load
Destination register must have parallel load capability
2

The Concept of Register Transfer

What is Register Transfer?

A register transfer is the transfer of binary information from one register to another.

Interactive Register Transfer Demonstration
R2 (Destination)
00000000
Previous content replaced
←
R1 (Source)
10110101
Content unchanged
R2 ← R1
Key Points of Register Transfer:
  • 🔹 Transfers binary data from source register (R1) to destination register (R2).
  • 🔹 The source register content remains unchanged after the transfer.
  • 🔹 The destination register content is overwritten with the source data.
  • 🔹 Transfers occur in synchronization with a clock pulse.
  • 🔹 Useful in executing arithmetic, logic, and control operations in a CPU.
3

Control Function for Register Transfer

Conditional Transfer Operations

Register transfers often occur only under a predetermined control condition.

Control Function Demonstration
P: R2 ← R1

"If P = 1, then transfer the content of R1 to R2"

Control Function P
0
Transfer Disabled
R2
01001001
←
R1
11010110
Clock Synchronization:
Clock Signal:

Transfer occurs on single clock edge when control function is active (P=1)

Block Diagram
                               +----------------+ 
                               | Control Circuit| 
                               +----------------+ 
                                        |P
                                        |
                                        |
                                        ↓Load
                                    +-------+
                +--------+          |       |←-------- Clock
                |   R1   |---------→|   R2  |
                +--------+    n     +-------+

Timing Diagram
                  t        t+1
Clock:   ┌───┐    ┌───┐    ┌───┐    ┌───┐
         │   │    ↑   │    ↑   │    │   │
  ───────┘   └────┘   └────┘   └────┘   └───


                  ┌────────┐
                  │        │
Load:─────────────┘        └──────
     "Transfer occurs here"↑
Control Function Properties:
  • Boolean Variable: P can be either 1 or 0
  • Timing: Transfer occurs during single clock edge
  • Condition: Transfer only happens when P = 1
  • Synchronization: Typically on positive clock transition
4

Basic Symbols for Register Transfers

Register Transfer Language (RTL) Symbols

Table provides a summary of basic symbols used in Register Transfer Language:

MAR,R2
Letters & Numerals
Denote a register (Memory Address Register, Register 2)
( )
Parentheses
Denote a part of a register (e.g., R2(0-7) for bits 0-7, R2(L) for low byte)
←
Arrow
Denotes the transfer of information (R2 ← R1 means transfer R1 to R2)
,
Comma
Separates simultaneous micro-operations (R2 ← R1, R1 ← R2)

Simultaneous Operations

The comma separates two or more micro-operations that occur simultaneously, typically initiated by one common clock pulse.

Simultaneous Transfer Demo
R2 ← R1, R1 ← R2

Register Exchange Operation

R1
10101010
⇄
Simultaneous
R2
01010101
Edge-Triggered Flip-Flops: Simultaneous operations are possible with registers using edge-triggered flip-flops, which capture input values at the clock edge.

RTL Expression Examples

PC ← PC + 1

Program Counter Increment
Increment program counter by 1

MAR ← IR(0-11)

Address Loading
Load address from instruction register bits 0-11

T₂: DR ← M[AR]

Memory Read
Read memory at address AR into DR during time T₂

Load: R1 ← R2, R3 ← 0

Multiple Operations
Load R2 into R1 and clear R3 when Load signal is active

">