[sv-ec] $monitor on assictive, dynamic array or queue items

From: Daniel Mlynek <daniel.mlynek_at_.....>
Date: Wed Sep 23 2009 - 00:15:02 PDT
LRM does not define if dynamic arrays items are allowed in $monitor see
attached code .
Thre is mantis : http://www.verilog.org/mantis/view.php?id=1967 about
additional restriction for $monitor but it does not mention the dynamic
arrays.
So is below code legal or should be blocked:
 
 
module top;
    int i [] = new[2] ('{1, 2});
    initial    begin
        $monitor(i[0], i[1]);
        #1;
            i[0] = 5;
        #1;
        i.delete;
        #1;
        i[1] = 5;
        #1;
    end
endmodule

 

DANiel



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Sep 23 00:16:41 2009

This archive was generated by hypermail 2.1.8 : Wed Sep 23 2009 - 00:17:58 PDT