Accessing nature attributes

From: David Miller <David.L.Miller_at_.....>
Date: Sun Mar 05 2006 - 22:05:58 PST
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

-- 
=====================================
-- David Miller
-- Design Technology (Adelaide)
-- Freescale Semiconductor
-- Ph: +61-(0)8-8168 3935 Fax: x3201
=====================================
Received on Sun Mar 5 22:06:18 2006

This archive was generated by hypermail 2.1.8 : Sun Mar 05 2006 - 22:07:08 PST