ELE2120 Digital Circuits and Systems. Tutorial Note 8

Similar documents
Logic Design. Flip Flops, Registers and Counters

RS flip-flop using NOR gate

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

RS flip-flop using NOR gate

MC9211 Computer Organization

CHAPTER 4: Logic Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

CHAPTER 4: Logic Circuits

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Counters

Counter dan Register

Unit 11. Latches and Flip-Flops

Asynchronous (Ripple) Counters

Chapter 5 Sequential Circuits

Other Flip-Flops. Lecture 27 1

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Chapter 4. Logic Design

Registers and Counters

UNIVERSITI TEKNOLOGI MALAYSIA

Chapter. Synchronous Sequential Circuits

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

LATCHES & FLIP-FLOP. Chapter 7

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

1. Convert the decimal number to binary, octal, and hexadecimal.

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Final Exam review: chapter 4 and 5. Supplement 3 and 4

ECE 263 Digital Systems, Fall 2015

Digital Fundamentals: A Systems Approach

Introduction. Serial In - Serial Out Shift Registers (SISO)

Registers and Counters

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Vignana Bharathi Institute of Technology UNIT 4 DLD

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Chapter 9 Counters. Clock Edge Output Q 2 Q 1 Q

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

IT T35 Digital system desigm y - ii /s - iii

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

LAB 7. Latches & Flip Flops

Introduction to Sequential Circuits

CHAPTER1: Digital Logic Circuits

Decade Counters Mod-5 counter: Decade Counter:

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Chapter 5 Synchronous Sequential Logic

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

ELCT201: DIGITAL LOGIC DESIGN

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Part II. Chapter2: Synchronous Sequential Logic

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

Module -5 Sequential Logic Design

ASYNCHRONOUS COUNTER CIRCUITS

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

EE292: Fundamentals of ECE

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Computer Organization & Architecture Lecture #5

Lecture 12. Amirali Baniasadi

Sequential Logic Counters and Registers

Sequential Logic Circuits

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Chapter 5: Synchronous Sequential Logic

Flip-Flops and Sequential Circuit Design

Registers and Counters

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

Chapter 6 Registers and Counters

EKT 121/4 ELEKTRONIK DIGIT 1

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Asynchronous Counter

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

Introduction to Microprocessor & Digital Logic

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

ELCT201: DIGITAL LOGIC DESIGN

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Universal Asynchronous Receiver- Transmitter (UART)

Sequential Logic and Clocked Circuits

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

Digital Logic Design ENEE x. Lecture 19

Review of digital electronics. Storage units Sequential circuits Counters Shifters

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

UNIT IV. Sequential circuit

CHAPTER 6 COUNTERS & REGISTERS

DIGITAL ELECTRONICS MCQs

Logic Design II (17.342) Spring Lecture Outline

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

LSN 12 Shift Registers

Registers and Counters

CPS311 Lecture: Sequential Circuits

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

Logic Design Viva Question Bank Compiled By Channveer Patil

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

MODULE 3. Combinational & Sequential logic

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Transcription:

ELE2120 Digital Circuits and Systems Tutorial Note 8

Outline 1. Register 2. Counters 3. Synchronous Counter 4. Asynchronous Counter 5. Sequential Circuit Design

Overview 1. Register Applications: temporally store bits Shifting bits for calculation, serial comm. Shift register, serial adder, USR. 2. Counter Asynchronous Counters Synchronous Counters 3. Clock pulse generator

Shift Register Shift Register Array of Flip-Flops is a synchronous systems they are driven by the same clocking waveform

Parallel-Access Shift Register

Exercise(1): Register

Exercise(1): Register

Counters Also an array of Flip Flops Changes of state depends on the changes of event Clock driven synchronous Event driven asynchronous Concept of modulo (mod) Max. no. of states = 2n states (with n arrays) no. of states through the cycle before turning back to the starting states (mod)

Synchronous Counter Ripple Counters Event Driven Possible of saving hardware Delay

3-bit Up Counter 3-bit Up counter with T F-F Timing diagram

4-bit Up Counter 4-bit Up counter with T F-F Timing diagram Overflow Conditions: only when Q0=1&Q1=1&C lk=1.

Synchronous Counter When Load = 0: When Load = 1: D0,D1,D2,D3 will be assign to Q0,Q1,Q2,Q3

Synchronous Counter A Modulo-6 Counter with S Reset Detect and reset when 5 occurs

Asynchronous Counter (binary &BCD) 2-Digit BCD Counter 1. Four parts to form an AS counter: 3. 4. 1.Enable: Di with respect of Qi and Enable. 2.Load: Reset D0,D1,D2,D3 when Load equals to 1. 3.Clear: Load 0 s into the counter. 2. 4.Overflow carrier: Connect with Load to check the reset condition.

Synchronous Counter Ring Counter Share the same clocking system mod 4 counter 1000 0100 0010 0001

Exercise(1)

Exercise(1)

Exercise (2)

Exercise (2)

Sequential Circuit Design In sequential circuit design, we turn some description into a working circuit. We first make a state table or diagram to express the computation. Then we can turn that table or diagram into a sequential circuit. Need to be clear : Characteristic table and characteristic equations are referring to latches and Flip Flops. State equations, state tables and state diagrams are talking about a particular design.

Sequential Circuit Design T flip-flops lead to a simpler circuit. D flip-flops have the advantage that you don t have to set up flip-flop inputs at all, since Q(t+1) = D. However, the D input equations are usually more complex than T input equations In practice, D flip-flops are used more often. There is only one input for each flip-flop, not two. There are no excitation tables to worry about.

Sequential Circuit Design Sequential circuit design procedure Step 1: Make a state table based on the problem statement. The table should show the present states, inputs, next states and outputs. (It may be easier to find a state diagram first, and then convert that to a table.) Do state reduction if possible. Step 2: Assign binary codes to the states in the state table, if you haven t already. If you have n states, your binary codes will have at least log2 n digits, and your circuit will have at least log2 n flip-flops. Step 3: For each flip-flop and each row of your state table, find the flip-flop input values that are needed to generate the next state from the present state. You can use flip-flop excitation tables here. Step 4: Find simplified equations for the flip-flop inputs and the outputs. Step 5: Build the circuit!

Exercise Design a BCD counter that will count from 0000(zero) through 1001(decima 9).

Gerneral Procedure To construct a counter that starts counting from all 0s to X: 1.Find the smallest number of FFs such that 2 N X, and connect them as a counter. If 2 N =X, do not do step 2 and 3. 2. Connec a NAND gate to the asynchronous Clear inputs of all the FFs. 3. Determine which FFs will be in the HIGH state at a count=x; then connect the normal outputs of these FFs to the NAND gate inputs.

Solution 2 3 =8, 2 4 =16; thus four FFs are required. Since the counter is to have stable operation up to the count of 1001, it must be reset to zero when the count of 1010 is reached. Therefore, FF outputs D and B must be connected as the NAND gate inputs. 1 1MHz

Exercise Determine Q(t+Δt) as a function of the inputs and Q(t) for the logic circuit shown in Figures: S R Clock S C R Q Q

Solution S R Clock S C R Q Q Typical question based on characteristic equation. 1.Find the next-state equation of the same kind. For this case, it is a gated SR latch, the next-state equation: Q(t+Δt)=S(t)C(t)+R (t)q(t)+c (t)q(t) 2. Identify the input and output S(t)=(X(t)+Y(t)) =X (t)y (t) R(t)=Y(t) 3.Substitue the input and output to it C=1, Q(t+Δt)=X (t)y (t)+y (t)q(t)

Ref. to Characteristic Equation Specify next state as a function of its current state and inputs Q(t) current state Q(t+1) next state For example: SR latch: Q(t+1) = S + R Q(t) D flip-flop: Q(t+1) = D JK flip-flop: Q(t+1) = JQ (t)+k Q(t) T flip-flop: Q(t+1) = T Q(t)= TQ (t)+t Q(t)