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.
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
Register Transfer Operations
Register Transfer Concept
A register transfer describes the transfer of binary information from one register to another.
Bus & Memory Transfers
Common Bus System
A digital computer uses a common bus system to transfer information between multiple registers efficiently.
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 enabled: Behaves as normal buffer (0 or 1)
Memory Transfers
Content of memory word M at address specified by AR is transferred to data register DR.
Content of DR is transferred to memory word M at address specified by AR.
Arithmetic Micro-Operations
Arithmetic Operations on Binary Data
Arithmetic micro-operations perform arithmetic operations on binary data stored in registers using combinational circuits.
Hardware: Binary adder circuit
Hardware: Binary adder-subtractor using 2's complement
Hardware: Binary incrementer with cascaded half-adders
Hardware: Binary decrementer circuit
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.
Bitwise AND of R1 and R2
Bitwise OR of R1 and R2
Bitwise Exclusive-OR of R1 and R2
Bitwise complement of R1
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.
R2 โ shr R2 (Shift Right)
Transfers 0 into the serial input
R โ cir R (Circular Right)
Preserves all bits by rotating them around
R โ ashr R (Arithmetic Right)
Shifts signed numbers (ร2 left, รท2 right)
- Combinational circuit shifter
- Uses multiplexers to select operations
- Control inputs determine shift type
- Parallel data processing
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.
1010
0110
10000
- Single operational unit for multiple functions
- Multiplexers select desired operation
- Control inputs determine ALU behavior
- Fundamental component of CPU architecture
ALU Components Integration
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ALU Control Unit โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโค
โ Arithmetic โ Logic โ Shifter โ
โ Circuit โ Circuit โ Circuit โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโค
โ Multiplexer Network โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Output Buffer โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Control signals determine which circuit provides the final output result.