Docsity

Sequential Logic Memory Elements, Latches and Flip Flops-Digital Logic Design-Lab Report, Exercises of Digital Logic Design and Programming

Partial preview of the text

Download Sequential Logic Memory Elements, Latches and Flip Flops-Digital Logic Design-Lab Report and more Exercises Digital Logic Design and Programming in PDF only on Docsity!

Department of Electrical Engineering

Faculty

Member:____________________

Dated: ________________

Semester:_____________ Section: ________________

EE-241: Digital Logic Design

Lab07: Sequential Logic Memory Elements: Latches and Flip-

Flops

Name Reg. No. Report

Marks / 10

Viva

Marks / 5

Total/

Muhammad Abdullah

Salman Tariq 120

Farjad Abid 73

Lab12: Sequential Logic Memory Elements: Latches and Flip-Flops

Please Note that all your written and practical work will be evaluated by the Teaching Assistant / Instructor

A. Pre-Lab Tasks (Have to be completed before coming to Lab)

  1. Differentiate between the Combinational and Sequential Circuit.(0.5 Mark)

Ans: Combinational Circuitthe type of circuits in which the output depends purely on the present inputs (i.e.; no feedback). Example: a half adder module.

Sequential Circuitthe type of circuits in which the output depends not only on the present input but also on the past inputs (i.e.: there is a feedback of output on the input through a memory element). Example: a 3 state lock, Intelligent Traffic Control.

  1. Differentiate between the Synchronous Sequential Logic and Asynchronous Sequential Logic. (0.5 Marks)

Ans: Synchronous Sequential Logic the type of logic which changes its state on the periodic tick of clock is called synchronous sequential logic.

Asynchronous Sequential Logic the type of logic which expresses its memorizing effects by aperiodic ticking of the clock.

  1. The essential elements of Sequential Logic are memory elements. The two basic types of memory elements are Latches and Flip-Flops. What is the basic Difference between them? (0.5 Marks)

This Lab Activity has been designed to familiarize the student with the working and

construction of Memory Elements: Latches and D Flip-Flops.

 The first thing to know is the working of S.R. Latch and how it can be constructed using

NOR and NAND Gates

 Modifying the SR Latch circuit to Transparent(D-Latch)

 Next you will design a D-type positive edge-triggered Flip-Flop using S.R. Latches.

 Next you will add preset and reset functionality to your Flip-Flop design

 There are related questions at the end of this activity. Give complete answers.

Use diagrams if needed for clarity.

Figure 1 logic Diagram

Truth Table

S R Q Q’

1 0 0 1

1 1 0 1

0 1 1 0

1 1 1 0

0 0 Not allowed

6. What are the set and reset conditions for SR and S’R’ Latches?(0.5 Marks)

For SR latch 

 If Reset = 1, then 0 is stored in memory  If Reset = 0, then 1 is stored in memory

For S’R’ latches 

 If Set = 0, then 1 is stored in memory  If Set = 1, then 0 is stored in memory

  1. What is the undefined state for the Latches and how it occurs?(0.5 marks)

For S’R’ latch both inputs cannot be 0 simultaneously.

For a NAND gate, if there is at least one 0, the output goes to 1. If we give zero to both NAND gates then output of both will be 1, which contradicts the definition of Q & Q’.

For SR latch both inputs cannot be 1 simultaneously.

For a NOR gate, if there is at least one 1, the output goes to 0. If we give 1 to both NOR gates then output of both will be 0, which contradicts the definition of Q & Q’.

  1. How can we remove the problem of undefined state using D-Latch? Give Logic Diagram of D-Latch.(1 Mark)

We can control this problem by using an enable input and another input labeled as D.

We couple the ENABLE input with D and COMPLEMENT OF D .So in every case inputs will be the complement of each other. Enable allows the state of memory element to be changed. Changing enable to zero does not change state of memory element.

Figure 2 D-latch with Enable

  1. Give the Graphic Symbols for SR, S’R’ and D -Latch.(0.5 Marks)

D - LATCH

SR – LATCH

B. Lab Task

SR Latch:

1. Implement the SR Latch using i) NOR and ii) NAND gates and show it to Lab

Instructor. Give Logic Diagram and Function Table. What is the difference

between the two implementations? (3 Marks)

What is the difference between the two implementations/

Ans: in SR latch, the input combination (1 1) is not allowed while in S’R’ latch, the

input combination (0 0) is not allowed.

in SR latch, the input combination (0 0) is no change state while in S’R’ latch, the

input combination (1 1) is no change state.

D-Latch:

2. Implement the D-Latch and show it to your Lab Instructor. Give Logic

Diagram and Function Table. What advantage does it have over SR Latch? (

Marks)

For implementation of above circuit we would need six NAND gate.

Figure 4 Graphic Symbol

Characteristics Table:

Q(t) D Q(t+1)

0 0 0

0 1 1

1 0 0

1 1 1

If we complement the line coming from clock then we would be able to modify above circuit as Negative-Edge-Triggered circuit.

  1. Look for the D Flip-Flop IC available in the lab. Download its datasheet and show its working to the Lab Instructor. Give its PIN Configuration and Function Table. Compare the working of IC to your design. (1.5 Marks)

\ Note: - Viva Marks = 05 Marks

The lab marks will be condensed to 10 Marks.