Register Transfers & Micro-Operations

Computer System Architecture Fundamentals

RTL ALU Bus Systems Digital Logic
1

Register Transfer Language (RTL)

What is RTL?

Register Transfer Language (RTL) is a symbolic notation used to describe micro-operation sequences in a computer. It provides a concise and precise way to specify how hardware components interact.

Purpose: RTL enables designers to specify the physical organization of registers, the sequence of micro-operations, and the control that initiates these sequences.

Basic RTL Symbols:

  • Letters & Numerals: Denote registers (e.g., MAR, R2)
  • Parentheses ( ): Denote part of register (e.g., R2(0-7), R2(L))
  • Arrow โ†: Denotes transfer of information
  • Comma ,: Separates micro-operations
2

Register Transfer Operations

Register Transfer Concept

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

Interactive Register Transfer Demo
R2
0000000
โ†
R1
1011010
R2 โ† R1
Key Point: During transfer R2 โ† R1, the content of R1 remains unchanged, but R2's previous content is replaced by R1's content.
3

Bus & Memory Transfers

Common Bus System

A digital computer uses a common bus system to transfer information between multiple registers efficiently.

Bus Architecture
R1
R2
R3
Common Bus Line

Three-State Bus Buffers

A three-state gate has three output states:

  • Logic 0: Low output
  • Logic 1: High output
  • High-impedance: Disconnected state
When disabled: Output goes to high-impedance state
When enabled: Behaves as normal buffer (0 or 1)

Memory Transfers

Memory Read
DR โ† M[AR]

Content of memory word M at address specified by AR is transferred to data register DR.

Memory Write
M[AR] โ† DR

Content of DR is transferred to memory word M at address specified by AR.

4

Arithmetic Micro-Operations

Arithmetic Operations on Binary Data

Arithmetic micro-operations perform arithmetic operations on binary data stored in registers using combinational circuits.

Addition
R3 โ† R1 + R2

Hardware: Binary adder circuit

Subtraction
R3 โ† R1 - R2

Hardware: Binary adder-subtractor using 2's complement

Increment
R1 โ† R1 + 1

Hardware: Binary incrementer with cascaded half-adders

Decrement
R1 โ† R1 - 1

Hardware: Binary decrementer circuit

Arithmetic Operation Demo
A
0101
+
B
0011
=
Result
----
5

Logic Micro-Operations

Bit-Manipulation Operations

Logic micro-operations perform bit-manipulation operations on data stored in registers, treating each bit as a binary variable.

AND Operation
P โ† R1 โˆง R2

Bitwise AND of R1 and R2

OR Operation
P โ† R1 โˆจ R2

Bitwise OR of R1 and R2

XOR Operation
P โ† R1 โŠ• R2

Bitwise Exclusive-OR of R1 and R2

Complement
P โ† R1'

Bitwise complement of R1

Logic Operation Demo
R1
1010
โˆง
R2
1100
=
Result
----
Applications: Logic operations are useful for selective set, selective complement, selective clear, and insert operations on individual bits.
6

Shift Micro-Operations

Serial Transfer of Data

Shift micro-operations are used for serial transfer of data and data-processing tasks by shifting register contents left or right.

Logical Shift
R1 โ† shl R1 (Shift Left)
R2 โ† shr R2 (Shift Right)

Transfers 0 into the serial input

Circular Shift (Rotate)
R โ† cil R (Circular Left)
R โ† cir R (Circular Right)

Preserves all bits by rotating them around

Arithmetic Shift
R โ† ashl R (Arithmetic Left)
R โ† ashr R (Arithmetic Right)

Shifts signed numbers (ร—2 left, รท2 right)

Interactive Shift Operations
Current Value:
1
0
1
1
0
1
0
0
Hardware Implementation:
- Combinational circuit shifter
- Uses multiplexers to select operations
- Control inputs determine shift type
- Parallel data processing
7

Arithmetic Logic Unit (ALU)

Complete Operational Unit

An Arithmetic Logic Unit (ALU) is a combinational circuit that performs arithmetic, logic, and shift micro-operations. It's the computational heart of computer systems.

ALU Architecture
Input A
1010
Input B
0110
ALU Core
Arithmetic Circuit
Logic Circuit
Shifter
Control: ADD
Output
10000
ALU Operation Simulator
Input A
1010
Input B
0110
Result
----
Key Features:
  • Single operational unit for multiple functions
  • Multiplexers select desired operation
  • Control inputs determine ALU behavior
  • Fundamental component of CPU architecture

ALU Components Integration

ALU Structure:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚           ALU Control Unit          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Arithmetic   โ”‚ Logic    โ”‚ Shifter   โ”‚
โ”‚ Circuit      โ”‚ Circuit  โ”‚ Circuit   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚         Multiplexer Network         โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚            Output Buffer            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
    

Control signals determine which circuit provides the final output result.