Digital Logic & Design Dr. Waseem Ikram Lecture No. 36.

Slides:



Advertisements
Similar presentations
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Advertisements

Synchronous Counters with SSI Gates
Assignments The submission has to be by the end of this week Write your full name and the group number on the answer sheet.
Using State Machines as Control Circuits Lecture L9.4.
Designing State Machines Lecture L9.2 Handout Section 9.2.
Counters as State Machines Lecture L9.1 Handout Section 9.1.
Designing State Machines SQRT controller Lecture L9.2a Section 9.2.
Binary Counters Lecture L8.3 Section 8.2. Counters 3-Bit Up Counter 3-Bit Down Counter Up-Down Counter.
CSCE 211: Digital Logic Design
Shift Registers Lecture L6.6 Section Bit Shift Register.
Circuit, State Diagram, State Table
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Synchronous Counters ET 5. Thinking back In the past we have seen that asynchronous counters can be used to count binary in the order that we have filled.
State Machines.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Analysis and Synthesis of Synchronous Sequential Circuits A “synchronizing” pulse/edge signal (clock) controls the operation of the memory portion of the.
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
IKI b-Analysis of Sequential Logic Bobby Nazief Semester-I The materials on these slides are adopted from: CS231’s Lecture Notes at.
Dr. ClincyLecture Slide 1 CS Chapter 3 (3A and ) Part 8 of 8 Dr. Clincy Professor of CS.
Lecture No. 29 Sequential Logic.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 26.
Lecture No. 14 Combinational Functional Devices. Digital Logic &Design Dr. Waseem Ikram Lecture 14.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 35.
Appendix C Basics of Logic Design. Appendix C — Logic Basic — 2 Logic Design Basics §4.2 Logic Design Conventions Objective: To understand how to build.
1 Lecture #15 EGR 277 – Digital Logic Reading Assignment: Chapter 5 in Digital Design, 3 rd Edition by Mano Example: (Problem 5-17 from Digital Design,
Digital Logic & Design Dr. Waseem Ikram Lecture No. 25.
Digital Logic & Design Dr. Waseem Ikram Lecture 37.
Digital Logic & Design Dr. Waseem Ikram Lecture 39.
Introduction to Advanced Digital Design (14 Marks)
Digital Logic & Design Dr. Waseem Ikram Lecture 05
Digital Logic & Design Dr. Waseem Ikram Lecture No. 28.
EEL 3705 / 3705L Digital Logic Design
FIGURE 5.1 Block diagram of sequential circuit
Sequential Circuit: Counter
Digital Design Lecture 9
CSCE 211: Digital Logic Design
Dr. Clincy Professor of CS
Digital Logic & Design Dr. Waseem Ikram Lecture No. 30.
ECE 301 – Digital Electronics
Malik Najmus Siraj Digital Logic Design Malik Najmus Siraj
D Flip-Flop.
CSCE 211: Digital Logic Design
Digital Logic & Design Dr. Waseem Ikram Lecture 38.
CSCE 211: Digital Logic Design
Counters as State Machines
Digital Logic & Design Dr. Waseem Ikram Lecture No. 34.
CSCE 211: Digital Logic Design
ECE 3130 – Digital Electronics and Design
Programmable Electrically Erasable Logic Devices (PEEL)
Lecture No. 24 Sequential Logic.
Recap D flip-flop based counter Flip-flop transition table
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 16.
Digital Logic & Design Lecture 05
Digital Logic & Design Dr. Waseem Ikram Lecture 40.
Dr. Clincy Professor of CS
MTE 202, Summer 2016 Digital Circuits Dr.-Ing. Saleh Hussin
Lecture No. 32 Sequential Logic.
KU College of Engineering Elec 204: Digital Systems Design
Programmable Logic Devices
EGC 442 Introduction to Computer Architecture
SYEN 3330 Digital Systems Chapter 6 – Part 3 SYEN 3330 Digital Systems.
XOR Function Logic Symbol  Description  Truth Table 
FINITE STATE MACHINES.
CSCE 211: Digital Logic Design
Presentation transcript:

Digital Logic & Design Dr. Waseem Ikram Lecture No. 36

Recap

D flip-flop input table for X=0 Present State Next State X=0 D flip-flop inputs Q2 Q1 Q0 D2 D1 D0 1

D flip-flop input table for X=1 Present State Next State X=1 D flip-flop inputs Q2 Q1 Q0 D2 D1 D0 1

Boolean expression for D2 inputs Q2Q1/Q0X 00 01 11 10 1

Boolean expression for D1 inputs Q2Q1/Q0X 00 01 11 10 1

Boolean expression for D0 inputs Q2Q1/Q0X 00 01 11 10 1

3-bit Up/Down Counter

Input/Output Pin Definition of 3-bit Up/Down Counter CLOCK, CLEAR, X pin 1, 2, 3; Q0, Q1, Q2 pin 21, 22, 23 ISTYPE ‘reg,buffer’;

Equation Definition of 3-bit Up/Down Counter Equations Q0 := !Q0; Q1 := Q0 $ Q1 $ X; Q2 := !Q2 & !Q1 & !Q0 & X # !Q2 & Q1 & Q0 & !X # Q2 & !Q0 & !X # Q2 & Q1 & X # Q2 & !Q1 & Q0; [Q0, Q1, Q2].CLK = clock; [Q0, Q1, Q2].AR = !clear;

Test Vector Definition of 3-bit Up/Down Counter ([Clock, Clear, X] -> [Q2, Q1, Q0]) [ .c. , 0 ,.x.] -> [0 , 0 , 0 ]; [ .c. , 1 , 0 ] -> [0 , 0 , 1 ]; [ .c. , 1 , 0 ] -> [0 , 1 , 0 ]; [ .c. , 1 , 0 ] -> [0 , 1 , 1 ]; [ .c. , 1 , 0 ] -> [1 , 0 , 0 ]; [ .c. , 1 , 0 ] -> [1 , 0 , 1 ]; [ .c. , 1 , 0 ] -> [1 , 1 , 0 ]; [ .c. , 1 , 0 ] -> [1 , 1 , 1 ]; [ .c. , 1 , 0 ] -> [0 , 0 , 0 ]; [ .c. , 1 , 1 ] -> [1 , 1 , 1 ]; [ .c. , 1 , 1 ] -> [1 , 1 , 0 ]; [ .c. , 1 , 1 ] -> [1 , 0 , 1 ]; [ .c. , 1 , 1 ] -> [1 , 0 , 0 ]; [ .c. , 1 , 1 ] -> [0 , 1 , 1 ]; [ .c. , 1 , 1 ] -> [0 , 1 , 0 ]; [ .c. , 1 , 1 ] -> [0 , 0 , 1 ]; [ .c. , 1 , 1 ] -> [0 , 0 , 0 ];

Equation Definition for Truth Table based Sequential Circuit definition Equations [Q0, Q1, Q2].CLK = clock; [Q0, Q1, Q2].AR = !clear;

Truth Table definition for the 3-bit Up/Down Counter Truth_Table ([Clear, X, Q2, Q1, Q0] :> [Q2, Q1, Q0]) [ 0 ,.x., .x. , .x. , .x. ] :> [ 0 , 0 , 0 ]; [ 1 , 0 , 0 , 0 , 0 ] :> [ 0 , 0 , 1 ]; [ 1 , 0 , 0 , 0 , 1 ] :> [ 0 , 1 , 0 ]; [ 1 , 0 , 0 , 1 , 0 ] :> [ 0 , 1 , 1 ]; [ 1 , 0 , 0 , 1 , 1 ] :> [ 1 , 0 , 0 ]; [ 1 , 0 , 1 , 0 , 0 ] :> [ 1 , 0 , 1 ]; [ 1 , 0 , 1 , 0 , 1 ] :> [ 1 , 1 , 0 ]; [ 1 , 0 , 1 , 1 , 0 ] :> [ 1 , 1 , 1 ]; [ 1 , 0 , 1 , 1 , 1 ] :> [ 0 , 0 , 0 ]; [ 1 , 1 , 0 , 0 , 0 ] :> [ 1 , 1 , 1 ]; [ 1 , 1 , 1 , 1 , 1 ] :> [ 1 , 1 , 0 ]; [ 1 , 1 , 1 , 1 , 0 ] :> [ 1 , 0 , 1 ]; [ 1 , 1 , 1 , 0 , 1 ] :> [ 1 , 0 , 0 ]; [ 1 , 1 , 1 , 0 , 0 ] :> [ 0 , 1 , 1 ]; [ 1 , 1 , 0 , 1 , 1 ] :> [ 0 , 1 , 0 ]; [ 1 , 1 , 0 , 1 , 0 ] :> [ 0 , 0 , 1 ]; [ 1 , 1 , 0 , 0 , 1 ] :> [ 0 , 0 , 0 ];

State definition of the 3-bit Up/Down Counter QSTATE = [Q2, Q1, Q0]; A = [ 0 , 0 , 0 ]; B = [ 0 , 0 , 1 ]; C = [ 0 , 1 , 0 ]; D = [ 0 , 1 , 1 ]; E = [ 1 , 0 , 0 ]; F = [ 1 , 0 , 1 ]; G = [ 1 , 1 , 0 ]; H = [ 1 , 1 , 1 ];

Defining the next states using IF-THEN-ELSE State Diagram State A: if X then H else B; State B: if X then A else C; State C: if X then B else D; State D: if X then C else E; State E: if X then D else F; State F: if X then E else G; State G: if X then F else H; State H: if X then G else A;

Defining the next states using GOTO State Diagram State A: GOTO B; State B: GOTO C; State C: GOTO D; State D: GOTO E; State E: GOTO F; State F: GOTO G; State G: GOTO H; State H: GOTO A;

State Diagram of Elevator

State table for Elevator Control for REQ1, FLOOR1 and OPEN inputs Present State Next State REQ1=0 REQ1=1 FLOOR1=0 FLOOR1=1 OPEN=0 OPEN=1 W1(000) x C1(100) C1 W1 UP(110) W2(001) C2 DO C2(101) DO(111)

State table for Elevator Control for REQ2, FLOOR2 and OPEN inputs Present State Next State REQ2=0 REQ2=1 FLOOR2=0 FLOOR2=1 OPEN=0 OPEN=1 W1(000) C1 UP x C1(100) UP(110) W2(001) C2(101) C2 W2 DO(111)

Block diagram of the Elevator State Machine

Programmable Sequential Logic

Truth-Table & State Diagram

Elevator Controller

Digital Logic Design Lecture 36