Ins and Outs of Assertion in Mixed Signal Verification
By Gunjan Patel, eInfochips
Summary
In this article, we demonstrate how the mixed signal assertions are different from digital assertions and how an assertion-based Verification (ABV) is extended to the Mixed Signal verification. This article also covers different assertion techniques in Mixed-Signal Verification Systems.
Introduction
Assertion-based verification (ABV) is a powerful verification approach that has been proven to help digital circuits, designers, and verification engineers improve design quality and reduce time to market. But ABV has been rarely applied to analog/mixed-signal verification.
A verification engineer defines assertions from the functional specification of designs. For example, a verification engineer might define assertions to ensure that:
- The design is always in a valid configuration
- The design and the environment communicate correctly
- The design responds correctly to its inputs
This article evaluates why we require mixed signal assertion and shows how languages such as Verilog-AMS, Spectre, and Property Specific Language (PSL) can be used to write complex analog/mixed-signal assertions.
Why do we require mixed signal assertion?
In digital verification, a model is used for assertion-based verification (ABV). This model is based on standard assertion languages, such as PSL and SVA, and system verified in a discrete domain.
However, mixed signal verification system will need to extend the principles of ABV and add some control for a continuous domain. For verifying analog quantity like voltage, current etc., we should use the Verilog-AMS or Spectre/SPICE languages.
There are three types of assertion techniques in mixed signal verification system:
- Verilog-AMS based Assertions
- Spectre simulator based Assertions
- Using Property Specific Language (PSL) with Verilog-AMS
1. Verilog-AMS based Assertions
Assertion, by definition, captures the behavior of a design. In terms of Verilog-AMS, it can be white-box and black box approach of mixed-signal circuits or standalone analog/digital circuits, in that a user can create properties or asserted behavior. Due to this, the user can monitor the design within the hierarchy.
Verilog-AMS language defines a behavioral language for Analog and mixed signal systems. It consists of complete Verilog and Verilog-A language.
Verilog-AMS designers of the mixed signal system, use modules, which contain high-level behavioral descriptions as well as structural descriptions of the systems and components.
The behavior of each module can be described mathematically in terms of ports and parameters. The structure of each component can be described in terms of the interconnected sub-components. These descriptions can be used in many disciplines such as electrical, mechanical etc. For a continuous system, we mostly use electrical disciplines in the mixed signal system.
Figure 1: Verilog-AMS Assertion
In Figure 1, we check the voltage level of V(sig) signal. This signal will be checked when it crosses some threshold voltage during positive direction (+1), which is mentioned in the sensitivity list.
If the voltage threshold condition is not satisfied, an error will be reported through the UVM error reporter.
Figure 2 indicates the UVM error reporter. It generates the error of corresponding assertion/checkers and reports the error of which assertion has failed. It should be instantiated in checker file (As shown in Figure 1)
Figure 2: UVM error reporter
2. Spectre Simulator based Assertions
The cadence spectre circuit simulator is a modern simulator that simulates the analog and digital circuits at differential equation level.
The spectre assert statement enables to perform checks on design parameters, node voltages, currents, etc., which checks the voltage/current range.
Figure 3: Spectre Assertions
From the above example, in voltage checks, we should define min and max values for voltage range checks. In current checks, we should define only max value. If voltage/current exceed the defined range, it displays the error message and simulation will be terminated if specified level=error.
If level=warning, the simulation will be continued with a warning message.
If multiple assert checks are present, the checklimit statements enable managing which check is enabled/disabled.
Figure 4: Enable/Disable spectre assertions
In Figure 4, we have disabled the assert_3 statement using checklimit statement. If we do not use checklimit statement, by default, all assertions are enabled.
3. Using Property Specific Language (PSL) with Verilog-AMS
This section gives a brief of the standard features of PSL and how these features can support mixed signal expressions. The example shown in this section uses a standard PSL and Verilog-AMS language and uses the cadence AMS designer tool.
For the purpose of this discussion, PSL adds the new feature of Verilog-AMS language and supports the cross and above function for clocking event.
Figure 5: PSL Example
As shown in Figure.5, output voltage V(out) will be checked when input voltage V(in) crosses the 0.5V.
Figure. 6 indicates the assertion status during the threshold condition (input crosses 0.5V).
When we use PSL with Verilog-AMS, the PSL assertions should be commented as shown in Fig.5.
For enabled PSL assertion, we should add the –assert in command line option in the cadence AMS designer tool or in the irun command line as shown in the below example:
irun -assert -f test.fl
Figure 6: Waveform of the PSL Example
Visit www.einfochips.com for more information
If you wish to download a copy of this white paper, click here
|
Related Articles
- Modeling and Verification of Mixed Signal IP using SystemVerilog in Virtuoso and NCsim
- Mixed Signal Design & Verification Methodology for Complex SoCs
- Analog Mixed Signal Verification Methodology (AMSVM)
- Systematic approach to verification of a mixed signal IP - HSIC PHY case study
- A real solution for mixed signal SoC verification
New Articles
- Quantum Readiness Considerations for Suppliers and Manufacturers
- A Rad Hard ASIC Design Approach: Triple Modular Redundancy (TMR)
- Early Interactive Short Isolation for Faster SoC Verification
- The Ideal Crypto Coprocessor with Root of Trust to Support Customer Complete Full Chip Evaluation: PUFcc gained SESIP and PSA Certified™ Level 3 RoT Component Certification
- Advanced Packaging and Chiplets Can Be for Everyone
Most Popular
- System Verilog Assertions Simplified
- System Verilog Macro: A Powerful Feature for Design Verification Projects
- UPF Constraint coding for SoC - A Case Study
- Dynamic Memory Allocation and Fragmentation in C and C++
- Enhancing VLSI Design Efficiency: Tackling Congestion and Shorts with Practical Approaches and PnR Tool (ICC2)
E-mail This Article | Printer-Friendly Page |