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 family | Signals | Typical use |
|---|---|---|
| Valid / ready | valid (producer), ready (consumer) | AXI-Stream, AXI channels, on-chip pipelines |
| Four-phase req/ack | req, ack, both return to 0 | Clock-domain crossings, simple peripherals |
| Two-phase req/ack | req, ack toggle once per transfer | Fast CDC handshakes, asynchronous logic |
| Credit-based | valid + data forward, credit returned | Long 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:
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.