Lecture Overview Shift Register Buffering Direct Memory Access.

Slides:



Advertisements
Similar presentations
Components of a computer system
Advertisements

Homework Reading Machine Projects Labs
Computer Organization, Bus Structure
I/O Organization popo.
Buffers & Spoolers J L Martin Think about it… All I/O is relatively slow. For most of us, input by typing is painfully slow. From the CPUs point.
Half Adder Sum = X’Y+XY’ = X  Y Carry = XY YXYXYX  YYYX  XX XOR XNOR.
© Paradigm Publishing, Inc. 2-1 Chapter 2 Input and Processing Chapter 2 Input and Processing.
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
Introduction to Information Technology: Your Digital World © 2013 The McGraw-Hill Companies, Inc. All rights reserved.Using Information Technology, 10e©
Henry Hexmoor1 Chapter 7 Henry Hexmoor Registers and RTL.
DIRECT MEMORY ACCESS CS 147 Thursday July 5,2001 SEEMA RAI.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Counters and Registers
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
BLOCK DIAGRAM OF COMPUTER
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Computing hardware CPU.
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.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
NETW 3005 I/O Systems. Reading For this lecture, you should have read Chapter 13 (Sections 1-4, 7). NETW3005 (Operating Systems) Lecture 10 - I/O Systems2.
Types of Computers Mainframe/Server Two Dual-Core Intel ® Xeon ® Processors 5140 Multi user access Large amount of RAM ( 48GB) and Backing Storage Desktop.
MICROPROCESSOR INPUT/OUTPUT
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
DMA Versus Polling or Interrupt Driven I/O
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Modes of transfer in computer
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Sequential logic circuits
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Basic LED Interface.
IT3002 Computer Architecture
بسم الله الرحمن الرحيم MEMORY AND I/O.
Technology Vocabulary Matthew L. Morris. A-D Application- A program or group of programs designed for end users. Data- Distinct pieces of information.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
1 load [2], [9] Transfer contents of memory location 9 to memory location 2. Illegal instruction.
Input / Output Chapter 9.
Department of Computer Science and Engineering
REGISTER TRANSFER LANGUAGE (RTL)
Electronics Technology
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
Direct Memory address and 8237 dma controller LECTURE 6
Technology Literacy Hardware.
I/O Memory Interface Topics:
Introduction of microprocessor
E3165 DIGITAL ELECTRONIC SYSTEM
CS703 - Advanced Operating Systems
Overview Peripheral Devices Input-Output Interface
Shift Registers.
CSCI 315 Operating Systems Design
Direct Memory Access Introduction
Types of Computers Mainframe/Server
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Registers.
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Components of a CPU AS Computing - F451.
Logical Computer System
Registers Today we’ll see some common sequential devices: counters and registers. They’re good examples of sequential analysis and design. They are also.
Chapter 5 Input/Output Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
Presentation transcript:

Lecture Overview Shift Register Buffering Direct Memory Access

Shift Register A shift register is a sequential logic device made up of flip-flops that allows parallel or serial loading and serial or parallel outputs as well as shifting bit by bit The Shift Register is used for data storage or data movement and are used in calculators or computers to store data such as two binary numbers before they are added together, or to convert the data from either a serial to parallel or parallel to serial format The data bits may be fed in or out of the register serially, i.e. one after the other from either the left or the right direction, or in parallel, i.e. all together

Characteristics of Shift Register Number of bits (4-bit, 8-bit, etc.) Loading – Serial – Parallel (asynchronous or synchronous) Common modes of operation. – Parallel load – Shift right-serial load – Shift left-serial load – Hold – Clear

Shift Register Modes Some basic data movements are illustrated here Serial in Serial out Serial in Parallel out Serial out Parallel in Parallel in Parallel out

Shift Register Modes Serial-in to Parallel-out (SIPO) - the register is loaded with serial data, one bit at a time, with the stored data being available in parallel form. Serial-in to Serial-out (SISO) - the data is shifted serially "IN" and "OUT" of the register, one bit at a time in either a left or right direction under clock control. Parallel-in to Serial-out (PISO) - the parallel data is loaded into the register simultaneously and is shifted out of the register serially one bit at a time under clock control. Parallel-in to Parallel-out (PIPO) - the parallel data is loaded simultaneously into the register, and transferred together to their respective outputs by the same clock pulse.

Buffering A computer buffer is an area of memory used for the temporary storage of data when a program or hardware device needs an uninterrupted flow of information Buffers are typically created in Random Access Memory (RAM) rather than on the hard disk

Buffering Examples Buffers are commonly used when burning data onto a compact disc, where the data is transferred to the buffer before being written to the disc. Another common use of buffers is for printing documents. When you enter a PRINT command, the operating system copies your document to a print buffer (a free area in memory or on a disk) from which the printer can draw characters at its own pace. This frees the computer to perform other tasks while the printer is running in the background

Direct Memory Access Direct Memory Access (DMA) is a method of allowing data to be moved from one location to another in a computer without intervention from the central processor (CPU). The microprocessor is freed from involvement with the data transfer, thus speeding up overall computer operation. Many hardware systems use DMA, including disk drive controllers, graphics cards, network cards and sound cards. Computers that have DMA channels can transfer data to and from devices with much less CPU overhead than computers without a DMA channel

Direct Memory Access Modes Single –A single byte (or word) is transferred. –The DMA must release and re-acquire the bus for each additional byte. –This is commonly-used by devices that cannot transfer the entire block of data immediately. –The peripheral will request the DMA each time it is ready for another transfer.

Direct Memory Access Modes Burst Mode –An entire block of data is transferred in one contiguous sequence. –Once the DMA controller is granted access to the system bus by the CPU, it transfers all bytes of data in the data block before releasing control of the system buses back to the CPU. –This mode is useful for loading program or data files into memory, but renders the CPU inactive for relatively long periods of time –The mode is also called "Block Transfer Mode".

Direct Memory Access Modes Cycle stealing mode –The cycle stealing mode is used in systems in which the CPU should not be disabled for the length of time needed for burst transfer modes. –In the cycle stealing mode, the DMA controller obtains access to the system bus the same way as in burst mode, using BR (Bus Request) and BG (Bus Grant) signals, which are the two signals controlling the interface between the CPU and the DMA controller. –However, in cycle stealing mode, after one byte of data transfer, the control of the system bus is disserted to the CPU via BG. –It is then continually requested again via BR, transferring one byte of data per request, until the entire block of data has been transferred. –By continually obtaining and releasing the control of the system bus, the DMA controller essentially interleaves instruction and data transfers. –The CPU processes an instruction, then the DMA controller transfers one data value, and so on. – Cycle stealing mode is useful for controllers that monitor data in real time.

Direct Memory Access Modes Transparent mode –The transparent mode takes the most time to transfer a block of data, yet it is also the most efficient mode in terms of overall system performance. –The DMA controller only transfers data when the CPU is performing operations that do not use the system buses. –It is the primary advantage of the transparent mode that the CPU never stops executing its programs and the DMA transfer is free in terms of time. –The disadvantage of the transparent mode is that the hardware needs to determine when the CPU is not using the system buses, which can be complexes.