Re: [sv-bc] is unbased, unsized literal allowed in concat?

From: <Shalom.Bresticker_at_.....>
Date: Tue Mar 22 2005 - 11:58:23 PST
I could say:

The LRM says, 
"In a self-determined context these literals have a width of 1 bit".

(I think there should be a comma after the word 'context'.)

A concat is a self-determined context.

So this would be like {1'b1, 1'b0}, which would then be extended to 4 bits,
giving 4'b0010.

On Tue, 22 Mar 2005, Paul Graham wrote:

> Is this code legal?
> 
>     wire [3:0] x = { '1, '0 };
> 
> An unsized literal (like an integer 1) is not allowed in a
> concat.  Does an unbased literal like '1 count as an unsized
> literal in this case?

Shalom

-- 
Shalom.Bresticker @freescale.com                     Tel: +972 9  9522268
Freescale Semiconductor Israel, Ltd.                 Fax: +972 9  9522890
POB 2208, Herzlia 46120, ISRAEL                     Cell: +972 50 5441478
Received on Tue Mar 22 11:58:34 2005

This archive was generated by hypermail 2.1.8 : Tue Mar 22 2005 - 11:58:59 PST