SlideShare a Scribd company logo
2
Most read
11
Most read
14
Most read
University
of
Gujrat
1
University of Gujrat
Department of Computer Science
Course Code : CS-252
Computer Organization and Assembly Language
Lecture # 2
Basic Computer Organization
Basic Computer Organization
• A computer system comprises of
Processor, Memory and I/O devices.
• I/O is used for interfacing with the
external world, while memory is the
processor’s internal world.
• Processor is the core component
and is responsible for performing
operations.
University
of
Gujrat
2
I/O
Memory
I/O
Processor
University
of
Gujrat
3
Interconnection between
Components
University
of
Gujrat
4
Interconnection between
Components
• The processor performs an operation on data,
which resides in memory.
• A mechanism is required for the processor to read
data from the memory.
Memory Data
Processor
Operation
Memory Data
University
of
Gujrat
5
Address, Data and Control Buses
• There must be a mechanism to inform memory that
we want to do the read operation
 Control Bus
• There must be a mechanism to inform memory that
we want to read precisely which element
 Address Bus
• There must be a mechanism to transfer that data
element from memory to processor
 Data Bus
University
of
Gujrat
6
Bus
• The process may be able to communicate with all the devices. The
devices are connected together by communication channel called a
BUS.
• A bus is composed of a set of communication lines or wires.
• It is used to move large amount of bits in form of electrical pulses
from a specified source to a specified destination.
University
of
Gujrat
7
Control, Address and Data
Buses
Control Bus
Data Bus
Address Bus
Read
2
135Fh
 The group of lines that carry control information from the control unit to the
other units is the Control Bus
 The group of lines that carries the address information is the Address Bus
 The group of wires or lines that moves data between the different
components is the Data Bus
For e.g.
If the processor wants to read data from the address ‘135Fh’ of memory
Memory
Processor
University
of
Gujrat
8
Control, Address and Data
Buses
Memory
Processor
Address Bus
Data Bus
Control Bus
University
of
Gujrat
9
What do buses look like?
• Parallel lines on circuit
boards
 Ribbon cables
 Strip connectors on
mother boards
e.g. PCI
 Set of wires
Fig. Parallel
lines
Fig. connectors
Fig. Ribbon Cables
Fig. Set of wires
University
of
Gujrat
10
Basic Memory Organization
Information processed by a computer is stored in its memory.
Memory Byte
• Memory circuit element can store one bit of data.
• Memory circuits are organized into groups that
can store 8 bits of data called Memory Byte.
• Each memory byte is identified a number that is
called its Address.
• Contents of Memory Byte are always 8 bits but
the number of bits in an address depends upon
the processor.
For e.g.
Intel 8086 microprocessor assigns a 20-bit address
University of Gujrat
11
2
1
0
3
4
00011000
01011011
11001001
01000010
01011011
Contents
Address
University
of
Gujrat
12
Memory Word
• Memory Word is any pair of
successive memory bytes treated
as a single unit
• The lower address is used as the
address of the memory word.
3
2 00011000
01000010
Memory Word
Address
13
University
of
Gujrat
Bit Position in a Byte and a Word
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
0
7 6 5 4 3 2 1 0
High Byte Low Byte
Byte
bit position
Word
bit position
University
of
Gujrat
14
Memory Operations
• The processor can perform following two operation on
memory:
1. Read ( fetch the contents of a location )
2. Write ( store data at a location )
University
of
Gujrat
15
RAM and ROM
There are two kinds of memory circuits:
1. Random Access Memory (RAM)
2. Read Only Memory (ROM)
RAM
• RAM locations can be Read and
Written
• Volatile
• Programs instructions and data are
normally loaded into RAM
ROM
• ROM location can only be Read
• Non-Volatile
• Used by manufactures to store
system programs. ROM based
programs are known as
Firmware
University
of
Gujrat
16
CPU Organization
University
of
Gujrat
17
CPU
• Brain of the computer
• Controls the computer by executing programs stored in
memory
• Each instruction executed by it, is a bit string
• Instructions performed by a CPU is called the Instruction
Set. Instruction set for each CPU is unique.
There are two functional units:
1.Execution Unit (EU)
2.Bus Interface Unit (BIU)
University
of
Gujrat
18
Intel 8086 Micro Processor Organization
University
of
Gujrat
19
Execution Unit (EU)
• Executes instructions
• Contains circuits called Arithmetic and Logic Unit
• Contains 8 registers for storing data
AX, BX, CX, DX, SI, DI, BP and SP
• Contains temporary registers for holding operands for the
ALU
• FLAG registers whose individual bits reflect the result of a
computation
University
of
Gujrat
20
Bus Interface Unit (BIU)
• Facilitates communication between the EU and the
memory or I/O circuits
• Contains registers CS, DS, ES, SS and IP for holding
addresses of memory locations
• EU and BIU connected by an Internal Bus
• While EU is executing an instruction. BIU fetches next
instruction and places it in the instruction queue, this is
called instruction prefetch
University
of
Gujrat
21
Instruction Execution Cycle
(Fetch-Execute Cycle)
University
of
Gujrat
22
Fetch-Execute Cycle
Fetch
Execute
University
of
Gujrat
23
THE END
-------------------------------------------------------------------------------------------------------------------------

More Related Content

PPTX
COAL-2Assembly language programming.pptx
PDF
1. Microcomputer Systems AIUB COA COURSE SLIDES
PDF
Assembly Language and Structures of Microcomputer | Chap-1
PPTX
IS 139 Lecture 5
PPTX
Lecture 2 Assembly bytes zakir Language.pptx
PPTX
INSTRUCTION TYPES
PPT
Chapter 1
PPTX
COMPUTER_ORGANIZATION (1).pptx
COAL-2Assembly language programming.pptx
1. Microcomputer Systems AIUB COA COURSE SLIDES
Assembly Language and Structures of Microcomputer | Chap-1
IS 139 Lecture 5
Lecture 2 Assembly bytes zakir Language.pptx
INSTRUCTION TYPES
Chapter 1
COMPUTER_ORGANIZATION (1).pptx

Similar to Computer Organization and assembly language (20)

PPTX
COA lecture 04.pptx.....................
PPT
Hcs Topic 2 Computer Structure V2
PPT
Hcs Topic 2 Computer Structure V2
PPT
Hcs Topic 2 Computer Structure V2
PPT
computer organization and Architecture Introduction
PPT
computer-organization2-292883412.ppt COA
PPT
computer-organization2-292883412 (1).ppt
PPT
computer-organization2-2928834122222.ppt
PPT
Topic 1 Data Representation
PPTX
UNIT-5 computer architecture and instruction set .pptx
PPTX
Register & Memory
PPTX
COMPUTER ORGANIZATION for beginner and a
PPT
Computer Structure Slides
PDF
DLD1.pdf
PPTX
Microprocessor
PPTX
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
PPTX
3- Computer Architecture.pptx information technology
PPT
COMPUTER_ORGANIZATION.ppt dokg[osdpfkogjslk'gsei
PPT
COMPUTER_ORGANIZATION basic presentation.ppt
PPT
Arsitektur komputer TRK pertemuan pertama
COA lecture 04.pptx.....................
Hcs Topic 2 Computer Structure V2
Hcs Topic 2 Computer Structure V2
Hcs Topic 2 Computer Structure V2
computer organization and Architecture Introduction
computer-organization2-292883412.ppt COA
computer-organization2-292883412 (1).ppt
computer-organization2-2928834122222.ppt
Topic 1 Data Representation
UNIT-5 computer architecture and instruction set .pptx
Register & Memory
COMPUTER ORGANIZATION for beginner and a
Computer Structure Slides
DLD1.pdf
Microprocessor
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
3- Computer Architecture.pptx information technology
COMPUTER_ORGANIZATION.ppt dokg[osdpfkogjslk'gsei
COMPUTER_ORGANIZATION basic presentation.ppt
Arsitektur komputer TRK pertemuan pertama
Ad

More from babanazar7204 (8)

PPTX
Breadth First Search.pptxBreadth First Search.pptxBreadth First Search.pptx
PPT
Graphs.pptGraphs.pptGraphs.pptGraphs.pptGraphs.pptGraphs.ppt
PPTX
Regression-Analysis-Introduction (1).pptx
PPTX
Loop Updated.pptxLoop Updated.pptxLoop Updated.pptxLoop Updated.pptxLoop Upda...
PPTX
COAL loops completeCOAL loops completeCOAL loops completeCOAL loops completeC...
PPTX
Computer Organization and assembly language Computer Organization and assembl...
PPTX
Computer Organization and assembly language
PDF
Networking models in tersm of OSI modal complete working in 1 ppt
Breadth First Search.pptxBreadth First Search.pptxBreadth First Search.pptx
Graphs.pptGraphs.pptGraphs.pptGraphs.pptGraphs.pptGraphs.ppt
Regression-Analysis-Introduction (1).pptx
Loop Updated.pptxLoop Updated.pptxLoop Updated.pptxLoop Updated.pptxLoop Upda...
COAL loops completeCOAL loops completeCOAL loops completeCOAL loops completeC...
Computer Organization and assembly language Computer Organization and assembl...
Computer Organization and assembly language
Networking models in tersm of OSI modal complete working in 1 ppt
Ad

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
Complications of Minimal Access Surgery at WLH
PDF
Classroom Observation Tools for Teachers
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
PPH.pptx obstetrics and gynecology in nursing
TR - Agricultural Crops Production NC III.pdf
Anesthesia in Laparoscopic Surgery in India
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial disease of the cardiovascular and lymphatic systems
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pre independence Education in Inndia.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Computing-Curriculum for Schools in Ghana
Complications of Minimal Access Surgery at WLH
Classroom Observation Tools for Teachers
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
102 student loan defaulters named and shamed – Is someone you know on the list?
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Final Presentation General Medicine 03-08-2024.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
RMMM.pdf make it easy to upload and study
PPH.pptx obstetrics and gynecology in nursing

Computer Organization and assembly language