ISSUE 176

Number 176
Category errata
Synopsis 12.1.3.2, Example 5: wrong generate name
State lrmdraft
Class errata-simple
Arrival-DateOct 28 2002
Originator Shalom.Bresticker@motorola.com
Release 2001b, 12.1.3.2
Environment
Description
In 12.1.3.2, Example 5:

generate
  for (i=0; i<SIZE+1; i=i+1) begin:B1  // scope B1[i]
    M1 N1();                           // instantiates B1[i].N1[i]

In 2nd comment, should be just "B1[i].N1",
no "[i]" on N1.

By the way, the condition was probably intended to be i<SIZE, not SIZE+1.

Fix
In section 12.1.3.2 example 5: 

Change the for loop condition  on the first line after the 
generate <bold generate> from:

 (i=0; i<SIZE+1; i=i+1) to:
 (i=0; i<SIZE; i=i+1)  

On the next line in the comment change:

B1[i].N1[i]  to:
B1[i].N1   

Audit-Trail
Unformatted


Hosted by Boyd Technology