R
rajatkmitra@gmail.com
Guest
Hello,
I need to write a system verilog assertion that proves that a signal A holds its value for 2 clock cycles..Is this how this is written ??
//this is what the actual code is suppose to do -
//clk_div_2 is clk divided by 2.
always @(posedge clk)
if(clk_div_2)begin
if(enable)
A<= B;
end
Is this the correct way to write the assertion ??
property FOO;
int data;
@(posedge clk)
(enable, data=B) |=> ##2 (A==data);
endproperty
CHECK_FOO:assert_property(FOO);
Thanks for you help,
Raj
I need to write a system verilog assertion that proves that a signal A holds its value for 2 clock cycles..Is this how this is written ??
//this is what the actual code is suppose to do -
//clk_div_2 is clk divided by 2.
always @(posedge clk)
if(clk_div_2)begin
if(enable)
A<= B;
end
Is this the correct way to write the assertion ??
property FOO;
int data;
@(posedge clk)
(enable, data=B) |=> ##2 (A==data);
endproperty
CHECK_FOO:assert_property(FOO);
Thanks for you help,
Raj