#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. |
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:
$ruby_init("-w", "hello_world.rb");
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.
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(). |