Guest User

Cover passes but assume fails

a guest
May 28th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module test(
  2.         input clock,
  3.         input reset
  4. );
  5. `ifdef FORMAL
  6.         wire x;
  7.         initial f_past_valid = 1'b0;
  8.  
  9.         always @(posedge clock) begin
  10.                 f_past_valid <= 1'b1;
  11.                 if (reset) begin
  12.                         f_past_valid <= 1'b0;
  13.                 end
  14.  
  15.                 // works (comment out the assume)
  16.                 cover(f_past_valid && x == 1'b1);
  17.  
  18.                 // doesn't work -- `Assumptions are unsatisfiable!`
  19.                 assume(f_past_valid && x == 1'b1);
  20.         end
  21. `endif
  22. endmodule
Add Comment
Please, Sign In to add comment