[sv-bc] Re: LRM dows not address context of streaming expression

From: Rajiv Garg <rajiv_garg_at_.....>
Date: Wed Dec 17 2008 - 01:03:21 PST
Correcting the last final output

Rajiv Garg wrote:
> Hi,
> LRM does not mention the context of a streaming expression. The table 
> 11-21 describing the context of expression has no mention of streaming 
> expression.
> For streaming expressions LRM only says- "If the variable is larger 
> than the stream, the stream is left-justified and zero-filled on the 
> right". Is context of streaming expressions self determined or not ?
>
> Consider the following
> assign out[7:0] = {<< 1 {{>> 1 {3'b110}}}};
>
> While evaluating this nested streaming expression , when we evaluate 
> {<<1{{>> 1 {3'b110}}}}
>
> If self determined,
> evaluation of leaf part {{>> 1 {3'b110}}}  will be 110
> and similarly final out put of expression will be out [7:0] = 01100000
>
> If not,
> evaluation of {{>> 1 {3'b110}}}  will be: 11000000 (padding done as 
> stream size is smaller than variable size)
> and final out in this case  out[7:0] =  *00000011*
>
>
> Thanks
> Rajiv
>
>
>
>
>
>
>


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Dec 17 01:04:39 2008

This archive was generated by hypermail 2.1.8 : Wed Dec 17 2008 - 01:05:37 PST