Computer Organisation and Architecture · UGC NET: Register Transfer and Microoperations
Register Transfer Language and Bus Transfers
Overview
Register Transfer Language (RTL) is a symbolic notation used to describe the movement and manipulation of data between registers in a digital computer.
It forms the bridge between the programmer’s view (instructions) and the hardware implementation (flip‑flops, multiplexers, buses).
This topic falls under Computer Organization and Architecture (register transfer and microoperations) and is essential for understanding how the control unit directs data flow.
Before studying this lesson, you should know basic registers (flip‑flops), combinational logic (multiplexers, decoders), binary representation, and the concept of a clock edge.
The notes also cover bus transfers, the physical pathway that carries data between registers and memory.
Key concepts
- Register: a collection of flip‑flops that store binary data. Size is given in bits (e.g., 8‑bit, 16‑bit).
- Microoperation: an elementary operation performed on data stored in registers (e.g., transfer, add, increment, shift).
- Register Transfer Language (RTL): a notation to describe microoperations symbolically. The basic statement is
R2 ← R1, meaning the contents of register R1 are copied to register R2. The arrow points from source to destination. - Control function: a Boolean variable placed before a colon, e.g.,
P: R2 ← R1. The transfer occurs only when P = 1; if P = 0, no transfer. P is called the control function (or condition). - Simultaneous transfers: multiple transfers separated by commas, e.g.,
T: R1 ← R2, R3 ← R4. All occur at the same clock edge using the source values before the edge. - Bus: a set of common lines that carry data between registers. Two common implementations:
- Multiplexer‑based bus: each register output feeds a multiplexer; select lines choose which register drives the bus.
- Tri‑state buffer‑based bus: each register output passes through a tri‑state buffer; only one buffer is enabled at a time, others are in high‑impedance (Hi‑Z) state.
- Tri‑state buffer states: logic 0, logic 1, and high‑impedance. In Hi‑Z, the output is effectively disconnected (open circuit), draws very low current (leakage only), and does not drive the bus.
- Memory transfer notation:
DR ← M[AR]means memory read (data from memory at address AR is loaded into Data Register DR).M[AR] ← R1means memory write (data from R1 is stored at memory address AR). - Bus width: number of parallel lines (bits). For N registers on a bus, selection requires select lines (for multiplexer‑based).
- Memory capacity: given as (W words of B bits each). Address lines = , data lines = B.
- Control unit branch logic: tests status bits (carry, sign, etc.) to decide whether to take a branch. This is a conditional transfer at the instruction level.
How it works
-
Writing an RTL statement
- Destination on left of arrow, source on right.
- If a condition is present, it is written before a colon, e.g.,
P: R2 ← R1. - Multiple simultaneous operations are separated by commas, e.g.,
T: R1 ← R2, R3 ← R4.
-
Multiplexer‑based common bus
- For N registers of W bits each, use W multiplexers, each with N inputs and one output.
- All multiplexers share the same select lines.
- The select code determines which register’s data appears on the bus.
- Destination register loads the bus value at the active clock edge.
-
Tri‑state buffer‑based common bus
- Each register output goes through W tri‑state buffers (one per bit).
- A control decoder generates enable signals; only one register’s buffers are enabled at a time.
- Enabled buffers drive the bus; disabled buffers are in Hi‑Z (open circuit).
- Two enabled buffers cause bus contention (short circuit) and must be avoided.
-
Simultaneous transfers
- In a synchronous system, all transfers described on one line with commas occur at the same clock edge.
- The source values used are those present before the clock edge. For example,
T: R1 ← R2, R2 ← R1swaps the contents because both read the old values.
-
Memory read/write
- Read: Place address in AR, issue read signal, after memory access delay the data appears in DR (
DR ← M[AR]). - Write: Place address in AR, place data in a register (e.g., R1), issue write signal (
M[AR] ← R1).
- Read: Place address in AR, issue read signal, after memory access delay the data appears in DR (
-
Timing
- The minimum clock period must be ≥ propagation delay of the bus selection logic + wiring delay + setup time of the destination register.
Drawing the diagram…
Formulas
- Number of select lines for N registers on a multiplexer bus:
- Number of multiplexers for a W‑bit bus with N registers:
- Number of tri‑state buffers for N registers of W bits:
- Memory address lines for W words:
- Data lines for a word size of B bits:
- Minimum clock period for bus transfer:
where is multiplexer delay, is bus wiring delay, and is destination register setup time.
Worked examples
Example 1 (concept)
Interpret: P: R2 ← R1.
Solution: If control function P = 1, the contents of R1 are copied into R2 at the next clock edge. If P = 0, R2 retains its previous value. The arrow direction is from source R1 to destination R2.
Example 2 (numeric)
A common bus connects 8 registers of 16 bits each using multiplexers. How many multiplexers and select lines are required?
Solution:
- Number of multiplexers = bus width = 16 (each is 8‑to‑1).
- Select lines = .
Answer: 16 multiplexers, 3 select lines.
Example 3 (numeric)
How many address lines and data lines are required for a memory of ?
Solution:
- Number of words = .
- Address lines = .
- Word size = 16 bits, so data lines = 16.
Answer: 14 address lines, 16 data lines.
Example 4 (hard, simultaneous transfer)
Registers R1 and R2 hold 5 and 9 respectively. What are their values after executing T: R1 ← R2, R2 ← R1 at a clock edge?
Solution:
- The transfers are simultaneous; both use the values before the clock edge.
- Old R2 = 9 is loaded into R1; old R1 = 5 is loaded into R2.
- After the edge: R1 = 9, R2 = 5 (the contents are swapped).
Answer: R1 = 9, R2 = 5.
Example 5 (match‑the‑list style)
Match List‑I (RTL statement) with List‑II (operation).
List‑I: A. R2 ← R1 B. R2 ← R1 + 1 C. M[AR] ← R1 D. DR ← M[AR]
List‑II: i. Memory write ii. Increment iii. Register transfer iv. Memory read
Solution:
- A corresponds to iii (simple register transfer).
- B corresponds to ii (increment).
- C corresponds to i (memory write).
- D corresponds to iv (memory read).
Answer: A‑iii, B‑ii, C‑i, D‑iv.
Comparison
| Feature | Multiplexer‑based bus | Tri‑state buffer‑based bus |
|---|---|---|
| Selection method | Select lines choose one input | Enable signals activate one buffer |
| Output states | Always driven (0 or 1) | Driven (0/1) or High‑Z |
| Bus contention | Not possible (mux selects one) | Possible if >1 enabled |
| Typical use | Small number of registers | Large number of registers, shared lines |
| Transfer type | Notation | Meaning |
|---|---|---|
| Register transfer | R2 ← R1 | Copy R1 to R2 |
| Conditional transfer | P: R2 ← R1 | Transfer if P=1 |
| Simultaneous transfer | T: R1 ← R2, R2 ← R1 | Both happen at same clock edge |
| Memory read | DR ← M[AR] | Load DR from memory at address AR |
| Memory write | M[AR] ← R1 | Store R1 to memory at address AR |
| Microoperation type | Example | Description |
|---|---|---|
| Transfer | R2 ← R1 | Copy data |
| Arithmetic | R2 ← R1 + R3 | Addition |
| Logic | R2 ← R1 XOR R3 | Bitwise XOR |
| Shift | R2 ← shr R2 | Shift right |
Revision summary
- The arrow in RTL points from source to destination:
R2 ← R1means R1 → R2. - A control function before a colon makes the transfer conditional:
P: R2 ← R1occurs only if P=1. - Simultaneous transfers use the source values from before the clock edge (enables swapping).
- For N registers on a multiplexer bus, select lines = .
- A tri‑state buffer in Hi‑Z behaves as an open circuit and draws very low current (leakage), not zero.
- Two enabled tri‑state buffers on the same line cause bus contention (short circuit).
- Memory capacity gives address lines = , data lines = .
M[AR] ← R1is a memory write;DR ← M[AR]is a memory read.- In a multiplexer bus, the number of multiplexers equals the bus width (bits per word).
- Branch logic in the control unit implements conditional transfer at the instruction level.
Previous-year exam insights
- Direct concept questions ask the meaning of an RTL statement, the role of a control function, or the third state of a tri‑state buffer.
Remember that Hi‑Z draws low current, not zero. - Numeric questions ask for the number of select lines, multiplexers, or tri‑state buffers for a given bus.
Apply formulas: select lines = ;
multiplexers = bus width. - Memory capacity questions require converting to address and data lines. gives 14 address lines; word size 16 gives 16 data lines.
- Simultaneous transfer questions test whether you use the old values for all transfers at the same edge.
A swap results in exchanged values. - Match‑the‑list questions pair RTL statements with operations (transfer, increment, memory read/write).
Know the standard notations. - Statement‑type questions often compare multiplexer vs tri‑state buses, or highlight that only one buffer may be enabled to avoid contention.
- Assertion‑reason questions check whether you understand that a multiplexer inherently selects one input, so no tri‑state buffers are needed at its output.
- Traps include reversing the arrow direction, thinking Hi‑Z draws zero current, confusing address and data lines, and assuming simultaneous transfers use the new values.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub‑topic when you can:
- Interpret any RTL statement including control functions, simultaneous transfers, and memory operations.
- Design a common bus for a given number of registers and word size using multiplexers or tri‑state buffers.
- Calculate the number of select lines, multiplexers, or tri‑state buffers required for a bus.
- Determine the number of address and data lines for a given memory capacity.
- Explain the three states of a tri‑state buffer and why Hi‑Z draws low current.
- Trace the result of simultaneous transfers, including swapping register contents.
- Identify the type of microoperation (transfer, arithmetic, logic, shift) from RTL notation.
- Analyze timing constraints for a bus transfer and compute the minimum clock period.
- Distinguish between memory read and memory write microoperations and their RTL notations.
Attempt the sub‑topic test first, then the subject test.