Auxiliary Code and Modelling
When plain SVA is not enough: counters, sticky flags, shadow registers, symbolic variables and small reference models that make hard properties short, fast and readable — finished with a tag-allocator lab.
What you will learn
- Recognise properties that need helper logic instead of ever-longer sequences.
- Write auxiliary counters, sticky flags and shadow registers in the formal testbench.
- Use symbolic (oracle) variables to check "for every ID / address / index" with one property.
- Build small reference models and compare the design against them.
- Keep modelling code trustworthy: small, synthesizable, reviewed and itself checked.
Lessons
- 13.1Why properties need helper logicWhere pure SVA gets long, slow or impossible — and the alternative.
- 13.2Counters, sticky flags and shadow registersThree building blocks that cover most modelling needs.
- 13.3Symbolic (oracle) variablesProve "for every ID" with one property and a value the tool picks.
- 13.4Small reference models and scoreboardsCompare the design with a simpler description of what it must do.
- 13.5Lab: verifying a tag allocatorSymbolic tag + one tracker flag + an injected bug.
- ✎Chapter quiz (5 questions)