[sv-bc] Name resolution of functions in $unit -- forward references

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Fri Dec 21 2007 - 09:01:42 PST
Will the following design be legal under the clarified name resolution
rules?

     function automatic g(input in);
       return f(in);  // apparent forward reference
     endfunction:g

     function automatic f(input in);
       return in;
     endfunction:f

     module test(input in, output out);
       assign out = g(in);
     endmodule

How about the following design?

     function automatic g(input in);
       return f(in);  // apparent forward reference
     endfunction:g

     module test(input in, output out);
       assign out = g(in);
     endmodule

     function automatic f(input in);
       return in;
     endfunction:f

Thanks,

-- Brad


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Dec 21 09:04:52 2007

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2007 - 09:05:33 PST