Jump to content

Question regarding transition coverage


Recommended Posts

Hi,

I have a query for transition coverage.

My Requirement:

I have some valid values for particular coverpoints.

-----------------------------------------------------------

covergroup covergrp_1;

coverpoint_1 : coverpoint var_1

{

bins var_bin[] = {[8'h1:8'hFF]};

}

endgroup

-----------------------------------------------------------

Now I want transition coverage for following condition.

- Transition for different values.

e.g. 1=>2, 1=>3 .... 1=>FF

2=>1, 2=>3 .... 2=>FF

But same transition is not valid. I want to ignore those.

e.g. 1=>1 2=>2 ,3=>3 .... FF=>FF (ignore these)

My Code:

-----------------------------------------------------------

covergroup covergrp_1;

coverpoint_1 : coverpoint var_1

{

bins var_bin[] = {[8'h1:8'hFF]};

}

coverpoint_trans : coverpoint var_1

{

bins trans_bin[] = ([8'h1:8'hFF]=>[8'h1:8'hFF]);

ignore_bins ignore_trans = ([8'h1:8'hFF] [*2]);

}

endgroup

-----------------------------------------------------------

But somehow it seems to be not working..

Any inputs?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...