CSC258: Sequential Circuit Design

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

1/13

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.

14 Terms

1
New cards

Counters

store numbers and increment them, often implemented with a parallel load and clear inputs

2
New cards

ripple counter

example of an asynchronous circuit, timing isnt quite synchronized with the rising clock pulse, cheap to implement but unreliable for timing

3
New cards

how do you design these circuits?

  • sequential circuits are the basis for memory, instruction processing, and any other operation that requires the circuit to remember past data values

  • sequential circuits use combinational logic to determine what the next state of the system should be, based on the past state and the current input values

4
New cards

states of the circuit

past data values

5
New cards

state example: counters

with counters, each state is the current number that is stored in the counter

on each clock tick, the circuit transitions from one state to the next, based on the inputs

<p>with counters, each state is the current number that is stored in the counter</p><p>on each clock tick, the circuit <strong>transitions</strong> from one state to the next, based on the inputs </p>
6
New cards

state tables

help to illustrate how the states of the circuit change with various input values f

<p>help to illustrate how the states of the circuit change with various input values f</p>
7
New cards

finite state machines

is an abstract model that captures the operation of a sequential circuit

8
New cards

FSM definition

  • a finite set of states

  • a finite set of transitions between states, triggered by inputs to the state machine

  • output values that are associated with each state or each transition (depending on the machine)

  • start and end states for the state machine

9
New cards

design steps for FSM

  1. draw state diagram

  2. derive state table from state design

  3. assign flip-flop configuration to each state

    1. num of flip-flops needed is : ⌈log2(# of states)⌉

  4. redraw state table w/ flip-flop values

  5. derive combinational circuit for output and for each flip-flop input

10
New cards

moore machine

the output for the FSM depends solely on the current state (based on entry actions)

11
New cards

mealy machine

the output for the FSM depends on the state and the input (based on input actions)

being in state X can result in diff output, depending on the input that caused that state

12
New cards

timing and state diagrams

when assigning states, you need to consider the issue of timing witht he states

13
New cards

timing example

if recognizer circuit is in state 011 and gets a 0 as an input, it moves to state 110

  • the first and last digits change “at the same time”

  • if the first flip-flop changes first, the output would go high for an instant, which would cause unexpected behaviour

14
New cards

two solutions to race issue

  1. whenever possible, make flip-flop assignments such that neighbouring states differ by at most one flip-flop value

    1. intermediate states can be allowed if the output generated by those states is consistent with the output of the starting or destination states

  2. if the intermediate states are unused in the state diagram, you can set the output for these states to provide the output that you need

    1. might need to add more flip flops to create these states