Checker for phase of clocks using property

In reply to ben@SystemVerilog.us:

The waveforms clarified the requirements. You can use multiclocking in the assertion. Thus,


ap_aligned: assert property(
  @(posedge div_clk_strb) 1'b1 ##0 
  @(posedge dfe_clk_src) !clk_div1 && !clk_div2 && !clk_div4 ##0 
  @(negedge dfe_clk_src) clk_div1 && clk_div2 && clk_div4 );   
 

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


  1. VF Horizons:PAPER: SVA Alternative for Complex Assertions | Verification Academy
  2. http://systemverilog.us/vf/SolvingComplexUsersAssertions.pdf
  3. “Using SVA for scoreboarding and TB designs”
    http://systemverilog.us/papers/sva4scoreboarding.pdf
  4. “Assertions Instead of FSMs/logic for Scoreboarding and Verification”
    October 2013 | Volume 9, Issue 3 | Verification Academy
  5. SVA in a UVM Class-based Environment
    SVA in a UVM Class-based Environment | Verification Horizons | Verification Academy