Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[UVM] how to set a "default coveragepoint"

Status
Not open for further replies.

jayh

Newbie level 6
Joined
Dec 10, 2010
Messages
14
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
canada
Activity points
1,380
[UVM] how to set a "default coverpoint"

UVM learner

it is easy to set a "default bins" as below.

A : coverpoint data[3:0]
{
bins a = {0};
bins b = default; //catch all values that do not lie within any of the defined bins.
}

but how to implement a "default coverpoint" in following example?



A1 : coverpoint data[3:0]
{
bins a = {0};
bins b = {3};
bins c = {6};
}

A2 : coverpoint data[3:0]
{
bins d = {11};
bins e = {13};
}

A3 : coverpoint data[3:0]
{

}
problem: how to implement coverpoint A3 as a "default coverpoint" catching all values that do not lie within A1 and A2 ?
 

You need to realize that the default bin you specified with coverpoint A does not count towards the overall coverage results.

Since you have created individual bins for each explicit value in coverpoint's A1 and A2, the only way to do this is by explicitly list the remaining 11 values for coverpoint A3.

To do this programmatically, you can but the bin values for A1 and A2 into an array, and then use an expression for coverpoint A3.
Code:
bit [3:0] a1_bins[] = {0,3,6};
bit [3:0] a2_bins[] = {11,13};
A1 : coverpoint data[3:0]
{
bins a[] = a1_bins;
}

A2 : coverpoint data[3:0]
{
bins a2[] = a2_bins;
}

A3 : coverpoint data[3:0]
{
bins a3[] = data with (!(item inside {a1_bins,a2_bins});
}
 
  • Like
Reactions: jayh

    jayh

    Points: 2
    Helpful Answer Positive Rating
Hi, Dave

Yes, the "default" group is supposed to catch illegal values. It is not used for overall coverage results.
Thanks for your reply.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top