System Resources.

Slides:



Advertisements
Similar presentations
Expansion Bus Chapter 5.
Advertisements

Bus structures Unit objectives:
Course ILT Bus structures Unit objectives Describe the primary types of buses Define interrupt, IRQ, I/O address, DMA, and base memory address Describe.
Basic PC Maintenance, Upgrade and Repair
HARDWARE Rashedul Hasan..
Chapter 2 How Hardware and Software Work Together.
Chapter Six Networking Hardware.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
I/O Unit.
CS-334: Computer Architecture
BY TONY JIA Mother Board and Buses. What is a Mother Board? The motherboard is the largest piece of internal hardware. All of the other internal.
Interrupts (contd..) Multiple I/O devices may be connected to the processor and the memory via a bus. Some or all of these devices may be capable of generating.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
Chapter 22 All About SCSI.
Chapter 10 Supporting I/O Devices. You Will Learn…  How to install peripheral I/O devices  How to use ports and expansion slots for add- on devices.
System Configuration Chapter 3. Objectives Distinguish between the various methods used to configure a computer Describe how to replace a motherboard.
System Resources INFO1119 (Fall 2012).
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Chapter 2 How Computers Work.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Interconnection Structures
How Hardware and Software Work Together
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 22 All About SCSI.
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
Bus structures Unit objectives Describe the primary types of buses, and define interrupt, IRQ, I/O address, DMA, and base memory address Describe the features.
1 System Resources. 2 Interrupt Request (IRQ) Channels Interrupt Request (IRQ) Channels Direct Memory Access (DMA) Channels Direct Memory Access (DMA)
LOGO BUS SYSTEM Members: Bui Thi Diep Nguyen Thi Ngoc Mai Vu Thi Thuy Class: 1c06.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Lab3 for I/O TA: 黃俊輔 jojoman
I/O Resource Management The operating system is responsible for: Issuing commands to I/O devices Handling all interrupts and errors generated by the.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 2 How an OS Works with Hardware and Other Software.
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
MICROPROCESSOR INPUT/OUTPUT
Chapter 4 MANAGING DEVICES AND PERIPHERALS. Device Manager Provides a graphic view of hardware installed on the computer Helps to manage and trouble shoot.
IRQ  The IRQ is a number set in the computer for the interrupt request.  assigned to devices to allow it to "interrupt", or send a signal, to the computer.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Computer Architecture Part IV-B: I/O Buses. Chipsets Intelligent bus controller chips found on the motherboard Enable higher speeds on one or more buses.
Buses All devices in the computer are connected to the External Data Bus Extension to External Data Bus called Expansion Bus –Used for devices that might.
Chapter 3 System Configuration The Complete A+ Guide to PC Repair 5/e Update.
©Richard L. Goldman 1 IRQ Interrupt Requests (Static Presentation) ©Richard L. Goldman April 25, 2002.
13-Nov-15 (1) CSC Computer Organization Lecture 7: Input/Output Organization.
Organisasi Sistem Komputer Materi VIII (Input Output)
AmendmentsAmendments Advanced Higher. The PCI bus was adequate for many years, providing enough bandwidth for all the peripherals most users might want.
1.4 Hardware Review. CPU  Fetch-decode-execute cycle 1. Fetch 2. Bump PC 3. Decode 4. Determine operand addr (if necessary) 5. Fetch operand from memory.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK– PARALLEL BUS DEVICE PROTOCOLS 1.
PC Internal Components Lesson 4.  Intel is perhaps the most recognizable microprocessor manufacturer. List some others.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 22 All About SCSI.
1 Chapter 2 Central Processing Unit. 2 CPU The "brain" of the computer system is called the central processing unit. Everything that a computer does is.
The Computer System.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Lesson 2 Component Overview Core Hardware Fundamentals.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Chapter Objectives In this chapter, you will learn:
Bus Systems ISA PCI AGP.
IRQ, DMA and I/O Ports - Introduction -
I/O BUSES.
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
Presentation transcript:

System Resources

System Resources System Resources are the communications channels, addresses, and other signals used by hardware devices to communicate on the Bus. At their lowest level, these resources typically include the following: DMA (Direct Memory Access) channels I/O Port Addresses IRQ (Interrupt Request) channels Memory Addresses

Memory Addresses Each memory location has its own distinct address. Additionally the memory locations are divided into eight different sections. Conventional (base) memory (000000 – 09FFFF) 640kB Upper memory area (UMA) (0A0000 – 0FFFFF) 384kB High memory area (HMA) (100000 – 1FFFEF) 64kB-16B Extended memory (XMS) (100000 – FFFFFFFFF) 64GB-1MB Expanded memory (obsolete) Video RAM memory (part of UMA) (0A0000 – 0BFFFF) 128kB Adapter ROM and special purpose RAM (part of UMA) (0C0000 – 0DFFFF) 128kB Motherboard ROM BIOS (part of UMA) (0E0000 – 0FFFFF) 128kB

IRQs (Interrupt Requests) Interrupt request channels, or hardware interrupts, are used by various hardware devices to signal the motherboard that a request must be fulfilled. This procedure is the same as a student raising their hand to indicate that they need attention. When a particular interrupt is invoked, a special routine takes over the system, which first saves all the CPU register contents in a stack and then directs the system to the interrupt vector table. This vector table contains a list of memory addresses that correspond to the interrupt channels. The pointers in the vector table point to the address of whatever software driver is used to service the card that generated the interrupt.

IRQs (Interrupt Requests) After the particular software routine finishes performing whatever function the card needed, the interrupt control software returns the stack contents to the CPU registers, and the system then resumes whatever it was doing before the interrupt occurred. Hardware interrupts are generally prioritized by their numbers; with some exceptions, the highest priority interrupts have the lowest numbers. The original PC and XT interrupt controller chip could handle eight IRQ’s at once. The AT motherboard (by daisy chaining two chips) can handle 15 IRQ’s at once. There are 16 IRQ lines. AT controllers began using interrupts 9-15, leaving the XT controllers the 0-8 lines. Because of this, the old IRQ 2 is often borrowed by the new IRQ 9 using something called “cascading”

VL-Bus slots ISA

PCI slots A 32-bit, 33MHz PCI slot (left) compared to a 64-bit 33MHz PCI slot (center) and a 64-bit universal PCI slot that runs at 66MHz (right).

PCI Bus Types ISA

AGP Modes Showing Clock Speeds and Bandwidth ISA

System Resources System resources are the communications channels, addresses, and other signals used by hardware devices to communicate on the bus. At their lowest level, these resources typically include the following: Memory addresses IRQ (interrupt request) channels DMA (direct memory access) channels I/O port addresses

8-Bit ISA Bus Default Interrupt Assignments

Interrupt controller cascade wiring

16/32-Bit ISA/PCI/AGP Default Interrupt Assignments

PCI Interrupts The PCI bus supports hardware interrupts (IRQs) that can be used by PCI devices to signal to the bus that they need attention. The four PCI interrupts are called INTA#, INTB#, INTC#, and INTD#. These INTx# interrupts are level-sensitive, which means that the electrical signaling enables them to be shared among PCI cards. In fact, all single device or single function PCI chips or cards that use only one interrupt must use INTA#. This is one of the rules in the PCI specification. If additional devices are within a chip or onboard a card, the additional devices can use INTB# through INTD#. Because there are very few multifunction PCI chips or boards, practically all the devices on a given PCI bus will be sharing INTA#.

PCI Interrupts For the PCI bus to function in a PC, the PCI interrupts must be mapped to ISA interrupts. Because ISA interrupts cannot be shared, in most cases each PCI card using INTA# on the PCI bus must be mapped to a different nonshareable ISA interrupt. For example, you could have a system with four PCI slots and four PCI cards installed, each using PCI interrupt INTA#. These cards would be each mapped to a different available ISA interrupt request, such as IRQ9, IRQ10, IRQ11, or IRQ5 in most cases.

Sharing Interrupts on PCI Newer system BIOS as well as plug-and-play operating systems, such as Windows 95B (OSR- 2) or later, Windows 98, and Windows 2000, all support a function known as PCI IRQ Steering. For this to work, both your system BIOS and operating system must support IRQ Steering. Older system BIOS and Windows 95 or 95A do not have support for PCI IRQ Steering.

Sharing Interrupts on PCI Generally, the BIOS assigns unique IRQs to PCI devices. If your system supports PCI IRQ Steering and it is enabled, Windows assigns IRQs to PCI devices. Even when IRQ Steering is enabled, the BIOS still initially assigns IRQs to PCI devices. Although Windows has the capability to change these settings, it generally does not do so automatically, except where necessary to eliminate conflicts. If there are insufficient free IRQs to go around, IRQ Steering allows Windows to assign multiple PCI devices to a single IRQ, thus enabling all the devices in the system to function properly. Without IRQ Steering, Windows begins to disable devices after it runs out of free IRQs to assign.

PCI IRQ Steering The solution to the fewer interrupts problem is interrupts sharing. PCI IRQ Steering allows a plug-and-play operating system such as Windows to dynamically map or “steer” PCI cards (which almost all use PCI INTA#) to standard PC interrupts and allows several PCI cards to be mapped to the same interrupt.

PCI IRQ Steering To determine whether your system is using IRQ Steering, you can follow these steps: 1. Right Click My Computer, and choose Properties. 2. Click the Device Manager tab. 3. Double-click the System Devices branch. 4. Double-click PCI Bus, and then click the IRQ Steering tab. There will be a check that displays IRQ Steering as either Enabled or Disabled. If enabled, it also specifies where the IRQ table has been read from.

PCI IRQ Steering

8-Bit ISA Default DMA-Channel Assignments

16-Bit ISA Default DMA-Channel Assignments

DMA (direct memory access) Direct Memory Access (DMA) channels are used by high speed communications devices that must send and receive information at high speed. A serial or parallel port does not use a DMA channel, but a sound card or SCSI adapter often does. DMA peripheral chips are limited in number and can only allocate one channel to one device however, DMA channels sometimes can be shared if the devices are not the type that would need them simultaneously.

DMA (direct memory access) CPU’s can calculate much faster than applications can handle results, and can be loaded down if it were to send data about storing something on a hard drive and then had to wait around for the very slow hard drive to report back. This movement of data from slow disk to fast memory ordinarily would need to pass through some very small memory registers in the CPU. DMA bypasses the CPU registers and moves information directly into and out of RAM ( thus direct memory)

I/O Port Addresses

I/O Port Addresses

I/O Port Addresses

I/O Port Addresses

I/O Port Addresses

I/O Port Addresses

I/O Port Address Your computer’s I/O ports enable communications between devices and software in your system. They are equivalent to two-way radio channels. If you want to talk to your serial port, you need to know on which I/O port it is listening. Similarly, if you want to receive data from the serial port, you need to listen on the same channel. There are 65,535 ports, numbered from 0000 h to FFFF h

I/O Port Address One confusing issue is that I/O ports are designated by hexadecimal addresses similar to memory addresses. The difference is that when you send data to memory address 1000 h, it gets stored in your DIMM. If you send data to I/O port address 1000 h, it gets sent out on the bus on that “channel,” and anybody listening in would then hear it. If nobody was listening to that port address, the data would reach the end of the bus and be absorbed by the bus terminating resistors. Virtually all devices on your system buses use I/O port addresses. Most of these are fairly standardized.

System Resource Map

System Resource Map

System Resource Map

Network Interface Card (NIC) Requires an IRQ and a range of I/O port addresses. Might need a 16KB range of upper memory. Multiple-COM Port Adapters

Plug-and-Play Systems For PnP to work, the following components are desired: PnP hardware PnP BIOS PnP operating system