vpi_user_xl.c

来自「pli_handbook_examples_pc verilog hdl 与C」· C语言 代码 · 共 33 行

C
33
字号
/**********************************************************************
 * Example vpi_user.c file
 *
 * vpi_user.c file to register PLI applications using the VPI library.
 *
 * For the book, "The Verilog PLI Handbook" by Stuart Sutherland
 *  Book copyright 1999, Kluwer Academic Publishers, Norwell, MA, USA
 *   Contact: www.wkap.il
 *  Example copyright 1998, Sutherland HDL Inc, Portland, Oregon, USA
 *   Contact: www.sutherland.com or (503) 692-0898
 *********************************************************************/

#include "vpi_user.h"

/*** prototypes of the PLI registration routines ***/

/* extern void PLIbook_UtilTest_register(); /* */
/* extern void PLIbook_ListPorts_register(); /* */
/* extern void PLIbook_PortInfo_register(); /* */
 extern void PLIbook_CountPrims_register(); /* */
/* extern void PLIbook_TestInvokeOptions_register(); /* */
 
void (*vlog_startup_routines[])() = 
{
  /* PLIbook_UtilTest_register, /* */
  /* PLIbook_ListPorts_register, /* */
  /* PLIbook_PortInfo_register, /* */
  PLIbook_CountPrims_register, /* */
  /* PLIbook_TestInvokeOptions_register, /* */
  0 /*** final entry must be 0 ***/

};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?