SlideShare a Scribd company logo
INVENTIVE
Kanwar Pal Singh
Cadence Design Systems
Finding Bugs Faster with
Assertion Based Verification (ABV)
Agenda
• Assertion-Based Verification Introduction
• Assertion Languages
– SVA and PSL
– Language Standards
• ABV Tools and Methodology
– What does each tool do?
– How do these tools complement each other?
– Overall methodology
• Conclusion
2
Traditional Verification
• Verification typically is focused on:
– Providing stimulus to blocks or an entire design.
– Watching for a response.
– The stimulus is applied to top-level interfaces, the response is read back
from top-level interfaces.
• This is a form of black-box
verification.
3
Verification Environment
HDL
Assertion-Based Solution
• Verification objects are added to “interesting” points inside the
design.
• These verification objects
transform a “black-box”
verification, to a “white-box”
scenario
• The effort needed to create the “white-box” scenario:
– Makes verification more efficient
– Allows you to use additional technology for verification
4
Verification Environment
HDL
A
A
A
AA
A
A
A
What is an Assertion?
• Assertions are verification
objects that:
– Watch for forbidden
behavior within a design
block or on it’s interfaces
– Track expected behavior
documented in the
assertions
– Improvement upon $display,
$monitor and assert
statements
5
Verification Environment
HDL
A
A
A
AA
A
A
A
Assertion Example
6
A description out of the spec
“After interrupt is asserted, acknowledge must come”
intr
iack
0 1 2 3 4 5
always @(posedge intr)
begin
repeat (3) @(posedge clk);
fork: pos_pos
begin
@(posedge iack)
$display("Assertion Success",$time);
disable pos_pos;
end
begin
repeat (4) @(posedge clk);
$display("Assertion Failure",$time);
disable pos_pos;
end
join
end // always
PSL : // psl ackn_protocol : assert always
{ rose(intr)} |=> {[*2];iack }! @(posedge clk);
SVA : ackn_protocol : assert property (@(posedge clk)
$rose(intr) |=> ##2 iack);
Functional Verification With Assertions
• Improved observability
• Identifies errors where they
take place instead of at the
outputs
• Monitors behavior for all
vectors
• Improved controllability
• Improved coverage
• Verification starts sooner
7
Large
Design
Interface
Constraints and
Assertions
A
A
A
A
A
A A
A A
A
A
A A A
A AA
RTL
Assertions
Verification Environment
Assertion-based Verification
What are the High level Benefits?
• Reduced TTM
– Start verification sooner
– Significantly improve the debug time (documented customer
cases have shown up to 50% time savings)
• Facilitates verification reuse
– Preserve design knowledge within Assertions
• Same assertions can be used for simulation, formal
analysis, and acceleration
• Productivity gains – stable model reached quicker
– Coverage holes identified
8
What Are Assertions Used For?
• Assuring that the interface of the design is being exercised correctly
• Finding errors deep within the design
• Identifying hard-to-find corner cases
• Improving simulation tests with coverage analysis
– Identify holes in the set of tests
– Eliminate inefficient or redundant tests
9
What Aren’t Assertions Used For?
• Race conditions
• Timing checks
• Equivalence Checking
• Checking data transformation
• Code coverage
Linting
Static timing analysis
Formal equivalence checking
Simulation/Acceleration
Code coverage tool
10
Resources for Extracting Assertions
Domain Action to extract assertion
Specification Review specifications documents
and extract features
Port list Review functionality of all block
ports and extract features
Flow diagrams and waveform Review data and control flow
through block; extract features
Block functional characteristics Review block functional
characteristics; extract features
Team reviews Conduct team reviews to extract
additional features
11
Don’t worry about overlap, worry about holes
Agenda
• Assertion-Based Verification Introduction
• Assertion Languages
– SVA and PSL
– Language Standards
• ABV Tools and Methodology
– What does each tool do?
– How do these tools complement each other?
– Overall methodology
• Conclusion
12
PSL vs SVA
• THERE IS NO BAD CHOICE TO MAKE
– Besides some subtle differences, they are very similar
• Recommendations
– Pick a language as there is no need to learn both
– Have a verification environment that supports both
• It is quite likely that whatever you pick, you will run into IP
containing assertions of the other language
13
Recommended PSL and SVA Subset
14
Operators PSL SVA Notes
Sequence Delimiters
Consecutive Repetition: zero or more cycles
Consecutive Repetition: one or more cycles
Consecutive Repetition
Non-Consecutive Repetition
Sequence Concatenation (non-overlapping)
Signal Edge Detection
Previous Values of Signals
always
never
Boolean Liveness
interrupt
{...}
[*]
[+]
[*count] [*range]
[=count] [=range]
;
rose(), fell()
prev(sig, n)
always
never
eventually!
abort
not
disable iff
SVA is implicitly always by default
Boolean Overlapping Implication ->
Boolean Non-Overlapping Implication -> next Avoid nested “-> next”
(...)
[*0:$]
[*1:$]
[*count] [*range]
[*=count] [*=range]
##1
$rose(), $fell()
$past(sig, n)
Sequence Strong Interpretation ! SVA only has a strong form
SVA only has sequence form
Sequence Non-Overlapping Implication
Sequence Overlapping Implication
|=>
|->
|=>
|->
80% of assertions can be written with 20% of language
onehot, onehot0 $onehot, $onehot0Built-in Functions
Latest Language Standards
• 1800-2009 – IEEE standard for System Verilog--Unified
Hardware Design, Specification, and Verification
Language
– SVA is part of the standard and is covered in 2 chapters
• 1850-2010 – IEEE standard for Property Specification
Language (PSL)
15
Agenda
• Assertion-Based Verification Introduction
• Assertion Languages
– SVA and PSL
– Language Standards
• ABV Tools and Methodology
– What does each tool do?
– How do these tools complement each other?
– Overall methodology
• Conclusion
16
ABV Tools
17
Functional Coverage
• Assertions and cover directives measure
functional coverage for each test.
• Functional coverage from all tests is
combined into a report of the test suite’s
total functional coverage.
Simulation (Dynamic ABV)
• Assertions act as monitors during
simulation.
• Assertions can be used for interactive
debugging during simulation.
• Assertion activity indicates functional
coverage.
Assertion-Based Acceleration (ABA)
• Assertions helps isolate the cause of
failures
• Catch bugs that require long setup times
• Accumulate additional coverage
information
Formal Analysis
• Assertions define correct behavior and
legal inputs.
• Exhaustive analysis of all possible states
without a testbench.
• Improves productivity and quality.
Simulation + Assertions = Observability
• Once an Assertion is violated, a message appears in the
console:
– reports beginning: start time (when finished or failed is reported)
– reports length in terms of cycle (when finished or failed is reported)
– points to expression that was violated (when failed is reported)
– prints the assertion statement portion (when failed is reported)
// psl example: assert always {e;f;g} |=> {g; d | e; c};
|
ncsim: *E,ASRTST (./test.v,68): (time 500 NS) Assertion
test.inst1.example has failed (5 cycles, starting 440 NS)
• Assertions can generate transactions
18
Points out explicitly which
expression in a sequence
caused the failure
Static ABV + Assertions = Controllability
• Verification can start early without
a testbench
• Exhaustive verification with
counter example for failures
• Helps find corner case bugs
19
20
Simulation (Dynamic ABV)
• Depends on quality of testbench
• Follows specific paths
• Limited controllability
• Applicable later in design cycle
Formal Analysis (Static ABV)
• No testbench needed – can use earlier
• Few depths typically equivalent to
millions of simulation vectors
• Limited by state space explosion
• Explored Depth
– Uncovers local corner case bugs
– Reports verification proof radius
Reachable
State Space
x
x
x
x
x
x
x
x
x
x
Bugs triggered
with simulation
Starting
State Point
The Difference Between Dynamic and Static
• Exhaustive
– Uncovers all possible bugs
x
x
xx
x
x
Assertion-based Acceleration (ABA)
• Assertion support in the acceleration adds observability with performance
– Enables exposing design problems quicker and reducing debug times
– Enables assertion firings from ‘long’ runs not viable in a simulation only
environment
• Supports same set of design files as simulation
• Executes long simulation runs much quicker
– Enables System level simulation with assertions
– Enables software bring-up with assertions
21
Functional Coverage
22
•Formal AnalysisA
A
A
A
A
A
A
A
Module / Block
•Formal Analysis
•Simulation
A
A
A
A
A
A
A
AA A
A
A
A
A
A A
A
A
A
AA
Integrated Blocks
•Simulation
•HW Acceleration
•Emulation A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A A
A
A
A
A
A
A
AA
A
A
A
A
A
A A
A
A
AA
Top-level Integrated Design
Aggregated
Coverage
Total
Coverage
Metrics
Plan
ABV Methodology Recap
July 8, 2011 Cadence Confidential: Cadence Internal Use Only23
Coverage
Metrics
Spec
Plan
Unified Metrics
Aggregated
Coverage
&
Checking
Leverage assertions as checks for feature validation throughout
the entire verification process
Verification
Engineers
Designers
Engineers
Agenda
• Assertion-Based Verification Introduction
• Assertion Languages
– SVA and PSL
– Language Standards
• ABV Tools and Methodology
– What does each tool do?
– How do these tools complement each other?
– Overall methodology
• Conclusion
24
Conclusion (1)
• An ABV methodology
– Begins with planning
– Spans the entire verification process from module to system
– Includes formal, simulation, and emulation/acceleration
– Is maximized by the integration of metrics from numerous
environments
– Is independent of language
25
Conclusion (2)
• An ABV methodology
provides
– Productivity
• Removes duplication of
effort between designer and
verification engineer
• Encourages reuse
– Quality
• Executable specification
• Formal exhaustiveness
• Methodology focused on
checking in addition to
coverage
26
Traditional Flow
RTL RTL
Block / Module Cluster / Block Full Chip
RTL RTLRTLRTL
Simulation Simulation
HW-based
Simulation
Testbench
Stimuli
Formal Analysis
Potential limited use
Confidence
Time
95+%
Done
Sim & HW
+ some formal
Limited sanity sim
Incisive
Formal
Verifier
Incisive
Formal
Verifier
HW-based
Simulation
Testbench
Stimuli
Targeted use
Simulation
Incisive
Formal
Verifier
New Done
TTM Gains
Original
Done
Enhanced Flow
Incisive
Unified
Simulator
Incisive
Unified
Simulator
Assertion-Based
Acceleration
Finding Bugs Faster with Assertion Based Verification (ABV)

More Related Content

What's hot (20)

PDF
System verilog verification building blocks
Nirav Desai
 
PDF
UVM Methodology Tutorial
Arrow Devices
 
PDF
Session 6 sv_randomization
Nirav Desai
 
PPT
Axi protocol
Azad Mishra
 
PPTX
SystemVerilog based OVM and UVM Verification Methodologies
Ramdas Mozhikunnath
 
PDF
Session 9 advance_verification_features
Nirav Desai
 
PPTX
UVM Driver sequencer handshaking
HARINATH REDDY
 
PPTX
System verilog coverage
Pushpa Yakkala
 
ODP
PCIe DL_layer_3.0.1 (1)
Rakeshkumar Sachdev
 
PPTX
Ambha axi
HARINATH REDDY
 
PDF
Verification flow and_planning_vlsi_design
Usha Mehta
 
PPT
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
Amiq Consulting
 
PDF
Ral by pushpa
Pushpa Yakkala
 
PPTX
AXI Protocol.pptx
Yazan Yousef
 
ODP
APB protocol v1.0
Azad Mishra
 
PDF
Session 7 code_functional_coverage
Nirav Desai
 
PDF
Gate-Level Simulation Methodology Improving Gate-Level Simulation Performance
suddentrike2
 
PPTX
Amba axi 29 3_2015
kiemnhatminh
 
PDF
UVM: Basic Sequences
Arrow Devices
 
PPTX
Ch 6 randomization
Team-VLSI-ITMU
 
System verilog verification building blocks
Nirav Desai
 
UVM Methodology Tutorial
Arrow Devices
 
Session 6 sv_randomization
Nirav Desai
 
Axi protocol
Azad Mishra
 
SystemVerilog based OVM and UVM Verification Methodologies
Ramdas Mozhikunnath
 
Session 9 advance_verification_features
Nirav Desai
 
UVM Driver sequencer handshaking
HARINATH REDDY
 
System verilog coverage
Pushpa Yakkala
 
PCIe DL_layer_3.0.1 (1)
Rakeshkumar Sachdev
 
Ambha axi
HARINATH REDDY
 
Verification flow and_planning_vlsi_design
Usha Mehta
 
SystemVerilog Assertions verification with SVAUnit - DVCon US 2016 Tutorial
Amiq Consulting
 
Ral by pushpa
Pushpa Yakkala
 
AXI Protocol.pptx
Yazan Yousef
 
APB protocol v1.0
Azad Mishra
 
Session 7 code_functional_coverage
Nirav Desai
 
Gate-Level Simulation Methodology Improving Gate-Level Simulation Performance
suddentrike2
 
Amba axi 29 3_2015
kiemnhatminh
 
UVM: Basic Sequences
Arrow Devices
 
Ch 6 randomization
Team-VLSI-ITMU
 

Viewers also liked (20)

PDF
Функциональная верификация HDL-кода
SQALab
 
PDF
Doulos coverage-tips-tricks
Obsidian Software
 
PDF
System Verilog Functional Coverage
rraimi
 
PPT
Elementsof anargument ppt
hiw0758
 
PPT
Gs Us Roadmap For A World Class Information Security Management System– Isoie...
Tammy Clark
 
PPTX
BT Global Services - Our approach to Innovation
Grace Kermani
 
PDF
Tma World Viewpoint: Building Global Alignment Through Enterprise Wide Learning
TMA World
 
PDF
Logos -toulmin
nstearns
 
PPTX
Diet or product claim%2 c science as a wok
Romy Friedman
 
PDF
Pragmatic Code Coverage
Alexandre (Shura) Iline
 
PPTX
System Verilog Tutorial - VHDL
E2MATRIX
 
PDF
Code Coverage Revised : EclEmma on JaCoCo
Evgeny Mandrikov
 
PPTX
Roadmap to world class safety for
vinuvinu
 
PPTX
Code coverage analysis in testing
Ni
 
PDF
Code coverage & tools
Rajesh Kumar
 
PPTX
Road map to safety ppt
Doug Crann
 
PDF
Code coverage
Vijayan Reddy
 
PDF
Enterprise Mobility - Strong Mobile Strategy (7 steps to get you started)
TkXel
 
PDF
Code Coverage
Ernani Omar Cruz
 
PPT
New product development cycle model
Mohit Singla
 
Функциональная верификация HDL-кода
SQALab
 
Doulos coverage-tips-tricks
Obsidian Software
 
System Verilog Functional Coverage
rraimi
 
Elementsof anargument ppt
hiw0758
 
Gs Us Roadmap For A World Class Information Security Management System– Isoie...
Tammy Clark
 
BT Global Services - Our approach to Innovation
Grace Kermani
 
Tma World Viewpoint: Building Global Alignment Through Enterprise Wide Learning
TMA World
 
Logos -toulmin
nstearns
 
Diet or product claim%2 c science as a wok
Romy Friedman
 
Pragmatic Code Coverage
Alexandre (Shura) Iline
 
System Verilog Tutorial - VHDL
E2MATRIX
 
Code Coverage Revised : EclEmma on JaCoCo
Evgeny Mandrikov
 
Roadmap to world class safety for
vinuvinu
 
Code coverage analysis in testing
Ni
 
Code coverage & tools
Rajesh Kumar
 
Road map to safety ppt
Doug Crann
 
Code coverage
Vijayan Reddy
 
Enterprise Mobility - Strong Mobile Strategy (7 steps to get you started)
TkXel
 
Code Coverage
Ernani Omar Cruz
 
New product development cycle model
Mohit Singla
 
Ad

Similar to Finding Bugs Faster with Assertion Based Verification (ABV) (20)

PDF
Sva.pdf
SamHoney6
 
PPT
Dealing with the Three Horrible Problems in Verification
DVClub
 
PDF
Class9_SW_Testing_Strategies.pdf
FarjanaParvin5
 
PDF
Lecture 06 - 07 - 08 - Test Techniques - Whitebox Testing.pdf
mkhawar5
 
PPTX
Small is Beautiful- Fully Automate your Test Case Design
Georgina Tilby
 
PPT
Dill may-2008
Obsidian Software
 
PPTX
Risk based testing and random testing
Himanshu
 
PPT
Software engineering Testing technique,test case,test suit design
Maitree Patel
 
PPTX
Database Unit Testing Made Easy with VSTS
Sanil Mhatre
 
PPT
11 whiteboxtesting
asifusman1998
 
PPTX
Istqb foundation level day 1
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
PPT
Software testing
Preeti Mishra
 
PPTX
Software Testing_A_mmmmmmmmmmmmmmmmmmmmm
IwannatelluAstorylas
 
PPT
Software testing part
Preeti Mishra
 
PPTX
Road to Continuous Delivery - Wix.com
Aviran Mordo
 
PDF
verification_planning_systemverilog_uvm_2020
Sameh El-Ashry
 
PPTX
Introduction to White box testing
Aliaa Monier Ismaail
 
PPT
How to become a testing expert
gaoliang641
 
PPTX
ADLV UNIT 1 STUDENT .N (1) (1).pptx_____
Varunkulkarni63
 
PDF
Ncerc rlmca202 adm m3 ssm
ssmarar
 
Sva.pdf
SamHoney6
 
Dealing with the Three Horrible Problems in Verification
DVClub
 
Class9_SW_Testing_Strategies.pdf
FarjanaParvin5
 
Lecture 06 - 07 - 08 - Test Techniques - Whitebox Testing.pdf
mkhawar5
 
Small is Beautiful- Fully Automate your Test Case Design
Georgina Tilby
 
Dill may-2008
Obsidian Software
 
Risk based testing and random testing
Himanshu
 
Software engineering Testing technique,test case,test suit design
Maitree Patel
 
Database Unit Testing Made Easy with VSTS
Sanil Mhatre
 
11 whiteboxtesting
asifusman1998
 
Istqb foundation level day 1
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
Software testing
Preeti Mishra
 
Software Testing_A_mmmmmmmmmmmmmmmmmmmmm
IwannatelluAstorylas
 
Software testing part
Preeti Mishra
 
Road to Continuous Delivery - Wix.com
Aviran Mordo
 
verification_planning_systemverilog_uvm_2020
Sameh El-Ashry
 
Introduction to White box testing
Aliaa Monier Ismaail
 
How to become a testing expert
gaoliang641
 
ADLV UNIT 1 STUDENT .N (1) (1).pptx_____
Varunkulkarni63
 
Ncerc rlmca202 adm m3 ssm
ssmarar
 
Ad

More from DVClub (20)

PDF
IP Reuse Impact on Design Verification Management Across the Enterprise
DVClub
 
PDF
Cisco Base Environment Overview
DVClub
 
PDF
Intel Xeon Pre-Silicon Validation: Introduction and Challenges
DVClub
 
PDF
Verification of Graphics ASICs (Part II)
DVClub
 
PDF
Verification of Graphics ASICs (Part I)
DVClub
 
PDF
Stop Writing Assertions! Efficient Verification Methodology
DVClub
 
PPT
Validating Next Generation CPUs
DVClub
 
PPT
Verification Automation Using IPXACT
DVClub
 
PDF
Validation and Design in a Small Team Environment
DVClub
 
PDF
Trends in Mixed Signal Validation
DVClub
 
PDF
Verification In A Global Design Community
DVClub
 
PDF
Design Verification Using SystemC
DVClub
 
PDF
Verification Strategy for PCI-Express
DVClub
 
PDF
SystemVerilog Assertions (SVA) in the Design/Verification Process
DVClub
 
PDF
Efficiency Through Methodology
DVClub
 
PDF
Pre-Si Verification for Post-Si Validation
DVClub
 
PDF
OpenSPARC T1 Processor
DVClub
 
PDF
Intel Atom Processor Pre-Silicon Verification Experience
DVClub
 
PDF
Using Assertions in AMS Verification
DVClub
 
PDF
Low-Power Design and Verification
DVClub
 
IP Reuse Impact on Design Verification Management Across the Enterprise
DVClub
 
Cisco Base Environment Overview
DVClub
 
Intel Xeon Pre-Silicon Validation: Introduction and Challenges
DVClub
 
Verification of Graphics ASICs (Part II)
DVClub
 
Verification of Graphics ASICs (Part I)
DVClub
 
Stop Writing Assertions! Efficient Verification Methodology
DVClub
 
Validating Next Generation CPUs
DVClub
 
Verification Automation Using IPXACT
DVClub
 
Validation and Design in a Small Team Environment
DVClub
 
Trends in Mixed Signal Validation
DVClub
 
Verification In A Global Design Community
DVClub
 
Design Verification Using SystemC
DVClub
 
Verification Strategy for PCI-Express
DVClub
 
SystemVerilog Assertions (SVA) in the Design/Verification Process
DVClub
 
Efficiency Through Methodology
DVClub
 
Pre-Si Verification for Post-Si Validation
DVClub
 
OpenSPARC T1 Processor
DVClub
 
Intel Atom Processor Pre-Silicon Verification Experience
DVClub
 
Using Assertions in AMS Verification
DVClub
 
Low-Power Design and Verification
DVClub
 

Recently uploaded (20)

PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 

Finding Bugs Faster with Assertion Based Verification (ABV)

  • 1. INVENTIVE Kanwar Pal Singh Cadence Design Systems Finding Bugs Faster with Assertion Based Verification (ABV)
  • 2. Agenda • Assertion-Based Verification Introduction • Assertion Languages – SVA and PSL – Language Standards • ABV Tools and Methodology – What does each tool do? – How do these tools complement each other? – Overall methodology • Conclusion 2
  • 3. Traditional Verification • Verification typically is focused on: – Providing stimulus to blocks or an entire design. – Watching for a response. – The stimulus is applied to top-level interfaces, the response is read back from top-level interfaces. • This is a form of black-box verification. 3 Verification Environment HDL
  • 4. Assertion-Based Solution • Verification objects are added to “interesting” points inside the design. • These verification objects transform a “black-box” verification, to a “white-box” scenario • The effort needed to create the “white-box” scenario: – Makes verification more efficient – Allows you to use additional technology for verification 4 Verification Environment HDL A A A AA A A A
  • 5. What is an Assertion? • Assertions are verification objects that: – Watch for forbidden behavior within a design block or on it’s interfaces – Track expected behavior documented in the assertions – Improvement upon $display, $monitor and assert statements 5 Verification Environment HDL A A A AA A A A
  • 6. Assertion Example 6 A description out of the spec “After interrupt is asserted, acknowledge must come” intr iack 0 1 2 3 4 5 always @(posedge intr) begin repeat (3) @(posedge clk); fork: pos_pos begin @(posedge iack) $display("Assertion Success",$time); disable pos_pos; end begin repeat (4) @(posedge clk); $display("Assertion Failure",$time); disable pos_pos; end join end // always PSL : // psl ackn_protocol : assert always { rose(intr)} |=> {[*2];iack }! @(posedge clk); SVA : ackn_protocol : assert property (@(posedge clk) $rose(intr) |=> ##2 iack);
  • 7. Functional Verification With Assertions • Improved observability • Identifies errors where they take place instead of at the outputs • Monitors behavior for all vectors • Improved controllability • Improved coverage • Verification starts sooner 7 Large Design Interface Constraints and Assertions A A A A A A A A A A A A A A A AA RTL Assertions Verification Environment
  • 8. Assertion-based Verification What are the High level Benefits? • Reduced TTM – Start verification sooner – Significantly improve the debug time (documented customer cases have shown up to 50% time savings) • Facilitates verification reuse – Preserve design knowledge within Assertions • Same assertions can be used for simulation, formal analysis, and acceleration • Productivity gains – stable model reached quicker – Coverage holes identified 8
  • 9. What Are Assertions Used For? • Assuring that the interface of the design is being exercised correctly • Finding errors deep within the design • Identifying hard-to-find corner cases • Improving simulation tests with coverage analysis – Identify holes in the set of tests – Eliminate inefficient or redundant tests 9
  • 10. What Aren’t Assertions Used For? • Race conditions • Timing checks • Equivalence Checking • Checking data transformation • Code coverage Linting Static timing analysis Formal equivalence checking Simulation/Acceleration Code coverage tool 10
  • 11. Resources for Extracting Assertions Domain Action to extract assertion Specification Review specifications documents and extract features Port list Review functionality of all block ports and extract features Flow diagrams and waveform Review data and control flow through block; extract features Block functional characteristics Review block functional characteristics; extract features Team reviews Conduct team reviews to extract additional features 11 Don’t worry about overlap, worry about holes
  • 12. Agenda • Assertion-Based Verification Introduction • Assertion Languages – SVA and PSL – Language Standards • ABV Tools and Methodology – What does each tool do? – How do these tools complement each other? – Overall methodology • Conclusion 12
  • 13. PSL vs SVA • THERE IS NO BAD CHOICE TO MAKE – Besides some subtle differences, they are very similar • Recommendations – Pick a language as there is no need to learn both – Have a verification environment that supports both • It is quite likely that whatever you pick, you will run into IP containing assertions of the other language 13
  • 14. Recommended PSL and SVA Subset 14 Operators PSL SVA Notes Sequence Delimiters Consecutive Repetition: zero or more cycles Consecutive Repetition: one or more cycles Consecutive Repetition Non-Consecutive Repetition Sequence Concatenation (non-overlapping) Signal Edge Detection Previous Values of Signals always never Boolean Liveness interrupt {...} [*] [+] [*count] [*range] [=count] [=range] ; rose(), fell() prev(sig, n) always never eventually! abort not disable iff SVA is implicitly always by default Boolean Overlapping Implication -> Boolean Non-Overlapping Implication -> next Avoid nested “-> next” (...) [*0:$] [*1:$] [*count] [*range] [*=count] [*=range] ##1 $rose(), $fell() $past(sig, n) Sequence Strong Interpretation ! SVA only has a strong form SVA only has sequence form Sequence Non-Overlapping Implication Sequence Overlapping Implication |=> |-> |=> |-> 80% of assertions can be written with 20% of language onehot, onehot0 $onehot, $onehot0Built-in Functions
  • 15. Latest Language Standards • 1800-2009 – IEEE standard for System Verilog--Unified Hardware Design, Specification, and Verification Language – SVA is part of the standard and is covered in 2 chapters • 1850-2010 – IEEE standard for Property Specification Language (PSL) 15
  • 16. Agenda • Assertion-Based Verification Introduction • Assertion Languages – SVA and PSL – Language Standards • ABV Tools and Methodology – What does each tool do? – How do these tools complement each other? – Overall methodology • Conclusion 16
  • 17. ABV Tools 17 Functional Coverage • Assertions and cover directives measure functional coverage for each test. • Functional coverage from all tests is combined into a report of the test suite’s total functional coverage. Simulation (Dynamic ABV) • Assertions act as monitors during simulation. • Assertions can be used for interactive debugging during simulation. • Assertion activity indicates functional coverage. Assertion-Based Acceleration (ABA) • Assertions helps isolate the cause of failures • Catch bugs that require long setup times • Accumulate additional coverage information Formal Analysis • Assertions define correct behavior and legal inputs. • Exhaustive analysis of all possible states without a testbench. • Improves productivity and quality.
  • 18. Simulation + Assertions = Observability • Once an Assertion is violated, a message appears in the console: – reports beginning: start time (when finished or failed is reported) – reports length in terms of cycle (when finished or failed is reported) – points to expression that was violated (when failed is reported) – prints the assertion statement portion (when failed is reported) // psl example: assert always {e;f;g} |=> {g; d | e; c}; | ncsim: *E,ASRTST (./test.v,68): (time 500 NS) Assertion test.inst1.example has failed (5 cycles, starting 440 NS) • Assertions can generate transactions 18 Points out explicitly which expression in a sequence caused the failure
  • 19. Static ABV + Assertions = Controllability • Verification can start early without a testbench • Exhaustive verification with counter example for failures • Helps find corner case bugs 19
  • 20. 20 Simulation (Dynamic ABV) • Depends on quality of testbench • Follows specific paths • Limited controllability • Applicable later in design cycle Formal Analysis (Static ABV) • No testbench needed – can use earlier • Few depths typically equivalent to millions of simulation vectors • Limited by state space explosion • Explored Depth – Uncovers local corner case bugs – Reports verification proof radius Reachable State Space x x x x x x x x x x Bugs triggered with simulation Starting State Point The Difference Between Dynamic and Static • Exhaustive – Uncovers all possible bugs x x xx x x
  • 21. Assertion-based Acceleration (ABA) • Assertion support in the acceleration adds observability with performance – Enables exposing design problems quicker and reducing debug times – Enables assertion firings from ‘long’ runs not viable in a simulation only environment • Supports same set of design files as simulation • Executes long simulation runs much quicker – Enables System level simulation with assertions – Enables software bring-up with assertions 21
  • 22. Functional Coverage 22 •Formal AnalysisA A A A A A A A Module / Block •Formal Analysis •Simulation A A A A A A A AA A A A A A A A A A A AA Integrated Blocks •Simulation •HW Acceleration •Emulation A A A A A A A A A A A A A A A A A A A A A A A A A A A A A AA A A A A A A A A A AA Top-level Integrated Design Aggregated Coverage Total Coverage Metrics Plan
  • 23. ABV Methodology Recap July 8, 2011 Cadence Confidential: Cadence Internal Use Only23 Coverage Metrics Spec Plan Unified Metrics Aggregated Coverage & Checking Leverage assertions as checks for feature validation throughout the entire verification process Verification Engineers Designers Engineers
  • 24. Agenda • Assertion-Based Verification Introduction • Assertion Languages – SVA and PSL – Language Standards • ABV Tools and Methodology – What does each tool do? – How do these tools complement each other? – Overall methodology • Conclusion 24
  • 25. Conclusion (1) • An ABV methodology – Begins with planning – Spans the entire verification process from module to system – Includes formal, simulation, and emulation/acceleration – Is maximized by the integration of metrics from numerous environments – Is independent of language 25
  • 26. Conclusion (2) • An ABV methodology provides – Productivity • Removes duplication of effort between designer and verification engineer • Encourages reuse – Quality • Executable specification • Formal exhaustiveness • Methodology focused on checking in addition to coverage 26 Traditional Flow RTL RTL Block / Module Cluster / Block Full Chip RTL RTLRTLRTL Simulation Simulation HW-based Simulation Testbench Stimuli Formal Analysis Potential limited use Confidence Time 95+% Done Sim & HW + some formal Limited sanity sim Incisive Formal Verifier Incisive Formal Verifier HW-based Simulation Testbench Stimuli Targeted use Simulation Incisive Formal Verifier New Done TTM Gains Original Done Enhanced Flow Incisive Unified Simulator Incisive Unified Simulator Assertion-Based Acceleration