How to pass an interface in checker.. endchecker block argument?

In reply to atanu.biswas:
The following works


let MSB=3; let LSB=0;
let DEPTH=8;
let FIFO_MSB = DEPTH*MSB;
let FIFO_LSB = LSB;
checker generic_fifo
    // #(MSB=3, LSB=0) //   ILLEGAL
    (input bit [MSB:LSB] in,
    input bit clk, read, write, reset,
    output logic [MSB:LSB] out,
    output logic full, empty );  
    //parameter DEPTH=4; //ILLEGAL  
endchecker 

BTW, from my SVA book, The following table provides an overview of where checkers are declared, used, and their contents.

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact http://cvcblr.com/home


  1. SVA Alternative for Complex Assertions
    https://verificationacademy.com/news/verification-horizons-march-2018-issue
  2. SVA: Package for dynamic and range delays and repeats - SystemVerilog - Verification Academy
  3. SVA in a UVM Class-based Environment
    https://verificationacademy.com/verification-horizons/february-2013-volume-9-issue-1/SVA-in-a-UVM-Class-based-Environment