What the Block Bench Already Proved
A block that passed its own bench can still fail inside the chip. Learn what carries over from block level, what was never checked, and what the chip level must never redo.
You Will Be Able To
- Say what a block bench proves and what it cannot see.
- Sort a check into block level, chip level, or a gap to raise.
- Explain why a chip test checks joins, not the insides of a block.
- Lesson
- V1.1
- Time
- 22 min
- Runs on
- Your browser
- Check
- 5 questions
UART0 passed four thousand block tests on Friday. On Monday it sits inside the chip, the first smoke test enables its interrupt, and the handler never runs. Nothing inside UART0 changed, so what did the block bench miss?
- Test
- Peripheral
- Pads
- Processor
- Control / FSM
- Clock / reset
- Data
- Interrupt
- Clock
- The block bench
It can drive any pin in any order and see every output. It proves UART0 against its own specification.
- The chip bench
It owns only the pads. Everything inside must be reached through the chip, as a board and its software will reach it.
- What is new
The bus path, the request wire, the clock and reset, the pad. None of these existed on the block bench.
Read the diagram as text
- Block bench: drives and sees every pin
- UART0 alone: every register, every corner
- Chip bench: owns only the pads
- Pads: the only way in
- Core or bus manager: reaches UART0 over the bus
- UART0 in the chip: same block, new neighbours
- Interrupt controller: input 1 is UART0
- Clock and reset: decides when UART0 runs
- Block bench → UART0 alone: all pins
- Chip bench → Pads: pads only
- Core or bus manager → UART0 in the chip: bus
- UART0 in the chip → Interrupt controller: request wire
- Clock and reset → UART0 in the chip: clock, reset
- UART0 in the chip → Pads: transmit line
An architecture drawing of one block in two settings. The arrows name the joins the chip level must check.
Before You Start
If SoC verification is new to you, start with An SoC as a Verifier Sees It.
You should know what an SoC is: From Board to Chip. You should know how one access crosses it: One Access, End to End. You should know how an interrupt travels from a device to the core: The Interrupt Path. A first look at a layered bench helps: From a Layered Bench to UVM.
The labs of this module are small slices. They use the real addresses and interrupt numbers of ap_soc v1.5, and each page says so. The whole chip runs from module V2 on, and in the guided run of the fundamentals module.
| Question | |
|---|---|
| 1 | What does a block bench prove, and what can it never see? |
| 2 | What changes when the same block sits inside a chip? |
| 3 | Which checks must the chip level make, and which must it leave alone? |
| 4 | What happens to a check that no bench ever made? |
| 5 | How does a tiny lab show a block passing alone and failing in the chip? |
The Idea: The Block Was Right and the Chip Was Wrong
A block bench owns every pin of its block. It can drive the inputs in any order and watch every output. So it is the best place to prove what the block does. That means every divider value, every parity case, every state of its queue. When it passes, the block meets its own specification.
What it cannot see is the world around the block. It does not know which wire carries the interrupt request, or which clock the chip will give. It cannot know when reset will lift, or which pad the transmit line reaches. The block bench supplied all of those itself, perfectly. The chip supplies them for real, and the chip was built by someone else.
So the question at chip level changes. It is no longer "does UART0 work?" The new question is whether the blocks work together, as the chip specification and the software expect. That question is the point of view of this whole track.
New Words
| Word | Meaning |
|---|---|
| Block bench | A test bench built around one block. It drives and observes every pin of that block. |
| Chip bench | A test bench built around the whole chip. It owns only the pads and reaches the inside through them. |
| Integration | Joining blocks into one chip: the bus, the wires between blocks, the clocks, the resets and the pads. |
| Join | Any place where two separately made things must agree: a wire, an address, a clock, a register the software uses. |
| Smoke test | A short first test that shows the chip is alive at all: it boots, it talks, one interrupt arrives. |
| Gap | A behaviour that no bench has checked. It must be raised with its owner, never quietly absorbed. |
What Carries over, and What Never Existed
| Block bench | Chip bench | |
|---|---|---|
| Reaches the block through | Every pin, directly | The pads, the core or a bus manager, and the bus |
| Proves | The block against its own specification | The blocks together, against the chip specification and the software |
| Clock, reset, power | Supplied by the bench, always right | Supplied by the chip, possibly wrong |
| Finds | Function and rare cases | Wiring, map, clock and reset, software agreement, pads |
Read the table as a handover. Everything in the first column is finished work. The chip level takes it as a fact, the way you trust a library you did not write. Everything in the second column is new, because it did not exist until the blocks were joined.
The Rules
Rule 1: Trust passed block work.
A function proved on its block bench is not checked again at chip level.
Rule 2: Check every join.
Wires, addresses, clocks, resets, pads and the registers software uses are chip-level work.
Rule 3: Use one example per join.
One byte through the UART proves its path. The rare cases of the UART stay on its bench.
Rule 4: Raise gaps.
If no bench covered a behaviour, report it to the block team. Do not hide it inside a chip test.
Sources for These Rules
Mehta, ASIC/SoC Functional Design Verification, sections 1.1 and 1.2: why verification fails and where bugs come from.
Mehta, section 2.2: subsystems are built from blocks, and block work is imported to subsystem level.
The rule that the chip level never redoes a block's insides is this track's point of view (docs/soc-verification-plan.md section 2.1). It is common practice; no single source states it as a rule.
Now Run It: One Block, Two Benches
The lab at the end of this page holds uart_lite, a cut-down UART0 transmitter. It has TXDATA, a STATUS bit called ROOM, and an IRQ ENABLE bit. Its request irq is high while the interrupt is enabled and the transmitter has room. The lab checks it twice, in one run.
First, a block bench drives its pins directly. Then a small chip, mini_chip, joins the same block to an interrupt controller with four inputs. In the map, UART0 is source 1. The chip bench enables the interrupt through the bus and asks the controller which source is pending.
block bench: ROOM drops after a write
block bench: ROOM back after 3 clocks
block bench: irq follows ROOM
block bench: PASS 3 of 3
chip smoke: UART0 interrupt enabled, transmitter idle
chip smoke: FAIL claim 2, but UART0 is source 1Walk the output. The block bench reports three of three: ROOM drops after the write of 41, returns after three clocks, and irq follows it. UART0 is correct. Then the chip smoke test reads claim 2, but UART0 is source 1. The request reached the controller on the wrong input.
Open the lab and find the line irq_ctl u_irq (.req({2'b00, uart_irq, 1'b0}), .claim);. The integrator put the wire on bit 1, which the controller reports as source 2. No block bench could see that line, because it is not inside any block.
The Trap: Testing the Block Again Through the Chip
A new chip team often writes its first chip tests as block tests driven through the bus. It tries every divider, every parity case and every queue depth. Each one takes a boot and a long run, and each one passes, because the block bench already proved them. Weeks go by and the plan looks busy.
Meanwhile nobody has checked the request wire, the clock gate or the pad. The trap costs twice: time spent on proved behaviour, and real chip bugs left unfound until silicon. Ask of every chip test: which join does this prove?
The opposite trap is quieter. A behaviour that no bench checked does not become chip-level work just because someone noticed it. Raise it as a gap, so the owner of the block fixes their bench.
At Scale
ap_soc has about a dozen blocks. A large chip has hundreds, many bought from outside.
Bought blocks
A bought block arrives with its supplier's bench results. The chip team reads that record before planning, to know what is already proved.
Reuse, not repeat
Block monitors and checkers come up to the chip and run passively. Their drivers stay behind. Module V3 shows how.
Try It
Run the lab. Read the four block-bench rows, then the two chip rows.
Change the request wire to {3'b000, uart_irq}. Predict the last row before you run it.
Change the block so ROOM returns after 5 clocks instead of 3. Predict which block-bench row changes.
block bench: ROOM drops after a write block bench: ROOM back after 3 clocks block bench: irq follows ROOM block bench: PASS 3 of 3 chip smoke: UART0 interrupt enabled, transmitter idle chip smoke: FAIL claim 2, but UART0 is source 1Check Yourself
Common Mistakes
Wrong Repeat every block case through the chip.
They were proved on the block bench, and each chip run costs a boot.
Fix Check one example per join and leave the rest to the block bench.
Wrong Take a passing block bench as proof the block works in the chip.
The block bench supplied its own clock, reset and wires, perfectly.
Fix Check every join the chip adds: wires, map, clock, reset, pads, software.
Wrong Quietly add a missing block check to a chip test.
The block team never learns its bench has a hole.
Fix Raise it as a gap with the block's owner.
Remember
- A block bench owns every pin and proves the block against its own specification.
- It cannot see the wires, map, clocks, resets, pads or software around the block.
- The chip level checks joins between blocks, one example per join.
- Passed block work is trusted, never repeated; unchecked behaviour is a gap to raise.