Unit summary
- Parallel processing does several operations at the same time; Flynn classifies computers as SISD, SIMD, MISD and MIMD.
- Pipelining divides a task into segments; n tasks in a k-segment pipeline need k + n - 1 cycles.
- An arithmetic pipeline splits floating-point addition into compare, align, add and normalise.
- An instruction pipeline overlaps fetch, decode, operand fetch and execute; hazards slow it down.
- The RISC pipeline has three segments, and delayed load and delayed branch reduce stalls.
- The input-output interface matches the speed, data format and signals of a device to the processor.
- Strobe and handshaking are the methods of asynchronous transfer.
- Programmed, interrupt-initiated and DMA are the modes of transfer.
- Priority interrupts use polling, daisy chain or parallel priority; DMA moves data without the CPU handling each word.
- An IOP is a dedicated processor that runs command programs for input-output.
- The memory hierarchy gives a large, fast, economical memory by using registers, cache, main memory and auxiliary memory.
- Cache memory reduces average access time, and virtual memory gives a larger address space through paging.
Glossary
| Term | Meaning |
|---|---|
| Associative memory | Memory accessed by content rather than by address. |
| Cache memory | A small fast memory between the CPU and main memory. |
| Daisy chain | Serial connection of devices in order of priority. |
| Delayed branch | Placing a useful instruction after a branch to fill the delay. |
| DMA | Direct memory access, data transfer without the CPU handling each word. |
| Handshaking | Asynchronous transfer using control signals in both directions. |
| Hazard | A condition that stops the next pipeline step from executing on time. |
| Hit ratio | Hits divided by total memory accesses. |
| Input-output processor | A processor dedicated to input-output tasks. |
| Interface | Hardware between the bus and a peripheral device. |
| Locality of reference | The tendency of programs to reuse data and nearby data. |
| Memory hierarchy | Levels of memory of different speed, size and cost. |
| Memory-mapped I/O | Device registers placed in the memory address space. |
| Page fault | A reference to a page that is not in main memory. |
| Parallel processing | Performing several operations at the same time. |
| Peripheral device | An input, output or storage device connected to a computer. |
| Pipeline | Splitting a task into segments that work on different tasks at the same time. |
| Priority interrupt | Scheme that decides which interrupt is served first. |
| Speed-up | Ratio of the time without a pipeline to the time with it. |
| Strobe | A single control signal that times a data transfer. |
| Throughput | The amount of work done in a given time. |
| TLB | A small cache of recent page table entries. |
| Virtual memory | A technique that gives an address space larger than main memory. |
Question bank
Short Answer Questions (2 marks each)
- What is parallel processing?
- Name the four classes of Flynn's classification.
- What is a segment of a pipeline?
- State the formula for the time of n tasks in a k-segment pipeline.
- What is a data hazard?
- What is handshaking?
- What is DMA?
- What is locality of reference?
- Define hit ratio.
- What is a page fault?
Medium Answer Questions (5 marks each)
- Explain Flynn's classification of computers.
- Explain the four-segment floating-point addition pipeline with an example.
- Explain the hazards of an instruction pipeline and their remedies.
- Compare strobe control with handshaking.
- Explain the daisy chain priority interrupt.
- Explain cache memory and the mapping methods.
Long Answer Questions (15 marks each)
- Explain pipelining with a space-time diagram. Derive the speed-up of a k-segment pipeline and explain the instruction pipeline and the RISC pipeline.
- Explain the input-output interface, the asynchronous data transfer methods and the three modes of transfer.
- Describe priority interrupts, direct memory access and the input-output processor.
- Explain the memory hierarchy, associative memory, cache memory and virtual memory with paging and page replacement.
Sources
- Official BCA syllabus Computer Architecture, course code 25BCA401DS02, Unit IV
