Re: Hierarchical reference questions

From: Dave Miller <David.L.Miller_at_.....>
Date: Thu Dec 14 2006 - 22:03:57 PST
So I didn't quite catch the resolution on this.
here in Graham's original example we decided that a connect function 
could be used to cast V(system.inst.net)
So this would actually be done as follows:

analog $display("Value is %g.", V(electrical ' (system.inst.net)));

And a casting "connect function" would be used to convert 
system.inst.net if needed.
Would the following also be allowed:

real x;
integer i;
electrical a;
analog begin
    i = V(electrical ' (system.inst.net));
    x = V(electrical ' (system.inst.net));
    V(a) <+ V(electrical ' (system.inst.net));
end

Or would this be an error. Now that I revisit the syntax that is going 
to be used, I see no reason to disallow it as the user is aware that 
they are explicitly casting the value, hence the result may not be as 
accurate as if they had passed it in as a port and used a connect module 
instead.

Cheers...
Dave
   
Graham Helwig wrote:
> For example:
>
>    myDesign system(.....);
>    // no not needed: electrical system.inst.inst.net;  // is this 
> required?
>    // no not needed: logic system.inst.net;            // is this 
> required?
>    analog $display("Value is %g.", V(system.inst.inst.net));
>    initial $display("Value is %b.", system.inst.net);
>
> Regards
> Graham
>
>
>


-- 
=====================================
-- David Miller
-- Design Technology (Austin)
-- Freescale Semiconductor
-- Ph : 512 996-7377 Fax: x7755
=====================================
Received on Thu Dec 14 22:04:04 2006

This archive was generated by hypermail 2.1.8 : Thu Dec 14 2006 - 22:04:16 PST