PLI tab file and misc option

Guest
Hi

I am attempting to port an application to simulate in Modelsim.
Currently, the application is on VCS. The pli.tab file has a
misc=func_name option. I have ported the actual function call to the
veriusertfs format.

How do I call/pass the misc option in pli.tab to the veriusertfs
wrapper?

thanks
~ashwin
 
On Jun 21, 2:35 pm, ashwi...@gmail.com wrote:
Hi

I am attempting to port an application to simulate in Modelsim.
Currently, the application is on VCS. The pli.tab file has a
misc=func_name option. I have ported the actual function call to the
veriusertfs format.

How do I call/pass the misc option in pli.tab to the veriusertfs
wrapper?

thanks
~ashwin



In VCS we do it this way ( you might be knowing that)
$pli call=<call_func> misc=<misc_func_name>

Try seeing Stuarts book for further reference. As far as I remember,
the following is the solution

s_tfcell veriusertfs[] =
{
{userfunction, // type of PLI routine - usertask or
userfunction
0, // user_data value
fseq_checktf, // checktf() routine
fseq_sizetf, // sizetf() routine
fseq_calltf, // calltf() routine
0, // misctf() routine <--- here is where you
name it
"$fibonacci" // "$tfname" system task/function name
},
{0} // final entry must be 0
};



Try it , I think it will work :)
 

Welcome to EDABoard.com

Sponsor

Back
Top