Introduction to Information Technology · Unit 2 · 3 hrs
The Computer System Hardware
Exam-focused notes for The Computer System Hardware (Introduction to Information Technology, CSC114): what the TU syllabus asks and how it has actually been tested, with 11 solved past questions from this unit.
The Computer System Hardware in short
This chapter looks inside the computer at the hardware that carries out processing: the CPU and its components, the concept of instructions, the bus system that ties everything together, and what sits inside the computer cabinet.
What this unit covers
- Introduction
- Central Processing Unit
- Memory Unit
- Instruction Format
- Instruction Set
- Instruction Cycle
- Microprocessor
- Interconnecting the Units of a Computer
- Inside a Computer Cabinet
Instruction Format
2081 · 5 marks
Explain instruction format with example. What is instruction set? [5]
Central Processing Unit
2078 · 10 marks
Differentiate analog computer with digital computer. What is CPU and how it works? What does an instruction cycle in CPU consist of?[10]
Show solved answerHide answer
Differentiate Analog Computer with Digital Computer. What is CPU and How it Works? What Does an Instruction Cycle in CPU Consist of?
Part 1: Difference Between Analog Computer and Digital Computer (3 marks)
Analog Computer: A computer that uses continuously changeable aspects of physical phenomena such as electrical, mechanical, etc. Examples: Planimeter, Nomogram.
Digital Computer: A computer that is used to process information with quantities using digits, usually the binary number system. Examples: IBM PC, Apple Macintosh.
| Basis | Analog Computer | Digital Computer |
|---|---|---|
| Definition | Works with continuous physical quantities (voltage, current, etc.) | Works with discrete digits, usually binary (0s and 1s) |
| Data Representation | Represents data as continuous signals | Represents data as discrete digits |
| Accuracy | Less accurate | Highly accurate |
| Speed | Slower for general-purpose tasks | Very fast in processing |
| Output | Output is in the form of graphs or dials | Output is in the form of numbers, text, images |
| Memory | Does not have significant memory | Has large memory capacity |
| Examples | Planimeter, Nomogram, Speedometer | IBM PC, Apple Macintosh |
| Usage | Used in scientific and engineering measurements | Used for general-purpose computing |
| Cost | Generally less expensive | Can be more expensive |
| Programming | Not easily programmable | Easily programmable |
Part 2: What is CPU and How it Works? (4 marks)
Definition of CPU
A Central Processing Unit (CPU) is the primary component of a computer that carries out the instructions of a computer program. As noted in the reference:
Microprocessor: An integrated circuit that contains all the functions of a central processing unit of a computer is called a microprocessor.
The CPU is often called the "brain of the computer" because it controls all operations of the computer system.
Components of CPU
The CPU consists of three main components:
1. Arithmetic and Logic Unit (ALU)
- Performs all arithmetic operations (addition, subtraction, multiplication, division)
- Performs all logical operations (AND, OR, NOT, comparison)
2. Control Unit (CU)
- Directs and coordinates all operations of the CPU
- Fetches instructions from memory, decodes them, and controls execution
- Acts as the manager of the CPU
3. Registers
- Small, high-speed temporary storage locations inside the CPU
- Examples: Program Counter (PC), Instruction Register (IR), Accumulator (ACC), Memory Address Register (MAR), Memory Buffer Register (MBR)
How CPU Works
The CPU works by following a continuous cycle of operations:
- Fetch: The Control Unit fetches the next instruction from main memory using the address stored in the Program Counter (PC).
- Decode: The fetched instruction is decoded by the Control Unit to determine what operation needs to be performed. As noted in the reference, the Opcode tells the processor what to do with the data.
- Execute: The ALU or other components carry out the instruction (arithmetic, logical, or data transfer operation).
- Store/Write Back: The result is stored back into a register or memory location.
This process repeats continuously as long as the computer is running.
Instruction Format (Supporting Detail)
An instruction format is a binary format which specifies a computer instruction. It specifies:
- Opcode: Tells the processor what operation to perform
- Operand: Stores the data to be operated or manipulated
- Addressing Mode: Specifies how the operand is accessed
Part 3: Instruction Cycle in CPU (3 marks)
The Instruction Cycle (also called the Fetch-Decode-Execute Cycle) is the complete process the CPU follows to process a single instruction. It consists of the following steps:
Steps of the Instruction Cycle
+----------+ +----------+ +-----------+ +----------+
| FETCH | --> | DECODE | --> | EXECUTE | --> | STORE |
+----------+ +----------+ +-----------+ +----------+
^ |
|____________________________________________________|
(Cycle repeats)
Step 1: Fetch
- The CPU fetches the instruction from main memory
- The Program Counter (PC) holds the address of the next instruction
- The instruction is loaded into the Instruction Register (IR)
- The PC is incremented to point to the next instruction
Step 2: Decode
- The Control Unit decodes the instruction stored in the IR
- It identifies the Opcode (what operation to do) and the Operand (what data to use)
- In RISC architecture, decoding is simple (CPI range: ~1.5)
- In CISC architecture, decoding is complex (CPI range: 2 to 15)
Step 3: Execute
- The decoded instruction is executed by the ALU or other units
- Arithmetic or logical operations are performed on the operands
- RISC does not require external memory for calculations; CISC does
Step 4: Store (Write Back)
- The result of the execution is written back to a register or memory location
- The cycle then repeats for the next instruction
Summary Table of Instruction Cycle
| Phase | Action | Unit Involved |
|---|---|---|
| Fetch | Get instruction from memory | Control Unit, PC, IR |
| Decode | Interpret the opcode and operand | Control Unit |
| Execute | Perform the operation | ALU |
| Store | Save the result | Registers / Memory |
Key Note: RISC vs CISC in Instruction Cycle
| Feature | RISC | CISC |
|---|---|---|
| CPI | ~1.5 | 2 to 15 |
| Decoding | Simple |
2077 · 5 marks
Write short notes on: a). Central Processing Unit b). IOT [5]
2075 · 5 marks
What is the role of Control Unit in CPU? How analog computer differs from digital? [5]
Show solved answerHide answer
Role of Control Unit in CPU and Analog vs Digital Computer
Part 1: Role of Control Unit (CU) in CPU
The Control Unit (CU) is one of the two main components of the CPU (the other being the ALU). The CPU is often called the brain of the computer, and the Control Unit plays a central role in its operation.
Key Roles of the Control Unit:
| Role | Description |
|---|---|
| Organizing Processing | CU is responsible for organizing the processing of data and instructions |
| Control and Coordination | CU controls and co-ordinates the activity of all other units of the computer |
| Directing Data Flow | It directs how data and instructions move between memory, ALU, and registers |
| Instruction Management | It fetches, decodes, and manages the execution of instructions |
| Supervising I/O | It oversees the input and output operations of the computer system |
In short, the CU organizes the processing of data and instructions, and controls and co-ordinates the activity of the other units of the computer.
The CU works closely with the ALU (which performs arithmetic and logic operations) and the registers (temporary storage areas), ensuring that the right data reaches the right unit at the right time.
Part 2: How Analog Computer Differs from Digital Computer
| Basis | Analog Computer | Digital Computer |
|---|---|---|
| Definition | Uses continuously changeable aspects of physical phenomena such as electrical, mechanical, etc. | Processes information with quantities using digits, usually the binary number system |
| Data Representation | Represents data as continuous signals (voltage, current, etc.) | Represents data as discrete binary digits (0s and 1s) |
| Nature of Input | Continuous (non-discrete) | Discrete (digits) |
| Accuracy | Less accurate due to continuous variation | More accurate and precise |
| Speed | Faster for specific physical measurements | Generally faster for general-purpose computation |
| Cost | Generally less complex but limited use | More versatile and widely used |
| Examples | Planimeter, Nomogram | IBM PC, Apple Macintosh |
An analog computer uses continuously changeable aspects of physical phenomena such as electrical or mechanical signals, whereas a digital computer processes information as quantities represented using digits, usually the binary number system.
Summary
The Control Unit acts as the manager of the CPU, directing and coordinating all operations. Analog computers work on continuous physical signals, while digital computers work on discrete binary digits, making digital computers more accurate and widely applicable in modern computing.
0 · 5 marks
What is the role of Control Unit in CPU? How analog computer differs from digital? [5]
Show solved answerHide answer
Role of Control Unit in CPU and Analog vs Digital Computer
Part 1: Role of Control Unit (CU) in CPU
The Control Unit (CU) is one of the two main components of the CPU (the other being the ALU). It plays a central coordinating role in the functioning of the entire computer system.
Key Roles of the Control Unit:
| Role | Description |
|---|---|
| Organizing Processing | CU is responsible for organizing the processing of data and instructions inside the CPU |
| Control and Coordination | CU controls and co-ordinates the activity of all the other units of the computer (input, output, memory, ALU) |
| Instruction Management | It fetches instructions from memory, decodes them, and directs the ALU and other components to execute them |
| Data Flow Management | It manages the flow of data between the CPU registers, ALU, and memory during processing |
| Register Utilization | It works alongside the CPU registers, which are temporary storage areas used to hold data and instructions during processing |
In summary, the Control Unit acts as the manager or director of the CPU, ensuring that every component performs its task in the correct sequence and at the correct time.
Part 2: How Analog Computer Differs from Digital Computer
The key differences are as follows:
| Basis | Analog Computer | Digital Computer |
|---|---|---|
| Definition | Uses continuously changeable aspects of physical phenomena such as electrical, mechanical, etc. | Processes information with quantities using digits, usually the binary number system |
| Data Representation | Represents data as continuous signals (voltage, current, mechanical movement) | Represents data as discrete binary digits (0s and 1s) |
| Nature of Input | Accepts continuous data (e.g., temperature, pressure, speed) | Accepts discrete data in the form of numbers and characters |
| Accuracy | Less accurate due to continuous signal variations | Highly accurate due to precise binary representation |
| Speed | Faster for specific continuous measurements | Generally faster for general-purpose computation |
| Versatility | Less versatile; designed for specific tasks | Highly versatile; used for a wide range of applications |
| Examples | Planimeter, Nomogram | IBM PC, Apple Macintosh |
Summary
The Control Unit is the backbone of CPU operation, directing and coordinating all activities within the computer. Analog computers work on continuous physical phenomena, while digital computers work on discrete binary digits, making digital computers far more versatile and accurate for modern computing needs.
Instruction Cycle
2080 · 5 marks
Write short notes on:a.) Instruction Cycle b.) BigData [5]
2079 · 5 marks
Define instruction set. How a CPU instruction cycle works? [5]
Microprocessor
2075 · 5 marks
How RISC architecture differs from CISC architecture? [5]
Interconnecting the Units of a Computer
2074 · 5 marks
Why bus is used in computer? How control bus differs from data bus? [5]
Instruction Set
0 · 5 marks
How RISC architecture differs from CISC architecture? [5]
Make Unit 2 stick
Practice CSC114 with flashcards & quizzes