This document discusses sequential circuits and their components. It begins by defining sequential circuits as circuits whose outputs depend not only on present inputs but also past states, stored using latches and flip-flops. It then covers various types of sequential circuits and their basic components like latches, flip-flops, registers and counters. Specific latch and flip-flop types like SR, D, JK and T are described along with their characteristics. Applications of shift registers and different counter types are also mentioned.
Introduction to Sequential DevicesChapter 66.1 M.docxbagotjesusa
油
Introduction to Sequential Devices
Chapter 6
6.1 Models for Sequential CircuitsElevator example:
6.1.1 Block Diagram representation
Memory devices:
- Semiconductor Flip-Flops
- Magnetic devices
- Delay lines
- Mechanical relays
- Rotation switches
- Etc
This circuit can be represented by the following equations:
Vector Notation:
- All the vectors are time dependant
- Vector y has the value y(tk) at time tk.
- Input signals xi and output signal zi may assume a variety of forms
6.1.2 State Tables and DiagramsThe state diagram is a graphical representation of a sequential circuit in which the states are represented by circles and state transition of the circuit are shown by arrows.
State table : all circuit input vectors are listed across the top, while all state vectors are listed down the left side. Entries in the table are the next state and the output.
In practice, the state diagrams and tables are usually labeled using symbols rather than vectors. For example consider a sequential circuit with two present state variables y1, and y2. Then y= [y1 , y2]Therefore the vector y can have any of the four possible values:
In general, if r represents the number of memory devices (number of states) in a circuit with Ns states then
Example: Consider the following sequential circuit with one input x, two state variables y1 and y2, and one output z.
The state diagram is:
Let assume that the circuit is initially in state A. now consider the application of the following input sequence to the circuit:
Hence the input sequence applied to the machine in state A cause the output sequence
Z=0100110111
And leaves the circuit in its final state C.
6.2 Memory Devices-Most memory elements are bistable electronic circuits, that is, they exist indefinitely in one of two possible states, 0 and 1. - Binary data are stored in a memory element by placing the element into the 0 state to store 0 and into the 1 state to store 1. - The output of the memory indicates the present state. - The input of the memory indicates the next state. - Each memory element has one or more excitation inputs, so called because they are used to excite or drive the circuit into the desired state.
Two memory element types
The Two memory element types most commonly used in switching circuits are latches and flip-flops.1- LATCHES
A latch is a memory element whose excitation input signals control the state of
the device
A set latch: the excitation input forces the output of the device to 1.
A Reset latch: the excitation inputs force the device output to 0.
A Set-Reset latch: a latch with both set and reset excitation signals.
Timing Diagram of SR LATCH
2- FLIP-FLOP:
A flip-flop differs from a latch in that it has a
control signal called clock. The clock signal
issues a command to the flip-flop, allowing it
to change states in accordance with its
excitation input signals.
- In both latches and flip-flops, the next s.
This document provides an overview of synchronous sequential logic and storage elements such as latches and flip-flops. It discusses the differences between combinational and sequential circuits, and between synchronous and asynchronous sequential circuits. Storage elements like latches and flip-flops are described, including SR latches, D latches, and edge-triggered D, JK, and T flip-flops. Characteristic tables and equations are presented for different flip-flop types. Timing parameters for flip-flops like setup time and hold time are also covered. The document is for a lecture on synchronous sequential logic given by Professor Jim Evangelos at Cecil College.
Computer design and architecture with simple cpuNaohiko Shimizu
油
This document describes the design of a binary coded decimal (BCD) adder circuit using a binary adder and additional logic. It explains that BCD represents numbers from 0-9 using 4-bit codes and involves adding 6 to results exceeding 9. The circuit uses a carry lookahead adder (CLA) to compute the sum and carry out of the binary addition. Additional logic checks if the sum exceeds 9, and if so adds 6 to the sum and sets the carry flag. The circuit correctly performs BCD addition and adjusts results to valid BCD codes. Behavior examples are provided for sample additions.
This document provides an overview of integrated circuits and digital techniques including:
1) Half adders and full adders which are basic building blocks for addition. Parallel adders allow adding more bits. Subtraction is also discussed.
2) Flip-flops like R-S, D, and J-K which are used for temporary data storage, counting, and other operations. Their functions and truth tables are described.
3) Counters, registers, decoders, encoders and other integrated circuits which are constructed using flip-flops and perform operations like serial-parallel conversion.
1) Sequential circuits have memory and their outputs depend not only on current inputs but also on the state of the circuit.
2) Latches are the simplest memory elements that can store a single bit and have two stable states, set and reset.
3) Flip-flops are edge-triggered versions of latches that only change state on a clock edge, making them easier to synchronize in larger circuits than latches.
Electr坦nica digital: Elementos de memoria y an叩lisis de circuitos secuenciales SANTIAGO PABLO ALBERTO
油
The document introduces sequential circuits and their components. It discusses that sequential circuits contain memory elements like latches or flip-flops, as well as combinational logic. The combinational logic implements the next state function based on inputs and current state, while the outputs depend on inputs and current state or just current state. It also describes synchronous and asynchronous circuits depending on when memory elements observe inputs and change state. The document provides examples of sequential circuit simulation and basic latch and flip-flop circuits.
This document summarizes a lecture on sequential networks and flip-flops. It discusses:
1) What defines a sequential circuit as one whose output depends on current inputs and past outputs, giving it memory.
2) The basic mechanisms of memory involve feedback loops using capacitive loads or inverters, allowing a circuit to store a bit through different states.
3) Common types of flip-flops like SR, D, JK, and T are described, along with their characteristic equations and how they can be used as basic memory components.
4) Sequential networks are implemented using finite state machines and excitation tables to specify and realize the desired sequential function. Proper timing is crucial to separate present
Introduction to flipflops basic of elctronics COA.pptxSaini71
油
The document discusses different types of digital circuits, including combinational circuits and sequential circuits. It focuses on sequential circuits and describes them as circuits that store and use previous state information. The document discusses two types of sequential circuits - asynchronous and synchronous. It also discusses different types of memory elements used in sequential circuits, including latches and flip-flops. Specifically, it describes SR latches, D latches, and different types of flip-flops like SR, JK, D and T flip-flops. It provides truth tables and diagrams to explain the working of these memory elements.
The document discusses sequential logic circuits and memory elements. It describes different types of latches like S-R latch, gated S-R latch and gated D latch. It also explains edge-triggered flip-flops like S-R flip-flop, D flip-flop, J-K flip-flop and T flip-flop. Key differences between latches and flip-flops are that latches change state continuously while flip-flops change state only at the clock edge. Asynchronous inputs like preset and clear are also explained which can directly set or clear the output of a flip-flop.
The document discusses latches and flip-flops. It describes SR latches and how they can be used to make SR flip-flops. It then discusses different types of flip-flops including D, JK, T flip-flops. It explains how SR flip-flops can be converted to these other flip-flops and discusses issues like race conditions in JK flip-flops and how master-slave flip-flops address this issue.
This document discusses sequential logic circuits and various types of flip flops. It defines sequential logic circuits as circuits whose outputs depend not only on present inputs but also past inputs. Several types of flip flops are described including SR, Clocked SR, JK, T, and D flip flops. The document provides details on the logic symbol, truth table, and logic circuit for SR and JK flip flops. It also discusses clock signals and provides examples of determining the output for various flip flop types given input waveforms.
This chapter discusses sequential logic circuits that have memory. It introduces latches and flip-flops as basic state elements that store one bit of state. Synchronous sequential circuits are composed of combinational logic and registers to avoid problems with feedback. Finite state machines are described as a common type of synchronous sequential circuit consisting of a state register, next state logic, and output logic. The chapter provides examples of modeling systems like a traffic light controller as a finite state machine.
Sequential circuits are circuits whose outputs depend not only on present inputs but also on past inputs or states. There are two types: synchronous use a clock signal to synchronize state changes, asynchronous can change state at any time. Common memory elements are flip-flops including RS, D, JK, and T flip-flops. The master-slave flip-flop construction using two flip-flops avoids unpredictable states by separating the sampling and output functions.
adder and flip-flop explanation in detailHODECEDSIET
油
An adder is a fundamental digital circuit used in computer arithmetic to perform addition of binary numbers. The simplest form of an adder is the half adder, which adds two single-bit binary numbers and produces a sum and a carry output. The full adder is an extension of the half adder and can add three binary digits (including a carry from a previous digit), producing both a sum and a carry output.
The document discusses sequential circuits and different types of flip flops and counters. It describes how sequential circuits have memory and their output depends on current and past inputs. There are two main types of sequential circuits - asynchronous which can change state at any time and synchronous which use a clock signal to control when the output can change state. Common types of flip flops described include SR, JK, D and T flip flops. Counters can be asynchronous with the clock signal rippling through or synchronous where all flip flops share the same clock.
This document provides an overview of flip flops, which are basic elements of sequential logic. It defines sequential logic as circuits that store the results of previous inputs. The core of a flip flop is an SR latch, which acts as a simple memory element. Different types of flip flops are discussed, including D flip flops, which simply store the value on their input at the clock transition. Edge-triggered flip flops respond to inputs at precise clock edges, while asynchronous control inputs take effect immediately rather than waiting for the clock. Propagation delay is the time it takes for an output to respond after a clock edge.
Flip flops are basic digital memory elements that form the building blocks of sequential and combinational circuits. They have two stable states, logic 0 and logic 1. The document discusses different types of flip flops including latches, SR flip flops, D flip flops, JK flip flops, and T flip flops. It covers their triggering methods, excitation tables, state diagrams, and characteristic equations. Master-slave configuration is also described to avoid race-around conditions in flip flops.
This document discusses latches and flip flops, which are types of sequential logic circuits. It describes the basic components and functioning of latches like SR latches, D latches, and gated latches. For flip flops, it covers SR flip flops, D flip flops, JK flip flops, and master-slave flip flops. The key differences between latches and flip flops are that latches do not have a clock input while flip flops are edge-triggered by a clock signal. Latches and flip flops are used as basic storage elements in more complex sequential circuits and in computer components like registers and RAM.
This document discusses sequential logic circuits and memory elements such as latches and flip-flops. It describes different types of latches including the S-R latch, gated S-R latch, and gated D latch. It also covers various types of flip-flops including the S-R, D, J-K, and T flip-flops. It explains the differences between latches and flip-flops and their applications in synchronous and asynchronous logic circuits.
Electr坦nica digital: Elementos de memoria y an叩lisis de circuitos secuenciales SANTIAGO PABLO ALBERTO
油
The document introduces sequential circuits and their components. It discusses that sequential circuits contain memory elements like latches or flip-flops, as well as combinational logic. The combinational logic implements the next state function based on inputs and current state, while the outputs depend on inputs and current state or just current state. It also describes synchronous and asynchronous circuits depending on when memory elements observe inputs and change state. The document provides examples of sequential circuit simulation and basic latch and flip-flop circuits.
This document summarizes a lecture on sequential networks and flip-flops. It discusses:
1) What defines a sequential circuit as one whose output depends on current inputs and past outputs, giving it memory.
2) The basic mechanisms of memory involve feedback loops using capacitive loads or inverters, allowing a circuit to store a bit through different states.
3) Common types of flip-flops like SR, D, JK, and T are described, along with their characteristic equations and how they can be used as basic memory components.
4) Sequential networks are implemented using finite state machines and excitation tables to specify and realize the desired sequential function. Proper timing is crucial to separate present
Introduction to flipflops basic of elctronics COA.pptxSaini71
油
The document discusses different types of digital circuits, including combinational circuits and sequential circuits. It focuses on sequential circuits and describes them as circuits that store and use previous state information. The document discusses two types of sequential circuits - asynchronous and synchronous. It also discusses different types of memory elements used in sequential circuits, including latches and flip-flops. Specifically, it describes SR latches, D latches, and different types of flip-flops like SR, JK, D and T flip-flops. It provides truth tables and diagrams to explain the working of these memory elements.
The document discusses sequential logic circuits and memory elements. It describes different types of latches like S-R latch, gated S-R latch and gated D latch. It also explains edge-triggered flip-flops like S-R flip-flop, D flip-flop, J-K flip-flop and T flip-flop. Key differences between latches and flip-flops are that latches change state continuously while flip-flops change state only at the clock edge. Asynchronous inputs like preset and clear are also explained which can directly set or clear the output of a flip-flop.
The document discusses latches and flip-flops. It describes SR latches and how they can be used to make SR flip-flops. It then discusses different types of flip-flops including D, JK, T flip-flops. It explains how SR flip-flops can be converted to these other flip-flops and discusses issues like race conditions in JK flip-flops and how master-slave flip-flops address this issue.
This document discusses sequential logic circuits and various types of flip flops. It defines sequential logic circuits as circuits whose outputs depend not only on present inputs but also past inputs. Several types of flip flops are described including SR, Clocked SR, JK, T, and D flip flops. The document provides details on the logic symbol, truth table, and logic circuit for SR and JK flip flops. It also discusses clock signals and provides examples of determining the output for various flip flop types given input waveforms.
This chapter discusses sequential logic circuits that have memory. It introduces latches and flip-flops as basic state elements that store one bit of state. Synchronous sequential circuits are composed of combinational logic and registers to avoid problems with feedback. Finite state machines are described as a common type of synchronous sequential circuit consisting of a state register, next state logic, and output logic. The chapter provides examples of modeling systems like a traffic light controller as a finite state machine.
Sequential circuits are circuits whose outputs depend not only on present inputs but also on past inputs or states. There are two types: synchronous use a clock signal to synchronize state changes, asynchronous can change state at any time. Common memory elements are flip-flops including RS, D, JK, and T flip-flops. The master-slave flip-flop construction using two flip-flops avoids unpredictable states by separating the sampling and output functions.
adder and flip-flop explanation in detailHODECEDSIET
油
An adder is a fundamental digital circuit used in computer arithmetic to perform addition of binary numbers. The simplest form of an adder is the half adder, which adds two single-bit binary numbers and produces a sum and a carry output. The full adder is an extension of the half adder and can add three binary digits (including a carry from a previous digit), producing both a sum and a carry output.
The document discusses sequential circuits and different types of flip flops and counters. It describes how sequential circuits have memory and their output depends on current and past inputs. There are two main types of sequential circuits - asynchronous which can change state at any time and synchronous which use a clock signal to control when the output can change state. Common types of flip flops described include SR, JK, D and T flip flops. Counters can be asynchronous with the clock signal rippling through or synchronous where all flip flops share the same clock.
This document provides an overview of flip flops, which are basic elements of sequential logic. It defines sequential logic as circuits that store the results of previous inputs. The core of a flip flop is an SR latch, which acts as a simple memory element. Different types of flip flops are discussed, including D flip flops, which simply store the value on their input at the clock transition. Edge-triggered flip flops respond to inputs at precise clock edges, while asynchronous control inputs take effect immediately rather than waiting for the clock. Propagation delay is the time it takes for an output to respond after a clock edge.
Flip flops are basic digital memory elements that form the building blocks of sequential and combinational circuits. They have two stable states, logic 0 and logic 1. The document discusses different types of flip flops including latches, SR flip flops, D flip flops, JK flip flops, and T flip flops. It covers their triggering methods, excitation tables, state diagrams, and characteristic equations. Master-slave configuration is also described to avoid race-around conditions in flip flops.
This document discusses latches and flip flops, which are types of sequential logic circuits. It describes the basic components and functioning of latches like SR latches, D latches, and gated latches. For flip flops, it covers SR flip flops, D flip flops, JK flip flops, and master-slave flip flops. The key differences between latches and flip flops are that latches do not have a clock input while flip flops are edge-triggered by a clock signal. Latches and flip flops are used as basic storage elements in more complex sequential circuits and in computer components like registers and RAM.
This document discusses sequential logic circuits and memory elements such as latches and flip-flops. It describes different types of latches including the S-R latch, gated S-R latch, and gated D latch. It also covers various types of flip-flops including the S-R, D, J-K, and T flip-flops. It explains the differences between latches and flip-flops and their applications in synchronous and asynchronous logic circuits.
This PDF highlights how engineering model making helps turn designs into functional prototypes, aiding in visualization, testing, and refinement. It covers different types of models used in industries like architecture, automotive, and aerospace, emphasizing cost and time efficiency.
Were excited to share our product profile, showcasing our expertise in Industrial Valves, Instrumentation, and Hydraulic & Pneumatic Solutions.
We also supply API-approved valves from globally trusted brands, ensuring top-notch quality and internationally certified solutions. Lets explore valuable business opportunities together!
We specialize in:
Industrial Valves (Gate, Globe, Ball, Butterfly, Check)
Instrumentation (Pressure Gauges, Transmitters, Flow Meters)
Pneumatic Products (Cylinders, Solenoid Valves, Fittings)
As authorized partners of trusted global brands, we deliver high-quality solutions tailored to meet your industrial needs with seamless support.
This presentation provides an in-depth analysis of structural quality control in the KRP 401600 section of the Copper Processing Plant-3 (MOF-3) in Uzbekistan. As a Structural QA/QC Inspector, I have identified critical welding defects, alignment issues, bolting problems, and joint fit-up concerns.
Key topics covered:
Common Structural Defects Welding porosity, misalignment, bolting errors, and more.
Root Cause Analysis Understanding why these defects occur.
Corrective & Preventive Actions Effective solutions to improve quality.
Team Responsibilities Roles of supervisors, welders, fitters, and QC inspectors.
Inspection & Quality Control Enhancements Advanced techniques for defect detection.
Applicable Standards: GOST, KMK, SNK Ensuring compliance with international quality benchmarks.
This presentation is a must-watch for:
QA/QC Inspectors, Structural Engineers, Welding Inspectors, and Project Managers in the construction & oil & gas industries.
Professionals looking to improve quality control processes in large-scale industrial projects.
Download & share your thoughts! Let's discuss best practices for enhancing structural integrity in industrial projects.
Categories:
Engineering
Construction
Quality Control
Welding Inspection
Project Management
Tags:
#QAQC #StructuralInspection #WeldingDefects #BoltingIssues #ConstructionQuality #Engineering #GOSTStandards #WeldingInspection #QualityControl #ProjectManagement #MOF3 #CopperProcessing #StructuralEngineering #NDT #OilAndGas
Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...J. Agricultural Machinery
油
Optimal use of resources, including energy, is one of the most important principles in modern and sustainable agricultural systems. Exergy analysis and life cycle assessment were used to study the efficient use of inputs, energy consumption reduction, and various environmental effects in the corn production system in Lorestan province, Iran. The required data were collected from farmers in Lorestan province using random sampling. The Cobb-Douglas equation and data envelopment analysis were utilized for modeling and optimizing cumulative energy and exergy consumption (CEnC and CExC) and devising strategies to mitigate the environmental impacts of corn production. The Cobb-Douglas equation results revealed that electricity, diesel fuel, and N-fertilizer were the major contributors to CExC in the corn production system. According to the Data Envelopment Analysis (DEA) results, the average efficiency of all farms in terms of CExC was 94.7% in the CCR model and 97.8% in the BCC model. Furthermore, the results indicated that there was excessive consumption of inputs, particularly potassium and phosphate fertilizers. By adopting more suitable methods based on DEA of efficient farmers, it was possible to save 6.47, 10.42, 7.40, 13.32, 31.29, 3.25, and 6.78% in the exergy consumption of diesel fuel, electricity, machinery, chemical fertilizers, biocides, seeds, and irrigation, respectively.
EXPLORE 6 EXCITING DOMAINS:
1. Machine Learning: Discover the world of AI and ML!
2. App Development: Build innovative mobile apps!
3. Competitive Programming: Enhance your coding skills!
4. Web Development: Create stunning web applications!
5. Blockchain: Uncover the power of decentralized tech!
6. Cloud Computing: Explore the world of cloud infrastructure!
Join us to unravel the unexplored, network with like-minded individuals, and dive into the world of tech!
"Zen and the Art of Industrial Construction"
Once upon a time in Gujarat, Plinth and Roofs was working on a massive industrial shed project. Everything was going smoothlyblueprints were flawless, steel structures were rising, and even the cement was behaving. That is, until...
Meet Ramesh, the Stressed Engineer.
Ramesh was a perfectionist. He measured bolts with the precision of a Swiss watchmaker and treated every steel beam like his own child. But as the deadline approached, Rameshs stress levels skyrocketed.
One day, he called Parul, the total management & marketing mastermind.
Ramesh (panicking): "Parul maam! The roof isn't aligning by 0.2 degrees! This is a disaster!"
Parul (calmly): "Ramesh, have you tried... meditating?"
、 Ramesh: "Meditating? Maam, I have 500 workers on-site, and you want me to sit cross-legged and hum Om?"
Parul: "Exactly. Mystic of Seven can help!"
Reluctantly, Ramesh agreed to a 5-minute guided meditation session.
He closed his eyes.
鏝 He breathed deeply.
He chanted "Om Namah Roofaya" (his custom version of a mantra).
When he opened his eyes, a miracle happened!
ッ His mind was clear.
The roof magically aligned (okay, maybe the team just adjusted it while he was meditating).
And for the first time, Ramesh smiled instead of calculating load capacities in his head.
Lesson Learned: Sometimes, even in industrial construction, a little bit of mindfulness goes a long way.
From that day on, Plinth and Roofs introduced tea breaks with meditation sessions, and productivity skyrocketed!
Moral of the story: "When in doubt, breathe it out!"
#PlinthAndRoofs #MysticOfSeven #ZenConstruction #MindfulEngineering
Cyber Security_ Protecting the Digital World.pptxHarshith A S
油
combinatorial circuit design with universal gates
1. Charles Kime & Thomas Kaminski
息 2004 Pearson Education, Inc.
Terms of Use
(Hyperlinks are active in View Show mode)
Chapter 6 Sequential
Circuits
Part 1 Storage Elements and Sequential
Circuit Analysis
Logic and Computer Design Fundamentals
2. Chapter 6 - Part 1 2
Overview
Part 1 - Storage Elements and Analysis
Introduction to sequential circuits
Types of sequential circuits
Storage elements
Latches
Flip-flops
Sequential circuit analysis
State tables
State diagrams
Circuit and System Timing
Part 2 - Sequential Circuit Design
Specification
Assignment of State Codes
Implementation
3. Chapter 6 - Part 1 3
Introduction to Sequential Circuits
A Sequential
circuit contains:
Storage elements:
Latches or Flip-Flops
Combinatorial Logic:
Implements a multiple-output switching
function
Inputs are signals from the outside.
Outputs are signals to the outside.
Other inputs, State or Present State, are signals
from storage elements.
The remaining outputs, Next State are inputs to
storage elements.
Combina-
tional
Logic
Storage
Elements
Inputs Outputs
State
Next
State
4. Chapter 6 - Part 1 4
Combinatorial Logic
Next state function
Next State = f(Inputs, State)
Output function (Mealy)
Outputs = g(Inputs, State)
Output function (Moore)
Outputs = h(State)
Output function type depends on specification and affects the
design significantly
Combina-
tional
Logic
Storage
Elements
Inputs Outputs
State
Next
State
Introduction to Sequential Circuits
5. Chapter 6 - Part 1 5
Types of Sequential Circuits
Depends on the times at which:
storage elements observe their inputs, and
storage elements change their state
Synchronous
Behavior defined from knowledge of its signals at discrete
instances of time
Storage elements observe inputs and can change state only in
relation to a timing signal (clock pulses from a clock)
Asynchronous
Behavior defined from knowledge of inputs an any instant of
time and the order in continuous time in which inputs change
If clock just regarded as another input, all circuits are
asynchronous!
Nevertheless, the synchronous abstraction makes complex
designs tractable!
6. Chapter 6 - Part 1 6
Discrete Event Simulation
In order to understand the time behavior of a
sequential circuit we use discrete event
simulation.
Rules:
Gates modeled by an ideal (instantaneous) function
and a fixed gate delay
Any change in input values is evaluated to see if it
causes a change in output value
Changes in output values are scheduled for the fixed
gate delay after the input change
At the time for a scheduled output change, the
output value is changed along with any inputs it
drives
7. Chapter 6 - Part 1 7
Simulated NAND Gate
Example: A 2-Input NAND gate with a 0.5 ns. delay:
Assume A and B have been 1 for a long time
At time t=0, A changes to a 0 at t= 0.8 ns, back to 1.
F
A
B
DELAY 0.5 ns.
F(Instantaneous)
t (ns) A B F(I) F Comment
1 1 0 0 A=B=1 for a long time
0 1 0 1 1 0 0 F(I) changes to 1
0.5 0 1 1 1 0 F changes to 1 after a 0.5 ns delay
0.8 1 0 1 1 0 1 F(Instantaneous) changes to 0
0.13 1 1 0 1 0 F changes to 0 after a 0.5 ns delay
8. Chapter 6 - Part 1 8
Gate Delay Models
Suppose gates with delay n ns are
represented for n = 0.2 ns, n = 0.4 ns,
n = 0.5 ns, respectively:
0.2 0.5
0.4
9. Chapter 6 - Part 1 9
Consider a simple 2-input multiplexer:
With function:
Y = A for S = 1
Y = B for S = 0
Glitch is due to delay of inverter
A
0.4
0.5
0.4
S
B
Y
0.2
Circuit Delay Model
A
S
B
Y
S
10. Chapter 6 - Part 1
Storing State
What if A con-
nected to Y?
Circuit becomes:
With function:
Y = B for S = 1, and
Y(t) dependent on
Y(t 0.9) for S = 0
The simple combinational circuit has now become a sequential circuit because its output is a function of a time
sequence of input signals!
B
S
Y
S
S
B
Y
0.5
0.4
0.2
0.4
Y is stored value in shaded area
11. Chapter 6 - Part 1
Storing State (Continued)
Simulation example as input signals change with time.
Changes occur every 100 ns, so that the tenths of ns delays
are negligible.
Y represent the state of the circuit, not just an output.
B S Y Comment
1 0 0 Y remembers 0
1 1 1 Y = B when S = 1
1 0 1 Now Y remembers B = 1 for S = 0
0 0 1 No change in Y when B changes
0 1 0 Y = B when S = 1
0 0 0 Y remembers B = 0 for S = 0
1 0 0 No change in Y when B changes
Time
12. Chapter 6 - Part 1
Storing State (Continued)
Suppose we place
an inverter in the
feedback path.
The following behavior results:
The circuit is said
to be unstable.
For S = 0, the
circuit has become
what is called an
oscillator. Can be
used as crude clock.
B S Y Comment
0 1 0 Y = B when S = 1
1 1 1
1 0 1 Now Y remembers A
1 0 0 Y, 1.1 ns later
1 0 1 Y, 1.1 ns later
1 0 0 Y, 1.1 ns later
S
B
Y
0.2
0.5
0.4
0.4
0.2
13. Chapter 6 - Part 1
Basic (NAND) S R Latch
Cross-Coupling
two NAND gates gives
the S -R Latch:
Which has the time
sequence behavior:
S = 0, R = 0 is
forbidden as
input pattern
Q
S (set)
R (reset) Q
R S Q Q Comment
1 1 ? ? Stored state unknown
1 0 1 0 Set Q to 1
1 1 1 0 Now Q remembers 1
0 1 0 1 Reset Q to 0
1 1 0 1 Now Q remembers 0
0 0 1 1 Both go high
1 1 ? ? Unstable!
Time
14. Chapter 6 - Part 1
Basic (NOR) S R Latch
Cross-coupling two
NOR gates gives the
S R Latch:
Which has the time
sequence
behavior:
S (set)
R (reset)
Q
Q
R S Q Q Comment
0 0 ? ? Stored state unknown
0 1 1 0 Set Q to 1
0 0 1 0 Now Q remembers 1
1 0 0 1 Reset Q to 0
0 0 0 1 Now Q remembers 0
1 1 0 0 Both go low
0 0 ? ? Unstable!
Time
15. Chapter 6 - Part 1
Clocked S - R Latch
Adding two NAND
gates to the basic
S - R NAND latch
gives the clocked
S R latch:
Has a time sequence behavior similar to the basic S-R
latch except that the S and R inputs are only observed
when the line C is high.
C means control or clock.
S
R
Q
C
Q
16. Chapter 6 - Part 1
Clocked S - R Latch (continued)
The Clocked S-R Latch can be described by a table:
The table describes
what happens after the
clock [at time (t+1)]
based on:
current inputs (S,R) and
current state Q(t).
Q(t) S R Q(t+1) Comment
0 0 0 0 No change
0 0 1 0 Clear Q
0 1 0 1 Set Q
0 1 1 ??? Indeterminate
1 0 0 1 No change
1 0 1 0 Clear Q
1 1 0 1 Set Q
1 1 1 ??? Indeterminate
S
R
Q
Q
C
17. Chapter 6 - Part 1
D Latch
Adding an inverter
to the S-R Latch,
gives the D Latch:
Note that there are
no indeterminate
states!
Q D Q(t+1) Comment
0 0 0 No change
0 1 1 Set Q
1 0 0 Clear Q
1 1 1 No Change
The graphic symbol for a
D Latch is:
C
D Q
Q
D
Q
C
Q
18. Chapter 6 - Part 1
Flip-Flops
The latch timing problem
Master-slave flip-flop
Edge-triggered flip-flop
Standard symbols for storage elements
Direct inputs to flip-flops
Flip-flop timing
19. Chapter 6 - Part 1
The Latch Timing Problem
In a sequential circuit, paths may exist through
combinational logic:
From one storage element to another
From a storage element back to the same storage
element
The combinational logic between a latch output
and a latch input may be as simple as an
interconnect
For a clocked D-latch, the output Q depends on
the input D whenever the clock input C has
value 1
20. Chapter 6 - Part 1
The Latch Timing Problem (continued)
Consider the following circuit:
Suppose that initially Y = 0.
As long as C = 1, the value of Y continues to change!
The changes are based on the delay present on the loop
through the connection from Y back to Y.
This behavior is clearly unacceptable.
Desired behavior: Y changes only once per clock pulse
Clock
Y
C
D Q
Q
Y
Clock
21. Chapter 6 - Part 1
The Latch Timing Problem (continued)
A solution to the latch timing problem is
to break the closed path from Y to Y
within the storage element
The commonly-used, path-breaking
solutions replace the clocked D-latch
with:
a master-slave flip-flop
an edge-triggered flip-flop
22. Chapter 6 - Part 1
Consists of two clocked
S-R latches in series
with the clock on the
second latch inverted
The input is observed
by the first latch with C = 1
The output is changed by the second latch with C = 0
The path from input to output is broken by the difference
in clocking values (C = 1 and C = 0).
The behavior demonstrated by the example with D driven
by Y given previously is prevented since the clock must
change from 1 to 0 before a change in Y based on D can
occur.
C
S
R
Q
Q
C
R
Q
Q
C
S
R
Q
S
Q
S-R Master-Slave Flip-Flop
23. Chapter 6 - Part 1
Flip-Flop Problem
The change in the flip-flop output is delayed by
the pulse width which makes the circuit slower or
S and/or R are permitted to change while C = 1
Suppose Q = 0 and S goes to 1 and then back to 0 with
R remaining at 0
The master latch sets to 1
A 1 is transferred to the slave
Suppose Q = 0 and S goes to 1 and back to 0 and R
goes to 1 and back to 0
The master latch sets and then resets
A 0 is transferred to the slave
This behavior is called 1s catching
24. Chapter 6 - Part 1
Flip-Flop Solution
Use edge-triggering instead of master-slave
An edge-triggered flip-flop ignores the pulse
while it is at a constant level and triggers only
during a transition of the clock signal
Edge-triggered flip-flops can be built directly at
the electronic circuit level, or
A master-slave D flip-flop which also exhibits
edge-triggered behavior can be used.
25. Chapter 6 - Part 1
Edge-Triggered D Flip-Flop
The edge-triggered
D flip-flop is the
same as the master-
slave D flip-flop
It can be formed by:
Replacing the first clocked S-R latch with a clocked D latch or
Adding a D input and inverter to a master-slave S-R flip-flop
The delay of the S-R master-slave flip-flop can be avoided since
the 1s-catching behavior is not present with D replacing S and R
inputs
The change of the D flip-flop output is associated with the
negative edge at the end of the pulse
It is called a negative-edge triggered flip-flop
C
S
R
Q
Q
C
Q
Q
C
D Q
D
Q
26. Chapter 6 - Part 1
Positive-Edge Triggered D Flip-Flop
Formed by
adding inverter
to clock input
Q changes to the value on D applied at the positive clock edge within timing constraints to be
specified
Our choice as the standard flip-flop for most sequential circuits
C
S
R
Q
Q
C
Q
Q
C
D Q
D
Q
27. Chapter 6 - Part 1
Master-Slave:
Postponed output
indicators
Edge-Triggered:
Dynamic
indicator
(a) Latches
S
R
SR SR
S
R
D with 0 Control
D
C
D with 1 Control
D
C
(b) Master-Slave Flip-Flops
D
C
Triggered D
Triggered SR
S
R
C
D
C
Triggered D
Triggered SR
S
R
C
(c) Edge-Triggered Flip-Flops
Triggered D
D
C
Triggered D
D
C
Standard Symbols for Storage
Elements
28. Chapter 6 - Part 1
Direct Inputs
At power up or at reset, all or part
of a sequential circuit usually is
initialized to a known state before
it begins operation
This initialization is often done
outside of the clocked behavior
of the circuit, i.e., asynchronously.
Direct R and/or S inputs that control the state of the
latches within the flip-flops are used for this
initialization.
For the example flip-flop shown
0 applied to R resets the flip-flop to the 0 state
0 applied to S sets the flip-flop to the 1 state
D
C
S
R
Q
Q
29. Chapter 6 - Part 1
ts - setup time
th - hold time
tw - clock
pulse width
tpx - propa-
gation delay
tPHL - High-to-
Low
tPLH - Low-to-
High
tpd - max (tPHL,
tPLH)
ts th
tp-,min
tp-,max
twH $twH,min
twL $twL,min
C
D
Q
(b) Edge-triggered (negative edge)
th
ts
tp-,min
tp-,max
twH $t
wH,min
twL $t
wL,min
C
S/R
Q
(a) Pulse-triggered (positive pulse)
Flip-Flop Timing Parameters
30. Chapter 6 - Part 1
Flip-Flop Timing Parameters (continued)
ts - setup time
Master-slave - Equal to the width of the triggering
pulse
Edge-triggered - Equal to a time interval that is
generally much less than the width of the the
triggering pulse
th - hold time - Often equal to zero
tpx - propagation delay
Same parameters as for gates except
Measured from clock edge that triggers the output
change to the output change
31. Chapter 6 - Part 1
Sequential Circuit Analysis
General Model
Current State
at time (t) is
stored in an
array of
flip-flops.
Next State at time (t+1)
is a Boolean function of
State and Inputs.
Outputs at time (t) are a Boolean function of
State (t) and (sometimes) Inputs (t).
Combina-
tional
Logic
Inputs
State
Next
State
Outputs
Storage
Elements
CLK
32. Chapter 6 - Part 1
Example 1 (from Fig. 6-17)
Input: x(t)
Output: y(t)
State: (A(t), B(t))
What is the Output
Function?
What is the Next State
Function?
A
C
D Q
Q
C
D Q
Q
y
x A
B
CP
33. Chapter 6 - Part 1
Example 1 (from Fig. 6-17) (continued)
Boolean equations
for the functions:
A(t+1) = A(t)x(t)
+ B(t)x(t)
B(t+1) = A(t)x(t)
y(t) = x(t)(B(t) + A(t))
C
D Q
Q
C
D Q
Q'
y
x
A
A
B
CP
Next State
Output
34. Chapter 6 - Part 1
Example 1(from Fig. 6-17) (continued)
Where in time are inputs, outputs and
states defined?
0
0
0
0
1
1
1
0
35. Chapter 6 - Part 1
State Table Characteristics
State table a multiple variable table with the
following four sections:
Present State the values of the state variables for
each allowed state.
Input the input combinations allowed.
Next-state the value of the state at time (t+1) based
on the present state and the input.
Output the value of the output as a function of the
present state and (sometimes) the input.
From the viewpoint of a truth table:
the inputs are Input, Present State
and the outputs are Output, Next State
36. Chapter 6 - Part 1
Example 1: State Table (from Fig. 6-17)
The state table can be filled in using the next state and
output equations: A(t+1) = A(t)x(t) + B(t)x(t) B(t+1)
=A (t)x(t) y(t)
=x (t)(B(t) + A(t))
Present State Input Next State Output
A(t) B(t) x(t) A(t+1) B(t+1) y(t)
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 0 0 1
0 1 1 1 1 0
1 0 0 0 0 1
1 0 1 1 0 0
1 1 0 0 0 1
1 1 1 1 0 0
37. Chapter 6 - Part 1
Example 1: Alternate State Table
2-dimensional table that matches well to a K-map.
Present state rows and input columns in Gray code
order.
A(t+1) = A(t)x(t) + B(t)x(t)
B(t+1) =A (t)x(t)
y(t) =x (t)(B(t) + A(t))
Present
State
Next State
x(t)=0 x(t)=1
Output
x(t)=0 x(t)=1
A(t) B(t) A(t+1)B(t+1) A(t+1)B(t+1) y(t) y(t)
0 0 0 0 0 1 0 0
0 1 0 0 1 1 1 0
1 0 0 0 1 0 1 0
1 1 0 0 1 0 1 0
38. Chapter 6 - Part 1
State Diagrams
The sequential circuit function can be
represented in graphical form as a state
diagram with the following components:
A circle with the state name in it for each state
A directed arc from the Present State to the Next
State for each state transition
A label on each directed arc with the Input values
which causes the state transition, and
A label:
On each circle with the output value produced,
or
On each directed arc with the output value
produced.
39. Chapter 6 - Part 1
State Diagrams
Label form:
On circle with output included:
state/output
Moore type output depends only on state
On directed arc with the output
included:
input/output
Mealy type output depends on state and
input
40. Chapter 6 - Part 1
Example 1: State Diagram
Which type?
Diagram gets
confusing for
large circuits
For small circuits,
usually easier to
understand than
the state table
A B
0 0
0 1 1 1
1 0
x=0/y=1 x=1/y=0
x=1/y=0
x=1/y=0
x=0/y=1
x=0/y=1
x=1/y=0
x=0/y=0
41. Chapter 6 - Part 1
Moore and Mealy Models
Sequential Circuits or Sequential Machines are
also called Finite State Machines (FSMs). Two
formal models exist:
In contemporary design, models are sometimes
mixed Moore and Mealy
Moore Model
Named after E.F. Moore.
Outputs are a function
ONLY of states
Usually specified on the
states.
Mealy Model
Named after G. Mealy
Outputs are a function of
inputs AND states
Usually specified on the
state transition arcs.
42. Chapter 6 - Part 1
Moore and Mealy Example Diagrams
Mealy Model State Diagram
maps inputs and state to outputs
Moore Model State Diagram
maps states to outputs
0 1
x=1/y=1
x=1/y=0
x=0/y=0
x=0/y=0
1/0 2/1
x=1
x=1
x=0
x=0
x=1
x=0
0/0
43. Chapter 6 - Part 1
Moore and Mealy Example Tables
Mealy Model state table maps inputs and
state to outputs
Moore Model state table maps state to
outputs Present
State
Next State
x=0 x=1
Output
0 0 1 0
1 0 2 0
2 0 2 1
Present
State
Next State
x=0 x=1
Output
x=0 x=1
0 0 1 0 0
1 0 1 0 1
44. Chapter 6 - Part 1
Example 2: Sequential Circuit Analysis
Logic Diagram:
Clock
Reset
D
Q
C
Q
R
D
Q
C
Q
R
D
Q
C
Q
R
A
B
C
Z
45. Chapter 6 - Part 1
Example 2: Flip-Flop Input Equations
Variables
Inputs: None
Outputs: Z
State Variables: A, B, C
Initialization: Reset to (0,0,0)
Equations
A(t+1) = Z =
B(t+1) =
C(t+1) =
46. Chapter 6 - Part 1
Example 2: State Table
A B C ABC Z
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
X = X(t+1)
47. Chapter 6 - Part 1
Which states are used?
What is the function of
the circuit?
000
011 010
001
100
101
110
111
Reset
ABC
Example 2: State Diagram
48. Chapter 6 - Part 1
Consider a system
comprised of ranks
of flip-flops
connected by logic:
If the clock period is
too short, some
data changes will not
propagate through the
circuit to flip-flop
inputs before the setup
time interval begins
Circuit and System Level Timing
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
C
D Q
Q'
CLOCK CLOCK
49. Chapter 6 - Part 1
Timing components along a path from flip-flop
to flip-flop
Circuit and System Level Timing
(continued)
(a) Edge-triggered (positive edge)
tp
tpd,FF tpd,COMB t
slack
ts
C
(b) Pulse-triggered (negative pulse)
tp
tpd,FF tpd,COMB t
slack ts
C
50. Chapter 6 - Part 1
New Timing Components
tp - clock period - The interval between occurrences
of a specific clock edge in a periodic clock
tpd,COMB - total delay of combinational logic along the
path from flip-flop output to flip-flop input
tslack - extra time in the clock period in addition to the
sum of the delays and setup time on a path
Can be either positive or negative
Must be greater than or equal to zero on all paths for
correct operation
Circuit and System Level Timing
(continued)
51. Chapter 6 - Part 1
Timing Equations
tp = tslack + (tpd,FF + tpd,COMB + ts)
For tslack greater than or equal to zero,
tp max (tpd,FF + tpd,COMB + ts)
for all paths from flip-flop output to flip-flop input
Can be calculated more precisely by using tPHL
and tPLH values instead of tpd values, but
requires consideration of inversions on paths
Circuit and System Level Timing
(continued)
52. Chapter 6 - Part 1
Calculation of Allowable tpd,COMB
Compare the allowable combinational delay for a
specific circuit:
a) Using edge-triggered flip-flops
b) Using master-slave flip-flops
Parameters
tpd,FF(max) = 1.0 ns
ts(max) = 0.3 ns for edge-triggered flip-flops
ts = twH = 1.0 ns for master-slave flip-flops
Clock frequency = 250 MHz
53. Chapter 6 - Part 1
Calculation of Allowable tpd,COMB
(continued)
Calculations: tp = 1/clock frequency = 4.0 ns
Edge-triggered: 4.0 1.0 + tpd,COMB + 0.3, tpd,COMB 2.7 ns
Master-slave: 4.0 1.0 + tpd,COMB + 1.0, tpd,COMB 2.0 ns
Comparison: Suppose that for a gate, average tpd = 0.3
ns
Edge-triggered: Approximately 9 gates allowed on a path
Master-slave: Approximately 6 to 7 gates allowed on a path
54. Chapter 6 - Part 1
Terms of Use
息 2004 by Pearson Education,Inc. All rights reserved.
The following terms of use apply in addition to the standard Pearson
Education Legal Notice.
Permission is given to incorporate these materials into classroom
presentations and handouts only to instructors adopting Logic and
Computer Design Fundamentals as the course text.
Permission is granted to the instructors adopting the book to post these
materials on a protected website or protected ftp site in original or
modified form. All other website or ftp postings, including those
offering the materials for a fee, are prohibited.
You may not remove or in any way alter this Terms of Use notice or
any trademark, copyright, or other proprietary notice, including the
copyright watermark on each slide.
Return to Title Page
Editor's Notes
#11: Note that the glitch is still present. An actual storage circuit would be designed to eliminate this by addition of term BY.
#47: Only states reachable from the reset state 000 are used: 000, 001, 010, 011, and 100.
The circuit produces a 1 on Z after four clock periods and every five clock periods thereafter:
000 -> 001 -> 010 -> 011 -> 100 -> 000 -> 001 -> 010 -> 011 -> 100
1 1