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.
| Question | |
|---|---|
| 1 | What are the stages between a product idea and a working chip? |
| 2 | What is a hand-off, and what crosses at each one? |
| 3 | Who owns each stage? |
| 4 | Why can a clean report from one stage hide a bug? |
| 5 | Where 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
| Word | Meaning |
|---|---|
| Hand-off | What one stage passes to the next: a document, a file or a report. |
| Requirement | A statement of what the product must do, written before any design exists. |
| Chip architecture | The decisions about the whole chip: which blocks, and how they are joined. |
| Architecture document | The document that records the chip architecture: the blocks, the memory map, the clocks and the interrupts. |
| Micro-architecture | The plan of the inside of one block, written before its RTL. |
| Block specification | The document that states exactly what one block must do. |
| Verification | Testing a design against its documents before the chip is made. |
| Physical design | Turning a netlist into a physical layout: placing the gates and drawing the wires. |
| Tape-out | The moment the finished layout is sent to the factory. |
| Bring-up | Powering the first chips on a board and making them run. |
| Firmware | The 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
- Pads
- Processor
- Memory
- Bus
- Debug
- Clock / reset
- Peripheral
- Requirement
The product team writes what the chip must do: its tasks, its speed, its power and its price.
- Architecture
The architect chooses the blocks and how they join: the memory map, the buses, the clocks.
- Micro-architecture
A designer plans the inside of one block: its registers, its states and its ports.
- RTL design
The designer writes the block as RTL, from its block specification.
- Integration
The integrator joins the blocks into a top level, as in the last lesson.
- Verification
Verification engineers test the RTL against the documents. They test each block, then the whole chip.
- Synthesis and physical design
Tools turn the RTL into gates and then into a physical layout. Reports give its area and timing.
- 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.
| Stage | Owner | Hand-off it produces |
|---|---|---|
| Requirement | the product team | the requirement document |
| Architecture | the architect | the architecture document: memory map, buses, clocks, interrupts |
| Micro-architecture | the designer of the block | the block specification |
| RTL design | the same designer | the RTL of the block |
| Integration | the integrator | the top level |
| Verification | verification engineers | the test report |
| Synthesis and physical design | physical design engineers | the netlist, the layout and the timing report |
| Tape-out | the whole team, by signature | the files for the factory |
| Bring-up | firmware and lab engineers | a 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.
| Stage | What it adds | The hand-off |
|---|---|---|
| Requirement | The need itself. | "Count up to seven events. Never lose the count." |
| Architecture | One counter block, with an input that clears it. | a box in the block diagram |
| Micro-architecture | Three flip-flops, and four rules. | the block specification, with "rule 3: stop at 7" |
| RTL design | A few lines of RTL. | the file of the block |
| Verification | One check for each of the four rules. | a report: four checks passed |
| Synthesis | Gates. | 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?
| Stage | What it looks at | Does it see the bug? |
|---|---|---|
| Verification | the behaviour of the RTL against the specification | yes: the check of rule 3 fails |
| Synthesis | whether the RTL can become gates, and how many | no: a counter that wraps is easy to build |
| Physical design | whether the gates fit and meet their timing | no |
| Bring-up | the behaviour of the finished chip | yes, months later |
The Rules
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.
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.
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.
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.
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.
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 4Then 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.
| Build | Simulation: checks passed | Synthesis: cells | Flip-flops | Levels of logic |
|---|---|---|---|---|
| As specified | 4 of 4 | 9 | 3 | 3 |
| Rule 3 forgotten | 2 of 4 | 7 | 3 | 2 |
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 choice | The alternative | What the choice buys, and costs |
|---|---|---|
| Stages with written hand-offs | Everyone works from conversations | Each stage can be checked against a document. Writing and reviewing the documents takes time. |
| Separate verification engineers | Designers test only their own blocks | A second reading of the specification finds what the first one assumed. Two teams must stay in step. |
| Firmware starts before the chip exists | Firmware starts at bring-up | Software 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 section looks ahead. The counter went through the flow in an afternoon. A phone chip takes hundreds of engineers and more than a year.
Stages overlap
Physical design starts on early RTL, long before verification ends. Each hand-off is then delivered many times, with a version number.
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.
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.
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.
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 4Check Yourself
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.