RE: [sv-bc] part selects on arbitrary expressions

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sun Mar 11 2007 - 08:09:42 PDT
I repeat, you have always been able to do this. It is clear that the
selection of a single element of an array is the type of the element.
The LRMs are full of this.

Shalom

> -----Original Message-----
> From: Feldman, Yulik
> Sent: Sunday, March 11, 2007 5:07 PM
> To: Bresticker, Shalom
> Cc: 'sv-bc@server.eda.org'
> Subject: RE: [sv-bc] part selects on arbitrary expressions
> 
> Note that "b" is an unpacked array. A one-element unpacked array is
> not assignment compatible to the type of the element of the array. The
> question is whether the type of "b[0]" and "b[0:0]" is a one-element
> unpacked array or the type of the element itself.
> 
> --Yulik.
> 
> -----Original Message-----
> From: Bresticker, Shalom
> Sent: Sunday, March 11, 2007 4:51 PM
> To: Feldman, Yulik
> Cc: 'sv-bc@server.eda.org'
> Subject: RE: [sv-bc] part selects on arbitrary expressions
> 
> These have always been legal, even in Verilog-1995. Just replace 'bit'
> by 'reg'.
> 
> > bit a;
> > bit b [1:0];
> > assign a = b[0];
> >
> > A similar issue is with part selects, selecting one element only:
> >
> > assign a = b[0:0];

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sun Mar 11 08:10:06 2007

This archive was generated by hypermail 2.1.8 : Sun Mar 11 2007 - 08:10:31 PDT