Ershov Computer

Build your own computer: from logic gates to a working processor

Start Learning

What is this

"Ershov Computer" is an interactive browser-based simulator of digital logic and computer architecture. Here you build a computer bottom-up: from the first wire and logic gates to an 8-bit processor with its own data bus, memory, and assembler — and in the finale you run Snake on it. In the advanced modules you move on to structural Verilog, the control unit, and exporting your design to a Tang Nano 9K board. Everything runs right in your browser — no installation, no sign-up.

What's inside

1

Let there be light!

Source → receiver. Your first wire.

2

Negation

NOT gate from a single NAND.

3

Perfect pair

AND gate from NAND and NOT.

4

At least one

OR gate via De Morgan's laws.

5

Strict choice

Exclusive OR (XOR).

6

Half Adder

Sum (XOR) + Carry (AND).

7

Full Adder

A, B, CarryIn → Sum, CarryOut.

8

8-bit Adder

Cascade of 8 adders. Buses.

9

Crossroads

MUX: digital 2-to-1 switch.

10

Loopback

SR latch from NOR. Foundation of memory.

11

Smart memory

D flip-flop. Captures on clock edge.

12

Tangible Memory

8-bit register from 8 DFFs. LEDs show the byte.

13

Operation Selection

Multiplexer picks the result: ADD, AND, or OR.

14

Heart of math

ALU: ADD, AND, OR, XOR, NOT, SHL, SHR.

15

System Pulse

Manual clock. The concept of Clock. Counter on LED8.

16

Program Counter

PC from register and ALU. Address sequencing.

17

Anatomy of a Decoder

Instruction → control signals.

18

FINALE: The Ershov Computer

Harvard processor. Build and program it!

Course Curriculum → — timeline of all 47 levels: task, difficulty, time, and outcome for each.

What you'll learn

Step-by-step learning

Step-by-step learning

47 levels: a wire, AND, OR, NOT gates, adders, flip-flops, registers, an ALU, and a fully working 8-bit processor at the end. Each level unlocks new components.

Visual programming

Visual programming

At the start there is only an interactive canvas: connect logic elements with wires and watch the signals switch in real time. Circuit behavior is verified by interactive tests and truth tables right on the screen.

Real architecture

Real architecture

A full educational Harvard architecture: separate instruction memory (ROM) and data memory (RAM), an ALU with 8 operations, registers, and a program counter. You assemble the datapath yourself and see every tick of the processor.

Verilog

Text-based design

After visual circuits, you'll master structural Verilog — a text language for hardware description. Gates, buses, and modules are described in code and appear instantly in the RTL Viewer.

How it works

Build circuits from logic gates in your browser. Drag components onto the canvas, connect them with wires, and see results instantly. The built-in checker compares your circuit against the truth table, so you immediately see which bits match and which don't.

Simulator interface

Advanced Level

After the processor comes the best part: ROM and RAM modules, data buses, the instruction decoder, I/O ports. The built-in assembler lets you program the architecture you just built, and new components unlock peripherals and games.

Advanced circuits

Verilog Language

Moving from graphical elements to Verilog. A code editor with syntax highlighting and the built-in RTL Viewer turn your code into a visual circuit on the fly, help you build hierarchical modules, and debug the architecture at the level of buses and signals.

Verilog editor and RTL Viewer

Computer Architecture

Design a control unit, connect switches and LEDs via Memory-Mapped I/O, and run the finished computer. The final project exports as a Verilog project for flashing onto a real FPGA board, the Tang Nano 9K: your processor running on real hardware.

Computer Architecture

AI Tutor

The AI tutor sits in the right sidebar. It analyzes your circuit, finds errors, and asks guiding questions so you can figure things out on your own. If you're truly stuck, it will show you a step-by-step solution.

AI Tutor

Game Economy

Every completed level earns the in-game currency: transistors. Your engineer profile keeps the history of your wins, and a ready-made solution from a hint costs transistors. It's cheaper to figure it out yourself.

Game Economy

Already know your logic?

Take the placement test — 19 questions and 3 hands-on tasks, 10–15 minutes. Based on the result, your starting level unlocks (up to level 30): no need to redo what you already know.

Take the placement test

Free, no sign-up. Retake as many times as you like — the floor can only go up.

Knowledge Library

You don't need to search for answers elsewhere. The Library has everything you need:

  • Level Guides — step-by-step walkthroughs for all 47 levels, including Verilog debugging
  • Component Guides — datasheets for 43 elements with truth tables, pin descriptions, and usage examples
  • Circuitry Articles — 58 articles on logic gates, processor architecture, assembly language, and more
  • Interactive Demo Examples — live schematics of 9 gates: toggle inputs and watch the outputs change

Circuit design: where to start

What the field is, what a circuit is made of, how it differs from programming and which books to read — on one page. After that you can build a processor across 47 levels.

Open the hub

Tools

Useful utilities for learning circuitry — all free, nothing to install:

For Teachers

Ready-to-use materials for integrating the Ershov Computer course into your curriculum.

Frequently Asked Questions

What is Ershov Computer?

An interactive browser-based simulator where you build an 8-bit processor step by step, from a NAND gate to assembly programming. No downloads required.

Is it free? What do I need to install?

Completely free, and it runs in your browser. Nothing to install, no sign-up: open the site and start.

Who is this for?

Students studying computer science, undergrads in technical fields, and anyone curious about how computers really work.

How is it different from NandGame?

In NandGame everything is built as an abstract math puzzle around a single NAND gate. "Ershov Computer" is closer to a hands-on digital logic course: we start with a visible wire and basic logic, take a close look at buses, memory addressing, Memory-Mapped I/O, and the instruction decoder, then move on to Verilog. Every level comes with a detailed guide, and components have datasheets.

Do I need to know programming?

No. The simulator is designed for complete beginners. You'll start with a simple wire and, by the end, write assembly programs for your own processor.

Who is this for

Students

Students

Computer science in practice: circuits you assemble and test right away.

Undergraduates

Undergraduates

A companion to a computer architecture course: gates, registers, ALU, and a full processor.

Enthusiasts

Enthusiasts

For everyone who wants to know why a processor runs exactly the code you write.

For schools and universities — how to bring «Ershov Computer» into your institution.

Buy the Author a Coffee

Ershov Computer is a free project: no ads, no subscriptions, no sign-ups. New levels and articles are written on sleepless nights — almost always with a cup of coffee at hand. Treat the author: nights like these run on coffee.

Buy a Coffee
CPUThis is a CPU. Design your own!
Start Learning