Re: [sv-bc] time literals

From: Surya Pratik Saha <spsaha_at_.....>
Date: Thu Aug 30 2007 - 06:53:50 PDT
Hi Alex,
realtime declaration is same as real declaration, but not same as real 
number as defined in BNF. So as per BNF, I don't this this is allowed.

Regards
Surya



-------- Original Message  --------
Subject: Re:[sv-bc] time literals
From: Gran, Alex <alex_gran@mentor.com>
To: Bresticker, Shalom <shalom.bresticker@intel.com>, sv-bc 
<sv-bc@eda-stds.org>
Date: Thursday, August 30, 2007 7:16:45 PM
> From 1800-2008 D3a   (I'm on the road and don't have easy access to my 
> other LRM versions)
>  
>  
>  
> A.6.2
> blocking_assignment ::=
>
> variable_lvalue *= *delay_or_event_control expression
>
> A.6.5
>
> delay_or_event_control ::=
>
> delay_control
>
> delay_control ::=
>
> **
>
> *# *delay_value
>
> A.2.2.3
>
> delay_value ::=
>
> unsigned_number
>
> | real_number
>
> | ps_identifier
>
> | time_literal
>
>  
> So, that seems to say value can be any of unsigned_number, 
> real_number, ps_identifier, time_literal
>  
> 6.12
>  
>
> The *realtime *declarations shall be treated synonymously with *real 
> *declarations and can be used interchangeably.
>
> So, as long as data type "real" is expressed as a "real_number"  I 
> think this is allowed.
>  
>  
> ~Alex
>  
>
> ------------------------------------------------------------------------
> *From:* owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] 
> *On Behalf Of *Bresticker, Shalom
> *Sent:* Thursday, August 30, 2007 5:26 AM
> *To:* sv-bc
> *Subject:* [sv-bc] time literals
>
> The following came up in the Verilog-AMS committee.
> I don't remember whether we discussed this specifically in the past.
> We certainly discussed closely related issues.
>
> Can one write:
>
> realtime td = 1.2345ns;
>
> # td; // as near a 1.2345ns delay as possible
>
> If not, where does the LRM say or at least imply not?
>
> Thanks,
> Shalom
>
> Shalom Bresticker
> Intel Jerusalem LAD DA
> +972 2 589-6852
> +972 54 721-1033
>
>
> -- 
> 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* <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 Thu Aug 30 06:55:05 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 30 2007 - 06:55:19 PDT