Open side-bar Menu
 The Breker Trekker
Adnan Hamid, CEO of Breker
Adnan Hamid, CEO of Breker
Adnan Hamid is the founder CEO of Breker and the inventor of its core technology. Under his leadership, Breker has come to be a market leader in functional verification technologies for complex systems-on-chips (SoCs), and Portable Stimulus in particular. The Breker expertise in the automation of … More »

Constrain Me, Please

 
December 8th, 2016 by Adnan Hamid, CEO of Breker

In the movies, when a person acts irrationally they are usually declared to be mad and quickly placed in a straitjacket for the protection of themselves and those around them. If we continue those thoughts into the world of verification, SystemVerilog must be declared to be a mad language.

straightjacket

The problem is that the language designers did not understand the power of constraints. The only notion of constraints it has is simple combinatorial constraints on a single input vector. This is why many of the tests generated from SystemVerilog are irrational because they cause no useful function to be executed in the design. Those irrational tests have to be identified and discarded, a process that is highly inefficient and ineffective.

UVM attempted to help a little with the creation of sequences. These attempt to add a notion of sequential constraints by identifying prebuild legal snippets of directed test that could be used in the creation of larger tests. They help, but this is still not enough and they suffer from several other problems.

When contemplating true system-level verification, the targeted state space is many orders of magnitude larger than SystemVerilog ever contemplated. Without a complete set of constraints built into the language, the user will again have to suffer from the same type of inefficiencies.  Thankfully, a number of constraints are naturally contained within a graph-based language, but more are required to ensure that all test scenarios produced are both legal and useful.

In this blog, we will look at the variety of constraints that can and should be applied to graphs. These include notions of coverage, priority, dependence, resource limitations and sharing.

A verification intent model defines all of the possible paths through a design, but not all paths may be valid based on past actions. For example, after an action (A) has been performed, it may not be possible for A to happen again until another action (B) has been completed. Thus the sequence AA is not legal even though a graph may show them to be independent choices. This kind of constraint has been discussed at length in previous blogs which you can find here and here.

Another form of constraint is priority. After an action has been performed, several other actions may be possible but some may either be more probable or more important than others. Thus decisions need to be weighted. Coverage plays a part here. The weighting may be altered by certain sequences having already been verified and thus have lower importance until all combinations have been tried at least once. Coverage is directly supported by graph-based models (We will discuss this in detail in a future blog) and thus problems associated with closing coverage holes will become a lot simpler.

But there is another level of constraints that become important when we start to consider more complex scenarios. At the system-level, multiple things can be happening in a design concurrently, and if we are to verify aspects of performance, or power consumption, then the creation of stress tests is an important aspect of verification. This means that the scenario generation tool is not attempting to find a single path through the graph; it is attempting to find multiple simultaneous paths. This requires a completely different kind of constraint, one that begins to look a lot like the system architecture. How many processors are available, how much memory, what communications constraints exist? There is no point generating a test that cannot actually run on the system and that means tasks have to request the necessary resources and be scheduled. If there is insufficient memory available for a particular task to proceed, then it may have to wait until the memory becomes available.

Breker has been discussing these types of constraints with customers for several years and has developed ways in which they can be defined within the graph. It is important that these become part of the Portable Stimulus standard, otherwise we will regress back to the creation of another mad language without the necessary means to constrain it, and that means lots of irrational scenarios that you will have to pick through. We would love to hear how important these kind of constraints are to you and thus by implication how important you believe system-level constraints are in the creation of the PSS. Together we can do this.

Related posts:

Tags: , , , , , , , , , , ,

Category: Knowledge Depot

Leave a Reply

Your email address will not be published. Required fields are marked *


*

S2C: FPGA Base prototyping- Download white paper



Internet Business Systems © 2017 Internet Business Systems, Inc.
595 Millich Dr., Suite 216, Campbell, CA 95008
+1 (408)-337-6870 — Contact Us, or visit our other sites:
TechJobsCafe - Technical Jobs and Resumes EDACafe - Electronic Design Automation GISCafe - Geographical Information Services  MCADCafe - Mechanical Design and Engineering ShareCG - Share Computer Graphic (CG) Animation, 3D Art and 3D Models
  Privacy Policy