[sv-bc] streaming operator unpack operation

From: Kapil Kaushik <kkapil_at_.....>
Date: Mon Mar 10 2008 - 01:46:38 PDT
Hi,

 

I have some doubt regarding the LRM interpretation for streaming unpack
operation, when size(rhs) > size(lhs).

 

LRM (section 8.17) mentions the following:

 

The unpack operation accepts any bit-stream type on the right-hand side,
including a stream. The right-hand data being unpacked are allowed to
have more bits than are consumed by the unpack operation. However, if
more bits are needed than are provided by the right-hand expression, an
error is generated.

 

{>>{ a, b, c }} = 100'b1; // OK: unpack as above (4 bits unread)

 

The question here is which 4 bits (msb or lsb) will be unread and why?
Also what will be the corresponding results for the left streaming case

{<<{ a, b, c }} = 100'b1;

 

Thanks,

Kapil

 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Mar 10 01:48:59 2008

This archive was generated by hypermail 2.1.8 : Mon Mar 10 2008 - 01:52:32 PDT