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

PPTX
CO lec.3.pptx ز
PPT
07_Input Output_Computer Architecture.ppt
PPT
07 input output
PPT
07 input output
PPT
03 top level view of computer function and interconnection
PPT
In out system
PDF
Ch12 io systems
PPT
03_top-level-view-of-computer-function-and-interconnection.ppt
CO lec.3.pptx ز
07_Input Output_Computer Architecture.ppt
07 input output
07 input output
03 top level view of computer function and interconnection
In out system
Ch12 io systems
03_top-level-view-of-computer-function-and-interconnection.ppt

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

PPT
03 top level view of computer function and interconnection.ppt.enc
PPT
03 buses
PPT
03_Top Level View of Computer Function and Interconnection.ppt
PPT
top level view of computer function and interconnection
PDF
PB3MAT_03Bahan-Bmjvjvchgchgckhguses P5-6.pdf
PDF
For students wk4_computer_function_and_interconnection
PPT
Ch_3.pptInnovation technology Innovation technology pptppt
PPT
Chapter 7
PPT
chapter 4 Device Management systemss.ppt
PPT
Cs intro-ca
PPTX
Computer organization & architecture chapter-1
PPT
PPTX
Types of buses of computer
PPT
io-management_operatingsystembasicss.ppt
PPT
Chapter 6
PPTX
Lecture 9.pptx
PPT
Input / Output organization of computer architecture
PPTX
Ec305.13 buses mgl
PPTX
Ec305.13 buses mgl
PPT
Report in SAD
03 top level view of computer function and interconnection.ppt.enc
03 buses
03_Top Level View of Computer Function and Interconnection.ppt
top level view of computer function and interconnection
PB3MAT_03Bahan-Bmjvjvchgchgckhguses P5-6.pdf
For students wk4_computer_function_and_interconnection
Ch_3.pptInnovation technology Innovation technology pptppt
Chapter 7
chapter 4 Device Management systemss.ppt
Cs intro-ca
Computer organization & architecture chapter-1
Types of buses of computer
io-management_operatingsystembasicss.ppt
Chapter 6
Lecture 9.pptx
Input / Output organization of computer architecture
Ec305.13 buses mgl
Ec305.13 buses mgl
Report in SAD
Ad

More from AdeelAsghar36 (19)

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

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Basic Mud Logging Guide for educational purpose
PDF
Pre independence Education in Inndia.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Classroom Observation Tools for Teachers
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Lesson notes of climatology university.
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Structure & Organelles in detailed.
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Computing-Curriculum for Schools in Ghana
STATICS OF THE RIGID BODIES Hibbelers.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
2.FourierTransform-ShortQuestionswithAnswers.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Basic Mud Logging Guide for educational purpose
Pre independence Education in Inndia.pdf
GDM (1) (1).pptx small presentation for students
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Classroom Observation Tools for Teachers
Final Presentation General Medicine 03-08-2024.pptx
Lesson notes of climatology university.
O7-L3 Supply Chain Operations - ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Supply Chain Operations Speaking Notes -ICLT Program
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

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