Sequential Logic Circuits

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

Sequential Circuit

A circuit whose output depends on a combination of inputs AND previous sequence inputs

2
New cards

State

Stored Bits

3
New cards

SR Latch

sequential circuit that is used to store memory

  • 2 NOR Gates: Top has Set (s); bottom has Reset (r); output of either is the 2nd Input of the other

S R Output
0 0 Previous Output
1 0 Q = 1
0 1 Q = 0
1 1 RACE CONDITION (???)

4
New cards

Problem with SR Latch

If S and R are simultaneously high, the SR latch gets into a RACE condition, which provide a random output.

5
New cards

Best form of SR Latch

Level-Sensitive SR Latch

  • 3 Inputs: Clock, Call, and Cancel Signal

Clock = 0 → Output = Previous Output (or dead 0 state)

Clock = 1:

  • Call = 0 + Cancel = 1 → S=0, R=1 → Output = 0

  • Call = 1 → S=1, R=0 → Output = 1

Avoiding RACE conditions requires technical build

6
New cards

Level Sensitive VS Edge Sensitive

All Talk About Clock

Level: Output changes when clk is in a certain state (high/low)

Edge: Output changes when clk changes b/w states (rising/falling)

7
New cards

D Latch

SR Latch where S = R’ with a clock signal
- ensures no RACE condition but WILL over multiple latches

Clk = 0 → Output = Previous Output (dead 0 state)

Clk = 1 → Output = SR Latch Logic w/ IDC of 00,11

8
New cards

Flip Flop

Bit Storage that stores states on the clk edge

9
New cards

Latch

Bit Storage that stores states on the clock state

10
New cards

D Flip-Flop

Changes state on the clock edge

  • can be rising or falling edge

When clk 0→1:

D = 1 → Output = 1, D = 0 → Output = 0

When clk anything else:

Output = previous output

11
New cards

D Flip-Flop: Master-Servant

Characterized by Triangle on Bottom Left

2 Parts: Master and Servant D-latch. Only one enabled at a time

  • clk = 0: from inverted clk, master enabled, loading D

  • clk = 1: servant enabled, loading output from master

Value D when clk changes from 0→1 causes info change

Uses more transistors than Latches

12
New cards

Clock Signal

Oscillators create a pulsing signal

Period: Time for Full Cycle

Frequency: Amount of cycles in 1 second

13
New cards

Clock Cycle

Duration of 1 Period for a Clock Signal

14
New cards

D Flip-Flop: Master-Servant LOGIC

Cm = C’

Qm = Cm(rising)*Dm = Ds

Cs = C

Qs = Cs(rising)*Ds

15
New cards

Basic Register

multiple flip flops sharing a clock cycle

each flip flop has a unique inputs

allows storage of multiple bits

16
New cards

EXAMPLE: Temperature Display of Current and 2 Past Values

All Regs Bound on 1 Clock for every hour, changing temp display

Reg 1: Takes reading from Temp. Sensors and Outputs to Display

Reg 2: Takes Reg 1 Outputs and Uses as Inputs and Outputs

Reg 3: Takes Reg 2 Outputs and Uses as Inputs and Outputs

17
New cards

How do you capture a sequential circuits particular behavior over time with varying inputs?

FSM: Finite State Machine

Set of states representing every possible “mode” or “situation”

Arrows = clock cycle, Names on circles = states

Bool. on Arrows = Input needed for change

Bool. on Circles = Output of that state

18
New cards

State Diagram

Graphical Representation of Sequential Circuits

Akin to Equational Representation of Combinational Circuits

19
New cards

How to design sequential circuit?

  1. Capture the Behavior of Function

    1. FSM → Controller Design/Architecture

  2. Create Equations and Implement Gate-Based Circuit

    1. Encode States → Truth Table → SOP → Gates

20
New cards

EXAMPLE: Secure Car Key FSM

Wait: Starting State → Waits for Car CPU to request ID (a)

  • a’ = loop back to wait a = advance to ID reading

Read 1-4 : Car Key transmits ID bit by bit each cycle

21
New cards

How to Capture Desired Behavior with an FSM?

  1. List all Possible states w/ meaningful names

  2. Create Transitions defined with all possible conditions

  3. Refine the FSM with any improvements

22
New cards

How to Turn an FSM into a Controller?

  1. Set Up Architecture

  2. Encode States

  3. Fill In the Truth Table

  4. Implement & Simplify Combinational Logic

23
New cards
24
New cards
25
New cards