[sv-bc] RE: For loop variable


Subject: [sv-bc] RE: For loop variable
From: David W. Smith (david.smith@synopsys.com)
Date: Mon Apr 21 2003 - 18:06:26 PDT


Fixed in LRM-304.

Regards
David

-----Original Message-----
From: Dave Rich [mailto:David.Rich@Synopsys.COM]
Sent: Monday, April 21, 2003 4:13 PM
To: David W. Smith
Subject: For loop variable

David,

There is an error in the description of the for loop variable. It has to
be automatic, otherwise it will not get initialized properly at the
start of each loop. This also means it cannot be referenced hierarchically.

In section 85.2 page 60
REPLACE

The local variable declared within a for loop can be referenced
hierarchically by adding a statement label
before the for loop (see Section 8.8).

WITH
The local variable declared within a for loop is equivalent to declaring
an automatic variable in an unnamed block.

-- 
--
Dave Rich
Principal Engineer, CAE, VTG
Tel:  650-584-4026
Cell: 510-589-2625
DaveR@Synopsys.com



This archive was generated by hypermail 2b28 : Mon Apr 21 2003 - 18:05:03 PDT