vlog.h File Reference

Interface between C and Verilog code. More...

#include "verilog.h"

Functions

 verilog_tf_funcSig (vlog_ruby_relay)
 Callback for the $ruby_relay VPI task.
 verilog_tf_funcSig (vlog_ruby_init)
 Callback for the $ruby_init VPI task.
void vlog_bind_task (PLI_BYTE8 *apTaskName, verilog_tf_funcPtr(apTaskDef))
 Binds a C function to a VPI task, so that Verilog code can invoke the C function by calling the VPI task.


Detailed Description

Interface between C and Verilog code.


Function Documentation

verilog_tf_funcSig ( vlog_ruby_init   ) 

Callback for the $ruby_init VPI task.

Initializes and starts the Ruby interpreter with the same arguments as those given to the VPI task-call.

For example, to start the Ruby interpreter with the "-w" option and with the "hello_world.rb" script, the Verilog code would have a statement like this:

verilog_tf_funcSig ( vlog_ruby_relay   ) 

Callback for the $ruby_relay VPI task.

Transfers control from Verilog to Ruby code.

void vlog_bind_task ( PLI_BYTE8 apTaskName,
verilog_tf_funcPtr(apTaskDef)   
)

Binds a C function to a VPI task, so that Verilog code can invoke the C function by calling the VPI task.

For example, if we bound a VPI task named "$hello_world" to the C function hello_world(), then the hello_world() function would be invoked whenever Verilog code called the "$hello_world" VPI task.

Parameters:
apTaskName Name of the VPI task. For example, "$hello_world".
apTaskDef The C function which you want to associate with the given VPI task. For example, hello_world().


Generated on Thu Dec 7 15:09:44 2006 for Ruby-VPI by  doxygen 1.4.7