© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus-Based Computer Systems zBusses. zMemory devices. zI/O devices: yserial links ytimers.

Slides:



Advertisements
Similar presentations
Homework Reading Machine Projects Labs
Advertisements

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus-Based Computer Systems zBusses. zMemory devices. zI/O devices: yserial links ytimers.
I/O Organization popo.
Chapter 5 Internal Memory
Computer Organization and Architecture
Chapter 4: The Embedded Computing Platform
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
Processor System Architecture
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
Chapter 7 Interupts DMA Channels Context Switching.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon., Nov. 18, 2002 Topic: Main Memory (DRAM) Organization – contd.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
Computer Architecture Lecture 08 Fasih ur Rehman.
Bus-Based Computer Systems zBusses. zMemory devices. zI/O devices zDesigning with microprocessors. zDevelopment and debugging. zSystem-level performance.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
created by :Gaurav Shrivastava
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.
© 2000 Morgan Kaufman Overheads for Computers as Components System components zTiming diagrams. zMemory. zBusses and interconnect.
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.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Top Level View of Computer Function and Interconnection.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Memory and Storage Dr. Rebhi S. Baraka
© 2000 Morgan Kaufman Overheads for Computers as Components System components  Timing diagrams.  Memory.  Busses and interconnect.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
© 2000 Morgan Kaufman Overheads for Computers as Components I/O devices  I/O devices:  serial links  timers and counters  keyboards  displays  analog.
© 2000 Morgan Kaufman Overheads for Computers as Components The Embedded computing platform zCPU bus. zMemory. zI/O devices.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
MBG 1 CIS501, Fall 99 Lecture 18: Input/Output (I/O): Buses and Peripherals Michael B. Greenwald Computer Architecture CIS 501 Fall 1999.
EEE440 Computer Architecture
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.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
© 2000 Morgan Kaufman Overheads for Computers as Components I/O devices zI/O devices: yserial links ytimers and counters ykeyboards ydisplays yanalog I/O.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Overview von Neumann Architecture Computer component Computer function
Computer operation is of how the different parts of a computer system work together to perform a task.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Input/Output. Input/Output Problems zWide variety of peripherals yDelivering different amounts of data yAt different speeds yIn different formats zAll.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
RAM RAM - random access memory RAM (pronounced ramm) random access memory, a type of computer memory that can be accessed randomly;
Gandhinagar Institute of Technology
Department of Computer Science and Engineering
I/O Memory Interface Topics:
Bus-Based Computer Systems
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Presentation transcript:

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus-Based Computer Systems zBusses. zMemory devices. zI/O devices: yserial links ytimers and counters ykeyboards ydisplays yanalog I/O

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. The CPU bus zBus allows CPU, memory, devices to communicate. yShared communication medium. zA bus is: yA set of wires. yA communications protocol.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus protocols zBus protocol determines how devices communicate. zDevices on the bus go through sequences of states. yProtocols are specified by state machines, one state machine per actor in the protocol. zMay contain asynchronous logic behavior.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Four-cycle handshake device 1device 2 enq ack time device 1 device

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Four-cycle handshake, cont’d. 1.Device 1 raises enq. 2.Device 2 responds with ack. 3.Device 2 lowers ack once it has finished. 4.Device 1 lowers enq.

Microprocessor busses zClock provides synchronization. zR/W is true when reading (R/W’ is false when reading). zAddress is a-bit bundle of address lines. zData is n-bit bundle of data lines. zData ready signals when n-bit data is ready. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Timing diagrams

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus read

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. State diagrams for bus read CPU device Get data Done Adrs Wait See ack Send data Release ack Adrs Wait Ack start

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus wait state

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus burst read

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus multiplexing CPU adrs device data adrs data enable Adrs enable

DMA zDirect memory access (DMA) performs data transfers without executing instructions. yCPU sets up transfer. yDMA engine fetches, writes. zDMA controller is a separate unit. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

Bus mastership zBy default, CPU is bus master and initiates transfers. zDMA must become bus master to perform its work. yCPU can’t use bus while DMA operates. zBus mastership protocol: yBus request. yBus grant. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

DMA operation zCPU sets DMA registers for start address, length. zDMA status register controls the unit. zOnce DMA is bus master, it transfers automatically. yMay run continuously until complete. yMay use every n th bus cycle. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus transfer sequence diagram

System bus configurations zMultiple busses allow parallelism: ySlow devices on one bus. yFast devices on separate bus. zA bridge connects two busses. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. CPUslow device memory high-speed device bridge slow device

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bridge state diagram

ARM AMBA bus zTwo varieties: yAHB is high-performance. yAPB is lower-speed, lower cost. zAHB supports pipelining, burst transfers, split transactions, multiple bus masters. zAll devices are slaves on APB. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

Memory components zSeveral different types of memory: yDRAM. ySRAM. yFlash. zEach type of memory comes in varying: yCapacities. yWidths. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Random-access memory zDynamic RAM is dense, requires refresh. ySynchronous DRAM is dominant type. ySDRAM uses clock to improve performance, pipeline memory accesses. zStatic RAM is faster, less dense, consumes more power.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. SDRAM operation

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Read-only memory zROM may be programmed at factory. zFlash is dominant form of field- programmable ROM. yElectrically erasable, must be block erased. yRandom access, but write/erase is much slower than read. yNOR flash is more flexible. yNAND flash is more dense.

Flash memory zNon-volatile memory. yFlash can be programmed in-circuit. zRandom access for read. zTo write: yErase a block to 1. yWrite bits to 0. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

Flash writing zWrite is much slower than read.  1.6  s write, 70 ns read. zBlocks are large (approx. 1 Mb). zWriting causes wear that eventually destroys the device. yModern lifetime approx. 1 million writes. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

Types of flash zNOR: yWord-accessible read. yErase by blocks. zNAND: yRead by pages (512-4K bytes). yErase by blocks. zNAND is cheaper, has faster erase, sequential access times. © 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Timers and counters zVery similar: ya timer is incremented by a periodic signal; ya counter is incremented by an asynchronous, occasional signal. zRollover causes interrupt.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Watchdog timer zWatchdog timer is periodically reset by system timer. zIf watchdog is not reset, it generates an interrupt to reset the host. host CPU watchdog timer interrupt reset

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Switch debouncing zA switch must be debounced to multiple contacts caused by eliminate mechanical bouncing:

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Encoded keyboard zAn array of switches is read by an encoder. zN-key rollover remembers multiple key depressions. row

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. LED zMust use resistor to limit current:

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. 7-segment LCD display zMay use parallel or multiplexed input.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Types of high-resolution display zLiquid crystal display (LCD) is dominant form. zPlasma, OLED, etc. zFrame buffer holds current display contents. yWritten by processor. yRead by video.

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Touchscreen zIncludes input and output device. zInput device is a two-dimensional voltmeter:

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Touchscreen position sensing ADC voltage

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Digital-to-analog conversion zUse resistor tree: R 2R 4R 8R bnbn b n-1 b n-2 b n-3 V out

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Flash A/D conversion zN-bit result requires 2 n comparators: encoder V in...

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Dual-slope conversion zUse counter to time required to charge/discharge capacitor. zCharging, then discharging eliminates non-linearities. V in timer

© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Sample-and-hold zSamples data: converter V in