Re: [sv-ac] RE: Call to vote: Due March 2 (resend, typo fix)

From: ben cohen <hdlcohen@gmail.com>
Date: Fri Feb 25 2011 - 09:46:38 PST

We could make a reference to section * 5.7.1 Integer literal constants*
That states: "If the size of the unsigned number is smaller than the size
specified for the literal constant, the unsigned number shall be padded to
the left with zeros. If the leftmost bit in the unsigned number is an x or a
z, then an x or a z shall be used to pad to the left, respectively. If the
size of the unsigned number is larger than the size specified for the
literal constant, the unsigned number shall be truncated from the left."

Thus, - $countbits (expression, 2’b1) returns the number of bits in
expression having values 1 or 0.
Per 5.7.1, this is equivalent to $countbits (expression, 2’b01)
Ben Cohen

On Fri, Feb 25, 2011 at 9:24 AM, Little Scott-B11206
<B11206@freescale.com>wrote:

> Mantis 2476 __X__ Yes ____ No
>
> http://www.verilog.org/mantis/view.php?id=2476
>
> http://www.eda-stds.org/mantis/file_download.php?file_id=4816&type=bug
>
>
>
> Assuming that the following small issues are handled.
>
>
>
> Is the statement:
>
> - $countbits (expression, 2’b1) returns the number of bits in expression
> having values 1 or 0.
>
> I believe it is more clear if it reads 2’b10.
>
>
>
> $isunknown is also provided for convenience and backward compatibility.
> Why is not introduced and the equivalence defined with the rest of those
> functions?
>
>
>
> In the first part of the proposal the Sampled Value System Functions is
> listed as section 20.13 and then in the last section it is listed as 20.14.
> I think it would be best to be consistent within the proposal. Either
> assume the new section has been inserted or assume it is has not. I am not
> sure which is best.
>
>
>
> Mantis 2804 __X__ Yes ____ No
>
> http://www.eda-stds.org/svdb/view.php?id=2804
>
> http://www.eda-stds.org/mantis/file_download.php?file_id=4814&type=bug
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Feb 25 09:47:30 2011

This archive was generated by hypermail 2.1.8 : Fri Feb 25 2011 - 09:47:35 PST