In computer architecture, the datapath is a core part of the CPU that executes instructions by processing and transferring data. It includes components like registers, ALUs, multiplexers, and buses, all coordinated by control signals from the control unit.
Performs arithmetic, logic, data storage, and transfer operations.
Operates under the control unit, which directs data flow through control signals.
Types of Datapath Designs
1. Single-Cycle Datapath
Each instruction is completed in a single clock cycle, performing all steps in one go. It's simple but inefficient due to the long cycle time.
All instruction stages (fetch to write-back) occur in one long clock cycle.
Executes one instruction at a time with no overlapping.
Simple design with no extra registers or complex control.
Instruction execution is divided into fixed stages, allowing multiple instructions to be processed simultaneously. This improves throughput but introduces complexity.
Multiple instructions are executed in parallel, each at a different stage.
Uses short clock cycles with extra registers between pipeline stages.
High performance but needs hazard detection and handling logic.