Memory, registers and state machines

Circuits that remember: latches and flip-flops, registers and counters, finite state machines, and the memories and programmable logic built from them.

About 12 hours of study

Learning objectives

Lessons

  1. 1

    Latches and flip-flops Intermediate

    Circuits that remember: the SR latch, the D latch, and edge-triggered D, JK and T flip-flops, with their characteristic tables.

  2. 2

    Registers and counters Intermediate

    Groups of flip-flops that hold words, shift bits along, and count: registers, shift registers, ripple and synchronous counters, and mod-N counters.

  3. 3

    Finite state machines Advanced

    Design sequential circuits as state machines: Moore and Mealy machines, state diagrams and tables, and two worked examples.

  4. 4

    Memory and programmable logic Advanced

    How memory chips are organised (address and data lines, sizes, SRAM and DRAM), ROM as a stored truth table, and PLAs and FPGAs.

Module practice

Module quiz

1. Which flip-flop toggles its output when its only input is 1?
2. How many address lines does a memory of 8192 words need?
3. A 4-bit synchronous binary counter holds 0111. What does it hold after the next clock?
4. How many flip-flops does a modulo-12 counter need?
5. The overlapping 101 detector reads 1, 0, 1 from the state S0. In which state is it afterwards?
6. A memory has 12 address lines and 16 data lines. How many bytes can it store?
7. A Johnson counter has 6 flip-flops. How many different states does it go through?

‹ Adders, multiplexers and combinational designFinal assessment ›