DOC PREVIEW
Berkeley COMPSCI 150 - Sequential Logic Implementation

This preview shows page 1-2-3-4-5-34-35-36-37-38-69-70-71-72-73 out of 73 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 73 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Sequential Logic ImplementationAbstraction of State ElementsForms of Sequential LogicFinite State Machine RepresentationsExample Finite State Machine DiagramCan Any Sequential System be Represented with a State Diagram?Counters are Simple Finite State MachinesHow Do We Turn a State Diagram into Logic?FSM Design ProcedureFSM Design Procedure: State Diagram to Encoded State Transition TableImplementationImplementation (cont'd)Another ExampleMore Complex Counter ExampleMore Complex Counter Example (cont’d)Self-Starting Counters (cont’d)Self-Starting CountersState Machine ModelState Machine Model (cont’d)Example: Ant Brain (Ward, MIT)Ant BehaviorDesigning an Ant BrainSynthesizing the Ant Brain CircuitTransition Truth TableSynthesisSynthesis of Next State and Output FunctionsCircuit ImplementationDon’t Cares in FSM SynthesisState MinimizationAnt Brain RevisitedNew Improved BrainNew Brain ImplementationMealy vs. Moore MachinesSpecifying Outputs for a Moore MachineSpecifying Outputs for a Mealy MachineComparison of Mealy and Moore MachinesMealy and Moore ExamplesMealy and Moore Examples (cont’d)Registered Mealy Machine (Really Moore)Example: Vending MachineExample: Vending Machine (cont’d)Slide 42Slide 43Slide 44Slide 45Equivalent Mealy and Moore State DiagramsExample: Traffic Light ControllerExample: Traffic Light Controller (cont’)Slide 49Slide 50Slide 51Logic for Different State AssignmentsVending Machine Example (PLD mapping)Vending Machine (cont’d)Vending Machine (Retimed PLD Mapping)Finite State Machine OptimizationAlgorithmic Approach to State MinimizationState Minimization ExampleMethod of Successive PartitionsMinimized FSMMore Complex State MinimizationSlide 62Minimizing Incompletely Specified FSMsMinimizing States May Not Yield Best CircuitAnother Implementation of Edge DetectorState AssignmentState Assignment StrategiesOne-hot State AssignmentHeuristics for State AssignmentGeneral Approach to Heuristic State AssignmentOutput-Based EncodingCurrent State Assignment ApproachesSequential Logic Implementation SummaryCS 150 - Fall 2000 - Sequential Logic Implementation - 1Sequential Logic ImplementationSequential CircuitsPrimitive sequential elementsCombinational logicModels for representing sequential circuitsFinite-state machines (Moore and Mealy)Representation of memory (states)Changes in state (transitions)Basic sequential circuitsShift registersCountersDesign procedureState diagramsState transition tableNext state functionsCS 150 - Fall 2000 - Sequential Logic Implementation - 2Abstraction of State ElementsDivide circuit into combinational logic and stateLocalize feedback loops and make it easy to break cyclesImplementation of storage elements leads to various forms of sequential logicCombinationalLogicStorage ElementsOutputsState OutputsState InputsInputsCS 150 - Fall 2000 - Sequential Logic Implementation - 3Forms of Sequential LogicAsynchronous sequential logic – state changes occur whenever state inputs change (elements may be simple wires or delay elements)Synchronous sequential logic – state changes occur in lock step across all storage elements (using a periodic waveform - the clock)ClockCS 150 - Fall 2000 - Sequential Logic Implementation - 4In = 0In = 1In = 0In = 1100010110111001Finite State Machine RepresentationsStates: determined by possible values in sequential storage elementsTransitions: change of stateClock: controls when state can change by controlling storage elementsSequential LogicSequences through a series of statesBased on sequence of values on input signalsClock period defines elements of sequenceCS 150 - Fall 2000 - Sequential Logic Implementation - 5Example Finite State Machine DiagramCombination lock from first lectureresetS3closedclosedmux=C1equal& newnot equal& newnot equal& newnot equal& newnot newnot newnot newS1 S2 OPENERRclosedmux=C2equal& newclosedmux=C3equal& newopenCS 150 - Fall 2000 - Sequential Logic Implementation - 6Can Any Sequential System be Represented with a State Diagram?Shift RegisterInput value shownon transition arcsOutput values shownwithin state node1001101110111010100000010111111100000100D Q D Q D QINOUT1 OUT2 OUT3CLKCS 150 - Fall 2000 - Sequential Logic Implementation - 70101001100110010001011113-bit up-counterCounters are Simple Finite State MachinesCountersProceed thru well-defined state sequence in response to enableMany types of counters: binary, BCD, Gray-code3-bit up-counter: 000, 001, 010, 011, 100, 101, 110, 111, 000, ...3-bit down-counter: 111, 110, 101, 100, 011, 010, 001, 000, 111, ...CS 150 - Fall 2000 - Sequential Logic Implementation - 8How Do We Turn a State Diagram into Logic?CounterThree flip-flops to hold stateLogic to compute next stateClock signal controls when flip-flop memory can changeWait long enough for combinational logic to compute new valueDon't wait too long as that is low performanceD Q D Q D QOUT1 OUT2 OUT3CLK"1"CS 150 - Fall 2000 - Sequential Logic Implementation - 9FSM Design ProcedureStart with countersSimple because output is just stateSimple because no choice of next state based on inputState diagram to state transition tableTabular form of state diagramLike a truth-tableState encodingDecide on representation of statesFor counters it is simple: just its valueImplementationFlip-flop for each state bitCombinational logic based on encodingCS 150 - Fall 2000 - Sequential Logic Implementation - 100101001100110010001011113-bit up-countercurrent state next state0 000 001 11 001 010 22 010 011 33 011 100 44 100 101 55 101 110 66 110 111 77 111 000 0FSM Design Procedure: State Diagram to Encoded State Transition TableTabular form of state diagramLike a truth-table (specify output for all input combinations)Encoding of states: easy for counters – just use valueCS 150 - Fall 2000 - Sequential Logic Implementation - 11C3 C2 C1 N3 N2 N10 0 0 0 0 10 0 1 0 1 00 1 0 0 1 10 1 1 1 0 01 0 0 1 0 11 0 1 1 1 01 1 0 1 1 11 1 1 0 0 0N1 := C1'N2 := C1C2' + C1'C2:= C1 xor C2N3 := C1C2C3' + C1'C3 + C2'C3:= C1C2C3' + (C1' + C2')C3:= (C1C2) xor C3notation to showfunction represent input to D-FFImplementationD flip-flop for each state bitCombinational logic based on encoding0 00 11 10 1C1C2C3N30 11 01 00 1C1C2C3N21 10 01 10 0C1C2C3N1CS 150 - Fall 2000 - Sequential Logic Implementation - 12D QQImplementation


View Full Document

Berkeley COMPSCI 150 - Sequential Logic Implementation

Documents in this Course
Lab 2

Lab 2

9 pages

Debugging

Debugging

28 pages

Lab 1

Lab 1

15 pages

Memory

Memory

13 pages

Lecture 7

Lecture 7

11 pages

SPDIF

SPDIF

18 pages

Memory

Memory

27 pages

Exam III

Exam III

15 pages

Quiz

Quiz

6 pages

Problem

Problem

3 pages

Memory

Memory

26 pages

Lab 1

Lab 1

9 pages

Memory

Memory

5 pages

Load more
Download Sequential Logic Implementation
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Sequential Logic Implementation and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Sequential Logic Implementation 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?