Re: Accessing nature attributes

From: Geoffrey.Coram <Geoffrey.Coram_at_.....>
Date: Tue Mar 28 2006 - 05:00:49 PST
David -
I think I found the right way to access abstol, it's in 5.2.2,
Accessing attributes, with a Syntax 5-2 that says
   attribute_reference ::=
     net_identifier.pot_or_flow.attribute_identifier

This syntax is on lage 359, in A.9 Expressions; an attribute_reference
is listed as a constant_expression.

-Geoffrey


David Miller wrote:
> 
> Hello all,
> I was wondering which of these code snippets are valid ways to access
> the abstol value of a nature.
> 
> (electrical in my example is the standard electrical discipline with
> natures Voltage and Current)
> 
> module bb();
>    electrical a;
>    real x;
>    analog begin
>      x = a.potential.abstol;
>      x = electrical.potential.abstol;
>      x = Voltage.abstol;
>    end
> endmodule
> 
> I have gone through the BNF and I can't seem to find anything that
> explicitly disallows the above combinations (or maybe since it is not
> explicitly in the BNF then is is illegal). I understand that I can use
> the nature name explicitly in ddt()/idt() to access the abstol but was
> wondering if I could use hierarchical access like above.
> 
> Thanks for any help given.
> 
> Regards
> Dave
Received on Tue Mar 28 05:00:54 2006

This archive was generated by hypermail 2.1.8 : Tue Mar 28 2006 - 05:01:12 PST