Course Curriculum

All 67 levels, from the first wire to a pipelined RISC processor: for each — the task, difficulty, typical time, and a measurable learning outcome.

1–16 ≈ 330 min · ≈ 5.5 h

Part 1 · Basics

From the first wire and a NAND to the program counter: gates, adders, multiplexer, SR latch, D flip-flop, register, ALU, clock.

17–29 ≈ 420 min · ≈ 7 h

Part 2 · Advanced Architecture

Instruction decoder and the final Harvard processor with assembler, then peripherals: variable PC step, dual ROM read, IX pointers, buses and I/O ports, status flags, the final Snake.

30–43 ≈ 360 min · ≈ 6 h

Part 3 · Verilog

Hardware description language: primitives, module hierarchy, buses, ALU, RAM, datapath, multi-file projects, RTL Viewer, and waveforms.

44–47 ≈ 135 min · ≈ 2.3 h

Part 4 · Computer Design

Control unit, custom instruction set (ISA), memory-mapped I/O, and export to a real Tang Nano 9K FPGA.

48–67 ≈ 835 min · ≈ 13.9 h

Part 5 · RISC Microarchitecture

RISC Lab: a 32-bit RV32I teaching core in Verilog — register file, load/store, a single-cycle core and a five-stage pipeline with forwarding, the load bubble and flush.

Total 67 levels of the course
≈ 2080 min · ≈ 34.7 h of pure solving ≈ 46 lessons of 45 min

With theory, articles, and review — ≈ 53 lessons (40 h).

School implementation formats

Year-long elective

2 lessons a week (45 min each) — all 67 levels fit into one school year.

Half-year club

4 lessons a week — the full course fits into one semester.

Intensive

5 days × 6 hours — a summer school or profile camp format.

Lesson-by-lesson plan

The plan targets the year-long format of two lessons a week: 39 lessons. A regular lesson runs up to 45 minutes; the two final lessons (parts 2 and 3) take 60. Pure level solving takes ≈28 lessons; the rest is theory, articles, and review. Each level number links to its guide. Instead of level homework, any lesson can be paired with a teacher-made assignment — it is graded automatically and the results arrive in your dashboard.

LessonLevels≈minTopicTheory and reviewHomework
1 1, 2 15 Signal and negation Review: a signal as 0/1 and NAND as a universal gate; after level 2, the concept check on building NOT from NAND. Read the article on AND, OR, NOT gates.
2 3, 4 25 AND, OR and De Morgan Review the De Morgan article: how to build a missing gate from the ones you have. Write out AND and OR truth tables on paper for all input combinations.
3 5, 6 30 Selection and the first adder Review: how "all inputs" differs from "at least one", and why adding two bits produces two outputs. Read the adder anatomy article.
4 7, 8 45 Carry and 8-bit addition Review the adder anatomy article: the carry chain from bit to bit. Add three pairs of 8-bit numbers by hand and write down the carries.
5 9 20 The switch: multiplexer Review the multiplexer article: a control wire picks the signal route. Come up with two places in a computer that need to pick one of several signals.
6 10 25 Feedback: the SR latch Review the feedback article: why a circuit with a loop remembers. Read the SR latch article and sketch its two stable states.
7 11 30 D flip-flop Review the clock and D flip-flop article: writing on the clock edge. Read the clock and D flip-flop article.
8 12 30 Register: the first byte of memory Review the registers article: eight D flip-flops acting as one cell. Explain out loud how a register differs from a single flip-flop.
9 13 30 Operation select: the ALU scheme Review the ALU article: the decoder picks the operation, the multiplexer picks the result. Read the ALU article.
10 14 40 The Zero flag and comparison Review: how subtraction and the zero flag turn a circuit into a device that can compare. Think about which numbers do not fit into the unsigned 8-bit range.
11 15, 16 40 The clock and the program counter Review the program counter article: PC plus clock makes a machine that steps through a program. Read the program counter article.
12 17 30 The instruction decoder Review the instruction decoder article: opcode bits become control signals. Write down all 4 opcodes and their control signals.
13 18 60 FINALE: the full Harvard processor Review the Harvard architecture article: why ROM and RAM are separate and how the instruction cycle runs. Sketch the processor datapath from memory and check it against the game.
14 19, 20 35 Variable PC step Review the level 19 concept check: the PC step equals the instruction size. Re-read the program counter article, now with the +2 step.
15 21 25 The IX pointer Review the pointers and index registers article: an address used as data. Think of a task that is impossible without a pointer.
16 22 30 The bus and device conflicts Review the bus conflicts and address decoder article: everyone stays quiet while one device talks. Read the bus conflicts article.
17 23 30 Assembler and port 254 Review the assembly article and the LDA/ADD difference using the gamepad port. Read the assembly article.
18 24 25 A pixel on screen Review: writing a byte to the display address — the first picture drawn by a program. Draw a cross on the display with a three-line program.
19 25 30 Flags and two's complement Review the two's complement article: number sign and CPU flags. Read the two's complement article.
20 26 20 Pseudo-random numbers Review: where "randomness" comes from in a deterministic circuit. Think of how to get a "random" move from a player's keypress.
21 27 30 I/O ports Review the memory-mapped I/O article: the address space as the interface to everything. Read the memory-mapped I/O article.
22 28 45 Branching and movement Review the branching and loops article and the concept check: JZ is physically a MUX before the PC. Read the branching and loops article.
23 29 60 FINALE: Snake Review the finished Snake program: RAM as variables, an empty loop as the timer. —
24 30, 31 25 Hello, Verilog and strict choice (XOR) Review the Verilog for beginners article: a module, its ports, the first textual circuit. Read the "Verilog is not programming" article.
25 32, 33 30 Flow control and first computation Review: a multiplexer in Verilog and a half adder (XOR + AND). Read the Verilog half adder article.
26 34 20 Module hierarchy: FullAdder Review the Verilog hierarchy article: a full adder from two half adders. Read the module hierarchy article.
27 35 30 Buses and the 8-bit adder Review the Verilog buses article: a vector instead of eight wires, and Adder8 from FullAdder. Read the Verilog buses article.
28 36 40 The full ALU Review: how the familiar circuit of level 14 becomes text and passes the same tests. Compare the level 14 schematic with the level 36 text line by line.
29 37 30 Memory and the clock Review the concept check: the clock is for storing, not for computing. Re-read the clock and D flip-flop article in the Verilog context.
30 38 25 A counter step by step Review: register plus adder plus feedback equals a counter; debugging tick by tick. Read the sequential circuits section of the level guide.
31 39 30 RAM as a black box Review the Verilog hierarchy article: the interface matters more than the insides. Read the module hierarchy article.
32 40 40 The processor datapath Review: rebuild the whole datapath as text, from registers to the ALU. Compare the textual datapath with the level 18 schematic.
33 41 35 Hierarchy: a CPU from modules Review the Verilog hierarchy article and multi-file projects: instantiation embeds a circuit. Split your project into one file per module.
34 42 20 RTL Viewer: an X-ray of the circuit Review: what the synthesizer grew from your text and how to read its schematic. Open the RTL Viewer for level 40 and find your modules in it.
35 43 35 Delays and waveforms Review the propagation delay article and reading a waveform at the clock edge. Read the propagation delay article.
36 44 25 The control unit Review the instruction decoder article: the CU is a big decoder without memory. Write down the opcodes and control signals of your circuit.
37 45 35 A custom instruction Review the crash test: the decoder defines what a command means, not the gates. Think of an instruction missing from the instruction set.
38 46 30 Memory-Mapped I/O Review the memory-mapped I/O article: address 0xFF as a door to the real world. Read the memory-mapped I/O article.
39 47 45 Materialization: from Verilog to the board Review the Ershov Board spec article: synthesis into LUTs and flip-flops, routing, flashing the Tang Nano 9K. —

Part 1 · Basics · Levels 1–16 · ≈ 330 min

1

Let there be light!

Task: Connect the signal source (Input) to the receiver (Output).

●○○ ≈ 5 min
After the level: explain what a 0/1 signal, an input/output pin, and a wire are, and connect a source to a receiver
2

Negation

Task: Build a NOT gate from a NAND. When the input is 1, the output should be 0.

●○○ ≈ 10 min
After the level: derive a NOT from a tied-input NAND and explain NAND's universality
3

Perfect pair

Task: Build a logical AND gate.

●○○ ≈ 10 min
After the level: build an AND from NAND + NOT and explain operation composition
4

At least one

Task: Build a logical OR gate.

●○○ ≈ 15 min
After the level: build an OR using De Morgan's law and explain the formula NOT(NOT A AND NOT B)
5

Strict choice

Task: Build an Exclusive OR (XOR) gate.

●○○ ≈ 15 min
After the level: build an XOR from basic gates and explain it as a "controlled inverter"
6

Half Adder

Task: Build a Half Adder.

●●○ ≈ 15 min
After the level: explain how adding two bits yields two outputs (Sum, Carry) and build a half adder
7

Full Adder

Task: Build a Full Adder: 3 inputs, 2 outputs.

●●○ ≈ 20 min
After the level: explain carry propagation between bits and build a full adder
8

8-bit Adder

Task: Build an 8-bit adder (ADDER8) using FullAdders and buses.

●●○ ≈ 25 min
After the level: explain what a bus and a byte are, and build an 8-bit adder as a chain of carries
9

Crossroads

Task: Build a multiplexer (MUX): selects one of two input bits.

●●○ ≈ 20 min
After the level: build a multiplexer, verify its selection formula, and explain it as a "digital switch"
10

Loopback

Task: Build an SR latch from NOR gates. State is held when S=0, R=0.

●●○ ≈ 25 min
After the level: build an SR latch from two NOR gates, verify state retention, and explain the role of feedback
11

Smart memory

Task: Build a D flip-flop (DFF). Data is captured on the rising edge of the Clock.

●●○ ≈ 30 min
After the level: build a master-slave D flip-flop and demonstrate on clock ticks why state changes only on the edge
12

Tangible Memory

Task: Build an 8-bit register from DFFs. Connect its output to LED8.

●●● ≈ 30 min
After the level: break the register by disconnecting Clock from the flip-flops, and explain how 8 flip-flops form a byte-wide register
13

Operation Selection

Task: Build an operation selector. BusMUX picks the result: ADD, AND, or OR based on OpSelect.

●●● ≈ 30 min
After the level: build a multiplexer cascade and show how OpSelect routes the result of the required operation
14

Heart of math

Task: Build an 8-bit ALU (ADD, AND, OR, XOR, NOT, SHL, SHR). Hint: decoder -> operations -> MUX.

●●● ≈ 40 min
After the level: break the ALU in a specified way (result around the MUX) and explain the decoder → operations → MUX architecture and the Zero flag
15

System Pulse

Task: Learn the concept of clocking. Press ManualClock and watch the counter on the LED8.

●●● ≈ 10 min
After the level: explain how a clock moves data through registers and manually clock a counter
16

Program Counter

Task: Build a Program Counter (PC): a register + an ALU (or your ADDER8 chip). Each clock tick increments the address by 1.

●●● ≈ 30 min
After the level: build a program counter and explain the register → ALU → register cycle

Part 2 · Advanced Architecture · Levels 17–29 · ≈ 420 min

17

Anatomy of a Decoder

Task: Build the recognition logic for 3 opcodes (ADD, STA, JMP) in the decoder. LED indicators on the outputs show which line is active.

●●● ≈ 30 min
After the level: build an opcode decoder from AND chains and verify recognition of a given code
18

FINALE: The Ershov Computer

Task: Build an 8-bit computer! Harvard architecture: ROM (instructions) + RAM (data) + PC + Register + ALU + Decoder + Clock.

●●● ≈ 60 min
After the level: assemble a Harvard-architecture processor and clock through the instruction cycle (ROM → decoder → ALU → accumulator)
19

Step Forward (PC+2)

Task: Connect BusConstant(2) to the PC Inc input so the PC steps by +2 instead of +1.

●●○ ≈ 15 min
After the level: retune the program counter to a +2 step and demonstrate on a program why the variable step is needed (word format)
20

Dual Read

Task: Wire the second ROM (operands): its address from the PC, its output to the RAM address input. PC steps by +2.

●●○ ≈ 20 min
After the level: wire two ROM banks to a single PC and demonstrate dual fetch of opcode and operand
21

Pointers

Task: Route data to ALU8.B through the BusMUX: RAM → A, operand from ROM#1 → B. Note: IX is intentionally NOT wired on this level — its path is the address path (RAM.Addr), not the data bus. It activates later: address-source selection via addrmux arrives on levels 23+, and the first IX tasks are levels 27–29.

●●● ≈ 25 min
After the level: use the IX register for indirect addressing in a program and explain the pointer's role
22

Bus Conflict

Task: Fix the data bus conflict: RAM and Gamepad both drive the bus. Add AddrDecoder and BusAND to gate the RAM output.

●●● ≈ 30 min
After the level: diagnose a bus conflict and restore device separation with an address decoder
23

Gamepad

Task: Write a program that reads the gamepad (port 254) and stores the value in RAM[0].

●●● ≈ 30 min
After the level: write a program that reads an input port and explain the difference between LDA N and ADD N
24

Manual Pixel

Task: Before programming the display (level 27), look at its ports in hardware: connect 4 BusConstants to the MatrixDisplay and light up the pixel at (0,0).

●●○ ≈ 25 min
After the level: explain the memory-mapped display port protocol (X, Y, pixel) and light up a pixel
25

Negative Check

Task: Learn the JN (Jump if Negative) conditional jump. Run the test program and verify the jump works.

●●● ≈ 30 min
After the level: explain status flags (two's complement) and write a program with a conditional JN jump
26

Dice Roll

Task: The LFSR is already on the canvas — connect its output to the data bus via the second BusOR (BusOR#1 output → BusMUX).

●●○ ≈ 20 min
After the level: wire the LFSR as a third source onto the bus, generate a sequence of "random" numbers, and explain the pseudorandomness
27

Hello, Ports!

Task: Change the constants in the program so the pixel lights up at X=4, Y=12. Then seed the array for "Snake" (level 29): write 7 into RAM[10] and 8 into RAM[11] via the index register IX (LDX / STA [IX] / INX).

●●○ ≈ 30 min
After the level: read and modify a ready-made assembly program to meet a new condition
28

Moving Dot

Task: Write a program that moves a dot on the screen using the gamepad.

●●● ≈ 45 min
After the level: write a complete program with RAM variables, input, branching, and a loop
29

FINALE: Snake

Task: Write a complete Snake game in assembly!

●●● ≈ 60 min
After the level: design the game "Snake" in assembly: state, input, rendering

Part 3 · Verilog · Levels 30–43 · ≈ 360 min

30

Hello, Wire!

Task: Code is not an algorithm — it is a circuit blueprint. Call the basic AND gate to route your first wires in silicon. Write: and gate1(out, a, b);

●○○ ≈ 10 min
After the level: explain that Verilog describes a circuit, not an algorithm, and instantiate a gate
31

Exclusive OR (XOR)

Task: Build an XOR gate using only and, or, and not. The built-in xor is disabled. Key rule: lines of code here work simultaneously, like connected conductors, not sequentially.

●○○ ≈ 15 min
After the level: explain Verilog statement parallelism and build an XOR from and/or/not without the xor primitive
32

Flow Control (MUX)

Task: Design a 2→1 multiplexer. If sel=0, out=a; if sel=1, out=b.

●○○ ≈ 15 min
After the level: translate a circuit problem (MUX) into structural Verilog
33

First Computation (HalfAdder)

Task: Design a half adder. sum = a XOR b, carry = a AND b.

●○○ ≈ 15 min
After the level: build a half adder in Verilog (XOR + AND)
34

Module Hierarchy (FullAdder)

Task: Design a full adder. sum = a XOR b XOR c_in, c_out = (a AND b) OR (a AND c_in) OR (b AND c_in). You may use HalfAdder from the previous level.

●●○ ≈ 20 min
After the level: explain module hierarchy and reuse your own HalfAdder
35

Data Buses (Adder8)

Task: Design an 8-bit adder. Use 8 full adders (FullAdder) in a ripple-carry chain.

●●● ≈ 30 min
After the level: build an 8-bit adder by instantiating 8 FullAdders
36

ALU

Task: Build an 8-bit ALU. op_code=0: add (Adder8), op_code=1: bitwise AND. Use Adder8 and Mux modules from previous levels.

●●● ≈ 40 min
After the level: build the ALU in structural Verilog (8×and, 8×Mux), pass the structural check, and explain how the code maps to the architecture
37

Memory and Time

Task: Design an 8-bit register from D flip-flops using generate-for. module Reg8(input wire [7:0] in, input wire clk, output wire [7:0] out);

●●○ ≈ 30 min
After the level: build a memory module from dff and generate-for, and demonstrate why the memory needs clk while the ALU does not
38

Step by Step

Task: Design an 8-bit counter: register + adder in feedback. Constant 8'b00000001 = +1. 8'b00000001 means: 8 bits, binary notation (b = binary), value 00000001₂ = 1.

●●○ ≈ 25 min
After the level: build a feedback counter broken by D flip-flops; use 8'b constants
39

Random Access Memory

Task: Wrap the built-in RAM256 for reading and writing data by address. RAM256 ports: (clk, we, addr, data, q).

●●● ≈ 30 min
After the level: wire the built-in RAM256 and explain the black-box abstraction
40

Heart of the CPU

Task: Design the datapath: Counter → ROM → ALU → Register. ROM data: 0→5, 1→7, 2→3, 3→10, 4→2. ALU adds.

●●● ≈ 40 min
After the level: build a datapath (Counter → ROM → ALU → Register) and explain the data path
41

System Anatomy

Task: Build the top-level CPU module. Instantiate Reg8 and FullAdder from neighboring files (register.v, full_adder.v) and connect them. carry is inverted here: 1 = no overflow, 0 = overflow occurred.

●●● ≈ 35 min
After the level: assemble a CPU from read-only library modules in a VFS project and explain the roles of the library files
42

X-Ray for Silicon

Task: The level-41 CPU is built, but the firmware test fails: a suspicious gate sits in its arithmetic core. Explore the hierarchy through the RTL Viewer (X-ray machine for chips), find the wrong gate at the lowest level, and answer the question. Double-click the FullAdder block in the RTL Viewer to expand its schematic; breadcrumbs take you back.

●●○ ≈ 20 min
After the level: debug hierarchy with RTL Viewer drill-down and find a misconnected primitive
43

Freezing Time

Task: The bug hides deep inside the level-41 CPU — in the one-bit adder of its carry chain: we descend from the system level to a single gate. Find and fix the bug in FullAdder. The test fails — open the waveform scope and find the wrong carry wire.

●●● ≈ 35 min
After the level: read a timing diagram and find and fix an error in the circuit

Part 4 · Computer Design · Levels 44–47 · ≈ 135 min

44

Control Unit

Task: Implement the instruction decoder. Input: 8-bit instruction with the opcode in the high nibble instr[7:4] (part 2 format); the low nibble is the operand and is irrelevant to the decoder. Outputs: control signals (RegWrite, MemWrite, ALUSel, Branch). Use AND/OR/NOT gates.

●●○ ≈ 25 min
After the level: design a control unit: opcode decoder → control signals
45

My ISA

Task: A custom instruction: the level-36 ALU8 chose between two operations, and the level-44 decoder produces the ALUSel select signal — here you build a selector for three operations. That trio is exactly how a custom CPU instruction is defined. Build an 8-bit ALU. Support three operations: ADD (sel=0), AND (sel=1), OR (sel=2). Use Adder8 for addition, gates for bitwise AND/OR, and a sel decoder with MUX to select the result. Use generate-for loops.

●●● ≈ 35 min
After the level: design an ALU operation selector: a 2-bit code decoder and a MUX choose one of three operations
46

Memory-Mapped I/O

Task: Implement an I/O controller. Writing to address 0xFF updates LEDs (led_out), reading 0xFE returns switch states (switches_in). This level has a free-step mode (⏭/▶/⟲): pick address 0xFF, raise we and the data, take a step — and the LEDs light up. Such addresses are a preview of the part 2 address space (where devices occupy 0xFA–0xFF).

●●● ≈ 30 min
After the level: explain memory-mapped I/O and implement LED/switches with a write-enable register
47

Create Computer

Task: Assemble the computer: cpu.v already uses your decoder control.v from level 44 — it is the brain of the machine. Instantiate CPU in top.v and press "Build Computer" to export to Tang Nano 9K. The switches mask instruction operands, the ROM editor changes the program, and the ⏭/▶/⟲ buttons step through execution.

●●● ≈ 45 min
After the level: instantiate a complete computer and export it to a real FPGA (ZIP, pin mapping)

Part 5 · RISC Microarchitecture · Levels 48–67 · ≈ 835 min

48

Farewell, Accumulator!

Task: From the accumulator to a register machine: 32 registers, x0 hardwired to zero, three addresses per instruction.

≈ 10 min
49

Anatomy of an R-type Instruction

Task: The fields of a 32-bit instruction and a 32×32 register file: two reads and one write per cycle.

≈ 30 min
50

A 32-bit ALU

Task: Arithmetic, logic, shifts, signed and unsigned comparisons, and the Zero flag for branches.

≈ 35 min
51

A Constant Inside the Instruction

Task: The I-format, sign extension, and a mini-assembler that turns mnemonics into machine words.

≈ 35 min
52

Memory by the Rules

Task: A load/store architecture: arithmetic on registers only, LW/SW, and four-byte alignment.

≈ 40 min
53

A Step of Four

Task: PC+4, the split-immediate B-format, and the first conditional branch, BEQ.

≈ 35 min
54

A Loop on BNE

Task: A counter, a comparison, and BNE: the first loop on your own machine, with a cycle-count prediction.

≈ 25 min
55

Array Sum

Task: A real program: the array base via LUI+ADDI, a walk over elements with LW, and a running sum.

≈ 30 min
56

Call and Return

Task: JAL and JALR: the return address in ra, functions, and a nested call that saves ra in memory.

≈ 30 min
57

Nested Calls and the Stack

Task: ra and sp, the function prologue and epilogue, nested calls: the frame grows downward through memory.

≈ 35 min
58

Assembling RV32I

Task: The complete single-cycle core of the RV32I teaching subset: PC, instruction memory, decoder, registers, ALU, data memory, control.

≈ 90 min
59

Knight Rider RISC

Task: A running light on the LEDs through MMIO, plus a project export for the Tang Nano 9K.

≈ 35 min
60

The Verification Lab

Task: You write the verification scenarios: a bug report for the subject core with one planted defect, a three-scenario suite, and regression.

≈ 45 min
61

Why the Cycle Is Long

Task: The pipeline slices the long cycle into five stages, IF→ID→EX→MEM→WB: fill, steady stream, and the Race Track on the board.

≈ 30 min
62

Between Stages

Task: Four pipeline registers with en/clr, freeze on a bad access, and exact-step acceptance against the single-cycle golden.

≈ 90 min
63

Five Instructions in Flight

Task: The pipeline waterfall: a five-cell diagonal per instruction, fill/steady/drain phases, and a stage-by-cycle prediction.

≈ 30 min
64

The Short Path

Task: RAW forwarding: the ALU result feeds the next instruction directly, with priorities and the x0/lw exceptions.

≈ 60 min
65

The Load Bubble

Task: The load-use hazard that cannot be forwarded: the detector inserts exactly one bubble, freezing PC and IF/ID.

≈ 60 min
66

Ghosts of the Wrong Path

Task: The branch resolves in EX: a taken branch flushes two ghosts fetched along the old path — a 2-cycle price.

≈ 60 min
67

Knight Rider Pipeline

Task: The course finale: Knight Rider on the full pipelined core, hazard prices in cycles, and CPI compared with the single-cycle machine.

≈ 30 min

The methodological overview of the part — the RISC Microarchitecture hub →

Related reading

Part 1 · Basics

Part 2 · Advanced Architecture

Part 3 · Verilog

Project Pitch for schools → · Methodology Guide →