Re: [sv-bc] left/right justified and patched with zero


Subject: Re: [sv-bc] left/right justified and patched with zero
From: Andy Tsay (andytsay@yahoo.com)
Date: Mon Nov 03 2003 - 17:13:14 PST


Hi,

Let me try to put it in another way.
For the following examples:
  byte unpk[0:13] = "hello world\n";
  byte [0:13] pk = "hello world\n";

What are the values for unpk[12], unpk[13], pk[0], and pk[1]?

Thanks,
Andy

--- Greg Jaxon <Greg.Jaxon@synopsys.com> wrote:
> Andy Tsay wrote:
>
> > byte unpk[0:13] = "hello world\n";
> > // same as unpk = {"hello world\n",8'b0, 8'b0}; ???
>
> Please ask this in the form
>
> // same as unpk = "hello world\n\0\0"; ???
>
> Since as posed it yields a length error trying to put three things into
> and array of 14 things.
>
> Greg Jaxon
>
>



This archive was generated by hypermail 2b28 : Mon Nov 03 2003 - 17:17:59 PST