[sv-bc] Re: Errata: inconsistent time literal rules

From: Brad Pierce <Brad.Pierce@synopsys.com>
Date: Wed Nov 03 2004 - 16:35:28 PST

In erratum 214

    http://www.eda.org/svdb/bug_view_page.php?bug_id=0000214

Steven Sharp points out various problems with the claim in
section 2.5 that

  "Note that if a time literal is used as an actual parameter to a
   module or interface instance, the current time unit and precision
   are those of the module or interface instance."

Even the form of this sentence is suspect, because it begins with
'Note', which usually indicates something informative, instead
of normative.

But, more importantly, this rule doesn't, in general, achieve its
goal of rescaling time literals. As Steven points out, in Verilog,
times values, like numeric values in most programming languages, are
just dimensionless numbers. They do not carry around their units with
them. This seems like an odd approach for a modeling language like
Verilog, but that's the way it is. For background on the issue, see --

http://research.microsoft.com/~akenn/units/RelationalParametricityAndUnitsOf
Measure.pdf

To me, it seems reasonable to just strike this problematic sentence.

(In a future release, perhaps a true time data type could be added as
an enhancement.)

What are the counterarguments for retaining this sentence?

-- Brad
Received on Wed Nov 3 16:35:05 2004

This archive was generated by hypermail 2.1.8 : Wed Nov 03 2004 - 16:35:25 PST