Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Organization
Understanding Computer Hardware
Shermeen Adnan
Personal Computer Systems: An Overview
• Laptops, desktops, tower computers
• IBM PC Clones (Wintel machines)
• Macs
Operating System
• Exploits the hardware resources of one or more processors
• Provides a set of services to system users
• Manages secondary memory and I/O devices
• The operating system sets the rules for using memory, drives, and
other parts of the computer.
• creates a common platform for all the software
• Provides tools for all the tasks you want to perform outside an
application program
• OS depends on the cooperation of other programs, BIOS and software
drivers
Operating System
• The BIOS-or basic input/output system
• code contained on chips in a Pc
• acts as the intermediary among the hardware, processor, and operating systems.
• Device drivers
• specialized BIOS
• coded instructions for a specific hardware peripheral contained in a file and copied to
the computer when that device is installed.
• translate commands from the operating system and BIOS into instructions for a
specific piece of hardware
• When some parts of the operating system are loaded from disk, they are
added to the BIOS and then joined by device drivers, and all of them carry
out routine hardware functions.
Types of OS
• Real -Time Operating Systems (RTOS)
• Normally used to control scientific machinery
• Ensures that a given task occurs in precisely the time allocated for it
• Typically not user friendly
• Single User, Single –Task
• At one time, only one task (application, program) can run on the computer
• Eg. DOS, Palm OS
• Single -User, Multi –Task
• Most common type on desktops
• E.g. Microsoft Windows, Apple’s MacOS
• Multi –User
• Allows several users to work simultaneously on a computer
• Mainly run on servers
• E.g. UNIX
Operating System
• How PC loads the operating system from disk to random access
memory (RAM)
• Bootstrap
• a small amount of code that's a permanent part of the PC, or simply to boot.
• it has only two functions
• one is to run a POST, or power-on self-test
• the other is to search drives for an operating system
• When these functions are complete, the boot operation launches the
process of reading the system files and copying them to RAM.
Question of the day
• System Bus
• Provides for communication among processors, main memory, and I/O
modules
Computer Components: Top-Level View
Microprocessor
• Invention that brought about desktop and handheld computing
• Processor on a single chip
• Fastest general purpose processor
• Multiprocessors
• Each chip (socket) contains multiple processors (cores)
Graphical Processing Units (GPU’s)
• Provide efficient computation on arrays of data using Single-
Instruction Multiple Data (SIMD) techniques
• Used for general numerical processing
• Physics simulations for games
• Computations on large spreadsheets
Digital Signal Processors (DSPs)
• Deal with streaming signals such as audio or video
• Used to be embedded in devices like modems
• Encoding/decoding speech and video (codecs)
• Support for encryption and security
System on a Chip (SoC)
• To satisfy the requirements of handheld devices, the microprocessor
is giving way to the SoC
• Components such as DSPs, GPUs, codecs and main memory, in
addition to the CPUs and caches, are on the same chip
Instruction Execution
• A program consists of a set of instructions stored in memory
Basic Instruction Cycle
Instruction Fetch and Execute
• The processor fetches the instruction from memory
• Program counter (PC) holds address of the instruction to be fetched
next
• PC is incremented after each fetch
• Fetched instruction is loaded into Instruction Register (IR)
• Processor interprets the instruction and performs required action
• Processor-memory
• Processor-I/O
• Data processing
• Control
Interrupts
• Interrupt the normal sequencing of the processor
• Provided to improve processor utilization
• most I/O devices are slower than the processor
• processor must pause to wait for device
• wasteful use of the processor
Classes of Interrupts
Instruction Cycle with interrupt
Multiple Interrupts
• An interrupt occurs while another interrupt is being processed • e.g.
receiving data from a communications line and printing results at the
same time
• Two approaches
• disable interrupts while an interrupt is being processed
• use a priority scheme
Presentation Topics
• How a fixed Disk Drive Work?
• How a CD-ROM Drive Work?
• How a Mechanical Mouse Work?
• How a Super-VGA Display Work?
• How an LCD Screen work?