⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vpi_user_xl.c

📁 pli_handbook_examples_pc verilog hdl 与C的接口的典型例子
💻 C
字号:
/**********************************************************************
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -