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


Subject: Re: [sv-bc] left/right justified and patched with zero
From: Greg Jaxon (Greg.Jaxon@synopsys.com)
Date: Mon Nov 03 2003 - 17:05:42 PST


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:08:35 PST