OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [or1ksim/] [or1ksim-0.4.0rc1/] [vapi/] [vapi.h] - Diff between revs 19 and 105

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 19 Rev 105
/* vapi.h - Verification API Interface
/* vapi.h - Verification API Interface
 
 
   Copyright (C) 2001, Marko Mlinar, markom@opencores.org
   Copyright (C) 2001, Marko Mlinar, markom@opencores.org
   Copyright (C) 2008 Embecosm Limited
   Copyright (C) 2008 Embecosm Limited
 
 
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
 
 
   This file is part of Or1ksim, the OpenRISC 1000 Architectural Simulator.
   This file is part of Or1ksim, the OpenRISC 1000 Architectural Simulator.
 
 
   This program is free software; you can redistribute it and/or modify it
   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the Free
   under the terms of the GNU General Public License as published by the Free
   Software Foundation; either version 3 of the License, or (at your option)
   Software Foundation; either version 3 of the License, or (at your option)
   any later version.
   any later version.
 
 
   This program is distributed in the hope that it will be useful, but WITHOUT
   This program is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   more details.
   more details.
 
 
   You should have received a copy of the GNU General Public License along
   You should have received a copy of the GNU General Public License along
   with this program.  If not, see <http://www.gnu.org/licenses/>.  */
   with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 
/* This program is commented throughout in a fashion suitable for processing
/* This program is commented throughout in a fashion suitable for processing
   with Doxygen. */
   with Doxygen. */
 
 
 
 
#ifndef  VAPI__H
#ifndef  VAPI__H
#define  VAPI__H
#define  VAPI__H
 
 
/*! Maximum value for VAPI device id */
/*! Maximum value for VAPI device id */
#define VAPI_MAX_DEVID 0xFFFF
#define VAPI_MAX_DEVID 0xFFFF
 
 
/* Types of commands that can be written to the VAPI log file */
/* Types of commands that can be written to the VAPI log file */
typedef enum
typedef enum
{
{
  VAPI_COMMAND_REQUEST = 0,      /* Data coming from outside world to device */
  VAPI_COMMAND_REQUEST = 0,      /* Data coming from outside world to device */
  VAPI_COMMAND_SEND = 1,        /* Device writing data to the outside world */
  VAPI_COMMAND_SEND = 1,        /* Device writing data to the outside world */
  VAPI_COMMAND_END = 2          /* End of log for device */
  VAPI_COMMAND_END = 2          /* End of log for device */
} VAPI_COMMAND;
} VAPI_COMMAND;
 
 
/* Prototypes for external use */
/* Prototypes for external use */
extern int   vapi_init ();
extern int   vapi_init ();
extern void  vapi_done ();
extern void  vapi_done ();
extern void  vapi_install_handler (unsigned long id,
extern void  vapi_install_handler (unsigned long id,
                                   void (*read_func) (unsigned long,
                                   void (*read_func) (unsigned long,
                                                      unsigned long,
                                                      unsigned long,
                                                      void *),
                                                      void *),
                                  void *dat);
                                  void *dat);
extern void  vapi_install_multi_handler (unsigned long base_id,
extern void  vapi_install_multi_handler (unsigned long base_id,
                                         unsigned long num_ids,
                                         unsigned long num_ids,
                                         void (*read_func) (unsigned long,
                                         void (*read_func) (unsigned long,
                                                            unsigned long,
                                                            unsigned long,
                                                            void *),
                                                            void *),
                                         void *dat);
                                         void *dat);
extern void  vapi_check ();
extern void  vapi_check ();
extern int   vapi_num_unconnected (int printout);
extern int   vapi_num_unconnected (int printout);
extern void  vapi_send (unsigned long id,
extern void  vapi_send (unsigned long id,
                        unsigned long data);
                        unsigned long data);
extern void  vapi_write_log_file (VAPI_COMMAND command,
extern void  vapi_write_log_file (VAPI_COMMAND command,
                                  unsigned long device_id,
                                  unsigned long device_id,
                                  unsigned long data);
                                  unsigned long data);
extern void  reg_vapi_sec ();
extern void  reg_vapi_sec ();
 
 
#endif /* VAPI__H */
#endif /* VAPI__H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.