[sv-ac] sampled value function and dynamic auomatic references

From: Daniel Mlynek <danielm@aldec.com.pl>
Date: Tue Sep 17 2013 - 02:40:02 PDT
LRM has removed restrcition that automatic vars cannot be used in 
sampled value function. (http://www.verilog.org/mantis/view.php?id=4252)
Proposed solution has sens for $past but what aoub other sampled value 
function how those should work with auomatic variables? ie
function automatic foo;
     int a;
     bit clk;
     $display($rose(a, (posedge clk);
endfunction

LRM also do not mention about dynamic var ie:
class C;
   int a;
   bit clk;
   function automatic foo;
     $display($past(a, (posedge clk);
   endfunction
endclass

C c;
     iniitial $display($past(c.a, (posedge c.clk);

How should code like above behave?

DANiel

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Sep 17 02:40:36 2013

This archive was generated by hypermail 2.1.8 : Tue Sep 17 2013 - 02:40:54 PDT