Professional Documents
Culture Documents
FFDD Unit 3 - PPT 3
FFDD Unit 3 - PPT 3
1
FUNCTIONAL AND FORMAL
VERIFICATION OF DIGITAL DESIGNS
Concurrent Assertions
Sudeendra kumar K
Department of Electronics and Communication Engineering
2
Functional and Formal Verification of Digital Designs
Review of Introduction to System Verilog Assertions:
• Immediate Assertions
• Introduction to Concurrent Assertions
3
Functional and Formal Verification of Digital Designs
Contents
4
Functional and Formal Verification of Digital Designs
Samples Value Functions
• Both the req and gnt values are sampled just before the
positive edge of clk, and the $past function examines
the value of its argument one cycle earlier.
5
Courtesy: - Erik Seligman Formal Verification
Functional and Formal Verification of Digital Designs
List of Sampled Value Functions
6
Courtesy: - Erik Seligman, Formal Verification
Functional and Formal Verification of Digital Designs
Sampled Value Functions
7
Functional and Formal Verification of Digital Designs
Concurrent Assertions and clock edges
• clock is expressed with a clock specifier such as @(posedge
clk1). A common mistake is to omit an edge and use an
expression like @(clk1): this makes an assertion act on
positive and negative clock edges, effectively examining each
phase rather than each cycle.
8
Functional and Formal Verification of Digital Designs
Sampling behavior with different clocks
13
Courtesy: Formal Verification, Erik Seligman
Functional and Formal Verification of Digital Designs
Reset and Concurrent Assertions
• Assertion reset is asynchronous, with an assertion being
shut off immediately any time its disable condition is met.
• For example, consider the following two assertions, both
trying to state that outside of reset, if you have at least
one grant, you should have a request:
14
Functional and Formal Verification of Digital Designs
Setting default Clock and Reset
• Fortunately, SVA offers a way to set a global clock and reset
for the concurrent assertions in a module, so they can be
written once and cover multiple assertions.
15
Courtesy: System Verilog Assertions, Erik Seligman
Functional and Formal Verification of Digital Designs
Setting default Clocking and Reset
16
Functional and Formal Verification of Digital Designs
Summary
17
Functional and Formal Verification of Digital Designs
Next Session
• Sequences
• Properties
18
THANK YOU
Sudeendra kumar K
Department of Electronics and Communication
Engineering
sudeendrakumark@pes.edu
19