[sv-ac] Feeding checker result into module

From: Korchemny, Dmitry <dmitry.korchemny@intel.com>
Date: Wed Jan 18 2012 - 05:30:10 PST

Hi all,

We have the following example in 17.3:

checker mutex (logic sig, event clock, output bit failure);
assert property (@clock $onehot0(sig)) failure = 1'b0; else failure = 1'b1;
endchecker : mutex
module m(wire bus, logic clk);
logic res, scan;
// ...
mutex check_bus(bus, posedge clk, res);
always @(posedge clk) scan <= res;
endmodule : m

It looks to me that this example is an overkill, and should be rewritten as:
checker mutex (logic sig, event clock, output bit failure);
assert property (@clock $onehot0(sig)) failure = 1'b0; else failure = 1'b1;
endchecker : mutex
module m(wire bus, logic clk);
logic scan;
// ...
mutex check_bus(bus, posedge clk, scan);
endmodule : m

What do you think?

Thanks,
Dmitry
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Jan 18 05:31:33 2012

This archive was generated by hypermail 2.1.8 : Wed Jan 18 2012 - 05:31:53 PST