1 System Clock and Clock Synchronization.. System Clock Background Although modern computers are quite fast and getting faster all the time, they still.

Slides:



Advertisements
Similar presentations
Part 4: combinational devices
Advertisements

1 Microprocessor History. 2 The date is the year that the processor was first introduced. Many processors are re- introduced at higher clock speeds for.
Microprocessor and Microcontroller
IT Chapter 2 Part B CPU. The CPU is contained on a single integrated circuit called the microprocessor. Often referred to as the brains of a computer.
SECTION 4a Transforming Data into Information.
Higher Computing: Unit 1: Topic 3 – Computer Performance St Andrew’s High School, Computing Department Higher Computing Topic 3 Computer Performance.
Henry Hexmoor1 Chapter 7 Henry Hexmoor Registers and RTL.
Processor Technology and Architecture
1: Operating Systems Overview
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
9/16/2004Comp 120 Fall September 16 Assignment 4 due date pushed back to 23 rd, better start anywayAssignment 4 due date pushed back to 23 rd, better.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Copyright © 1998 Wanda Kunkle Computer Organization 1 Chapter 2.1 Introduction.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
Fall 2001CS 4471 Chapter 2: Performance CS 447 Jason Bakos.
GCSE Computing - The CPU
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.
PH4705/ET4305: A/D: Analogue to Digital Conversion
CPU Describe the purpose of the CPU
Computer Systems Computer Performance.
Processor Structure & Operations of an Accumulator Machine
Writer:-Rashedul Hasan Editor:- Jasim Uddin
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.
Computer Processing of Data
Computing hardware CPU.
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
Rabie A. Ramadan Lecture 3
Types of Computers Mainframe/Server Two Dual-Core Intel ® Xeon ® Processors 5140 Multi user access Large amount of RAM ( 48GB) and Backing Storage Desktop.
Survey of Existing Memory Devices Renee Gayle M. Chua.
Data Manipulation, Communication and Architecture Fall 2012.
Intermediate 2 Computing Computer structure. Organisation of a simple computer.
Microprocessor-Based System. What is it? How simple can a microprocessor-based system actually be? – It must obviously contain a microprocessor otherwise.
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Memory.
© CCI Learning Solutions Inc. 1 Lesson 2: Elements of a Personal Computer System unit Microprocessor chip How memory is measured What ROM is What RAM is.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: CPU.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Chapter 4 MARIE: An Introduction to a Simple Computer.
Computer Systems - Processor. Objectives To investigate and understand the structure and role of the processor.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.
Identifying Hardware Components in a Computer (continued) Clock Speed (continued) The computer has a system clock that generates a regular electronic beat.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
IT Essentials Chapter 1 Part C. 1.5 Math for a Digital Age.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
The Central Processing Unit (CPU)
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
M211 – Central Processing Unit
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
Central Processing Unit (CPU) The Computer’s Brain.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
“With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
What’s going on here? Can you think of a generic way to describe both of these?
Additional Examples CSE420/598, Fall 2008.
Computer Hardware What is a CPU.
GCSE Computing - The CPU
The Central Processing Unit: What Goes on Inside the Computer
GCSE OCR Computing A451 The CPU Computing hardware 1.
REGISTER TRANSFER LANGUAGE (RTL)
The Central Processing Unit
THE CPU i Bytes 1.1.
Lesson Objectives Aims You should be able to:
GCSE Computing - The CPU
Chapter 2: Performance CS 447 Jason Bakos Fall 2001 CS 447.
Presentation transcript:

1 System Clock and Clock Synchronization.

System Clock Background Although modern computers are quite fast and getting faster all the time, they still require a finite amount of time to accomplish even the smallest tasks. like the 80x86, most operations are serialized. 2

the computer executes commands in a prescribed order. It wouldn't do for example, to execute the statement I:=I*5+2; before I:=J; in the following sequence: I := J; I := I * 5 + 2; Clearly we need some way to control which statement executes first and which executes second. 3

Of course, on real computer systems, operations do not occur instantaneously. Moving a copy of J into I takes a certain amount of time. Likewise, multiplying I by five and then adding two and storing the result back into I takes time. As you might expect, the second Pascal statement above takes quite a bit longer to execute than the first. 4

interested in writing fast software, a natural question to ask is, "How does the processor execute statements, and how do we measure how long they take to execute?" 5

System Clock the system clock handles all synchronization within a computer system. “The system clock is an electrical signal on the control bus which alternates between zero and one at a periodic rate” 6

cont... CPUs are a good example of a complex synchronous logic system. The system clock gates many of the logic gates that make up the CPU allowing them to operate in a synchronized fashion. 7

cont... The frequency with which the system clock alternates between zero and one is the system clock frequency. The time it takes for the system clock to switch from zero to one and back to zero is the clock period. 8

cont... One full period is also called a clock cycle. On most modern systems, the system clock switches between zero and one at rates exceeding several million times per second. The clock frequency is simply the number of clock cycles which occur each second. 9

cont... A typical chip runs at speeds of 66million cycles per second. "Hertz" (Hz) is the technical term meaning one cycle per second. Therefore, the aforementioned chip runs at 66 million hertz, or 66 megahertz (MHz). 10

Clock Synchronization To ensure synchronization, most CPUs start an operation on either the falling edge (when the clock goes from one to zero) or the rising edge (when the clock goes from zero to one). The system clock spends most of its time at either zero or one and very little time switching between the two. Therefore clock edge is the perfect synchronization point. 11

Clock Synchronization Since all CPU operations are synchronized around the clock the CPU cannot perform tasks any faster than the clock. However, just because a CPU is running at some clock frequency doesn't mean that it is executing that many operations each second. Many operations take multiple clock cycles to complete so the CPU often performs operations at a significantly lower rate. 12

Memory Access and System Clock Memory access is probably the most common CPU activity. Memory access is definitely an operation synchronized around the system clock. That is, reading a value from memory or writing a value to memory occurs no more often than once every clock cycle. 13

Memory Access and System Clock Indeed, on many 80x86 processors, it takes several clock cycles to access a memory location. The memory access time is the number of clock cycles the system requires to access a memory location; this is an important value since longer memory access times result in lower performance. 14

Cont.. Different 80x86 processors have different memory access times ranging from one to four clock cycles. For example, the 8088 and 8086 CPUs require four clock cycles to access memory the requires only one. 15

Cont.. Therefore, the will execute programs which access memory faster than an 8086, even when running at the same clock frequency. 16

17 So.. Accurate reliable time is necessary for financial and legal transactions, transportation and distribution systems and many other applications involving distributed resources For distributed internet applications, synchronization of processes, accuracy and reliability of a clock device is required

Cont.. the memory access time is the amount of time from the point that the CPU places an address on the address bus and the CPU takes the data off the data bus. On an CPU with a one cycle memory access time, a read looks something like shown 18

Reading from memory 19

Writing to memory 20

Cont.. Note that the CPU doesn't wait for memory. The access time is specified by the clock frequency. If the memory subsystem doesn't work fast enough, the CPU will read garbage data on a memory read operation and will not properly store the data on a memory write operation. This will surely cause the system to fail. 21

Wait States A wait state is nothing more than an extra clock cycle to give some device time to complete an operation. For example, a 50 MHz system has a 20 ns clock period. This implies that you need 20 ns memory. In fact, the situation is worse than this. In most computer systems there is additional circuitry between the CPU and memory: decoding and buffering logic. 22

Cont.. 23

Cont.. the system loses 10ns to buffering and decoding. So if the CPU needs the data back in 20 ns, the memory must respond in less than 10 ns. 24