DOC PREVIEW
SJSU CS 147 - Mid3 Revision

This preview shows page 1-2-3-4-28-29-30-31-58-59-60-61 out of 61 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 61 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 61 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 61 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 61 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 61 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 61 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 61 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 61 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 61 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 61 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 61 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 61 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 61 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Mid3 RevisionClassification of Digital CircuitsState of a CircuitClockS-R Latch With EnableSlide 6D LatchSlide 8Slide 9Edge Triggered D Flip-FlopSlide 11Slide 12Slide 13Slide 14Slide 15Slide 16Scan Flip-FlopMaster/Slave S-R Flip-FlopSlide 19Master/Slave J-K Flip-FlopSlide 21Edge Triggered J-K Flip-FlopSlide 23T Flip-FlopT Flip-Flop With EnableClocked Synchronous State-Machine AnalysisState Machine StructureMealy ModelMoore ModelSlide 30AnalysisState Machines With D Flip-FlopsSlide 33Slide 34Slide 35Slide 36Slide 37Slide 38State Machines With J-K Flip-FlopsClocked Synchronous State Machine DesignSlide 41Slide 42Slide 43Slide 44Slide 45Slide 46Master-Slave Flip-FlopParallel Registers4-Bit Parallel Register4-Bit Register With EnableRegister Files (Simplified)Memory DevicesSlide 53Slide 54Slide 55W28C64 EEPROM Simplified Block DiagramOur example with flip-flopsExample continuedFlip-flop variationsCharacteristic tablesCharacteristic equationsMid3 RevisionProf. Sin-Min LeeClassification of Digital Circuits•Combinational.– Output depends only on current input values. •Sequential.–Output depends on current input values and present state of the circuit, where the present state of the circuit is the current value of the devices’ memory.–Also called finite state machines.State of a Circuit•The contents of storage elements.•A collection of know internal signal values that contain information about the past necessary to account the future behavior of the circuit.Clock•Signal that determines the change of state in most sequential circuits.S-R Latch With Enable•The outputs change only when the enable input C is asserted.S-R Latch With Enable•Notice that the outputs only change when the input C is asserted.D Latch•This latch eliminates the problem that occurs in the S’R’ latch when R=S=0.•C is an enable input:–When C=1 then the output follows the input D and the latch is said to be open. Due to this fact this latch is also called transparent latch.–When C=0 then the output retains its last value and the latch is said to be closed.D LatchD Latch•For proper operation the D input must not change during a time interval around the falling edge of C.•This time interval is defined by the setup time – tsetup and the hold time – thold .Edge Triggered D Flip-Flop•This flip-flop is made out of two D latches. The first latch is the master, and the second the slave.•When CLK_L = 1 the master is open (on) and the slave is closed (off). Qm and Ds follow Dm .Edge Triggered D Flip-Flop•When CLK_L = 0 the master is closed, the slave is open and Qm is transferred to Qs . Note that Qs does not change if Dm changes because the master latch is closed leaving Qm fixed.Edge Triggered D Flip-Flop•Positive edge-triggered D flip-flop.•Q* = DEdge Triggered D Flip-Flop•If the set-up and hold times are not met the flip-flop’s output will go to a stable, though unpredictable, state.Edge Triggered D Flip-Flop•Asynchronous inputs are used to force the output of the flip-flop to a particular state.•PR (preset) – Q = 1.•CLR (clear) – Q = 0.Edge Triggered D Flip-FlopEdge Triggered D Flip-Flop•Edge triggered D flip-flop with enable.Scan Flip-Flop•This flip-flop allows its inputs to be driven from alternate sources, which can be very useful during device testing.Master/Slave S-R Flip-Flop•The postponed output indicator shows that the output signal does not change until the enable C input is negated.•Flip-flops with this kind of behavior are called pulse-triggered flip-flops.•Q* = S+R’Q•SR = 0Master/Slave S-R Flip-FlopMaster/Slave J-K Flip-Flop•The J and the K inputs of the J-K flip-flop are analogous to the S and R inputs of the S-R flip-flop, except in the case where J=K=1. In this case the outputs of the J-K flip-flop will toggle to the opposite state.Master/Slave J-K Flip-Flop•Q* = JQ’+K’QEdge Triggered J-K Flip-Flop•Q* = JQ’+K’QEdge Triggered J-K Flip-Flop•74LS109T Flip-Flop•Flip-flop changes state every tick of the clock.•Q* = Q’T Flip-Flop With Enable•Flip-flop changes state every tick of the clock when enable is asserted.•Q* = ENQ’+EN’QClocked SynchronousState-Machine Analysis•State machine – Another term for a sequential circuit.•Clocked – Refers to the fact that their flip-flops employ a clock input.•Synchronous – Same clock signal is used by all flip-flops.•A state machine with n flip-flops can have up to 2n distinct states.State Machine Structure•State memory – a set of n flip-flops.•Next-state logic – combinational logic circuit which determines the next state.–Next-state = F(current state,input)•Output logic – combinational logic circuit which determines the output.•There are two models for the output logic:–Mealy Model.–Moore Model.Mealy Model•The output is based on both current state and input.–Output = G(current state,input)Moore Model•The output is based on current state only.–Output = G(current state)•In high speed circuits the output circuit may be absent and the output is generated directly from the flip-flop’s outputs. This is called output coded state assignment.Mealy Model•Pipelined outputs – a design approach that ensures the output of a Mealy model circuit only changes with the clock.Analysis•Determine the next-state and output functions F and G.•Use F and G to construct a state/output table that completely specifies the next state and output of the circuit for every possible combination of current state and input.•Draw a state diagram.State Machines With D Flip-Flops•D0 = Q0 · EN’ + Q0’ · EN•D1 = Q1 · EN’ + Q1’ · Q0 · EN + Q1 · Q0’ · ENState Machines With D Flip-Flops•Q0* = D0•Q1* = D1 •Q0* = Q0 · EN’ + Q0’ · EN•Q1* = Q1 · EN’ + Q1’ · Q0 · EN + Q1 · Q0’ · ENState Machines With D Flip-Flops•MAX = Q1 · Q0 · ENState Machines With D Flip-Flops•Q0* = Q0 · EN’ + Q0’ · EN•Q1* = Q1 · EN’ + Q1’ · Q0 · EN + Q1 · Q0’ · EN•MAX = Q1 · Q0 · ENState Machines With D Flip-FlopsState Machines With D Flip-FlopsState Machines With D Flip-FlopsState Machines With J-K Flip-FlopsClocked Synchronous State Machine Design•Derive a state/output table from the problem specification.•Minimize the number of states in the state/output table by eliminating equivalent states.•Choose a set of state variables. Assign to each state a unique combination from the set derived above.•Create a


View Full Document

SJSU CS 147 - Mid3 Revision

Documents in this Course
Cache

Cache

24 pages

Memory

Memory

54 pages

Memory

Memory

70 pages

Lecture 1

Lecture 1

53 pages

Cisc

Cisc

18 pages

Quiz 1

Quiz 1

4 pages

LECTURE 2

LECTURE 2

66 pages

RISC

RISC

40 pages

LECTURE 2

LECTURE 2

66 pages

Lecture 2

Lecture 2

67 pages

Lecture1

Lecture1

53 pages

Chapter 5

Chapter 5

14 pages

Memory

Memory

27 pages

Counters

Counters

62 pages

Load more
Download Mid3 Revision
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 Mid3 Revision 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 Mid3 Revision 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?