Re: [sv-ac] bind statement

From: Soumya Jyoti Wadader <soumya_at_.....>
Date: Thu Dec 07 2006 - 22:11:18 PST
Ed,
Please consider this case, does this example support that line?

interface counter_IFC;
logic reset;
logic [3:0] out ;
endinterface : counter_IFC

module counter (counter_IFC count, input bit clk );
always @( posedge clk)
begin
if(count.reset == 1'b1)
count.out <= 0;
else
count.out <= count.out + 1;
end

I inst3 (.*);
endmodule

interface I (counter_IFC count, input bit clk);

sequence seq;
@(posedge clk)
count.out[0] ##1 (!count.out[0] && count.out[1]);
endsequence

property p1;
@(posedge clk)
count.reset ##1 !count.reset |=> seq ;
endproperty

bind counter I inst2(count, clk);

always @(posedge clk)
assert property(p1);

endinterface

Thanks & Regards
Soumya
Received on Thu Dec 7 22:13:00 2006

This archive was generated by hypermail 2.1.8 : Thu Dec 07 2006 - 22:13:37 PST