CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Computer Architecture
I/O Organization popo.
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
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
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
S. Barua – CPSC 440 CHAPTER 8 INTERFACING PROCESSORS AND PERIPHERALS Topics to be covered  How to.
Data Manipulation Computer System consists of the following parts:
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.
TECH CH03 System Buses Computer Components Computer Function
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
GCSE Computing - The CPU
Lecture 12 Today’s topics –CPU basics Registers ALU Control Unit –The bus –Clocks –Input/output subsystem 1.
CS-334: Computer Architecture
Computer Architecture Lecture 08 Fasih ur Rehman.
Processor Structure & Operations of an Accumulator Machine
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Computer Processing of Data
1 (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,
MICROPROCESSOR INPUT/OUTPUT
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
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.
Top Level View of Computer Function and Interconnection.
Bus Mr. Mukul Varshney. Bus A bus, in computing, is a set of physical connections (cables, printed circuits, etc.) which can be shared by multiple hardware.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Modes of transfer in computer
Lecture 2 Microprocessor Architecture Image from:
Chapter 4 MARIE: An Introduction to a Simple Computer.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
MARIE:An Introduction to a Simple Computer Michael Dougherty September 17, 2009.
System Unit Working of CPU. The CPU CPU The CPU CPU stands for central processing unit. it is brain of computer It is most important component of the.
4 Linking the Components Linking The Components A computer is a system with data and instructions flowing between its components in response to processor.
Computer operation is of how the different parts of a computer system work together to perform a task.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 26 Bus Interconnect May 7,
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.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Block diagram of a computer system Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor.
Dr. ClincyLecture Slide 1 CS Chapter 4 (Sec 5.1 &5.2) 1 of 5 Dr. Clincy Professor of CS.
Dr. Clincy Professor of CS
Computer Hardware What is a CPU.
Basic Computer Organization and Design
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
CS Chapter 3 (3A and ) – Part 5 of 5
Chapter 3 Top Level View of Computer Function and Interconnection
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
William Stallings Computer Organization and Architecture
Presentation transcript:

CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan

CPU Basics  We know data must be binary-coded.  We know memory is used to store data and instructions.  CPU  Fetches instructions  Decodes instructions  Performs sequence of operations on data

CPU Continued  All CPUs have 2 pieces:  Datapath Network of storage units (registers) and arithmetic logic units Connected by buses Timing of data is controlled by clocks  Control unit Responsible for sequencing data at the right place at the right time  Imagine a Water Slide, and how it is managed.  Order of people, clearance to go, landing

The Registers  A Register is a place used to store a wide variety of data  Addresses  Program Counters  Data for Program Execution  Located on Processor to be accessed quickly  Since data processing is usually done on fixed-size binary words, most computers have certain sized registers.  For this reason, 16, 32, and 64bit processors exist.

Registers Continued  Info is written, read, and transferred from register to register.  Not addressed the same way memory is addressed.  Manipulated by control unit itself.  Special registers for special tasks  Store Info  Shift Values  Compare Values  Counts  No “scratchpad registers”, that control:  Looping  Stack pointers to info  Temp Values

The ALU  Arithmetic Logic Unit  Carries out all logic and arithmetic operations  Typically 2 data inputs, 1 data output  All operations in ALU affect status register bits.  Told by Control Unit

Control Unit  Policeman/Traffic Manager of CPU  Monitors execution of:  Transfer of all information  Program Instructions  Process:  Extracts from memory  Decodes instructions  Makes sure data is in right place at right time  Tells which registers to use, and any interrupts  Manipulates correct circuitry for operation  Uses a program counter to keep track and find execution, overflows, etc.

The BUS  Set of wires that acts as datapath to connect multiple subsystems in system.  Only 1 device may use a bus at a time  This sharing bottlenecks instruction speed  Divided into 2 Categories;  Master – Initiates commands  Slave – Responds to requests of Master  Can be:  Point to Point 2 Specific component conversation  Common pathway Aka Multipoint, shared across many devices

BUS Continued  Because of this method of sharing, Bus Protocols are important.  Different lines of data include:  Data Lines – Actual Information To Be Moved  Control Lines – Permissions for bus to be used Interrupts, clock sync, requests  Address Lines – Location data should go  Power Lines – Provided electricity  Each happens within bus cycle, 2 ticks of bus clock

And Yet More BUS  Buses also divided into different types  Processor-Memory Short, high speed, closely matched to memory to maximize bandwidth  I/O Longer and allow many types of devices with varying bandwidth  Backplane Built into chassis, connects processor, I/O Devices, Memory

And Yet More BUS  PCs have own terminology in terms of BUSes  Internal  Connects CPU, Memory, Others  Expansion  Connects External Devices, Peripherals, Expansions Slots, I/O Ports  Slow, but allow for generic connectivity  Local  High-Speed for limited number of similar devices

And Yet More BUS Info  Physically little more than bunches of wires, have standards for connectors,timing, and signaling.  Synchronous  Only at Tick, Clocked, synchronized at clock’s rate  Length of the bus imposes restrictions on rate and time.  Asynchronous  Control lines control operations  Complex protocol required to enforce instruction timing  Scale better with technology and support more devices

BUS Arbitration  Required when there is more than 1 master device  Determines which Bus is used at a point in time for what reason  Daisy Chain Arbitration  Uses Grant Bus control line that is passed down from bus of highest priority to lowest.  Centralized parallel arbitration  Each devices has request control line to bus, and centralized arbiter selects who gets the bus  Distributed Arbitration using Self-Selection  Similar to Centralized but instead of central authority, devices themselves choose who has highest priority  Distributed arbitration using Collision Detection  Each devices allowed to make request, any collisions mean another request is needed

Clocks  Every computer contains Clock to regulate instructions to be executed.  Without clocks speed of digital gates would be unpredictable, and regulation of programs would be impossible  Measured in Clock Cycles  This is simply frequency’s reciprocal  Besides Individual Clock Cycles, There are Bus Clocks for other uses  Overclocking  Pushing bounds of components to make more efficient process execution times

INPUT/OUTPUT SUBSYSTEM  I/O Allows us to communicate with the computer  Transfer of data with peripherals and memory  An Interface handles all the transfers of data  2 Types  Memory-Mapped I/O Registers in interface, no difference between computer’s memory allocations and current I/O Devices  Instruction-Based I/O Specialized instructions for I/O No memory required, but requires specific instructions  Interrupts are essential in I/O as they notify the CPU more efficiently than atypical data calls