Fall 2006 1 EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Computer Organization Lecture 23 RAID Input/output design RS232 serial.

Slides:



Advertisements
Similar presentations
IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
Advertisements

Computer Architecture
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
INPUT-OUTPUT ORGANIZATION
Fall EE 333 Lillevik 333f06-s3 University of Portland School of Engineering Computer Organization Final Exam Study Final Exam Tuesday, December.
COMP3221: Microprocessors and Embedded Systems Lecture 17: Computer Buses and Parallel Input/Output (I) Lecturer: Hui.
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Unit-5 CO-MPI autonomous
2. Methods for I/O Operations
INPUT-OUTPUT ORGANIZATION
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Computer Architecture Lecture 08 Fasih ur Rehman.
Input / Output CS 537 – Introduction to Operating Systems.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Spring EE 437 Lillevik 437s06-l2 University of Portland School of Engineering Advanced Computer Architecture Lecture 2 NSD with MUX and ROM Class.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
Input and Output Computer Organization and Assembly Language: Module 9.
MICROPROCESSOR INPUT/OUTPUT
Spring EE 437 Lillevik 437s06-l8 University of Portland School of Engineering Advanced Computer Architecture Lecture 8 Project 3: memory agent Programmed.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
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.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Fall EE 333 Lillevik 333f06-l21 University of Portland School of Engineering Computer Organization Lecture 21 Subroutines, stack Interrupts, service.
Spring EE 437 Lillevik 437s06-l9 University of Portland School of Engineering Advanced Computer Architecture Lecture 9 DMA controller design.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Input-Output Organization
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Computer Organization Lecture 14 Memory hierarchy, locality Memory.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 2 I/O Software CS 342 – Operating Systems Ibrahim Korpeoglu.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
Chapter 13: I/O Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 2, 2005 I/O through system calls Protection.
Spring EE 437 Lillevik 437s06-l5 University of Portland School of Engineering Advanced Computer Architecture Lecture 5 Slave bus agent ROM example.
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
Architectural Considerations A Review of Some Architectural Concepts.
Fall EE 333 Lillevik 333f06-l22 University of Portland School of Engineering Computer Organization Lecture 22 Project 6 Hard disk drive Bus arbitration.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Chapter 8 Input/Output An Hong 2015 Fall School of Computer Science and Technology Lecture on Introduction to.
Spring EE 437 Lillevik 437s06-l4 University of Portland School of Engineering Advanced Computer Architecture Lecture 4 Project 1 reviews CPU controller.
Department of Computer Science and Engineering
PROGRAMMABLE PERIPHERAL INTERFACE -8255
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Computer Architecture
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Parallel communication interface 8255
8085 Microprocessor Architecture
Advanced Computer Architecture Lecture 11
Advanced Computer Architecture Lecture 10
Advanced Computer Architecture Lecture 3
Presentation transcript:

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Computer Organization Lecture 23 RAID Input/output design RS232 serial port example Direct memory access

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering RAID RAID: redundant arrays of inexpensive disks History: Patterson, Gibson, Katz (1987); UC Berkeley Goal: high speed, high reliability, low cost Technique: place data across multiple drives and include redundancy (striping) RAID levels: 0 – 6, define the striping

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Data striping Bit level: each bit of a byte written on a different disk, along with parity Block level: each byte of a file written to a different disk, along with ECC LUN: collection of drives appear as one logical storage unit Multiple, parallel drives: number often a factor of 8, increase bandwidth

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering RAID example: 4 data disks

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Commercial product Features: 7TB, hot swappable (17 drives), 400 MB/s, 7200 rpm drives, $2/GB, RAID 0, 1, 3, 5, 0+1

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering System view of a computer One Agent at-a-time owns the bus ··· Signal 0 Signal n Agent 0 Agent n ··· Bus Signal 1

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Bus timing Clk Breq Bgnt Ack Data Bus Driven ARB ADRDATARESP Address Bus Driven

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering I/O design Memory-mapped –Shared memory and I/O addresses –Some addresses I/O devices, some memory –All memory instructions may operate on an I/O device Separate I/O address space: called ports –Two address spaces: memory and I/O –Unique I/O instructions: in, out

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering General memory design A D Q E R/W A D Q E In 0 E 1 n Address Data R/W Qout (low bits) (upper bits) decoder memory From Lecture 14

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Memory design guide Bus lower addresses to all devices Use upper addresses and decoder for device enables Data bus and other control signals sent to all devices No read-write signal for ROM Bus outputs together because they are tri- stated

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering General I/O design D Q E D Q E In 0 E 1 n Address Data Qout decoder I/O: D flip flops Ctl (Read, Write)

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering I/O design guide Use address, control, and decoder for device reads and writes Data bus sent to all devices Bus outputs together because they are tri- stated

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Example I/O design Bus (simplified) –Address: 8-bit –Data: 8-bit, tri-state (uni-directional) –Control: read, write I/O addresses (Port addresses) –Device 0 = 0xf8 –Device 1 = 0xf9

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Schematic

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Trace Bus floats to 0xff Write to Ports Bus floats to 0xff Read from Ports

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Find decode logic for 4 ports? Port addresses = 0xf8, 0xf9, 0xfa, 0xfb

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Trace Bus floats to 0xff Write to Ports Bus floats to 0xff Read from Ports

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering RS-232 serial port I/O device: USART (universal synchronous asynchronous receiver transmitter) Functionality (similar to shift register) –Transmitter: parallel in, serial out –Receiver: serial in, parallel out –Status Output buffer empty Input buffer full

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering C8251 block diagram parallel in parallel out serial in serial out

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering USART addressing Memory-mapped I/O (MIPS approach) Receiver –Control register: 0xffff 0000 –Data register: 0xffff 0004 Transmitter –Control register: 0xffff 0008 –Data register: 0xffff 000c

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering USART assembly code Definitions for memory-mapped devices

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Receive, transmit subroutines Subroutines to read and write a byte

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Find flowchart for rcvbyte?

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Wait (busy) loop Programming technique –CPU continuously reads control register until non-zero (ready bit set): wait loop –CPU reads/writes data to port Results in poor system utilization: both memory-mapped or separate I/O addresses Known as programmed I/O

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Disadvantages of programmed I/O?

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Direct memory access Objective: avoid the disadvantages of programmed I/O (eliminate busy loop) Technique –CPU writes to special controller (word count and memory address) –CPU tells controller to start data transfers –CPU continues with other computing –CPU responds to interrupt from controller: ISR

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Role of DMA controller Accept initialization data from CPU Access I/O device and drive bus (master) –Input: read I/O device and write data to memory –Output: read memory data and write to I/O device Interrupt CPU when transfer complete

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Programmed I/O Programmed I/O ties up CPU Read I/O Write memory

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering DMA I/O DMA requires little CPU overhead Initialize Multiple transfers

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering DMA time line ISR Interrupt CPU and I/O concurrent in time

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Find decode logic for 4 ports?

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Find flowchart for rcvbyte? Push $ra Get rcv status Char ready? Read and echo char Pop $ra yes no

Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Disadvantages of programmed I/O? 1.CPU cycles result in little computing 2.Memory continuously accessed, possible contention with another CPU 3.One I/O access at a time 4.Bus heavily requested