FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2004, 05:05 PM
Lee
Guest
 
Posts: n/a
Default Why do we need "check" "call" "misc" in PLI?

Hi,

When PLI is uded in VCS or other simulator, we can define 3 functions
for one custom system call in Verilog ("check" "call" "misc"). Why do
we need "check" "call" "misc" in PLI? Since only one system call, we
only need to associate one function with it, right?


Thanks,
Reply With Quote
  #2 (permalink)  
Old 05-17-2004, 03:42 PM
Edward Arthur
Guest
 
Posts: n/a
Default Re: Why do we need "check" "call" "misc" in PLI?

Lee wrote:
> Hi,
>
> When PLI is uded in VCS or other simulator, we can define 3 functions
> for one custom system call in Verilog ("check" "call" "misc"). Why do
> we need "check" "call" "misc" in PLI? Since only one system call, we
> only need to associate one function with it, right?
>
>
> Thanks,


Cut and pasted from the standard...

A checktf PLI application shall be called when the user-defined system
task or function name is encountered
during parsing or compiling the Verilog HDL source code.

A calltf PLI application shall be called each time the associated
user-defined system task or function is executed
within the Verilog HDL source code.

A misctf PLI application shall be called by a Verilog software product
for miscellaneous reasons while the
Verilog HDL source description is being executed. Among these reasons
can be the end of a simulation time
step, a logic value change on a user-defined system task/function
argument, or the execution of the $stop
and $finish built-in system tasks.

/Ed

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:54 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved