shashi003
Newbie level 2
- Joined
- Sep 2, 2010
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,302
Hi,
Can we create multiple instances of a covergroup defined inside a class? It's giving an error when I do that?
class test;
bit [2:0] a;
covergroup cg;
A: coverpoint a { bins a0={0}; bins a1={1}; bins a2={2}; }
endgroup
function new(bit[2:0] a);
this.a = a;
cg c1=new();
cg c2=new();
endfunction
endclass
How can I create multiple instances of a covergroup?
Thanks,
Shashi.
Can we create multiple instances of a covergroup defined inside a class? It's giving an error when I do that?
class test;
bit [2:0] a;
covergroup cg;
A: coverpoint a { bins a0={0}; bins a1={1}; bins a2={2}; }
endgroup
function new(bit[2:0] a);
this.a = a;
cg c1=new();
cg c2=new();
endfunction
endclass
How can I create multiple instances of a covergroup?
Thanks,
Shashi.