FVO — Formal Verification Online
Lesson 14.1 · Handshakes and Credit-Based Flow Control

Handshakes: who promises what

Whenever data moves between two blocks, both sides follow a handshake protocol: a few rules about which signal may change when. Most "it works in my unit test but hangs in the SoC" bugs are handshake bugs, which is why protocol checking is one of the most common uses of formal verification.

Protocol familySignalsTypical use
Valid / readyvalid (producer), ready (consumer)AXI-Stream, AXI channels, on-chip pipelines
Four-phase req/ackreq, ack, both return to 0Clock-domain crossings, simple peripherals
Two-phase req/ackreq, ack toggle once per transferFast CDC handshakes, asynchronous logic
Credit-basedvalid + data forward, credit returnedLong or pipelined links, NoCs, PCIe-style interfaces

The golden rule: one property, two roles

Each rule constrains the signals one side drives. That side must guarantee it (assertion); the other side may rely on it (assumption). The same property text therefore appears twice in a verified system:

producerdrives valid, dataconsumerdrives readyvalid, datareadyverify producer: ASSERT valid/data rules, ASSUME ready rulesverify consumer: ASSERT ready rules, ASSUME valid/data rules
The rules for signals a block drives are assertions for that block and assumptions for its neighbour.

A clean way to organise this is a reusable protocol checker module with a parameter that turns its producer-side properties into assertions or assumptions (Chapter 7 shows the pattern). Then the same file is bound to both blocks and the rules can never drift apart.

Discussion

No comments yet.

Was this page helpful?

Tip: select any text on the page before clicking Report and it will be quoted in your report.