ISSUE 351

Number 351
Category errata
Synopsis 9.2.2, Example 7: unclear comment
State lrmdraft
Class errata-simple
Arrival-DateMay 26 2003
Originator Shalom Bresticker <Shalom.Bresticker@motorola.com>
Release 2001b: 9.2.2, Example 7
Environment
Description
In 9.2.2, Example 6, there is code

initial begin
// starts at time 0, does not hold the block
r1 = 0 ;
// makes assignments to r1 without cancelling previous assignments
for (i=0; i <= 5; i=i+1)
r1 <= #(i*10) i[0] ;
end

The first comment is unclear, particularly "does not hold the block".
It is an inheritance from Cadence LRM, but it is not clear there, either.

I suggest to delete the first comment entirely.

Also, it is unclear to me why the line "r1 = 0;" was added.
The example seems to work even without it.

However, there is no need to delete it.

--
Shalom Bresticker Shalom.Bresticker@motorola.com
Design & Reuse Methodology Tel: +972 9 9522268
Motorola Semiconductor Israel, Ltd. Fax: +972 9 9522890
POB 2208, Herzlia 46120, ISRAEL Cell: +972 50 441478



Fix
In 9.2.2, Example 7:

module multiple4;
reg r1;
reg [2:0] i;

initial begin
// starts at time 0, does not hold the block
r1 = 0;
// makes assignments to r1 without cancelling previous assignments
for (i = 0; i <= 5; i = i+1)
r1 <= # (i*10) i[0];
end
endmodule

DELETE the lines

"// starts at time 0, does not hold the block
r1 = 0; "

Audit-Trail
Fix replaced by Shalom.Bresticker@freescale.com on Sun Oct 31 23:55:13 2004

In 9.2.2, Example 7:

module multiple4;
reg r1;
reg [2:0] i;

initial begin
// starts at time 0, does not hold the block
r1 = 0;
// makes assignments to r1 without cancelling previous assignments
for (i = 0; i <= 5; i = i+1)
r1 <= # (i*10) i[0];
end
endmodule

DELETE the lines

"// starts at time 0, does not hold the block
r1 = 0; "



Unformatted


Hosted by Boyd Technology