SlideShare a Scribd company logo
Lecture 3
COAL
Dr. Adeel Asghar
Narrated Hasan: Knowledge is of two types. Firstly, knowledge
perceived by the heart, and that is useful knowledge; secondly, the
knowledge at on the tip of one’s tongue, and that is an argument from
Allah, the Exalted and Glorious, against the children of Adam.
Transmitted by Darimi.
Al-Tirmidhi – Hadith 270
Connecting
• All the units must be connected
• Different type of connection for different type of unit
• Memory
• Input/Output
• CPU
Memory Connection
• Receives and sends data
• Receives addresses (of locations)
• Receives control signals
• Read
• Write
Input/Output Connection(1)
• Similar to memory from Proccesser’s viewpoint
• Output
• Receive data from computer
• Send data to peripheral
• Input
• Receive data from peripheral
• Send data to computer
Input/Output Connection(2)
• Receive control signals from computer
• Send control signals to peripherals
• e.g. spin disk
• Receive addresses from computer
• e.g. port number to identify peripheral
• Send interrupt signals
CPU Connection
• Reads instruction and data
• Writes out data (after processing)
• Sends control signals to other units
• Receives (& acts on) interrupts
Week 3 intro to computer organization and assembly language
Buses
• There are a number of possible interconnection systems
• e.g. Unibus (DEC-PDP)
• e.g. Control/Address/Data bus
What is a Bus?
• A shared communication pathway connecting two or more devices
• Usually broadcast
• Often grouped
• A number of channels in one bus
• e.g. 32 bit data bus is 32 separate single bit channels
• Power lines may not be shown
Week 3 intro to computer organization and assembly language
Data Bus
• Carries data
• Remember that there is no difference between “data” and “instruction” at
this level
• Width is a key determinant of performance
• 8, 16, 32, 64 bit
Address bus
• Identify the source or destination of data
• e.g. CPU needs to read an instruction (data) from a given location in
memory
• Bus width determines maximum memory capacity of system
• e.g. 8080 has 16 bit address bus giving 64k address space
Control Bus
• Control and timing information
• Memory read/write signal
• I/O read/write signal
• Bus request/grant
• Interrupt request
• Clock signals
Bus Interconnection Scheme
Physical Realization of Bus Architecture
Single Bus Problems
• Lots of devices on one bus leads to:
• Propagation delays
• Long data paths mean that co-ordination of bus use can adversely affect performance
• If aggregate data transfer approaches bus capacity
• Most systems use multiple buses to overcome these problems
Traditional (ISA)
(with cache)
Bus Types
• Dedicated
• Separate data & address lines
• Multiplexed
• Shared lines
• Address valid or data valid control line
• Advantage - fewer lines
• Disadvantages
• More complex control
• Reduction performance
Bus Arbitration
• More than one module controlling the bus
• e.g. CPU and DMA controller
• Only one module may control bus at one time
• Arbitration may be centralised or distributed
Centralised or Distributed Arbitration
• Centralised
• Single hardware device controlling bus access
• Bus Controller
• Arbiter
• May be part of CPU or separate
• Distributed
• Each module may claim the bus
• Control logic on all modules
Error Correction
• Hard Failure
• Permanent defect
• Soft Error
• Random, non-destructive
• No permanent damage to memory
• Detected using Hamming error correcting code
Error Correcting Code Function
Hamming Error correction code
Example (single bit error) at M=8
• Determine code length
• Bit by bit comparison is done using XOR and the
result is called syndrome, indicating the error bit
• Length of syndrome bits = length of K bits and range
between 0-2^K -1
• Calculate check bits using
• The code just described is known as a single-error-
correcting (SEC)
Assuming M= 00111001
PCI Bus
• Peripheral Component Interconnection

More Related Content

Similar to Week 3 intro to computer organization and assembly language (20)

PPT
03 top level view of computer function and interconnection.ppt.enc
Anwal Mirza
 
PPT
03 buses
dilip kumar
 
PPT
03_Top Level View of Computer Function and Interconnection.ppt
Malkhaz Nikolashvili
 
PPT
top level view of computer function and interconnection
Sajid Marwat
 
PDF
PB3MAT_03Bahan-Bmjvjvchgchgckhguses P5-6.pdf
Join Sigalingging
 
PDF
For students wk4_computer_function_and_interconnection
limyamahgoub
 
PPT
Ch_3.pptInnovation technology Innovation technology pptppt
sultanahimed3
 
PPT
Chapter 7
talhashahid40
 
PPT
chapter 4 Device Management systemss.ppt
danielarega25
 
PPT
Cs intro-ca
aniketbijwe143
 
PPTX
Computer organization & architecture chapter-1
Shah Rukh Rayaz
 
PPT
Input output
Er Girdhari Lal Kumawat
 
PPTX
Types of buses of computer
SAGAR DODHIA
 
PPT
io-management_operatingsystembasicss.ppt
deviprasanna231
 
PPT
Chapter 6
Qiyo Jung
 
PPTX
Lecture 9.pptx
JavedIqbal549896
 
PPT
Input / Output organization of computer architecture
MangeshBhandare7
 
PPTX
Ec305.13 buses mgl
Д. Ганаа
 
PPTX
Ec305.13 buses mgl
Д. Ганаа
 
PPT
Report in SAD
jesseledm
 
03 top level view of computer function and interconnection.ppt.enc
Anwal Mirza
 
03 buses
dilip kumar
 
03_Top Level View of Computer Function and Interconnection.ppt
Malkhaz Nikolashvili
 
top level view of computer function and interconnection
Sajid Marwat
 
PB3MAT_03Bahan-Bmjvjvchgchgckhguses P5-6.pdf
Join Sigalingging
 
For students wk4_computer_function_and_interconnection
limyamahgoub
 
Ch_3.pptInnovation technology Innovation technology pptppt
sultanahimed3
 
Chapter 7
talhashahid40
 
chapter 4 Device Management systemss.ppt
danielarega25
 
Cs intro-ca
aniketbijwe143
 
Computer organization & architecture chapter-1
Shah Rukh Rayaz
 
Types of buses of computer
SAGAR DODHIA
 
io-management_operatingsystembasicss.ppt
deviprasanna231
 
Chapter 6
Qiyo Jung
 
Lecture 9.pptx
JavedIqbal549896
 
Input / Output organization of computer architecture
MangeshBhandare7
 
Ec305.13 buses mgl
Д. Ганаа
 
Ec305.13 buses mgl
Д. Ганаа
 
Report in SAD
jesseledm
 

More from AdeelAsghar36 (19)

PDF
Week 3 intro to computer organization and assembly language
AdeelAsghar36
 
PDF
Week 2 intro to computer organization and assembly language
AdeelAsghar36
 
PDF
Week 1 intro to computer organization and assembly language
AdeelAsghar36
 
PPTX
CC-5 - MOD.pptx Cloud Vertulization nand
AdeelAsghar36
 
PPTX
CC-11 Part b Software as a Service Cloud Architecxture
AdeelAsghar36
 
PPTX
CC-11 Part a Software as a Service Cloud Architecxture
AdeelAsghar36
 
PPTX
CC-9b AWS Infra as a service part 3 (AWS).pptx
AdeelAsghar36
 
PPTX
CC-8-9 Infrastructure as a service slide part b
AdeelAsghar36
 
PPTX
GNCC-9 cloud architecture (infrastructure as a Service).pptx
AdeelAsghar36
 
PPTX
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
AdeelAsghar36
 
PPTX
Lecture 10 - Ch No. 7 Input and Output.pptx
AdeelAsghar36
 
PPTX
Lecture 09 - Ch No. 05 Internal Memory.pptx
AdeelAsghar36
 
PPTX
Introduction to computer_Lecture 1 of IICT course
AdeelAsghar36
 
PPTX
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
PPTX
COAL LAB 2 data addressing modes and register
AdeelAsghar36
 
PDF
Soft Sand Minimalist Modern Thesis Defense Presentation.pdf
AdeelAsghar36
 
PPTX
Simplified AES from information security
AdeelAsghar36
 
PPTX
Hash Functions from Information Security
AdeelAsghar36
 
PDF
lect 03- MIT Addressing Modes.pdf
AdeelAsghar36
 
Week 3 intro to computer organization and assembly language
AdeelAsghar36
 
Week 2 intro to computer organization and assembly language
AdeelAsghar36
 
Week 1 intro to computer organization and assembly language
AdeelAsghar36
 
CC-5 - MOD.pptx Cloud Vertulization nand
AdeelAsghar36
 
CC-11 Part b Software as a Service Cloud Architecxture
AdeelAsghar36
 
CC-11 Part a Software as a Service Cloud Architecxture
AdeelAsghar36
 
CC-9b AWS Infra as a service part 3 (AWS).pptx
AdeelAsghar36
 
CC-8-9 Infrastructure as a service slide part b
AdeelAsghar36
 
GNCC-9 cloud architecture (infrastructure as a Service).pptx
AdeelAsghar36
 
Lecture 10b - Ch No. 04 (Part 02) (1).pptx
AdeelAsghar36
 
Lecture 10 - Ch No. 7 Input and Output.pptx
AdeelAsghar36
 
Lecture 09 - Ch No. 05 Internal Memory.pptx
AdeelAsghar36
 
Introduction to computer_Lecture 1 of IICT course
AdeelAsghar36
 
Chapter 3 part 2 Interconnections Computer organization
AdeelAsghar36
 
COAL LAB 2 data addressing modes and register
AdeelAsghar36
 
Soft Sand Minimalist Modern Thesis Defense Presentation.pdf
AdeelAsghar36
 
Simplified AES from information security
AdeelAsghar36
 
Hash Functions from Information Security
AdeelAsghar36
 
lect 03- MIT Addressing Modes.pdf
AdeelAsghar36
 
Ad

Recently uploaded (20)

PDF
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
PDF
The-Beginnings-of-Indian-Civilisation.pdf/6th class new ncert social/by k san...
Sandeep Swamy
 
PPTX
How to Manage Access Rights & User Types in Odoo 18
Celine George
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PPTX
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
PPTX
Latest Features in Odoo 18 - Odoo slides
Celine George
 
PPTX
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PPT
digestive system for Pharm d I year HAP
rekhapositivity
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PPSX
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
PDF
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
1, 2, 3… E MAIS UM CICLO CHEGA AO FIM!.pdf
Colégio Santa Teresinha
 
The-Beginnings-of-Indian-Civilisation.pdf/6th class new ncert social/by k san...
Sandeep Swamy
 
How to Manage Access Rights & User Types in Odoo 18
Celine George
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
Latest Features in Odoo 18 - Odoo slides
Celine George
 
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
digestive system for Pharm d I year HAP
rekhapositivity
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
Health Planning in india - Unit 03 - CHN 2 - GNM 3RD YEAR.ppsx
Priyanshu Anand
 
BÀI TẬP BỔ TRỢ THEO LESSON TIẾNG ANH - I-LEARN SMART WORLD 7 - CẢ NĂM - CÓ ĐÁ...
Nguyen Thanh Tu Collection
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
Ad

Week 3 intro to computer organization and assembly language

  • 2. Narrated Hasan: Knowledge is of two types. Firstly, knowledge perceived by the heart, and that is useful knowledge; secondly, the knowledge at on the tip of one’s tongue, and that is an argument from Allah, the Exalted and Glorious, against the children of Adam. Transmitted by Darimi. Al-Tirmidhi – Hadith 270
  • 3. Connecting • All the units must be connected • Different type of connection for different type of unit • Memory • Input/Output • CPU
  • 4. Memory Connection • Receives and sends data • Receives addresses (of locations) • Receives control signals • Read • Write
  • 5. Input/Output Connection(1) • Similar to memory from Proccesser’s viewpoint • Output • Receive data from computer • Send data to peripheral • Input • Receive data from peripheral • Send data to computer
  • 6. Input/Output Connection(2) • Receive control signals from computer • Send control signals to peripherals • e.g. spin disk • Receive addresses from computer • e.g. port number to identify peripheral • Send interrupt signals
  • 7. CPU Connection • Reads instruction and data • Writes out data (after processing) • Sends control signals to other units • Receives (& acts on) interrupts
  • 9. Buses • There are a number of possible interconnection systems • e.g. Unibus (DEC-PDP) • e.g. Control/Address/Data bus
  • 10. What is a Bus? • A shared communication pathway connecting two or more devices • Usually broadcast • Often grouped • A number of channels in one bus • e.g. 32 bit data bus is 32 separate single bit channels • Power lines may not be shown
  • 12. Data Bus • Carries data • Remember that there is no difference between “data” and “instruction” at this level • Width is a key determinant of performance • 8, 16, 32, 64 bit
  • 13. Address bus • Identify the source or destination of data • e.g. CPU needs to read an instruction (data) from a given location in memory • Bus width determines maximum memory capacity of system • e.g. 8080 has 16 bit address bus giving 64k address space
  • 14. Control Bus • Control and timing information • Memory read/write signal • I/O read/write signal • Bus request/grant • Interrupt request • Clock signals
  • 16. Physical Realization of Bus Architecture
  • 17. Single Bus Problems • Lots of devices on one bus leads to: • Propagation delays • Long data paths mean that co-ordination of bus use can adversely affect performance • If aggregate data transfer approaches bus capacity • Most systems use multiple buses to overcome these problems
  • 19. Bus Types • Dedicated • Separate data & address lines • Multiplexed • Shared lines • Address valid or data valid control line • Advantage - fewer lines • Disadvantages • More complex control • Reduction performance
  • 20. Bus Arbitration • More than one module controlling the bus • e.g. CPU and DMA controller • Only one module may control bus at one time • Arbitration may be centralised or distributed
  • 21. Centralised or Distributed Arbitration • Centralised • Single hardware device controlling bus access • Bus Controller • Arbiter • May be part of CPU or separate • Distributed • Each module may claim the bus • Control logic on all modules
  • 22. Error Correction • Hard Failure • Permanent defect • Soft Error • Random, non-destructive • No permanent damage to memory • Detected using Hamming error correcting code
  • 25. Example (single bit error) at M=8 • Determine code length • Bit by bit comparison is done using XOR and the result is called syndrome, indicating the error bit • Length of syndrome bits = length of K bits and range between 0-2^K -1 • Calculate check bits using • The code just described is known as a single-error- correcting (SEC)
  • 27. PCI Bus • Peripheral Component Interconnection