Dharak Shah Posted October 25, 2012 Report Share Posted October 25, 2012 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.