ISSUE 74

Number 74
Category errata
Synopsis : 4.1.14: unclear examples of illegal concatenations
State closed
Class duplicate
Arrival-DateJul 17 2002
Originator Shalom Bresticker <Shalom.Bresticker@motorola.com>
Release 2001b
Environment

Description
--------------C7A90685F479F62606DF1D94
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Section 4.1.14 contains the following:

Another form of concatenation is the replication operation. The first
expression shall be a non-zero, non-X and non-Z constant expression, the
second expression follows the rules for concatenations. This example
replicates "w" 4 times.

{4{w}} // This is equivalent to {w, w, w, w}
a[31:0] = {1`b1, {0{1`b0}} }; //illegal. RHS becomes {1`b1,;
a[31:0] = {1`b1, {1`bz{1`b0}} }; //illegal. RHS becomes {1`b1,;
a[31:0] = {1`b1, {1`bx{1`b0}} }; //illegal. RHS becomes {1`b1,;

The comments on the three examples of illegal concatenations look
strange.
"RHS becomes {1 b1,;" looks cut off.

I propose to just leave them as "illegal". Anyone who reads the
preceding paragraph will immediately understand the reason. The existing
comments is just confusing.

--
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

"The devil is in the details."



--------------C7A90685F479F62606DF1D94
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

Section 4.1.14 contains the following:

Another form of concatenation is the replication operation. The first
expression shall be a non-zero, non-X and non-Z constant expression, the
second expression follows the rules for concatenations. This example replicates
"w" 4 times.

{4{w}} // This is equivalent to {w, w, w, w}

a[31:0] = {1`b1, {0{1`b0}} };    //illegal. RHS
becomes {1`b1,;


a[31:0] = {1`b1, {1`bz{1`b0}} }; //illegal. RHS becomes {1`b1,;

a[31:0] = {1`b1, {1`bx{1`b0}} }; //illegal. RHS becomes {1`b1,;

The comments on the three examples of illegal concatenations look strange.

"RHS becomes {1 b1,;" looks cut off.

I propose to just leave them as "illegal". Anyone who reads the
preceding paragraph will immediately understand the reason. The existing
comments is just confusing.

-- 
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

"The devil is in the details."

 

--------------C7A90685F479F62606DF1D94--

Fix

Audit-Trail
State-Changed-From-To: open->closed
State-Changed-By: admin
State-Changed-When: Tue Jul 23 12:42:19 2002
State-Changed-Why:
duplicate
Unformatted


Hosted by Boyd Technology