[sv-ac] sv-ac: quick clarification questions of checker update regions

From: ben cohen <hdlcohen@gmail.com>
Date: Sun Jun 05 2011 - 23:28:13 PDT

Questions: or model shown below:
1) When is "x" sampled? Active Region
2) In what region is "z" changed? In the Reactive?
3) are my comments correct?

checker check(bit a, b, event clk, ...);
  bit x, y, z, v;
  assign x = a & b; // legal, changed in the Reactive Region?
  always_comb
    y = a & b; // legal, changed in the Reactive Region?
  always_ff @clk
    z <= !x; // , x sampled in active region? z changed in Reactive?
endchecker : check

module m;
   logic clk=0, a, b;
   initial forever #10 clk=!clk;
   check chk1(a, b, posedge clk);
    ...
endmodule : m
Ben

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sun Jun 5 23:29:14 2011

This archive was generated by hypermail 2.1.8 : Sun Jun 05 2011 - 23:29:29 PDT