|
||||||||||
Verification of various SoC features through SV assertionsRohit Ranjan, Naveen Srivastava, Naveen Jakhar ( Freescale Semiconductor India) With increasing complexity of SoCs and reduced execution cycle time, System Verilog assertions have become an integral part of verification environment. Assertions help in reducing the number of directed tests with an added advantage of reduction in effort and run-time in addition to providing verification coverage. Assertions can be deployed at various points in the design for verifying multiple aspects like resets, clocks and pads in the SoC. In this article, we will be highlighting the grey areas in which assertions come handy. We will also be discussing the methodology for efficiently generating assertions and then simply integrating them in the testbench environment using plug-n-play technique. Reset Connectivity: Keeping in mind Power and Performance factors, SoC designers implement varied SoC architectures which support different power domains. And the modules present in these different power domains have different sets of reset connectivity. So, connectivity of various types of resets going to different power domains and different modules can be checked through assertions. For example, in SoCs with multiple power domains, there is a specific reset signal connected to each power domain. If these connections get swapped, it can lead to fatal scenarios in the chip as well as unwanted power consumption. Also, a particular type of reset is connected to a particular type of IP. For example, the timekeeper of the SoC is supposed to be reset at Power-On-Reset. But due to faulty design, if its reset gets connected to software reset, then its intended functionality goes in vain. We need to have dynamic assertions for checking this kind of reset connectivity. We can define the reset sources as the triggers for assertions and different modules in different power domains as the targets. Clocking: Since the SoCs support multiple clock sources along with different modes of operation and these clock sources are configurable through software, so we need to have dynamic checks when these clock sources are getting enabled or disabled to catch any glitch or any abnormal behaviors like crystal failure or loss of reference clock to PLL. These kinds of assertions can be extended to peripheral clocks also. For example, in general we have a central clocking control module in SoC which is generally used for clock_gating the peripherals when these peripherals are not in use. So we can use dynamic assertions for the signals of clock_gating and checking the peripheral_clock_status. An example of the checker for the same has been shown below. PADS: Monitoring of pads' state has become an essential part of the verification schemes that are being employed for SoC verification now-a-days. SoC can have different important modes where we need to monitor the pads. Incorrect value on the pads may lead to malfunctioning and unexpected behavior of the integrated SoC system. We will be discussing a few of these modes in detail.
Script based assertion generation methodology: The check points for clocks, resets and pads lead to a huge number of assertions and writing these assertions manually is a tedious task. So we need to have automation for efficiently generating these assertion sets. These signals are usually available in documents provided by the Architecture and Design team. We can run a script on these documents and generate assertions which we can directly integrate in our testbench environment. An example of snippet from one of the documents is shown below: The corresponding assertion generated using script is shown below: Conclusion: Assertions based verification should be an integral part of the SoC verification environment for robust verification. Assertions provide a unique way of generating test points within the design which leads to increased observability of the design. On top of it, script based assertion generation flow saves many valuable man-hours. This integrated approach aids in delivering high quality silicon with reduced cycle time.
|
Home | Feedback | Register | Site Map |
All material on this site Copyright © 2017 Design And Reuse S.A. All rights reserved. |