© 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
I/O Organization popo.
Advertisements

Chapter 5 Internal Memory
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Computer Organization and Architecture
MC68HC11 System Overview. System block diagram (A8 version)
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
Chapter 4: The Embedded Computing Platform
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
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
© 2008 Wayne Wolf Overheads for Computers as Components 2 nd ed. Bus-Based Computer Systems zBusses. zMemory devices. zI/O devices: yserial links ytimers.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
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.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
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.
Computer Architecture Lecture 08 Fasih ur Rehman.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
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
© 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
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.
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.
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.
Computer Architecture Lecture 24 Fasih ur Rehman.
© 2000 Morgan Kaufman Overheads for Computers as Components I/O devices zI/O devices: yserial links ytimers and counters ykeyboards ydisplays yanalog I/O.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
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
Computer operation is of how the different parts of a computer system work together to perform a task.
بسم الله الرحمن الرحيم MEMORY AND I/O.
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.
RAM RAM - random access memory RAM (pronounced ramm) random access memory, a type of computer memory that can be accessed randomly;
BITS Pilani Pilani Campus Pawan Sharma ES C263 Microprocessor Programming and Interfacing.
Department of Computer Science and Engineering
I/O Memory Interface Topics:
Bus-Based Computer Systems
Introduction to Microprocessors and Microcontrollers
Digital Control Systems Waseem Gulsher
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, contd. 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 cant 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.

© 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