Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Sequential Logic Circuits – DE Part 17

By Hai Prasaath K December 12, 2021

In the previous tutorials, all the circuits designed were combinational circuits. In combinational circuits, the binary output is dependant only on the current state of the inputs. So, actually, the combinational circuits have a static operation. They can have input from a fixed set of values for which the output is known to outcome in a defined range at any instant of time.

In practice, most of the electronic devices are dynamic in operation. They process a set of binary information received within a range of time at different instants to effectively output a real-time and relevant outcome. For this, the electronic devices contain memory elements to store digital information received at a previous instant of time and have the digital circuitry that can process information received at present instant as well as previous instant to output a relevant outcome. Like, a computer might need to keep results of previous computation for a next computation in line.

So, the type of digital circuits whose output not only depends on current state but also previous state of inputs are called sequential circuits. The sequential circuits are combinational circuits having feedback from memory elements. At any instant of time, the combinational circuitry within a sequential circuit takes present input and retrieves past input states from memory elements to perform computing. Once done with the computing, before the next computing to occur the combinational part of the sequential circuit stores the currently received input states to the memory elements. It can be said that the memory elements in a sequential circuit works as a feedback element. With memory elements at disposal, the sequential circuits are capable of storing, retaining and retrieving the previous state of inputs or say states of inputs in the previous instant of time.

There are two types of sequential circuits –

1) Synchronous Sequential Circuits

2) Asynchronous Sequential Circuits

The two types of sequential circuits differ in the timing scheme of their signals. The synchronous sequential circuits operate data on periodic clock signals, so they operate on binary data at discrete instants of time.  The periodic clock signal is generated by a timing device called clock generator and the clock signal is generated and received as pulses. The computation of data by the combinational circuitry of the synchronous sequential circuit as well as storing and retrieving data from the memory elements is performed on the arrival of clock pulses i.e. when clock signal changes from 0 to 1 in such circuits. Meanwhile, the clock signal downs back to 0, the combinational circuitry of the synchronous circuit readies for the next cycle of computation while memory elements store the previous state of inputs and readies for the same to be retrieved on the arrival of the next pulse. For synchronous operation of combinational circuitry and memory elements according to the periodic clock signal, the propagation delay in the logic gates building the respective circuits are controlled accordingly. The rate at which the master clock generates the pulses must be slow enough to permit the slowest circuit to respond. This limits the speed of all circuits. It can be said that synchronous circuits are built by integrating together combinational circuitry, memory elements and clock generator. A synchronous sequential circuit can be represented by the following block diagram –

Block Diagram of Synchronous Sequential Circuits

Fig. 1: Block Diagram of Synchronous Sequential Circuits

In asynchronous sequential circuits, the feedback of the previous states of input to the combinational circuitry can be at any instant of time instead of being periodic in nature and so, it depends on the order of input signals rather than occurrence of any clock pulse. In such circuits, the memory elements are coupled with time delay circuits, so that the feedback of the previous state of inputs can be received at the instant the present inputs are received. In most of the cases, the propagation delay through gates in memory elements is sufficient to produce the required time delay. In such circuits, the storage capability of the memory elements also depends on the signal propagation delay. The asynchronous circuits can be unstable or unreliable at times due to unprecedented time delays in circuitry or inputs to the circuit. Therefore, designing of asynchronous sequential circuits always need extra caution and technicalities. So, it can be said that asynchronous sequential circuit are built by integrating together combinational circuitry and memory elements with defined time delays in signal propagation.

Compared to combinational circuits, the sequential circuits are slower as they either have to synchronize according to clock signal in case of synchronous circuits or must have defined time delays in case of asynchronous circuits. The combinational circuits since only depend on present states of input, process the data immediately only affected by the propagation delay of signals through the gates.

However, sequential circuits incorporates the memory elements that are a vital part of any modern electronics. Most of the electronic devices need to store or retain data as need of the computation. The sequential circuits though being speed limited in their very design concept are the most abundant digital circuits in electronics.

Memory Elements –

The memory elements are essential in building any sequential circuit. The simplest memory element can store a single bit at any time. A group of such memory elements form larger memories. There are two types of single-bit storing memory elements – Latches and Flip-Flops. Both can store a single bit at a time.

The latches are level-sensitive memory elements that respond to either 0 or 1 state of the signal, while flip-flops are transition sensitive memory elements that respond to transition of signal from 0 to 1 and vice-versa. Being responsive to signal transitions, the flip-flops are called edge sensitive devices. The flip-flops themselves are constructed from latches. The latches are used as memory elements in asynchronous sequential circuits but they cannot be used in synchronous circuits. In synchronous circuits, the flip-flops are used as memory elements.

In a stable state, the output of a flip-flop remains either 1 or 0. The output of a flip-flop changes only when a clock pulse is received by it. The output of a flip-flop depends either on the present data input to it or the value currently stored in it or on both. The combinational circuitry of a synchronous circuit must be in sync with the clock pulses and reach a stable state before previous input states are passed to be stored in flip-flops. The circuit must be able to respond to the change in the states of flip-flops before the next clock pulse is arrived. So, the duration of clock pulse need to be pre-determined for proper functioning of a synchronous circuit. It must be noted that these memory elements – latches and flip-flops retain binary information until they are supplied power. In case, there is a power shutdown, the data retained by them at a moment is lost.

Latches –

Latches are level sensitive memory devices. They are used in asynchronous sequential circuits. They are also the building blocks of flip-flops. There are three types of latches –

1) SR Latch

2) S’R’ Latch

3) D Latch

SR Latch – The SR latch is built by two cross-coupled NOR gates. It has two inputs – set (S) and reset (R) while two outputs Q and Q’. The Q and Q’ are normally complement of each other. When the input set is 1 and input reset is 0, the output Q becomes 1 and Q’ becomes 0. When the input set is 0 and input reset is 1, the output Q becomes 0 and Q’ becomes 1. When both set and reset are 0, the SR flip-flop retains the output state i.e. if previously Q had become 1 and Q’ had become 0, the same states will be retained while both set and reset are 0. Similarly, if  previously Q had become 0 and Q’ had become 1, the same states will be retained while both set and reset are 0. If both set and reset are 1, then both Q and Q’ becomes 0 which is forbidden. So, either of the set or reset being 1 changes the bit stored by the SR latch, if both becomes 0, the stored bit is retained while both being 1 is a forbidden condition. The SR latch can be built by NOR gates as follow –

Logic Gate Diagram of SR Latch

Fig. 2: Logic Gate Diagram of SR Latch

The operation of an SR latch can be summarized by the following function table –

Truth Table of SR Latch

Fig. 3: Truth Table of SR Latch

S’R’ Latch – S’R’ latch is a type of SR latch which is built from two coupled NAND gates instead of two coupled NOR gates. In S’R’ latch when the input set is 1 and input reset is 0, the output Q becomes 0 and Q’ becomes 1. When the input set is 0 and input reset is 1, the output Q becomes 1 and Q’ becomes 0. When both set and reset are 1, the S’R’ flip-flop retains the output state i.e. if previously Q had become 0 and Q’ had become 1, the same states will be retained while both set and reset are 1. Similarly, if  previously Q had become 1 and Q’ had become 0, the same states will be retained while both set and reset are 1. If both set and reset are 0, then both Q and Q’ becomes 1 which is forbidden. So, either of the set or reset being 0 changes the bit stored by the S’R’ latch, if both becomes 1, the stored bit is retained while both being 0 is a forbidden condition. It can be seen that the output of S’R’ latch is always complement of the output as in SR latch, so it got its name – S’R’ latch. The S’R’ latch can be built by NAND gates as follow –

Logic Gate Diagram of S'R' Latch

Fig. 4: Logic Gate Diagram of S’R’ Latch

 The operation of an S’R’ latch can be summarized by the following function table –

Truth Table of S'R' Latch

Fig. 5: Truth Table of S’R’ Latch

The SR or S’R’ latch can have additional enable input to control the change in its state. The enable input can be added by connecting two additional NAND gates to the basic circuit of the SR latch as follow –

Logic Gate Diagram of SR Latch with Enable Input

Fig. 6: Logic Gate Diagram of SR Latch with Enable Input 

The SR latch with enable input has the following function table –

Truth Table of SR Latch with Enable Input

Fig. 7: Truth Table of SR Latch with Enable Input 

D Latch – D Latch is a variant of SR latch or S’R’ latch to eliminate the forbidden condition of their function table. In a D Latch, there are only two inputs – Data (D) and Enable (En) and there are two outputs Q and Q’. The enable input can be either active low or active high. In case, enable input is active high, if there is a 0 at enable input the data is retained by the latch and not transferred to the outputs. When the enable input is set 1, if input data is 0, Q becomes 0 and Q’ becomes 1 while if input data is 1, Q becomes 1 and Q’ becomes 0. For active high enable input, the D latch has the following function table –
Truth Table of Active High D Latch

Fig. 8: Truth Table of Active High D Latch

If enable input is active low, the data is retained by the latch when enable input is set to 1 and transferred to the output when enable input is set to 0. The enable input can be made active low by connecting an inverter gate to it. With active low enable input, the D Latch has the following function table –
Truth Table of Active Low D Latch

Fig. 9: Truth Table of Active Low D Latch

A D Latch is constructed by coupling input to NAND gates in an SR latch having Enable input. While coupling the NAND gates in first level of the logic gate implementation of the D Latch, the Data input is directly connected to Set (S) input of the SR latch while it is connected through an inverter to the Reset (R) input of the SR latch. This way, when Data (D) is 0, Set is 0 and Reset is 1 while when D is 1, Set is 1 and Reset is 0. A D latch has the following logic gate diagram –

Circuit Diagram of D Latch

Fig. 10: Circuit Diagram of D Latch

Since in a D latch, the data is as it is transferred to the output Q when Enable (En) is set 1 in case of active high or is set 0 in case of active low configuration while it is retained in reverse state of the enable input, the D latch is also called transparent latch.

The latches are used as memory elements in asynchronous sequential circuits. In the next tutorial, Flip Flops and their different types will be discussed. The flips flops are the memory elements used in synchronous sequential circuits.

You may also like:

  • beginners guide
    Basic Electronics 01 – Beginners guide to setting up an…

  • What are top applications of CAN protocol?

  • What are the top tools for developing embedded software?
  • VHDL
    VHDL Tutorial 1: Introduction to VHDL

  • What is an Actuator Sensor Interface (AS-i)?

  • What is LiDAR and how does it work?

Filed Under: Digital Electronics, Tutorials

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • is there vay for credit card size phone charger?
  • Innovus Scan Reorder deletes Scan In Pad
  • How to get 3D model of ACPL-847-300E
  • How to find the resonance frequency and impedance of a planar spiral coil in HFSS?
  • Why so few Phase shift full bridge controllers?

RSS Electro-Tech-Online.com Discussions

  • Can I make two inputs from one??
  • The Analog Gods Hate Me
  • How to make string LEDs?
  • Fixing board, Easy question HEX SCHMITT
  • It's Amazing What A Buck And A Quarter....

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • How to monitor temperature and humidity on a TFT display with graphics
  • Tria modules integrate edge AI processing with multi-core processors
  • pSemi introduces RF switch with 52 dBm PMAX,PEAK and 90-dBm IIP3 linearity
  • XP Power launches 1.3 kW power supply with 58.9 W/cm³ density
  • How to enable Wi-Fi provisioning in ESP32-based IoT products

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe