2010-10-08 05:13:30 +02:00
|
|
|
#ifndef __sv_vpi_user_H
|
|
|
|
|
#define __sv_vpi_user_H
|
|
|
|
|
/*
|
2011-10-12 03:27:45 +02:00
|
|
|
* Copyright (c) 2010-2011 Stephen Williams (steve@icarus.com)
|
2010-10-08 05:13:30 +02:00
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-08-29 03:41:23 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-10-08 05:13:30 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
# include "vpi_user.h"
|
|
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) || defined (__CYGWIN32__)
|
|
|
|
|
# define DLLEXPORT __declspec(dllexport)
|
|
|
|
|
#else
|
|
|
|
|
# define DLLEXPORT
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
# define EXTERN_C_START extern "C" {
|
|
|
|
|
# define EXTERN_C_END }
|
|
|
|
|
#else
|
|
|
|
|
# define EXTERN_C_START
|
|
|
|
|
# define EXTERN_C_END
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef __GNUC__
|
|
|
|
|
# undef __attribute__
|
|
|
|
|
# define __attribute__(x)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
EXTERN_C_START
|
|
|
|
|
|
|
|
|
|
/********* OBJECT TYPES ***********/
|
2013-02-17 23:42:07 +01:00
|
|
|
#define vpiPackage 600
|
2010-10-08 05:13:30 +02:00
|
|
|
#define vpiLongIntVar 610
|
|
|
|
|
#define vpiShortIntVar 611
|
|
|
|
|
#define vpiIntVar 612
|
|
|
|
|
#define vpiByteVar 614
|
|
|
|
|
#define vpiLogicVar vpiReg
|
2012-11-17 04:13:06 +01:00
|
|
|
#define vpiClassVar 615
|
2012-06-18 03:22:50 +02:00
|
|
|
#define vpiStringVar 616
|
2011-04-03 00:50:49 +02:00
|
|
|
#define vpiBitVar 620
|
2012-07-14 03:41:41 +02:00
|
|
|
#define vpiArrayVar vpiRegArray
|
2010-10-08 05:13:30 +02:00
|
|
|
|
2010-11-18 05:00:23 +01:00
|
|
|
/********* TYPESPECS *************/
|
2013-03-23 04:07:08 +01:00
|
|
|
#define vpiClassTypespec 630
|
2010-11-18 05:00:23 +01:00
|
|
|
#define vpiEnumTypespec 633
|
|
|
|
|
#define vpiEnumConst 634
|
|
|
|
|
|
2012-12-10 02:59:16 +01:00
|
|
|
#define vpiClassDefn 652
|
|
|
|
|
|
2011-10-12 03:27:45 +02:00
|
|
|
/********* One-to-One ***********/
|
|
|
|
|
#define vpiBaseTypespec 703
|
|
|
|
|
|
2010-11-18 05:00:23 +01:00
|
|
|
/********* Many-to-One ***********/
|
|
|
|
|
#define vpiMember 742
|
|
|
|
|
|
2010-10-08 05:13:30 +02:00
|
|
|
EXTERN_C_END
|
|
|
|
|
|
|
|
|
|
#endif
|