Unit2 PDF
Unit2 PDF
UNIT 2
Overview
3
The Computer System Hardware
• Introduction (Computer hardware definition. Different hardware components. )
• Central Processing Unit (CPU) CPU and its functions. Different
components of CPU: arithmetic logic unit, registers, control unit
• Memory Unit Memory and its functions. Cache memo
• Instruction Format What is instruction format? Concept of operation ,
primary memory, and secondary memory. code and operand code.
• Instruction Set Definition and example of instruction set.
• Instruction Cycle Fetching, decoding, executing, and storing steps of instruction
cycle.
• Microprocessor What is microprocessor? RISC and CISC architecture. Concept of
pipeline and parallel processing.
• Interconnecting the Units of a Computer Concept and types of bus. Concept of
external ports.
• Inside a Computer Cabinet Concept of different components inside a computer
cabinet like motherboard, ports and interfaces, expansion slots, memory chips,
processor, hard disk etc.
Computer hardware definition
• Computer Hardware is the physical part of a
computer, as distinguished from the computer
software that executes or runs on the hardware.
• The hardware of a computer is infrequently
changed, while software and data are modified
frequently.
• The term soft refers to readily created, modified,
or erased.
• These are unlike the physical components within
the computer which are hard.
Different hardware components.
• Input hardware
• Process hardware
• Output hardware
• Memory hardware
Input hardware
Process hardware (CPU)
Execute
Instruction
The Instruction Cycle - Exceptions
Start
Possible Decode
Exception? Instruction
Possible Fetch
Exception? Operand
Possible Execute
Exception? Instruction
The Instruction Cycle - Exceptions
Start
Fetch
Operand
Execute
Instruction
The Instruction Cycle - Exceptions
Start
Fetch
Operand
Execute
Instruction
The Instruction Cycle - Exceptions
Start
Execute
Instruction
Instruction Architecture - Software Design
• Each computer CPU must be designed to accommodate and understand instructions according to specific
formats.
• Examples:
– All instructions must have an operation code specified
– NOP no operation
– TSTST test and set
OpCode
Instruction Architecture - Software Design
• Each computer CPU must be designed to accommodate and understand instructions according to specific
formats.
• Examples:
– Most instructions will require one, or more, operands
– These may be (immediate) data to be used directly
– or, addresses of memory locations where data will be found (including the address of yet another location)
System Bus
CPU RAM
System Bus
ALU Regs
Address Bus
Control Bus
Data Bus
PC
CU
IR
Internal
PSW
CPU Bus
Microprocessor
• What is microprocessor? RISC and CISC
architecture. Concept of pipeline and parallel
processing.
Instruction Architecture - Hardware
Circuits
• Everything that the computer can do is the result of designing and
building devices to carry out each function – no magic!
• At the most elementary level the devices are called logic gates.
– There are many possible gate types, each perform a specific Boolean
operation (e.g. AND, OR, NOT, NAND, NOR, XOR, XNOR)
• ALL circuits, hence all functions, are defined in terms of the basic
gates.