CSC116 ยท 2075 ยท 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
A Shift Register is required for both conversions. Specifically: Serial to Parallel; Parallel to Serial; Data bits are shifted in one bit per clock pulse through the serial input (D-input of the first flip-flop).
Serial vs Parallel Transfer, and Serial-Parallel Conversion
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. Type of Register Needed
A Shift Register is required for both conversions. Specifically:
- Serial to Parallel: A Serial In Parallel Out (SIPO) shift register is used.
- Parallel to Serial: A Parallel In Serial Out (PISO) shift register is used.
3. Serial to Parallel Conversion (Using SIPO Register)
A SIPO (Serial In, Parallel Out) register accepts data one bit at a time through a single serial input line and makes all bits available simultaneously at the output.
Working:
- Data bits are shifted in one bit per clock pulse through the serial input (D-input of the first flip-flop).
- Each flip-flop passes its stored bit to the next on each clock pulse.
- After n clock pulses (for an n-bit register), all n bits are stored and available simultaneously at the parallel outputs Q1, Q2, ... Qn.
Example (4-bit SIPO):
Suppose serial input is: 1 0 1 1 (MSB first)
| Clock Pulse | Serial Input | Q3 | Q2 | Q1 | Q0 |
|---|---|---|---|---|---|
| Initial | - | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 |
| 2 | 0 | 0 | 1 | 0 | 0 |
| 3 | 1 | 1 | 0 | 1 | 0 |
| 4 | 1 | 1 | 1 | 0 | 1 |
After 4 clock pulses, parallel output = 1 0 1 1 (available all at once).
4. Parallel to Serial Conversion (Using PISO Register)
A PISO (Parallel In, Serial Out) register accepts all data bits simultaneously through parallel input lines and outputs them one bit at a time through a single serial output line.
Working:
- A parallel load control signal is applied, loading all n bits into the register simultaneously in one clock pulse.
- Then, on each subsequent clock pulse, bits are shifted out one by one through the serial output (from the last flip-flop).
- After n clock pulses, all bits have been transmitted serially.
Example (4-bit PISO):
Suppose parallel input loaded = 1 0 1 1
| Clock Pulse | Operation | Serial Output |
|---|---|---|
| 0 | Parallel Load: 1 0 1 1 | - |
| 1 | Shift right | 1 |
| 2 | Shift right | 1 |
| 3 | Shift right | 0 |
| 4 | Shift right | 1 |
Serial output sequence: 1, 1, 0, 1 (LSB first in this case).
Summary
| Conversion | Register Used | Clock Pulses Needed |
|---|---|---|
| Serial โ Parallel | SIPO | n pulses to fill, then read all at once |
| Parallel โ Serial | PISO | 1 pulse to load, n pulses to shift out |
From notes (ctx1): "In SIPO the data is stored serially but output is transferred in parallel. In PISO the data inputs are provided in parallel form and the output is transferred in serial sequence."
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.