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

Subversion Repositories vapi

[/] [vapi/] [trunk/] [vapi.h] - Blame information for rev 14

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 markom
/* vapi.h - Verification API Interface
2
   Copyright (C) 2001, Marko Mlinar, markom@opencores.org
3 6 erez
 
4
   This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
   This program is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 2 of the License, or
9
   (at your option) any later version.
10
 
11
   This program is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
 
16
   You should have received a copy of the GNU General Public License
17
   along with this program; if not, write to the Free Software
18
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19 2 markom
 
20 6 erez
/* Writes an unsigned long to server */
21
void vapi_write(unsigned long data);
22 2 markom
 
23 6 erez
/* Writes an unsigned long to server with relative ID */
24
void vapi_write_with_id(unsigned long relative_id, unsigned long data);
25 2 markom
 
26
/* Reads an unsigned long from server */
27
unsigned long vapi_read();
28
 
29 6 erez
/* Reads an unsigned long and vapi id from server */
30
void vapi_read_with_id(unsigned long *relative_id, unsigned long *data);
31
 
32 2 markom
/* Polls the port if anything is available and if do_read is set something is read from port. */
33
int vapi_waiting ();
34
 
35
/* Main function, actually the testcase, defined by VAPI user.  */
36 6 erez
extern int vapi_main();
37
 
38
/* Number of consecutive VAPI IDs the user needs */
39 11 erez
extern unsigned long num_vapi_ids;

powered by: WebSVN 2.1.0

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