RE: enhancement/4: Allow assignment to an array

From: Michael McNamara (mac@verisity.com)
Date: Tue Jul 24 2001 - 08:20:03 PDT


The following reply was made to PR enhancement/4; it has been noted by GNATS.

From: Michael McNamara <mac@verisity.com>
To: btf-bugs@boyd.com
Cc: btf-bugs-direct@boyd.com
Subject: RE: enhancement/4: Allow assignment to an array
Date: Tue, 24 Jul 2001 08:10:21 -0700

 Shalom.Bresticker@motorola.com writes:
> Precedence: bulk
>
>
>
> >Number: 4
> >Category: enhancement
> >Originator: Shalom Bresticker
> >Description:
>
> Section 3.10 (Arrays) says,
> "An element can be assigned a value in a single assignment,
> but complete or partial array dimensions cannot."
>
> Allow it.
>
 
 Are you suggesting that the following be legal:
 
     module foo;
 
       reg [31:0] a [0:1024][0:1024];
       reg [31:0] b [0:1024][0:1024];
 
       initial begin
         a [6:20][3:4] = b [16:30][98:99]; // copy whole ranges?
         a [46:50] = b [16:30]; // copy whole slices?
         a = 0; // set every location to zero?
       end
     endmodule
 
 This seems like a big change...



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:43 PDT and
sponsored by Boyd Technology, Inc.