Skip to content
BetterDL

Rising edge

Also called: positive edge, positive-going edge, leading edge, posedge, positive-edge-triggered, positive edge triggered, low-to-high transition

The moment a signal changes from 0 to 1. Positive-edge-triggered flip-flops sample their inputs exactly at the clock's rising edges.

A rising edge is a 0 → 1 transition: the instant a signal goes from low to high. On a waveform it is the upward step.

Rising edges matter most on the clock. A positive-edge-triggered flip flop samples its inputs at each rising clock edge and holds its output in between. Unless a question says otherwise, every flip-flop in this course is positive-edge-triggered. The opposite transition is the falling edge.

Finding rising edges on a slotted timing diagram:

  • Look for a slot where the signal is 1 and the slot before it is 0. That slot holds the edge.
  • A long high stretch contains only one rising edge, at its start.
  • A signal that starts at 1 has no rising edge in its first slot, because there was no 0 before it.

In this course's diagrams, a flip-flop's Q changes in the same slot as the rising edge, using the input value in that slot. Inputs never change exactly at an edge, so that value equals the one just before the edge.

A clock with period T has one rising edge per period, so a 100 MHz clock has 100 million rising edges per second.

Worked example

Example

Marking rising edges

Mark every rising edge of this clock, then say where a positive-edge D flip-flop could change.

CLK
  1. 1.

    Slot 2: 0 → 1. Rising edge.

  2. 2.

    Slots 3–4: still 1. Same high stretch, no new edge.

  3. 3.

    Slot 6: 0 → 1. Rising edge.

  4. 4.

    Slot 9: 0 → 1. Rising edge. Slot 10 is the same high stretch.

  5. 5.

    Three rising edges: slots 2, 6 and 9. The flip-flop's Q can change only in those slots.

Common mistakes

  • Counting every slot where CLK = 1 as an edge. Only the first slot of each high stretch is.

  • Counting slot 1 as an edge when the clock starts high.

  • Using falling edges for a flip-flop that has no bubble on its clock pin.

Practice Rising edge

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Rising edge is taught in Latches and Flip-Flops, Logic Gates and Timing and Sequential Logic.