S
Shenli
Guest
Hi all,
When do data-oriented functional coverage, can we put the covergroup
in transaction class directly? And is there any short guideline how to
do?
For example,
I have transaction define class like:
Code:
//-----------
class video_pkg_c;
rand bit [7:0] opcode_1;
rand bit [7:0] opcode_2;
rand bit [15:0] data;
//----
// can I add covergroup here?
//----
endclass
class video_pkg_driver;
... ...
video_pkg_c video_pkg;
video_pkg = new();
rand_result = video_pkg.randomize();
... ...
endclass
//-----------
I use Cadence IUS583.
Best regards,
Davy
When do data-oriented functional coverage, can we put the covergroup
in transaction class directly? And is there any short guideline how to
do?
For example,
I have transaction define class like:
Code:
//-----------
class video_pkg_c;
rand bit [7:0] opcode_1;
rand bit [7:0] opcode_2;
rand bit [15:0] data;
//----
// can I add covergroup here?
//----
endclass
class video_pkg_driver;
... ...
video_pkg_c video_pkg;
video_pkg = new();
rand_result = video_pkg.randomize();
... ...
endclass
//-----------
I use Cadence IUS583.
Best regards,
Davy