Add Proposal | Add Analysis | Edit Class, Environment, or Release |
Number | 4
|
Category | enhancement
|
Synopsis | Allow assignment to an array
|
State | open
|
Class | enhancement
|
Arrival-Date | Jul 24 2001
|
Originator | Shalom Bresticker
|
Release | 2001b
|
Environment |
|
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. |
Fix |
|
Audit-Trail |
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... 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... |
Unformatted |
|
Hosted by Boyd Technology