Synchronous Circuits

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

1/45

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.

46 Terms

1
New cards

By using combinational logic and one or more flip-flops.

How are the Synchronous sequential circuits realized?

2
New cards

Stored values in the flip-flop

Controlled by the clock signal

which changes the state of the flip-flop.

The circuit moves from one state to another, ensuring only one transition per clock cycle.

Sources are primary inputs and the flip-flop’s current state.

3
New cards

FSM: Finite State Machine

A formal name for a sequential circuit. Its behavior can be represented with a finite number of states. Used to control physical systems.

4
New cards

Designing a State Diagram

States and transitions are represented pictorially as nodes and arcs. Each state has defined outputs and transitions based on inputs.

5
New cards

Node / (Start State)

Starting state of FSM. Output is always 0. Arcs show transitions depending on input conditions, returning to itself or moving to another state.

6
New cards

Node / (Intermediate State)

Transition state where output remains 0. Has arcs that loop back or move to another state depending on inputs.

7
New cards

Node / (Output State)

Output is 1 in this state. Circuit stays here if inputs persist, or returns to a prior state if inputs reset.

8
New cards

State variables

Represent present-state variables of flip-flops. Used to track FSM states.

9
New cards

Next-state variables

Combinational circuit’s outputs; determine how flip-flops update their state at each active clock edge.

10
New cards

Z = (Output Expression)

Output depends only on present state variables. Circuit determined to be Moore type

11
New cards

D Flip-Flops

Used when next-state variables directly become the new state values. Simplifies FSM implementation.

12
New cards

Resetn Input

Active-low input clears flip-flops to zero, forcing FSM into a known initial state.

13
New cards

Improved Circuit Version

Uses fewer gates, leading to reduced cost and simpler design.

14
New cards

Timing Diagram

Shows when signals change with respect to clock edges, including propagation delays through flip-flops.

15
New cards

Sequence Detectors

Circuits designed to detect a specific sequence of input symbols.

16
New cards

One-Hot State Diagram

Each state assigned a unique binary valuation where only one bit is high. Simplifies expressions but requires more flip-flops.

17
New cards

Data Transfer Control Circuit

Moves data between registers using a temporary register, ensuring correct swapping of values.

18
New cards

Data Transfer State A

No transfer occurs; all outputs are 0.

19
New cards

Data Transfer State B

Contents of R2 are moved to R3; circuit then advances.

20
New cards

Data Transfer State C

Contents of R1 are moved to R2; circuit then advances.

21
New cards

Data Transfer State D

Contents of R3 are moved to R1, completing the swap.

22
New cards

Output Signal Done

Asserted in the final state to indicate completion of the transfer.

23
New cards

Flip-Flop Choice for Data Transfer Circuit

D flip-flops are used, simplifying state representation and transitions.

24
New cards

One-Hot Encoding (Data Transfer)

Assigns one flip-flop per state, making output expressions simpler but requiring more hardware.

25
New cards

Mealy Type FSM (First Example)

Output depends on both inputs and present state. Requires fewer states than Moore but reacts immediately to inputs.

26
New cards

Moore Type FSM (First Example)

Output depends only on the present state. Requires an additional clock cycle before output changes.

27
New cards

Mealy FSM Timing Diagram

Output responds immediately to input, unlike Moore which has a one-cycle delay.

28
New cards

Moore FSM Timing Diagram

Output changes only after a state transition, causing a delay.

29
New cards

Mealy vs Moore Circuits

Mealy circuits are generally simpler and faster but may be less stable; Moore circuits are more predictable but need more states.

30
New cards

Data Transfer Control (Mealy Type)

Achieves the same swap function in fewer states but still requires two flip-flops.

31
New cards

One-Hot Mealy FSM

Uses three flip-flops for three states. Simplifies logic at the cost of more hardware.

32
New cards

Serial Adder

Adds numbers one bit at a time. Cheaper but slower than parallel adders.

33
New cards

FSM Adder (Serial Adder)

FSM controls addition of bit pairs with carry. Requires state tracking.

34
New cards

Shift Registers in Serial Adder

Hold operands and sum during computation. Provide bits sequentially at each clock cycle.

35
New cards

Carry States in Serial Adder FSM

Two states (carry = 0 and carry = 1) track whether a carry exists from the previous addition.

36
New cards

State G (Carry = 0)

Computes sum without carry. Remains in same state unless carry generated.

37
New cards

State H (Carry = 1)

Computes sum including carry. Returns to G if no new carry is generated.

38
New cards

FSM State Table (Serial Adder)

Defines transitions between carry states depending on input bits.

39
New cards

Serial Adder Flip-Flop Requirement

Only one flip-flop is needed to represent the two carry states.

40
New cards

Moore Serial Adder FSM

Requires more states because outputs depend only on the FSM state, not inputs.

41
New cards

State Splitting in Moore FSM

Splits states based on both carry and sum outputs, increasing number of states.

42
New cards

Sum Output in Moore FSM

Determined only by state variables, not direct inputs.

43
New cards

Carry Output in Moore FSM

Also derived from state variables, requiring extra states compared to Mealy version.

44
New cards

Moore Serial Adder Output Delay

Output delayed by one clock cycle due to extra flip-flop used in state machine.

45
New cards

Simple FSM (3 States A, B, C) – Moore Implementation

module simple(CLK, RSTn, W, Z);

input CLK, RSTn, W;

output reg Z;

reg [1:0] y, Y;

parameter A = 2'b00, B = 2'b01, C = 2'b10;

always @(*) begin

case (y)

A: if (W) Y = B; else Y = A;

B: if (W) Y = C; else Y = A;

C: if (W) Y = C; else Y = A;

default: Y = A;

endcase

end

always @(negedge RSTn or posedge CLK) begin

if (!RSTn) y <= A;

else y <= Y;

end

always @(*) Z = (y == C);

endmodule

46
New cards

Mealy FSM (2 States A, B) – Sequence Detector

module mealy(CLK, RSTn, W, Z);

input CLK, RSTn, W;

output reg Z;

reg y, Y;

parameter A = 1'b0, B = 1'b1;

always @(*) begin

case (y)

A: begin

Z = 0;

if (W) Y = B; else Y = A;

end

B: begin

if (W) begin Z = 1; Y = B; end

else begin Z = 0; Y = A; end

end

endcase

end

always @(negedge RSTn or posedge CLK) begin

if (!RSTn) y <= A;

else y <= Y;

end

endmodule