Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Similar documents
UNIT II: Clocked Synchronous Sequential Circuits. CpE 411 Advanced Logic Circuits Design 1

Serial Addition. Lecture 29 1

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 7/11/2011

Digital Logic Circuits

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 6/30/2008

Module -18 Flip flops

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM


DIGITAL ELECTRONICS QUESTION BANK

Computer Architecture and Organization:

EC O4 403 DIGITAL ELECTRONICS

Digital Electronics Course Objectives

DIGITAL CIRCUITS AND SYSTEMS ASSIGNMENTS 1 SOLUTIONS

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

EECS 150 Homework 4 Solutions Fall 2008

Chapter 4: FLIP FLOPS. (Sequential Circuits) By: Siti Sabariah Hj. Salihin ELECTRICAL ENGINEERING DEPARTMENT EE 202 : DIGITAL ELECTRONICS 1

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Laboratory Manual CS (P) Digital Systems Lab

Exercise 1: AND/NAND Logic Functions

Fan in: The number of inputs of a logic gate can handle.

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Digital Logic

Module-20 Shift Registers

Brought to you by. Priti Srinivas Sajja. PS01CMCA02 Course Content. Tutorial Practice Material. Acknowldgement References. Website pritisajja.

logic system Outputs The addition of feedback means that the state of the circuit may change with time; it is sequential. logic system Outputs

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Exercise 2: OR/NOR Logic Functions

Additional Programs for the Electronics Module Part No

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

Spec. Instructor: Center

Classification of Digital Circuits

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

ENGG1015: lab 3. Sequential Logic

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Project Board Game Counter: Digital

Practical Workbook Logic Design & Switching Theory

1 Q' 3. You are given a sequential circuit that has the following circuit to compute the next state:

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING SEMESTER TWO EXAMINATION 2017/2018

Adder Comparator 7 segment display Decoder for 7 segment display D flip flop Analysis of sequential circuits. Sequence detector

Lecture 20: Several Commercial Counters & Shift Register

Electronics. Digital Electronics

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

BCD Adder. Lecture 21 1

Page 1. Last time we looked at: latches. flip-flop

CHAPTER 5 DESIGN OF COMBINATIONAL LOGIC CIRCUITS IN QCA

Chapter 3 Digital Logic Structures

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Syllabus: Digital Electronics (DE) (Project Lead The Way)

Encoders. Lecture 23 5

EXPERIMENT NO 1 TRUTH TABLE (1)

EECS-140/141 Introduction to Digital Logic Design Lecture 7:Sequential Logic Basics

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378:

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

Electronic Instrumentation

CS302 - Digital Logic Design Glossary By

Positive and Negative Logic

IES Digital Mock Test

DIGITAL DESIGN WITH SM CHARTS

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

Department of Electronics and Communication Engineering

HIGH LOW Astable multivibrators HIGH LOW 1:1

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

CMOS Digital Integrated Circuits Lec 11 Sequential CMOS Logic Circuits

High Speed Binary Counters Based on Wallace Tree Multiplier in VHDL

GATE Online Free Material

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700:

DIGITAL LOGIC WITH VHDL (Fall 2013) Unit 5

Paper No. Name of the Paper Theory marks Practical marks Periods per week Semester-I I Semiconductor

Digital Electronics. A. I can list five basic safety rules for electronics. B. I can properly display large and small numbers in proper notation,

Written exam IE1204/5 Digital Design Friday 13/

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

EXPERIMENT #5 COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

Exercises: Fundamentals of Computer Engineering 1 PAGE: 1

First Name: Last Name: Lab Cover Page. Teaching Assistant to whom you are submitting

0 0 Q Q Q Q

COLLEGE OF ENGINEERING, NASIK

UNIT III. Designing Combinatorial Circuits. Adders

! Sequential Logic. ! Timing Hazards. ! Dynamic Logic. ! Add state elements (registers, latches) ! Compute. " From state elements

TABLE 3-2 Truth Table for Code Converter Example

Linear & Digital IC Applications (BRIDGE COURSE)

Java Bread Board Introductory Digital Electronics Exercise 2, Page 1

Aim. Lecture 1: Overview Digital Concepts. Objectives. 15 Lectures

B.C.A 2017 DIGITAL ELECTRONICS BCA104T MODULE SPECIFICATION SHEET. Course Outline

E-Tec Module Part No

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

Mixed Synchronous/Asynchronous State Memory for Low Power FSM Design

ENGR-4300 Fall 2008 Test 3. Name. Section 1(MR 8:00) 2(TF 2:00) (circle one) Question I (20 points) Question II (15 points) Question III (20 points)

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

DIGITAL INTEGRATED CIRCUITS A DESIGN PERSPECTIVE 2 N D E D I T I O N

EEE 301 Digital Electronics

3.1 There are three basic logic functions from which all circuits can be designed: NOT (invert), OR, and

Chapter # 1: Introduction

Digital Integrated CircuitDesign

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Keywords: VLSI; CMOS; Pass Transistor Logic (PTL); Gate Diffusion Input (GDI); Parellel In Parellel Out (PIPO); RAM. I.

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Transcription:

Computer Architecture: Part II First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Outline Combinational Circuits Flips Flops Flops Sequential Circuits 204231: Computer Organization and Architecture 2

Combinational Circuits A combinational i circuit i is a connected arrangement of logic gates with a set of inputs and outputs. t The n binary input variables come from an external source, the m binary output variables go to an external destination, and in between there is a interconnection i of logic gates. A combinational circuit transforms binary information from the given input data to the required output data. 204231: Computer Organization and Architecture 3

Block diagram of a combinational circuit 204231: Computer Organization and Architecture 4

Half Adder The most basic digital it arithmetic ti circuit itis the addition of two binary digits. A combinational circuit that performs the arithmetic addition of two bits is called a half adder. One that performs the addition of three bits (two significant its and a previous carry) is called a full adder. The name of the former stems from the fact that two half adders are needed to implement a fulladder. 204231: Computer Organization and Architecture 5

Half adder 204231: Computer Organization and Architecture 6

Half adder We assign symbols x and y to the two input variables, and S (for sum) and C (for carry) to the two output variables. The C output is 0 unless both inputs are 1. The S output represents the least significant bit of the sum. S = x y + xy = x y C = xy 204231: Computer Organization and Architecture 7

Full adder A full adder is a combinational circuit itthat tforms the arithmetic sum of three input bits. Two of the input variables, denoted b x and y, represent the two significant bits to be added. The third input, z, represents the carry from the previous lower significant position. The two outputs are designated by the symbols S (for sum) and C (for carry). The binary variable S gives the value of the least significant bit of the sum. The binary variable C gives the output carry. 204231: Computer Organization and Architecture 8

Truth Table for Full Adder 204231: Computer Organization and Architecture 9

Maps for full adder 204231: Computer Organization and Architecture 10

Full adder circuit 204231: Computer Organization and Architecture 11

Flip Flops The most common type of sequential ilcircuit i is the synchronous type. Synchronization is achieved by a timing device called a clock pulse generator that produces a periodic train of clock pulses. The clock pulses are distributed throughout the system in such a way that storage elements are affected only with the arrival of the synchronization pulse. 204231: Computer Organization and Architecture 12

Flip Flops The storage elements employed din clocked sequential circuits are called flip flops. A flip flop is a binary cell capable of storing one bit of information. It has two outputs, one for normal value and one for the complement value of the bit stored in it. A flip flop maintains i a binary state t until directed by a clock pulse to switch states. 204231: Computer Organization and Architecture 13

SR Flip Flop It has three inputs, labeled lblds (for set), R (for reset), and C (for clock). It has an output Q and sometimes the flip flop has a complemented output, which is indicated with a small circle at the other output terminal. There is an arrowhead shaped symbol in front of the letter C to designate a dynamic input. The dynamic indicator symbol denotes the fact that the flip flop responds to a positive transition (from 0 to 1) of the input clock signal. 204231: Computer Organization and Architecture 14

SR Flip Flop If there is no signal at the clock input C, the output of the circuit cannot change irrespective of the values at inputs S and R. Only when the clock signal changes from 0 to 1 can the output be affected according o the values in inputs S and R. 204231: Computer Organization and Architecture 15

SR flip flop 204231: Computer Organization and Architecture 16

D Flip Flop The next state t Q(t+1) is determined dfrom the D input. A D flip flop flop has the advantage of having only one input (excluding C). It has disadvantage that its characteristic table does not have a no change condition Q(t+1)=O(t). The no change condition can be accomplished either by disabling the clock signal or by feeding the output back into the input, so that clock pulses keep the state of the flip flop unchanged. 204231: Computer Organization and Architecture 17

D (data) flip flop Q(t + 1) = D 204231: Computer Organization and Architecture 18

JK Flip Flop Inputs J and K behave like inputs S and R to set and clear the flip flop, p respectively. When inputs J and K are both equal to 1, a clock transition switches the outputs of the flip flop to their complement state. 204231: Computer Organization and Architecture 19

JK flip flop 204231: Computer Organization and Architecture 20

T (toggle) Flip Flop The T flip flop has only two conditions. When T = 0 (J = K = 0) a clock transition does not change the state of the flip flop. When T = 1 (J = K = 1) a clock transition i complements the state of the flip flop. 204231: Computer Organization and Architecture 21

T flip flop Q(t + 1) = Q(t) () T 204231: Computer Organization and Architecture 22

Edge Triggered Flip Flops In this type of flip flop, output transitions occur at a specific level of the clock pulse. When the pulse input level exceeds this threshold level, the inputs are locked out so that the flip flop is unresponsive to further changes in inputs until the clock pulse returns to 0 and another pulse occurs. 204231: Computer Organization and Architecture 23

Positive edge triggered D flip flop The value in the D is transferred to the Q output when the clock makes a positive transition. The output cannot change when the clock is in the 1 level, in the 0 level, or in a transition from the 1 level lto the 0 level. l 204231: Computer Organization and Architecture 24

Negative edge triggered D flip flop The graphic symbol includes a negation small circle in front of the dynamic indicator at the C input. This denotes a negative edge triggered edge triggered behavior. In this case the flip flop responds to a transition from the 1 level to the 0 level of the clock signal. 204231: Computer Organization and Architecture 25

Edge triggered flip flop 204231: Computer Organization and Architecture 26

Excitation Tables The characteristic tables of flip flops specify the next state when the inputs and the present state are known. During the design of sequential circuits we usually know the required transition from present state to next date and wish to find the flip flop input conditions that will cause the required transition. 204231: Computer Organization and Architecture 27

Excitation Table for Four Flip Flops 204231: Computer Organization and Architecture 28

Excitation Tables The symbol x in the tables represents a don tcare condition. For example, in a JK flip flop, a transition from present state of 0 to a next state of 0 can be achieved by having inputs J and K equal to 0 (to obtain no change) or by letting J=0 and K=1 to clear the flip flop (although it is already cleared). 204231: Computer Organization and Architecture 29

Sequential Circuits A sequential circuit is an interconnection of flip flop p and gates. It consists of a combinational circuit and a number of clocked flip flops. flops In general, any number or type of flip flops may be included. 204231: Computer Organization and Architecture 30

Block diagram of a clocked synchronous sequential circuit 204231: Computer Organization and Architecture 31

Example of a sequential circuit 204231: Computer Organization and Architecture 32

Flip Flop Input Equations The part of the combinational i circuit i that generates the inputs to flip flops are described by a set of Boolean expressions called flip flop input equations. We adopt the convention of using the flip flop input symbol to denote the input equation variable name and a subscript to designate the symbol chosen for the output of the flip flop. 204231: Computer Organization and Architecture 33

Flip Flop Input Equations The output of the OR gate is connected to the D input of flip flop A, we write the first equation as D A = Ax + Bx The second input equation is derived from the single AND gate whose input is connected to the D input of flip flop B D B = A x The external output of a sequential circuit is y = Ax + Bx 204231: Computer Organization and Architecture 34

State Table A sequential circuit is specified by a state table that relates outputs and next states as a function of inputs and present states. The next state value of a each flip flop flop is equal to its D input value in the present state. The output column is derived from the output equation. 204231: Computer Organization and Architecture 35

State Table for Sequential Circuit 204231: Computer Organization and Architecture 36

State Diagram In this type of diagram, a state tt is represented tdby a circle, and the transition between states is indicated by directed lines connecting the circles. The binary number inside each circle identifies the state of the flip flops. The directed lines are labeled with two binary numbers separated by a slash. The input value during the preset state is labeled first and the number after the slash gives the output during the present state. A directed line connecting a circle with itself indicates that no change of state occurs. 204231: Computer Organization and Architecture 37

State diagrams of sequential circuit 204231: Computer Organization and Architecture 38

Design Example The design procedure consists of first translating the circuit specifications into a state diagram. The state diagram is then converted into a state table. From the state table we obtain the information for obtaining the logic circuit diagram. 204231: Computer Organization and Architecture 39

Design Example We wish to design a clocked sequential circuit that goes through a sequence of repeated binary states 00, 01, 10, and 11 when a external input x is equal to 1. The state of the circuit remains unchanged when x=0. This type of circuit is called a 2 bit binary counter because the state sequence is identical i to the count sequence of two binary digits. 204231: Computer Organization and Architecture 40

State diagram for binary counter 204231: Computer Organization and Architecture 41

The excitation table for binary counter The excitation table of a sequential circuit is an extension of the state table. This excitation consists of a list of flip flop input excitations that will cause therequired state transitions. The flip flop input conditions are a function of the type of flip flop p used. 204231: Computer Organization and Architecture 42

The excitation table for binary counter In the first row of bl below table, we have a transition ii for flip flop A from 0 in the present state to 0 in the next state. From slide number 28 we find that a transition of states from Q(t)=0 to Q(t+1)=0 in a JK flip flop flop requires that input J=0 and input K=x. So 0 and x are copied in the first row under JA and KA, respectively. Since the first row also shows a transition for flip flop p B from 0 in the present state to 0 in the next state, 0 and x are copied in the first row under JB and KB. 204231: Computer Organization and Architecture 43

Excitation Table for Binary Counter 204231: Computer Organization and Architecture 44

The design of logic circuit diagram. The inputs to the combinational circuit are the external input x and the present state values of flip flops A and B. Theentries entries that list the combinational circuit inputs are specified under the preset state and input columns in the excitation table. Thecombinational circuit outputs are specified under the flip flop inputs columns. 204231: Computer Organization and Architecture 45

Maps for combinatorial circuit of counter 204231: Computer Organization and Architecture 46

Logic diagram of a 2 bit binary counter 204231: Computer Organization and Architecture 47

Reference M. Moris Mano, Computer System Architecture, 3rd ed. NJ: Prentice Hall, 1992. 204231: Computer Organization and Architecture 48