CSC116 ยท 2077 ยท 5 marks
What is the difference between a serial and parallel transfer? Explain how to convert serial data to parallel and parallel data to serial. What type of register is needed?
What is the difference between a serial and parallel transfer? Explain how to convert serial data to parallel and parallel data to serial. What type of register is needed? [5]
Quick answer
The Shift Register is the fundamental register used for both conversions. It supports the following modes (from ctx3): SISO - Serial In, Serial Out; SIPO - Serial In, Parallel Out; PISO - Parallel In, Serial Out.
Serial vs Parallel Transfer, Conversion Methods, and Required Register Types
1. Difference Between Serial and Parallel Transfer
| Feature | Serial Transfer | Parallel Transfer |
|---|---|---|
| Data movement | One bit per clock pulse, in sequence | All bits transferred simultaneously in a single clock pulse |
| Speed | Slower (n clock pulses for n bits) | Faster (only 1 clock pulse needed) |
| Wires/Lines required | Fewer (single data line) | More (one line per bit) |
| Hardware complexity | Simpler connections | More complex wiring |
From notes (ctx6): "In case of serial operation, digits are put in sequence, one digit for each clock pulse, whereas in case of parallel operation all digits get shifted simultaneously during a single clock pulse."
2. Types of Registers Needed
The Shift Register is the fundamental register used for both conversions. It supports the following modes (from ctx3):
- SISO - Serial In, Serial Out
- SIPO - Serial In, Parallel Out
- PISO - Parallel In, Serial Out
- PIPO - Parallel In, Parallel Out
3. Converting Serial Data to Parallel (Serial-In Parallel-Out: SIPO)
Register Needed: SIPO Shift Register
Working Principle:
- Data bits are fed into the register one bit at a time through the serial input line, synchronized with each clock pulse.
- After n clock pulses (for an n-bit register), all bits are stored in the flip-flops.
- All stored bits are then read out simultaneously from the parallel output lines.
Example (4-bit SIPO):
Suppose serial input data = 1011 (MSB first)
| Clock Pulse | Serial Input | Q3 | Q2 | Q1 | Q0 |
|---|---|---|---|---|---|
| Initial | - | 0 | 0 | 0 | 0 |
| CP 1 | 1 | 1 | 0 | 0 | 0 |
| CP 2 | 0 | 0 | 1 | 0 | 0 |
| CP 3 | 1 | 1 | 0 | 1 | 0 |
| CP 4 | 1 | 1 | 1 | 0 | 1 |
After 4 clock pulses, parallel outputs Q3 Q2 Q1 Q0 = 1011 are available simultaneously.
From notes (ctx1): "In SIPO the data is stored serially but output is transferred in parallel."
4. Converting Parallel Data to Serial (Parallel-In Serial-Out: PISO)
Register Needed: PISO Shift Register
Working Principle:
- All n data bits are loaded simultaneously into the register through parallel input lines using a parallel load control signal (one clock pulse).
- The bits are then shifted out one at a time through the serial output line, one bit per clock pulse.
- After n clock pulses, all bits have been transmitted serially.
Example (4-bit PISO):
Suppose parallel input data = 1101
| Clock Pulse | Operation | Serial Output |
|---|---|---|
| CP 1 | Parallel Load: 1101 loaded | - |
| CP 2 | Shift right | 1 (MSB out) |
| CP 3 | Shift right | 1 |
| CP 4 | Shift right | 0 |
| CP 5 | Shift right | 1 (LSB out) |
Serial output sequence = 1 1 0 1
From notes (ctx1): "In PISO the data inputs are provided in parallel form and the output is transferred in serial sequence."
5. Summary
| Conversion | Register Type | Input Mode | Output Mode |
|---|---|---|---|
| Serial to Parallel | SIPO | Serial (1 bit/clock) | Parallel (all bits at once) |
| Parallel to Serial | PISO | Parallel (all bits at once) | Serial (1 bit/clock) |
The shift register with appropriate control signals (parallel load, shift right/left, clock pulse) as described in ctx2 is the essential hardware component for both conversions.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.