Source: https://mokxi.com/learn/path/sequential-logic-design
Updated: 2026-11-20

All paths

# Sequential logic design

Circuits with memory, from real 74HC chips: flip-flops, synchronous counters, shift registers, Moore and Mealy machines, state encoding and hazards. Ends with a traffic light timed and decoded in hardware.

Free 7 lessons 6 h 7 chapters 1,940 XP Electrical · Advanced +250 XP

0 of 7 done

Start the course free Flip-flop types Lesson plan for teachers

What you will build

## 0 projects, built step by step

7 lessons in 7 chapters, about 6 hours on a simulated breadboard. Free, in your browser, every step checked by the simulator.

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Flip-flop types

Edge triggering, set and reset, the forbidden state and the toggle.

Open 288 XP

### Flip-flop types

Half a 74HC74: a D flip-flop that samples on the clock edge and holds, asynchronous set and reset, the forbidden state, and the toggle flip-flop that is half of every counter.

0 of 6 steps

Start What is in it

3 questions, graded as you go.

Chapter 2

## Counters

Synchronous counting, terminal count, a decade and eight bits.

Locked 326 XP

### Counters

The 74HC161 synchronous counter: binary on four outputs, terminal count, wrapping at 16, a decade counter from one NAND gate, and a second chip cascaded for eight bits.

0 of 7 steps

4 questions, graded as you go.

Chapter 3

## Shift registers

Load, shift, serial in and a ring counter.

Locked 288 XP

### Shift registers

The 74HC194 universal shift register: parallel load, shift right, serial data in, and a ring counter made by feeding the last stage back to the first.

0 of 6 steps

3 questions, graded as you go.

Chapter 4

## Moore and Mealy

Outputs from the state alone, or from the state and the input.

Locked 250 XP

### Moore and Mealy

One button, two flip-flops, two outputs: a Moore machine that answers on the next clock and lasts one clock, and a Mealy machine that answers at once and depends on the input itself.

0 of 5 steps

3 questions, graded as you go.

Chapter 5

## State encoding

Binary, Gray and one-hot, and what each one buys.

Locked 250 XP

### State encoding

The same states, three ways to store them: binary in four flip-flops, Gray code where one bit changes at a time, and one-hot where every state has its own flip-flop.

0 of 5 steps

3 questions, graded as you go.

Chapter 6

## Hazards

Bouncing clocks, glitches, ripple and metastability.

Locked 212 XP

### Hazards

A counter clocked by a real push button counts a dozen for one press. Debounce it with an RC filter and a Schmitt trigger, and meet the other hazards of sequential logic: glitches, ripple and metastability.

0 of 4 steps

3 questions, graded as you go.

Chapter 7

## Boss: a 74HC traffic light

A timer, a decoder and a latch, then your own timing.

Locked 326 XP

### Boss: a 74HC traffic light

A traffic light with no processor: a 74HC161 is the timer, a 74HC04 and a 74HC08 decode its count into green, yellow and red, and a 74HC74 latches the WALK button. Finish the decode, prove a full cycle, then retime it.

0 of 7 steps

3 questions, graded as you go.

Syllabus

## Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Flip-flop types

- Flip-flop types Half a 74HC74: a D flip-flop that samples on the clock edge and holds, asynchronous set and reset, the forbidden state, and the toggle flip-flop that is half of every counter.

Chapter 2

### Counters

- Counters The 74HC161 synchronous counter: binary on four outputs, terminal count, wrapping at 16, a decade counter from one NAND gate, and a second chip cascaded for eight bits.

Chapter 3

### Shift registers

- Shift registers The 74HC194 universal shift register: parallel load, shift right, serial data in, and a ring counter made by feeding the last stage back to the first.

Chapter 4

### Moore and Mealy

- Moore and Mealy One button, two flip-flops, two outputs: a Moore machine that answers on the next clock and lasts one clock, and a Mealy machine that answers at once and depends on the input itself.

Chapter 5

### State encoding

- State encoding The same states, three ways to store them: binary in four flip-flops, Gray code where one bit changes at a time, and one-hot where every state has its own flip-flop.

Chapter 6

### Hazards

- Hazards A counter clocked by a real push button counts a dozen for one press. Debounce it with an RC filter and a Schmitt trigger, and meet the other hazards of sequential logic: glitches, ripple and metastability.

Chapter 7

### Boss: a 74HC traffic light

- Boss: a 74HC traffic light A traffic light with no processor: a 74HC161 is the timer, a 74HC04 and a 74HC08 decode its count into green, yellow and red, and a 74HC74 latches the WALK button. Finish the decode, prove a full cycle, then retime it.

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Sequential logic design

Is Sequential logic design free?

Yes. All 7 lessons of Sequential logic design are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need any parts?

No. Every circuit is built on a simulated breadboard, and the simulator checks each step as you go. When you want to build it for real, the same parts and wiring work on a real bench.

How long does Sequential logic design take?

About 6 hours: 7 lessons in 7 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

Where do I start?

With "Flip-flop types", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
