Assertion to check valid transition from value A to value B on a bus and this transition is only valid when strobe is high. If I try to use $past(bus== A) -> (bus ==B) & (strobe ==1). It does not work

In reply to shals:
Your requirements are not clear.


let A=2'b10; let B=2'b11; 
ap_strobe: assert property(@(posedge clk) strobe |->  $past(bus== A) && (bus ==B)  ); 
/* above says that 
   when strobe==1, current value of bus==A, and past value of bus as B

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact Home - My cvcblr


  1. SVA Alternative for Complex Assertions
    Verification Horizons - March 2018 Issue | Verification Academy
  2. SVA: Package for dynamic and range delays and repeats | Verification Academy
  3. SVA in a UVM Class-based Environment
    SVA in a UVM Class-based Environment | Verification Horizons | Verification Academy