Clock

  • A clock signal is

    • The clock period is the time for one full cycle of the clock signal
  • The clocking methodology is the approach used to determine

    • Edge-triggered clocking: all state changes occur on a clock edge, either rising edge or falling edge. (note: our default is rising edge, but sometimes we’ll use falling edge)
  • A clock generator is an electronic oscillator producing a periodic clock signal

  • signal edge is the transition of a signal from one level to another

    • A rising edge (or positive edge) is the transition from low to high
    • A falling edge (or negative edge) is the transition from high to low
  • A sequential logic is

    • The state of a sequential logic is the current value of the memory elements
    • A state element
  • A synchronous circuit (or synchronous logic)

  • An asynchronous circuit (or asynchronous logic)

  • SR latch (Set-Reset latch) is a simple form of sequential logic that can store one bit of information

  • flip-flop

    • JK flip-flop

Memory Elements

  • Memory elements
  • Memory elements are unclocked when they do not have any clock input (e.g. SR latch)

SR Latch

SR latch (NOR)

Action
00hold state (latch)
01reset01
10set10
11invalid00

D Latch

  • inputs
    • data value
    • is the clock signal - indicates when the latch should read the value of D and store it
      • when (asserted), the latch is said to be open (or transparent), and the value of is updated to the value of
      • when (deasserted), the latch is said to be closed (or opaque), and the value of is whatever value was last stored in the latch
  • outputs
    • Q the value of the internal state
    • the complement of
  • this sturcture is called a transparent latch (or level-sensitive latch)

D latch (NOR)

0
1001
1110

Flip-Flop

  • Flip-flops are not transparent: their outputs change only on the clock edge
  • The setup time is the minimum time that the input signal must be valid before the clock edge
  • The hold time is the minimum time during which the input signal must be valid after the clock edge. (hold times are usually zero or very small)
  • An input is valid (or stable)

D Flip-Flop

  • A D flip-flop (data or delay flip-flop)
  • consists of two D latches (master and slave) connected in series, with the output of the master connected to the input of the slave. and a clock signal connected to both latches, but inverted in the slave latch.

D flip-flop (falling-edge)

  • is the data input to be stored
  • is the current data stored in the flip-flop
  • (or ) is the clock signal

there is also d flip-flop with enable