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.

SystemVerilog Coverage iff

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
Hi all,

I am new to SystemVerilog.
My friend told me TYPE1 can be compiled and TYPE2 cannot be compiled, is it right?
BTW, I use cadence tools.

Code:
covergroup cg0@(negedge CLK);
   one_sig: coverpoint one_sig
        {
               //TYPE1 
               bins a = {1} iff(vaild )
               //TYPE2
               bins a = {1} iff(vaild ==2);
               ... ...
        }

Best regards,
Davy
 

Hi Davy,
LRM allows the Type 2 also. The following code works with VCS.

Code:
module cov_test ;
logic CLK;
logic a;
integer valid;
logic one_sig;
covergroup cg0@(negedge CLK);
    coverpoint one_sig
        {
               //TYPE1
               bins a = {1} iff(valid );
               //TYPE2
               bins a1 = {1} iff(valid ==2);
                       }
   endgroup : cg0
   endmodule : cov_test
Which version of NC did you use ?

HTH,
Ajeetha, CVC
www.noveldv.com
 

    davyzhu

    Points: 2
    Helpful Answer Positive Rating
Hi Ajeetha,

Thank you!

I use nc: 05.50-p004. And I will try the code later.

Best regards,
Davy
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top