The SoC Design Flow and Who Owns What

A chip passes through nine stages and many hands. Learn the stages, what crosses between them, and where each kind of bug is cheapest to catch.

You Will Be Able To

  • Name the nine stages of the flow, in order, and the hand-off that leaves each one.
  • Name the owner of each stage.
  • For a given bug, name the earliest stage that can see it.
Lesson
S1.4
Time
24 min
Runs on
Your browser
Check
5 questions

A counter block passes synthesis with a clean report: seven cells, no warnings. It is also wrong. The report was never able to say so.

Before You Start

You need RTL, synthesis, the netlist and the physical layout from S1.3. You need the top level from S1.7.

Five questions this page answers
Question
1What are the stages between a product idea and a working chip?
2What is a hand-off, and what crosses at each one?
3Who owns each stage?
4Why can a clean report from one stage hide a bug?
5Where is a bug cheapest to catch, and why?

The Idea: A Chain of Stages, Joined by Hand-Offs

Nobody builds a chip in one step. The work is cut into stages. Each stage takes something from the stage before, adds its own work, and passes the result on.

What passes on is called a hand-off. It is always something you can read or run: a document, RTL, a report, a layout. The next stage trusts it and builds on it.

That trust is the weak point. A mistake in a hand-off travels forward with it. Each later stage adds work on top of the mistake. So the same bug costs more the later it is found.

This page gives you the map: the stages, their owners, and what each stage is able to see.

New Words

New words on this page
WordMeaning
Hand-offWhat one stage passes to the next: a document, a file or a report.
RequirementA statement of what the product must do, written before any design exists.
Chip architectureThe decisions about the whole chip: which blocks, and how they are joined.
Architecture documentThe document that records the chip architecture: the blocks, the memory map, the clocks and the interrupts.
Micro-architectureThe plan of the inside of one block, written before its RTL.
Block specificationThe document that states exactly what one block must do.
VerificationTesting a design against its documents before the chip is made.
Physical designTurning a netlist into a physical layout: placing the gates and drawing the wires.
Tape-outThe moment the finished layout is sent to the factory.
Bring-upPowering the first chips on a board and making them run.
FirmwareThe first software of a chip: the code that starts it and drives its devices.

Two words are used loosely in the industry. A bug is any place where a design does not do what its document says. An owner is the one person or team that answers for a hand-off.

One Picture: The Flow

From a Requirement to a Working ChipStep along the flow. Each arrow is a hand-off, and its label is what crosses.
  • Pads
  • Processor
  • Memory
  • Bus
  • Debug
  • Clock / reset
  • Peripheral
From a Requirement to a Working ChipStep along the flow. Each arrow is a hand-off, and its label is what crosses. component Requirement what the product mustdo, and what it may cost component Architecture which blocks, and howthey are joined component Micro-architecture the inside of each block,on paper component RTL design each block written asRTL component Integration the blocks joined intoone top level component Verification tests of each block andof the whole chip component Synthesis andphysical design gates, then the physicallayout component Bring-up the first chips, testedon a board requirement documentarchitecturedocumentblock specificationRTL of each blockRTL of the chipRTL and test reporttape-out, then chips
  1. component Requirementwhat the product must do, and what it may cost
    • requirement document → Architecture
  2. component Architecturewhich blocks, and how they are joined
    • architecture document → Micro-architecture
  3. component Micro-architecturethe inside of each block, on paper
    • block specification → RTL design
  4. component RTL designeach block written as RTL
    • RTL of each block → Integration
  5. component Integrationthe blocks joined into one top level
    • RTL of the chip → Verification
  6. component Verificationtests of each block and of the whole chip
    • RTL and test report → Synthesis and physical design
  7. component Synthesis and physical designgates, then the physical layout
    • tape-out, then chips → Bring-up
  8. component Bring-upthe first chips, tested on a board
  1. Requirement

    The product team writes what the chip must do: its tasks, its speed, its power and its price.

  2. Architecture

    The architect chooses the blocks and how they join: the memory map, the buses, the clocks.

  3. Micro-architecture

    A designer plans the inside of one block: its registers, its states and its ports.

  4. RTL design

    The designer writes the block as RTL, from its block specification.

  5. Integration

    The integrator joins the blocks into a top level, as in the last lesson.

  6. Verification

    Verification engineers test the RTL against the documents. They test each block, then the whole chip.

  7. Synthesis and physical design

    Tools turn the RTL into gates and then into a physical layout. Reports give its area and timing.

  8. Tape-out, then bring-up

    The team signs that every check has passed, and the layout goes to the factory. Weeks later the first chips run on a board.

Read the diagram as text
  • Requirement: what the product must do, and what it may cost
  • Architecture: which blocks, and how they are joined
  • Micro-architecture: the inside of each block, on paper
  • RTL design: each block written as RTL
  • Integration: the blocks joined into one top level
  • Verification: tests of each block and of the whole chip
  • Synthesis and physical design: gates, then the physical layout
  • Bring-up: the first chips, tested on a board
  • Requirement → Architecture: requirement document
  • Architecture → Micro-architecture: architecture document
  • Micro-architecture → RTL design: block specification
  • RTL design → Integration: RTL of each block
  • Integration → Verification: RTL of the chip
  • Verification → Synthesis and physical design: RTL and test report
  • Synthesis and physical design → Bring-up: tape-out, then chips

Tape-out is a moment, not a box: it is the last arrow. The flow is drawn as one line. In practice the stages overlap, and a bug sends work back to an earlier stage.

Who owns each stage
StageOwnerHand-off it produces
Requirementthe product teamthe requirement document
Architecturethe architectthe architecture document: memory map, buses, clocks, interrupts
Micro-architecturethe designer of the blockthe block specification
RTL designthe same designerthe RTL of the block
Integrationthe integratorthe top level
Verificationverification engineersthe test report
Synthesis and physical designphysical design engineersthe netlist, the layout and the timing report
Tape-outthe whole team, by signaturethe files for the factory
Bring-upfirmware and lab engineersa chip that runs its first program

Firmware engineers do not wait for bring-up. They start from the architecture document and write code while the hardware is designed.

The Smallest Example, Worked by Hand: One Rule Travels the Flow

Follow one small need through the stages. A product must count events, up to seven. A count that wrapped back to zero would look like "no events", so it must not wrap.

One requirement, stage by stage
StageWhat it addsThe hand-off
RequirementThe need itself."Count up to seven events. Never lose the count."
ArchitectureOne counter block, with an input that clears it.a box in the block diagram
Micro-architectureThree flip-flops, and four rules.the block specification, with "rule 3: stop at 7"
RTL designA few lines of RTL.the file of the block
VerificationOne check for each of the four rules.a report: four checks passed
SynthesisGates.a netlist and a count of cells

Now break it by hand. Suppose the designer forgets rule 3 while writing the RTL. Ask each later stage one question: does it look at the thing that is wrong?

Who can see the forgotten rule
StageWhat it looks atDoes it see the bug?
Verificationthe behaviour of the RTL against the specificationyes: the check of rule 3 fails
Synthesiswhether the RTL can become gates, and how manyno: a counter that wraps is easy to build
Physical designwhether the gates fit and meet their timingno
Bring-upthe behaviour of the finished chipyes, months later

The Rules

  1. Rule 1: Every stage ends with a hand-off.

    It is a document, a file or a report. The next stage builds on it without doing the work again.

  2. Rule 2: Every hand-off has one owner.

    When a hand-off is wrong, one person or team is asked. A hand-off with two owners has none.

  3. Rule 3: A stage catches only what it looks at.

    Simulation looks at behaviour. Synthesis looks at gates and delays. A clean report says nothing about what the stage did not look at.

  4. Rule 4: A bug is cheapest at the earliest stage that can see it.

    Every stage after that has built on the mistake, and its work must be done again.

  5. Rule 5: After tape-out, hardware cannot be edited.

    A hardware bug found at bring-up is avoided by firmware, or it waits for a new chip.

Sources for These Rules

The stages of a product, from the requirement to the lab: Mehta, ASIC/SoC Functional Design Verification, sections 15.1 and 15.2.

The chip design stages and verification: the same book, sections 15.4 and 15.5. Emulation: section 15.6.

Rules 2 to 4 are common practice. This page gives no numbers for the cost of a late bug, because we have no source for any.

Now Run It: Two Stages, Two Reports

The lab at the end of this page holds the counter block and its four checks. That is the verification stage. We also ran the block alone through synthesis and kept the report.

Recorded from the lab on Icarus: the block as specified.
rule 1, clear: expect 0, got 0: pass
rule 2, three events: expect 3, got 3: pass
rule 3, nine events: expect 7, got 7: pass
rule 4, no event: expect 7, got 7: pass
checks passed: 4 of 4

Then we did both again for the broken build, the one without rule 3. Synthesis ran on Yosys, the open tool that this site uses.

One column needs a word. Levels of logic means the longest chain of gates between two flip-flops.

Two reports for two builds of one block
BuildSimulation: checks passedSynthesis: cellsFlip-flopsLevels of logic
As specified4 of 4933
Rule 3 forgotten2 of 4732

Simulation on Icarus. Synthesis on Yosys, to generic gates. The cells include the flip-flops.

Rule 3 at work, twice. Simulation looked at behaviour, and it failed the broken build at once. Synthesis looked at gates, and it built both without complaint.

Read the second row again. The broken build is the smaller one, because stopping at 7 takes extra gates. On the synthesis report alone, the wrong design looks better.

So each stage needs its own evidence. A team never signs a tape-out on one report.

The lab leaves things out. Real synthesis targets the cells of one process and checks timing against the constraints. The numbers here are generic gates.

Why It Is Built This Way

Design choiceThe alternativeWhat the choice buys, and costs
Stages with written hand-offsEveryone works from conversationsEach stage can be checked against a document. Writing and reviewing the documents takes time.
Separate verification engineersDesigners test only their own blocksA second reading of the specification finds what the first one assumed. Two teams must stay in step.
Firmware starts before the chip existsFirmware starts at bring-upSoftware is ready when the chips arrive. It is written against documents that may still change.

The Trap: A Clean Report from the Wrong Stage

Return to the opening. The counter passed synthesis with seven cells and no warnings. Someone marked the block "done". The report was real, and it answered a question nobody had asked.

The same trap has other forms. "It simulates" says nothing about timing. "Timing is met" says nothing about behaviour. "Each block passed" says nothing about the wires between blocks.

The cure is to ask of every report: what did this stage look at? Problem S1.4.1 trains exactly that question.

At Scale

This page1 block, 2 reports
A phone chiphundreds of blocks, every stage at once

This section looks ahead. The counter went through the flow in an afternoon. A phone chip takes hundreds of engineers and more than a year.

  1. Stages overlap

    Physical design starts on early RTL, long before verification ends. Each hand-off is then delivered many times, with a version number.

  2. Virtual platforms

    Firmware cannot wait for silicon. Teams write a software model of the whole chip, called a virtual platform, and run the firmware on it.

  3. Emulation

    A simulator is too slow to start an operating system. An emulator is a machine that runs the RTL of a chip far faster.

  4. Sign-off

    Before tape-out, each owner signs a checklist for its own hand-off. The signatures are the last gate before the factory.

Try It

Run the lab. Match each printed row to one rule in the comment at the top of the block.

Remove the text && count != 3'd7 from the block. Predict which checks fail before you run it.

Add a fifth rule of your own to the specification, then a check for it.

RUNIcarus Verilog · in your browser
Edit the code, then run it
Expected: rule 1, clear: expect 0, got 0: pass rule 2, three events: expect 3, got 3: pass rule 3, nine events: expect 7, got 7: pass rule 4, no event: expect 7, got 7: pass checks passed: 4 of 4

Check Yourself

Predict the outputThe designer forgot rule 3, so the count wraps. What is the last line the lab prints?
// The block. Its specification has four rules:
//   1. clear at 1 sets the count to 0.      2. An event adds 1.
//   3. The count stops at 7: it never wraps to 0.      4. With no event, the count holds.
module event_counter (
  input  logic       clk,
  input  logic       clear,
  input  logic       event_in,
  output logic [2:0] count
);
  always @(posedge clk)
    if (clear)                              count <= 3'd0;
    else if (event_in) count <= count + 3'd1;
endmodule

// ---- The verification step: test code that checks each rule of the specification ----
module tb;
  logic clk = 0;
  always #5 clk = ~clk;
  logic clear = 1, event_in = 0;
  logic [2:0] count;
  event_counter dut (.clk(clk), .clear(clear), .event_in(event_in), .count(count));

  int pass = 0;
  task check(input string rule, input logic [2:0] want);
    if (count === want) begin
      $display("%s: expect %0d, got %0d: pass", rule, want, count);
      pass++;
    end else
      $display("%s: expect %0d, got %0d: FAIL", rule, want, count);
  endtask

  initial begin
    @(posedge clk); #1 check("rule 1, clear", 0);
    clear = 0; event_in = 1;
    repeat (3) @(posedge clk); #1 check("rule 2, three events", 3);
    repeat (6) @(posedge clk); #1 check("rule 3, nine events", 7);
    event_in = 0;
    repeat (2) @(posedge clk); #1 check("rule 4, no event", 7);
    $display("checks passed: %0d of 4", pass);
    $finish;                      // $finish ends the simulation
  end
endmodule
ConceptWhat is a hand-off?
ConceptWhich stage comes directly after integration in the flow of this page?
ConceptTwo interrupt wires are swapped in the top level. Each block passes its own tests. Which stage sees it first?
ConceptWhy does a bug cost more when it is found later?

Common Mistakes

Wrong Take a clean synthesis report as proof that a block works.

Synthesis looks at gates and delays, not at what the block should do.

Fix Ask what each stage looked at, and collect evidence from every stage.

Wrong Leave a bug in a document for verification to find.

Tests written from a wrong document agree with the wrong RTL.

Fix Review each document against the one before it in the flow.

Wrong Plan to repair hardware after tape-out.

The layout cannot be edited once the factory has it.

Fix Fix it before tape-out, or avoid it in firmware.

Remember

  • The flow has nine stages, from the requirement to bring-up.
  • Every stage ends with a hand-off, and every hand-off has one owner.
  • A stage catches only what it looks at; a clean report covers nothing else.
  • A bug is cheapest at the earliest stage that can see it.
  • After tape-out, hardware cannot be edited.

Practice

Report a problem with this page