May 30, 2006 #1 D 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 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
May 30, 2006 #2 A aji_vlsi Advanced Member level 2 Joined Sep 10, 2004 Messages 643 Helped 85 Reputation 170 Reaction score 12 Trophy points 1,298 Location Bangalore, India Activity points 4,944 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
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
May 31, 2006 #3 D 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 Ajeetha, Thank you! I use nc: 05.50-p004. And I will try the code later. Best regards, Davy