[sv-ac] RE: Q: Champion comments Mantis 2476 (http://www.verilog.org/mantis/view.php?id=2476)

From: Brad Pierce <Brad.Pierce@synopsys.com>
Date: Fri Jul 01 2011 - 10:39:19 PDT

> are queues generally considered part of the synthesizable subset of the language

If you limit the size by declaring the optional right bound, as in the following LRM example

bit q2[$:255]; // A queue whose maximum size is 256 bits

-- Brad

From: owner-sv-ac@eda.org [mailto:owner-sv-ac@eda.org] On Behalf Of Seligman, Erik
Sent: Friday, July 01, 2011 9:38 AM
To: Dave_Rich@mentor.com
Cc: sv-ac@eda-stds.org
Subject: [sv-ac] Q: Champion comments Mantis 2476 (http://www.verilog.org/mantis/view.php?id=2476)

Hi Dave-In your champion comments on this Mantis, you suggested that it might be nice to take a queue like {'1, 'x} as an arg to the new $countbits function.

   The SV-BC should review the control_bits functionality in $countbits. It's
   seems very un-Verilog-like to have an argument treat 1'b1 and 2'b01
   differently. I would rather it take a queue of logic. Then you could write
   {1} or {'x,'z} as arguments, and would not need to do the repeated bits
   trick. Alternatively make the argument 4-bits and always require the
   repeated bits.

I like the idea, but one issue occurs to me: are queues generally considered part of the synthesizable subset of the language? I'm wondering since I haven't encountered them in formal/assertion contexts before. If not, would this make it inadvisable to require them in a function likely to appear in assertions?

--
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 Jul 1 10:39:53 2011

This archive was generated by hypermail 2.1.8 : Fri Jul 01 2011 - 10:39:58 PDT