- Asked 4/19
- 2070 Bhadra · 5 marks
- 2075 Bhadra · 4 marks
- 2072 Magh · 5 marks
- 2078 Baisakh · 2 marks
GPP operation: datapath and controller
Short answer
A GPP has a controller (PC, IR, control logic) that fetches, decodes, and sequences instructions, and a datapath (register file, ALU, buses) that performs computations. The controller decodes opcodes to generate control signals, moving data through the ALU and storing results in a repeating fetch-decode-execute cycle.
Draw the basic architecture of a general-purpose processor and describe its operation in terms of datapath and controller.
A general-purpose processor (GPP) is a programmable processor suited to many applications. It has a controller (control unit) that sequences operations and a datapath that performs them, plus memory that holds the program and data.
Basic architecture
+----------------- Processor -----------------+
| Controller (control unit) |
| +----+ +----+ +-----------------+ |
| | PC | | IR | | Control logic / | |
| +----+ +----+ | state register | |
| +--------+--------+ |
| control signals | status |
| Datapath v |
| +-----------+ +-------------+ |
| | Register |-->| ALU |--> flags |
| | file |<--| | |
| +-----------+ +-------------+ |
+-------+-------------------+-----------------+
| address/data bus |
+----+--------+ +----+---------+
| Program mem | | Data memory |
+-------------+ +--------------+
Datapath
Consists of registers (accumulator, general registers, status), the ALU (arithmetic and logic operations) and internal buses/multiplexers. Data from registers or memory flows through the ALU and results are stored back. It performs the actual computation, in response to control signals.
Controller
Contains the program counter (PC) (address of next instruction), instruction register (IR) (current instruction), and control logic/state register that decodes the opcode and generates control signals (register selects, ALU function, read/write, etc.). Control logic may be hardwired or microprogrammed.
Operation (instruction cycle)
- Fetch: IR <- Memory[PC]; PC <- PC + 1.
- Decode: the control logic interprets the opcode and selects the registers/ALU operation.
- Execute (and fetch operands): the datapath operates, e.g. R1 <- R1 + R2.
- Store result: write result to a register or memory. The cycle repeats for the next instruction.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- ASIP versus general purpose processor · Embedded System, chapter 2
- Single-purpose processor for power · Embedded System, chapter 2 · asked 2×
- ASIP vs GPP and processor selection · Embedded System, chapter 2
- Fibonacci single-purpose processor · Embedded System, chapter 2 · asked 2×
- Factorial single-purpose processor · Embedded System, chapter 2
- Dual-purpose processor: median and variance · Embedded System, chapter 2
- SPC and dual processor architecture · Telecommunications, chapter 4
- Basic terms of limits, fits and tolerances · Metrology, chapter 9
- Basic ISDN services and architecture · Telecommunications, chapter 8
- SUN NFS architecture and operation · Distributed System, chapter 2 · asked 3×