WINSEM2024-25_BCSE205L_TH_VL2024250501432_2024-12-18_Reference-Material-I
WINSEM2024-25_BCSE205L_TH_VL2024250501432_2024-12-18_Reference-Material-I
• (logical) The interface of an I/O device includes a control register that contains the
information that governs the mode of operation of the device.
• One bit in this register may be dedicated to interrupt control
• The I/O device is allowed to raise interrupt requests only when this bit is set to 1
• What is relation between Status register and Control register?
• The information needed to determine whether a device is requesting an interrupt is available
in its status register
• When the device raises an interrupt request, it sets to 1 a bit in its status register, which we
will call the IRQ bit
• The simplest way to identify the interrupting device is to have the interrupt-service routine
poll all I/O devices in the system
• The first device encountered with its IRQ bit set to 1 is the device that should be serviced
• An appropriate subroutine is then called to provide the requested service
How are the functional units connected?
•For a computer to achieve its operation, the functional units need to
communicate with each other.
•In order to communicate, they need to be connected.
Bus
2
Organization of cache and main
memory
Main Cache
memory memory Processor
Bus
Why is the access time of the cache memory lesser than the
access time of the main memory?
3
Computer Components: Top-Level View
Basic Operational Concepts
A Partial Program Execution Example
A Partial Program Execution Example
Interrupt
• Program
• Generated by some condition that occurs as a result of an
instruction execution such as arithmetic overflow, division by
zero, attempt to execute an illegal machine instruction, or
reference outside a user’s allowed memory space
• Timer
• Generated by a timer within the processor. This allows the
operating system to perform certain functions on a regular basis
• I/O
• Generated by an I/O controller, to signal normal completion of
an operation or to signal a variety of error conditions
• Hardware failure
• Generated by a failure such as power failure or memory parity
error
Bus Structures
• Translating programs from source form prepared by the user into object form consisting
of machine instructions
• Linking and running user-written application programs with existing standard library
routines, such as numerical computation packages
• System software is thus responsible for the coordination of all activities in a computing
system
Operating System