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

From: Feldman, Yulik <yulik.feldman_at_.....>
Date: Sun Mar 11 2007 - 08:06:30 PDT
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:06:51 2007

This archive was generated by hypermail 2.1.8 : Sun Mar 11 2007 - 08:07:33 PDT