Logic circuits and flip-flops

About this lesson: Logic circuits and flip-flops

In short

To analyse a circuit, write the Boolean expression at each gate output and build the truth table column by column. To design one, write the truth table first, then an expression for the rows where Q = 1, simplify, and draw the gates.

What you'll explore

Combining gates: From expression to table
To analyse a circuit, write the Boolean expression at each gate output and build the truth table column by column.
Building with NAND: One gate to make them all
Joining both inputs of a NAND gate makes a NOT gate. NAND followed by NOT makes AND. Inverting both inputs of a NAND gives OR (De Morgan).
Memory: The SR flip-flop
Two NOR gates cross-connected make a bistable (SR flip-flop): a 1-bit memory.
Check yourself: Flip-flop
S = R = 0 means hold.

Also in this lesson

  • Logic circuits in detail
  • Common mix-ups

Key words

Combinational logic
Output depends only on present inputs
Bistable (flip-flop)
Circuit with two stable states that stores one bit
De Morgan's laws
(A·B)‾ = Ā + B̄ and (A + B)‾ = Ā·B̄
Set / reset
Make Q = 1 / make Q = 0

Sources

  • NIE Sri Lanka, G.C.E. (A/L) Physics syllabus, implemented from 2017 (competency level 9.4).
  • HyperPhysics (Georgia State University): Flip-flops and latches.

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 4 short steps and a 30-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 18 November 2026.

← Logic gates and truth tables

All lessons in Unit 9 · Electronics · A/L Physics

A/L Physics past papers 2019–2025: analysis and 10 model papers with answers

මේ පිටුව සිංහලෙන් කියවන්න