Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.

Slides:



Advertisements
Similar presentations
Registers Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens A clock is a free-running signal with a cycle time. A clock may.
Advertisements

Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
1 Introduction Sequential circuit –Output depends not just on present inputs (as in combinational circuit), but on past sequence of inputs Stores bits,
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
October 16, 2002Flip-flops1 Summary : Latches A sequential circuit has memory. It may respond differently to the same inputs, depending on its current.
EET 1131 Unit 10 Flip-Flops and Registers
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits – I Flip-Flops A sequential circuit is a logic components whose outputs.
Flip-Flops Last time, we saw how latches can be used as memory in a circuit. Latches introduce new problems: We need to know when to enable a latch. We.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
Embedded Systems Hardware:
Embedded Systems Hardware: Storage Elements; Finite State Machines; Sequential Logic.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
The Processor Andreas Klappenecker CPSC321 Computer Architecture.
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
ENGSCI 232 Computer Systems Lecture 5: Synchronous Circuits.
Flip Flop
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
Digital Design: Principles and Practices
Performance David Monismith Jan. 16, 2015 Based on notes from Dr. Bill Siever and from the Patterson and Hennessy Text.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Computer Organization & Programming Chapter 5 Synchronous Components.
Digital Logic Design.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Logic Design / Processor and Control Units Tony Diep.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
LECTURE 4 Logic Design. LOGIC DESIGN We already know that the language of the machine is binary – that is, sequences of 1’s and 0’s. But why is this?
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
1 Computer Organization Wireless & Mobile Networks Lab Li-hua Dong
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and from the Patterson and Hennessy Text.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Computer Science 210 Computer Organization
Digital Design - Sequential Logic Design
Dr. Clincy Professor of CS
CHAPTER 18 Circuits for Arithmetic Operations
LATCHED, FLIP-FLOPS,AND TIMERS
Clocks A clock is a free-running signal with a cycle time.
Computer Architecture & Operations I
Sequential Logic Counters and Registers
Latches, Flip-Flops and Registers
Computer Science 210 Computer Organization
Digital System Design Review.
Latches and Flip-flops
Computer Science 210 Computer Organization
Elec 2607 Digital Switching Circuits
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
CSE 370 – Winter Sequential Logic - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Registers.
Flip-Flops.
CHAPTER 18 Circuits for Arithmetic Operations
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Forward Design by state transition table, and state graph
Clocks A clock is a free-running signal with a cycle time.
Presentation transcript:

Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text

Review Finishing Flip Flops Last time we looked at the D-Latch and investigated how it prevents an RS-latch from entering a state in which both set and reset are true. We also investigated both gate and component based diagrams of the D-Latch

More Flip Flops Ideally we would like storage devices such as registers to become active with therising edge of a clock signal. Computers run on a system clock that utilizes a constant frequency. Given a constant frequency such as 1 GHz, the period of the clock signal is known. For 1 GHz (one cycle/second) the period is 1 ns (one nanosecond per cycle). A real system clock provides an on signal for a portion of the clock period and an off signal for the remainder of the period.

Gates based Flip Flops Ideally we would like to allow for enough time for data to be written to registersand for stored data to propagate from registers to a CPU component such as theALU. To accomplish this, we need exact control of when the value stored in a register may be changed. This could be accomplished using an impulse with a level triggered register, butproviding an impulse based clock may limit some other features of the CPU. Instead, we will develop an "edge-triggered" flip flop. That is, a flip flop whose value can only be changed on either the rising or falling edge of the clock. To do so, we need more logic gates before our RS-Latch.

Gates Based Flip Flops.. Essentially we need gates that provide an instant open and close for the data signal to enter when the clock rises or falls. We won't go into the exact details of how this works. It is sufficient for you to understand that the signal for D is only recognized when the Edge Triggered Flip Flop sees either the rising edge of the clock or the falling edge. This provides us with an exact time at which we know the data stored in a register can be changed. We can use the rest of the time to allow the signal to travel to an adder or another component. Examples of the component and gate based flip flops are provided on the examples page of the class website.

Bit Shifting Bit shifting is simply moving data stored in a register to the right or left and replacing the lost data. In its most simple form, empty bit locations are replaced with either all one's or all zeroes. Bits may be shifted to the left or right. To perform a shift right logical (srl in assembly, and >> in C/Java) we will look at an example. Assume we are given an 8 bit value: Shifting to the right by one bit provides the following result:

Bit Shifting.. We can control the number of bits by which we shift as well. We could shift a binary value to the left by 3 bit. For example, shifting to the left by 3 bits provides the following result: A shift left logical is represented as "sll" in assembly and << in C/Java.

Binary Multiplication An example of binary multiplication is provided below (12d) *1011 (11d) = 128d + 4d = 132d

Binary Multiplication.. Notice that the result is computed by bit shifting the first multiplicand to the left based upon the location of each one in the second multiplicand and addingthe result. Additionally notice that shifting by one bit to the left effectively multiplies by two and shifting by one bit to the right effectively divides by two. Next time we will look at finite state machines. In a finite state machine (FSM): States are represented by circles; The ending state is represented by a circle within a circle; and Transitions between states are represented by arrows.