function call

V

verilog designer

Guest
can i call a function which is written in another file.......
and i have included that file in current testbench.....
 
Yeah why not
It is a always done through Hierarchial name of the function .
Elaboration will resolve it.
I dont have time to write a test case at this moment. ( sorry )
but it is possible
Just try with fully instantiated name.

Alos, you can put all the functions in a library, Create a library,
VCS allows this.
-Parag
 
On Jul 17, 10:02 am, verilog designer <patankar.ga...@gmail.com>
wrote:
can i call a function which is written in another file.......
and i have included that file in current testbench.....
In principle yes. Was this more of "Can I do this" question or
something you tried and had some issues with? If later, consider
posting minimal code to show the problem. Remember half the solution
in describing the problem correctly :)

Cheers
Ajeetha, CVC
www.noveldv.com
 

Welcome to EDABoard.com

Sponsor

Back
Top