Lec-3-ComputerOrganization
Lec-3-ComputerOrganization
ORGANIZATION
Major Topics for Today
1. Buses
2. I/O Controller
3. Registers
4. Caches
5. Fetch-Decode-Execute Cycle
6. Pipelining
COMPUTER ORGANIZATION
Keyboard
Mouse
INSIDE THE BOX
Motherboard (RAM)
CPU
(Central Processing
Unit)
HDD
(Hard Disk Drive)
MOTHER-BOARD
Parts of a Motherboard
1. A CPU socket
2. A power connector
3. Slots for RAM
4. A second chip that controls the input and output (I/O) functions
5. Slots for one or more hard drives
6. A read-only memory (ROM) chip
7. A slot for a video or graphics card
CENTRAL PROCESSING UNIT
• It is the brain of a computer system.
• Carries out instructions from the program.
• Performs the basic arithmetical, logical, and input/output
operations.
• !!Remember that this is all about speed.
• Components
1. ALU
2. CU
3. Cache
ARITHMETIC LOGIC UNIT- ALU
• Put simply, the I/O controller helps in the connection and control of
various peripheral devices, which are input and output devices.
Bus:
• Inside computers, there are many internal components. For
these components to communicate with each other they make
use of wires that are known as a ‘bus’ .
• A bus is a common pathway through which information flows
from one computer component to another. This pathway is used
for communication purpose and it is established between two or
more computer components.
• Types of Bus:
• Data bus is used for transfer of data between subunits
• Address bus is used to transmit location information between
units such as where the data is going or coming from.
• Control bus control working of other components. It is used to
provide information as to how data is being sent.
REGISTERS
• Fetch :
• Get an instruction from main memory
• Decode:
• Translate it into computer command
• Execute:
• Actual processing of command
• Mem:
• Write result to memory.
FETCH DECODE EXECUTE CYCLE
A FIVE-STEP CYCLE
• A five-step cycle:
1.Instruction Fetch (IF)
2.Instruction Decode (ID)
3.Data Fetch (DF) / Operand
Fetch (OF)
4.Instruction Execution (EX)
5.Result Return (RR) / Store (ST)
ADD 800, 428, 884
INSTRUCTION FETCH (IF)
• For this ADD instruction, the addition circuit adds the two source
operands together to produce their sum
• Sum is held in the ALU circuitry
• This is the actual computation
EX
RETURN RESULT (RR)
• Addresses
– Every memory location has an address, whole numbers
starting at 0
• Values
– Memory locations record or store values
• Finite capacity
– Memory locations have a finite capacity (limited size),
– Data may not “fit” in the memory location
BYTE-SIZE MEMORY LOCATION
• The data/instructions stored in RAM are retrieved faster than hard disks.
That’s why the data/instructions required by CPU is kept in RAM.
• There is another type of memory which is much faster than RAM. It’s
called cache. Some part of data/instructions currently required by CPU is
copied into cache from RAM.
• Since the computer does one instruction per cycle in principle, the
speed of a computer depends on the number of Fetch/Execute
Cycles it completes per second.
THE COMPUTER CLOCK
• https://www.futurelearn.com/courses/how-computers-work/0/steps/
49284