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.

Slides:



Advertisements
Similar presentations
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
Advertisements

Computer System Overview
Chapter 6 Limited Direct Execution
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
Wednesday, June 07, 2006 “Unix is user friendly … it’s just picky about it’s friends”. - Anonymous.
Architectural Support for Operating Systems. Announcements Most office hours are finalized Assignments up every Wednesday, due next week CS 415 section.
1 CS 333 Introduction to Operating Systems Class 2 – OS-Related Hardware & Software The Process Concept Jonathan Walpole Computer Science Portland State.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
OS Spring’03 Introduction Operating Systems Spring 2003.
1 I/O Devices Controller: physically controls the devices Devices are diverse and complicated Present simpler interface to OS E.g, convert a linear sector.
Computer System Organization S H Srinivasan
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Computer System Structures memory memory controller disk controller disk controller printer controller printer controller tape-drive controller tape-drive.
OS Spring’04 Introduction Operating Systems Spring 2004.
Chapter 2 The OS, the Computer, and User Programs Copyright © 2008.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
1 CSC 2405: Computer Systems II Spring 2012 Dr. Tom Way.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Computer Organization
hardware and operating systems basics.
Operating System Concepts Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
System Calls 1.
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
CSC 322 Operating Systems Concepts Lecture - 3: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
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.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto OS-Related Hardware.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do (previous.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
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.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
1 CSE451 Architectural Supports for Operating Systems Autumn 2002 Gary Kimura Lecture #2 October 2, 2002.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Concurrency, Processes, and System calls Benefits and issues of concurrency The basic concept of process System calls.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Lecture 1: Review of Computer Organization
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Lecture on Central Process Unit (CPU)
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Review of Computer System Organization. Computer Startup For a computer to start running when it is first powered up, it needs to execute an initial program.
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Operating Systems: History, Hardware & Concepts Ch 1.4 & 1.5 Thursday, January 18, 2007.
WORKING OF SCHEDULER IN OS
Introduction to Operating Systems Concepts
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Interrupts and signals
Protection of System Resources
CS 286 Computer Organization and Architecture
OS Virtualization.
Direct Memory Access Disk and Network transfers: awkward timing:
Today’s agenda Hardware architecture and runtime system
Today’s agenda Hardware architecture and runtime system
Computer Organization
CSE 451: Operating Systems Autumn 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 596 Allen Center 1.
CSE 451: Operating Systems Autumn 2001 Lecture 2 Architectural Support for Operating Systems Brian Bershad 310 Sieg Hall 1.
CSE 451: Operating Systems Winter 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 412 Sieg Hall 1.
Presentation transcript:

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 (if necessary) 6. Execute 7. Go to step 1  MIPS IA is different from Intel IA  Registers  PC  SP  PSW (EFLAGS)  What mode are we in?  Result of last operation (N,Z,V,C)

 System call = way of obtaining services of OS  Often implemented via TRAP instruction

memory  RAM  ROM – nonvolatile  EEPROM or flash RAM  CMOS – low power, volatile RAM  Backed up by battery  Date/time storage, boot parameters

Disk organization  Disks: sector, intersector gap, track, cylinder

Multiple programs in RAM  Why? Better use of resource, multiple programs running, etc.  Needs:  Protect processes (and kernel) from each other  Handle relocation

Multiple programs in RAM  How?  Assume all programs start at virtual address 0  Use base and limit registers  Virtual-to-physical address translation via MMU  managed by OS  Context switch – switching from 1 program to another

I/O devices  Device driver = software that talks to a controller, giving it commands and accepting responses  Must be loaded into kernel via one of the following: 1. Relink kernel and reboot (Unix) 2. Make an entry into system file & check & load entries at boot time (Windows) 3. Dynamically loaded drivers (USB & IEEE 1394)

 Methods of communicating w/ device registers: 1.Use special IN/OUT instructions 2.Map device registers into memory (RAM)  Methods of performing I/O: 1.Busy waiting 2.Interrupts 3.Interrupts w/ DMA

 Busy waiting  User  system call  driver procedure call  wait (polling)  return results & status  Interrupts  User  system call  driver procedure call w/ ISR specified  User waits but CPU is free to do something else  ISR is called only when work needs to be accomplished (and performs the work)  Interrupts w/ DMA

Servicing interrupts 1. I/O device has completed operation; CPU is signalled (electrically) 2. CPU may or may not decide to service interrupt right now 3. Service: 1.Push PC & PSW on stack 2.Switch to kernel mode 3.User interrupt vector (table) for service routine address 4.Restore PC & PSW and resume what was being performed  Remember: interrupts can occur at any (the worst) time so they can be disabled (ignored, queued, and/or prioritized)

Buses Standard electrical connectivity w/ system/CPU ( ex. PCI, SCSI, USB, IEEE 1394, IDE, EIDE, ISA, ATA, SATA, AGP, cache, memory)  AGP GB/s  ATA- 33 to 133 MB/s  FireWire IEEE 1394b- 800 MB/s  ISA MB/s (8.3 MHz)  PCI- 528 MB/s (66 MHz)  SCSI Ultra MB/s  USB3- 4 GB/s

Boot process 1. Execution starts w/ code in BIOS (flash RAM or ROM) 2. Determine amount of memory 3. Scans ISA & PCI for devices and checks keyboard 4. Checks CMOS for boot device  First sector of boot device is read into memory and executed