From: Shalom.Bresticker@motorola.com
Date: Thu Jan 02 2003 - 01:33:44 PST
Precedence: bulk
1. Legal values for the width expressions should be a
semantic restriction. Specifically, after the sentence,
"The width_expr shall be a constant expression.",
add the following:
"The value of the width_expr shall be a positive integer."
2. Change the Examples preceding Example 1,
from "reg [31:0] big_vect;" to
"dword[8*sel +:8] = big_vect[7:0]; // Replace the byte selected."
with the following:
<pre>
reg [31: 0] big_vect;
reg [0 :31] little_vect;
reg [63: 0] dword;
integer sel;
big_vect[ 0 +: 8] // == big_vect[ 7 : 0]
big_vect[15 -: 8] // == big_vect[15 : 8]
little_vect[ 0 +: 8] // == little_vect[0 : 7]
little_vect[15 -: 8] // == little_vect[8 :15]
dword[8*sel +: 8] // variable part-select with fixed width
</pre>
("reg" and "integer" keywords in bold)
http://boydtechinc.com/cgi-bin/issueproposal.pl?cmd=view&pr=228
This archive was generated by hypermail 2.1.4
: Thu Jan 02 2003 - 01:34:11 PST
and
sponsored by Boyd Technology, Inc.