Add a mark at simulation end for vcd/lxt/lxt2 files.
[iverilog.git] / vpi / priv.c
blob8d6b534cfe78dd3a4bde61d4113895bc5a94b252
1 /*
2 * Copyright (c) 2003 Stephen Williams (steve@icarus.com)
4 * This source code is free software; you can redistribute it
5 * and/or modify it in source code form under the terms of the GNU
6 * General Public License as published by the Free Software
7 * Foundation; either version 2 of the License, or (at your option)
8 * any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19 #ifdef HAVE_CVS_IDENT
20 #ident "$Id: priv.c,v 1.2 2003/10/06 21:26:27 steve Exp $"
21 #endif
23 # include "sys_priv.h"
25 PLI_UINT64 timerec_to_time64(const struct t_vpi_time*time)
27 PLI_UINT64 tmp;
29 tmp = time->high;
30 tmp <<= 32;
31 tmp |= (PLI_UINT64) time->low;
32 return tmp;
36 * $Log: priv.c,v $
37 * Revision 1.2 2003/10/06 21:26:27 steve
38 * Include sys_priv.h instead of priv.h
40 * Revision 1.1 2003/10/02 21:16:11 steve
41 * Include timerec_to_time64 implementation.