[sv-ec] virtual interfaces restriction

From: Daniel Mlynek <daniel.mlynek_at_.....>
Date: Thu Jan 15 2009 - 06:11:10 PST
Mantis 1441 complatins that sensivity list in virtaul interface usage
restriction is not well defined.
 <http://www.verilog.org/mantis/view.php?id=1441>
http://www.verilog.org/mantis/view.php?id=1441
That is true that sensivity list should be defined.
 
But imho there is no sense for forbiding virtual interfaces on sensivity
list as this is hard to define. The 2nd restriction about assign is ok - as
vi was not added for design construct and assign is purely design one.
Summarizing I do not see the reason to forbid the code:
 
module top;
        iface if1();
        iface if2();
        virtual iface vi=if1;
 
        always @(vi.a) begin //vi on sensivity list
                $display($time);
        end
 
        initial
                forever @(vi.a) 
                $display("2 %d",$time);
endmodule
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jan 15 06:19:06 2009

This archive was generated by hypermail 2.1.8 : Thu Jan 15 2009 - 06:21:08 PST