Are You Ready? A Map and a Check

See the whole SoC Verification track as a map, with the words it uses on one page. For each module, find what to know first and the lesson that teaches it. Then check yourself before you start.

You Will Be Able To

  • Find any module of the track and say what it teaches.
  • Name what to know first for a module, and the lesson that teaches it.
  • Use the words of the track with their meanings.
  • Check your readiness and pick the one lesson that fills a gap.
Lesson
VF.6
Time
20 min
Runs on
Your browser
Check
5 questions

Halfway through a module, a learner finds that every page assumes a bus protocol they never studied. The pages were fine; the order was wrong. A look at a map before the module would have shown the missing road.

The Track as a MapStep through the track. Each step shows a part of SoC Verification and the roads into it from other tracks.
  • Neutral
  • Test
  • External
  • Structure
The Track as a MapStep through the track. Each step shows a part of SoC Verification and the roads into it from other tracks. neutral Fundamentals this module, VF neutral The chip-levelview V1 neutral Embedded C V0 test Hand-off andbench V2, V3 test Tests with andwithout the core V4, V5, V6 neutral Chip-only areasand sign-off V7 to V14, beingwritten external SoC Architecture the chip itself external SystemVerilog,UVM, Protocols the language of thebench nextnextthenthenheader, start-upcodethenmap, interruptsAPB, AHB, UVM
  1. neutral Fundamentalsthis module, VF
    • next → The chip-level view
  2. neutral The chip-level viewV1
    • next → Embedded C
    • then → Hand-off and bench
  3. neutral Embedded CV0
    • header, start-up code → Hand-off and bench
  4. test Hand-off and benchV2, V3
    • then → Tests with and without the core
  5. external SoC Architecturethe chip itself
    • map, interrupts → Hand-off and bench
  6. external SystemVerilog, UVM, Protocolsthe language of the bench
    • APB, AHB, UVM → Hand-off and bench
  7. test Tests with and without the coreV4, V5, V6
    • then → Chip-only areas and sign-off
  8. neutral Chip-only areas and sign-offV7 to V14, being written
  1. Start here

    Fundamentals, then the chip-level view, then the C a chip test needs.

  2. Meet the chip and its bench

    The hand-off package and the bench need the header and start-up code from the C primer. They also need the map from SoC Architecture and the buses from Protocols.

  3. Write the tests

    Firmware tests build on the bench and the C primer; tests without the core need UVM's register model.

  4. What comes later

    Interconnect, connectivity, clocks and resets, power, debug, coverage, fast platforms and a capstone.

Read the diagram as text
  • Fundamentals: this module, VF
  • The chip-level view: V1
  • Embedded C: V0
  • Hand-off and bench: V2, V3
  • Tests with and without the core: V4, V5, V6
  • Chip-only areas and sign-off: V7 to V14, being written
  • SoC Architecture: the chip itself
  • SystemVerilog, UVM, Protocols: the language of the bench
  • Fundamentals → The chip-level view: next
  • The chip-level view → Embedded C: next
  • The chip-level view → Hand-off and bench: then
  • Hand-off and bench → Tests with and without the core: then
  • Embedded C → Hand-off and bench: header, start-up code
  • Tests with and without the core → Chip-only areas and sign-off: then
  • SoC Architecture → Hand-off and bench: map, interrupts
  • SystemVerilog, UVM, Protocols → Hand-off and bench: APB, AHB, UVM

The track in display order. Roads from other tracks are prerequisites: linked here, taught there.

Before You Start

Read An SoC as a Verifier Sees It to The SoC Verification Toolbox first: this page closes the module.

The companion track, Design Verification Fundamentals, covers verification of any design: plans, benches, stimulus, checks, coverage. This page points to its lessons by name.

Five questions this page answers
Question
1What are the modules of the track, in order?
2What must you know before each module?
3Which lesson on this site fills each gap?
4What do the main words of the track mean?
5How do you check that you are ready?

The Idea: A Map Before the Road

This track stands on other tracks. Its bench speaks SystemVerilog and UVM, and its buses follow APB and AHB. Its chip is the one the SoC Architecture track describes. Those are taught elsewhere on this site, once, and linked from here.

So the fastest way through the track is to know, before each module, which roads lead into it. A gap found before a module costs one lesson. A gap found in the middle of a module costs the module.

New Words

New words on this page
WordMeaning
ModuleA group of lessons on one subject, with its own practice problems.
PrerequisiteSomething you should know before a module, taught in an earlier module or another track.
Readiness checkA few questions that show whether you have the prerequisites of a module.

The Map, Module by Module

SoC Verification: what each module teaches and what to know first
ModuleWhat it teachesKnow first (other tracks)Companion lessonsStatus
VF Fundamentals of SoC VerificationThe chip as a verifier sees it, the levels, one test from reset to pass, the flow, the toolboxDigital logic and a little programming: Positional Numbers and Base Conversion, SystemVerilog for Clocked LogicA Chip You Cannot Patch; The Levels: Block, Subsystem, Chip, SystemLive
V1 The Chip-Level ViewWhat the chip level checks, the twelve kinds of chip bug, three ways to drive a chip, the planFrom Board to Chip, One Access, End to End, The Interrupt Path. From a Layered Bench to UVM. What Coverage MeasuresThe Verification PlanLive
V0 Embedded C for Chip TestsRegisters as addresses, masks and fields, the header, start-up code, handlers, the imageBasic C: loops, functions, pointers (this site has no C course). Then Addresses and Memory-Mapped I/O, The Memory Map, Start-Up Code: What Runs Before Main. Your First DPI-C Call for the labs-Live
V2 Meet the Chip and Its Hand-Off PackageThe data files, the first run, the smoke test, where a check may lookThe Memory Map, Clock Sources and the Chip-Level Clock TreeBlack Box, Grey Box, White BoxLive
V3 The SoC Test BenchThe bench around the chip: clocks, loading, pad models, passive checkers, reuse, honest endsReset Architecture. APB in One Picture, AHB in One Picture. Build an Active or Passive Agent, Vertical Reuse: A Block Environment Inside a SubsystemThe Parts of a Testbench; How a Test EndsLive
V4 Firmware-Driven TestsC tests on the real core: the mailbox, hand-shakes, a peripheral end to end, interrupts, debuggingSerial Peripherals: The UART, Its Queue and Its Requests, The Interrupt Path, DMA, Traps: Exceptions, Interrupts and the Machine CSRs. APB in One PictureDebugging: From a Failure to a CauseLive
V5 The Core Against Its Reference ModelThe retire trace, lockstep with a model, random instruction streamsTraps: Exceptions, Interrupts and the Machine CSRs, The Core as an IP, Data Hazards and Forwarding, More Than One Core. Your First DPI-C CallWhere the Right Answer Comes From; Random and Constrained-Random StimulusLive
V6 Verification Without the CPUA bus manager in the core's seat: register sweeps, bit bash, both doors, choosing the modeAddress Decode and Aliases. Desired Values, Mirrors and Reset, Memories and a Backdoor Without VPI, Built-in Register Tests and Quirky RegistersDirected TestsLive
V7 Interconnect VerificationManagers that compete, the fabric under stressTaking the Core Out. Many Managers: Arbitration and the Bus Matrix. APB in One Picture, AHB in One PictureRandom and Constrained-Random StimulusLive
V8 Connectivity, Pins and Integration ChecksEvery wire, pad and tie-off of the chipWhy Assertions. Connectivity. Pads and Pin MultiplexingAssertions: Checks That Travel With the DesignLive
V9 Clock, Reset and Boot VerificationClock sources, reset order, crossings, boot modesClock Sources and the Chip-Level Clock Tree. The Two-Flop Synchronizer and What It Cannot Carry. CDC and RDC With Formal-Live
V10 Low-Power VerificationSleep, wake, isolation and retention on the chipPower at Chip Level. Dynamic, Short-Circuit and Leakage Power, UPF in One Picture-Being written
V11 Debug, Test-Mode and Security VerificationThe debugger gets in; what must stay locked stays lockedWhat a Debugger Needs From the Chip. Taking the Core Out-Being written
V12 Coverage, Regressions and Sign-OffChip coverage, regressions at size, the sign-off argumentWhat Coverage Measures. Rand Fields and Checked RandomizationFunctional Coverage: What Was Tested; Regressions, Seeds and the Life of a BugLive
V13 Fast Platforms: Virtual, Hybrid, Emulation, PrototypeWhat each fast platform is for, from ratios measured on our chipThe Life of a C Test. Your First DPI-C CallThe Toolbox and the Map of This SiteLive
V14 Capstone: Verify ap_soc v1.5The whole chip, start to finishEvery module before itCapstone: Verify a Small Design End to EndBeing written

Live modules can be studied now; the others are being written. Companion lessons are in Design Verification Fundamentals.

Read the table one row at a time. The third column lists lessons of other tracks; every module above a row is assumed too. Pick the row you are about to start, open the lessons you cannot explain back, and only then begin.

The Words of the Track on One Page

The vocabulary of SoC Verification
WordMeaningTaught in
SoCA whole computer on one chip: processor, memories, devices, bus, clocks, pads.An SoC as a Verifier Sees It
Memory mapWhich block answers which address; an address in no row is a hole.An SoC as a Verifier Sees It
Pin muxA register-controlled switch that picks which function uses a pad.An SoC as a Verifier Sees It
Block levelVerification of one block alone, with a bench on all its pins.From IP to Chip to System
Integration bugBlocks that each work, joined the wrong way.From IP to Chip to System
FirmwareThe program the chip's own processor runs; here, the test.One Chip Test From Reset to Pass
MailboxRegisters the firmware writes and the bench watches: status, console, events.One Chip Test From Reset to Pass
Pass word0x900D in TB_STATUS: the firmware reports that its checks held.One Chip Test From Reset to Pass
Exit checkA written condition that must hold before a project phase ends.The Flow From Hand-Off to Sign-Off
Sign-offThe review of evidence against the plan before tape-out.The Flow From Hand-Off to Sign-Off
Seeded faultA bug put into a copy of the design on purpose, to measure tests.From IP to Chip to System
Model compareChecking every instruction of the core against an instruction-level model.The SoC Verification Toolbox
JoinAny place where two separately made things must agree.What the Block Bench Already Proved
Bus-manager seatThe core's place, taken by a bench model that makes any transfer.Three Ways to Drive a Chip
Smoke testA short first test that shows the chip is alive.The Smoke Test as the Entry Gate
Passive checkerA checker that only watches the chip's signals and never drives them.Passive Checkers: Bind and Listen
Back doorReading or writing state directly from the bench, without a bus transfer.Back-Door Loading
Retire traceOne record for each instruction the core finished.The Retire Trace as a Monitor
Register sweepA test of every register's reset value and access, generated from the chip's register files.Register Tests From the Description

Each word is taught in full in the lesson named. If a meaning here is new to you, read that lesson before the module that uses it.

The Smallest Example: A Check in Code

The bench modules read SystemVerilog all the time. Here is a quick check of the level they assume. The lab at the end of this page has a register with a reset and a task that writes it. It also keeps a queue of expected values and compares. Bit 7 of the register cannot be written.

Predict every line before you run it. After reset, q is 0x00. The test writes 0x10, 0x2A and 0xFF and compares each read with what it wrote. The first two match. The third reads back 0x7F, because bit 7 is dropped, so the test reports one mismatch.

If those lines came easily, the SystemVerilog of modules V3 to V6 will read easily too. If not, start with the SystemVerilog track, from its first module.

The Rules

  1. Rule 1: Check the roads before you enter a module.

    The third column of the map lists them.

  2. Rule 2: Fill a gap with the exact lesson, not a whole course.

    Each road names one lesson to start from.

  3. Rule 3: Prerequisites are linked, never retaught here.

    Each idea has one home on this site.

  4. Rule 4: When a module feels hard, look one level down.

    The gap is usually a prerequisite, not the module.

Sources for These Rules

The prerequisites of a live module: the lessons its own pages name under Before You Start, from other tracks. Of a module being written: docs/soc-verification-plan.md sections 1.4 and 4.2.

The companion track's lessons: docs/dv-fundamentals-plan.md Part A.

Now Run It: The Readiness Lab

Printed by the lab (Icarus 12).
after reset q = 00
wrote ff, read 7f: mismatch
3 writes, 1 mismatches

Rule 4 in miniature. If the second line surprised you, the gap is not SoC verification: it is how a register with a fixed bit behaves. That is a SystemVerilog and digital-design question, one level down.

Your Readiness Check

Answer each question in your head. If you cannot, open the lesson in the right column before the module in the left one.

One question for each road
BeforeCan you answer this?If not, read
V1Which block answers address 0x1000_0000 on ap_soc, and what is its interrupt?An SoC as a Verifier Sees It
V0What happens when software writes to an address that a device owns, rather than memory?Addresses and Memory-Mapped I/O
V2What answers an address that no row of the map owns?The Memory Map
V3What are PSEL and PENABLE in one APB write?APB in One Picture
V3What does a UVM driver do, and what does a monitor do?From a Layered Bench to UVM
V4What runs before main, and why must the stack be set first?Start-Up Code: What Runs Before Main
V5What does the core do when an instruction traps?Traps: Exceptions, Interrupts and the Machine CSRs
V6What does a register model mirror?Desired Values, Mirrors and Reset
V8What does a connectivity proof prove, and what does it not?Connectivity
V9Why does a signal crossing clocks need two flip-flops?The Two-Flop Synchronizer and What It Cannot Carry
V10What is an isolation cell for?UPF in One Picture
V12What is the difference between code and functional coverage?What Coverage Measures

The practice problem of this lesson asks the same kind of questions, with answers the site checks.

Traps

The first trap is starting at the most exciting module. Firmware tests on the real core look like the heart of the track, and they are. But they assume C, start-up code and the bench, and each missing piece turns a lesson into a puzzle.

The second trap is the opposite: taking whole courses "just in case". You do not need all of UVM before V3. You need the lessons its row names. Read those, start the module, and come back for more only when a page asks.

At Scale

ap_soc~12 blocks
Phone-class SoChundreds of blocks

This section looks ahead, to joining a real chip team.

  1. Onboarding

    A new engineer on a chip team needs a map like this one: the chip, the bench, the plan and the owners.

  2. Gaps are normal

    Nobody knows every area. A chip team mixes people who know firmware, benches, buses and the core, and they learn from each other.

Where This Goes Next

This closes the fundamentals. The next module continues them on the chip itself.

Where to go from here
LessonWhat it adds
What the Block Bench Already ProvedThe first lesson of The Chip-Level View: what the block bench already proved.
A Register Is an AddressThe first lesson of Embedded C for Chip Tests, if C is your gap.
Four-State vs Two-State TypesThe first lesson of the SystemVerilog track, if the readiness lab was hard.

Try It

Predict every line, then run the lab.

Write 0x80 and 0x7F instead, and predict the last line before you run it.

Remove the mask & 8'h7f from the register and predict the new last line.

RUNIcarus Verilog · in your browser
Edit the code, then run it
Expected: after reset q = 00 wrote ff, read 7f: mismatch 3 writes, 1 mismatches

Check Yourself

Predict the outputThe readiness lab writes 0x80, then 0x7F. What is the last line it prints?
// A register with a reset, a task that writes it over a tiny bus, a queue of expected values, and a check.
// If you can predict every line before you run it, the SystemVerilog of modules V3 to V6 will read easily.
module reg8 (input logic clk, rst_n, we, input logic [7:0] wdata, output logic [7:0] q);
  always_ff @(posedge clk or negedge rst_n)
    if (!rst_n) q <= 8'h00;
    else if (we) q <= wdata & 8'h7f;          // bit 7 is not writable
endmodule

module tb;
  logic clk = 0, rst_n = 0, we = 0; logic [7:0] wdata, q;
  logic [7:0] expected [$];
  int errors = 0;
  always #5 clk = ~clk;
  reg8 dut (.clk, .rst_n, .we, .wdata, .q);
  task automatic write(input logic [7:0] v);
    @(negedge clk) begin we = 1; wdata = v; end
    @(negedge clk) we = 0;
    expected.push_back(v);                   // the test expects what it wrote
  endtask
  initial begin
    repeat (2) @(negedge clk); rst_n = 1;
    $display("after reset q = %h", q);
    write(8'h80);
    if (q !== expected[$]) begin errors++; $display("wrote %h, read %h: mismatch", expected[$], q); end
    write(8'h7f);
    if (q !== expected[$]) begin errors++; $display("wrote %h, read %h: mismatch", expected[$], q); end
    $display("%0d writes, %0d mismatches", expected.size(), errors);
    $finish;
  end
endmodule
ConceptWhich lesson should you read before the bench module, V3, if APB is new to you?
ConceptWhat does "being written" mean in the map?
ConceptA word on a V4 page is new to you: "mailbox". Where is it taught?
ConceptA module feels hard on every page. What should you check first?

Common Mistakes

Wrong Start with the most exciting module.

Its prerequisites turn every page into a puzzle.

Fix Read the module's row of the map first.

Wrong Take whole courses before starting.

Most of a course is not needed for one module.

Fix Read the exact lessons the row names.

Wrong Blame the module when a page is hard.

The gap is usually one level down.

Fix Check the prerequisite lessons of that page.

Remember

  • The track stands on SoC Architecture, SystemVerilog, UVM, Protocols and others, linked, never retaught.
  • Each module lists what to know first and the exact lesson that teaches it.
  • The words of the track each have one lesson that teaches them.
  • Check readiness before a module; fill a gap with one lesson, not a course.

Practice

Report a problem with this page