2008-06-10 01:25:10 +00:00
|
|
|
|
// -*- C++ -*-
|
2006-08-26 11:35:28 +00:00
|
|
|
|
//*************************************************************************
|
|
|
|
|
// DESCRIPTION: Verilator: Configure source; system configuration
|
|
|
|
|
//
|
2008-06-10 01:25:10 +00:00
|
|
|
|
// This file is part of Verilator.
|
2006-08-26 11:35:28 +00:00
|
|
|
|
//
|
2007-07-18 15:01:39 +00:00
|
|
|
|
// Author: Wilson Snyder <wsnyder@wsnyder.org>
|
2006-08-26 11:35:28 +00:00
|
|
|
|
//
|
2008-04-25 12:14:27 +00:00
|
|
|
|
// Code available from: http://www.veripool.org/verilator
|
2006-08-26 11:35:28 +00:00
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
//
|
2009-01-02 16:47:39 +00:00
|
|
|
|
// Copyright 2003-2009 by Wilson Snyder. This program is free software; you can
|
2006-08-26 11:35:28 +00:00
|
|
|
|
// redistribute it and/or modify it under the terms of either the GNU
|
2009-05-04 21:07:57 +00:00
|
|
|
|
// Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
|
// Version 2.0.
|
2006-08-26 11:35:28 +00:00
|
|
|
|
//
|
|
|
|
|
// Verilator 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.
|
2008-06-10 01:25:10 +00:00
|
|
|
|
//
|
2006-08-26 11:35:28 +00:00
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
|
|
|
|
//**********************************************************************
|
|
|
|
|
//**** Version and host name
|
|
|
|
|
|
2009-10-27 00:19:23 +00:00
|
|
|
|
#define DTVERSION "Verilator 3.720 2009/10/26"
|
2006-08-26 11:35:28 +00:00
|
|
|
|
|
|
|
|
|
//**********************************************************************
|
|
|
|
|
//**** Functions
|
|
|
|
|
//* Set define if we have function: strdup (string)
|
|
|
|
|
#define HAVE_STRDUP 0
|
|
|
|
|
|
|
|
|
|
//**********************************************************************
|
|
|
|
|
//**** Headers
|
|
|
|
|
// Set define if we have header: <fcntl.h>
|
|
|
|
|
#define HAVE_FCNTL_H 0
|
|
|
|
|
|
|
|
|
|
// Set define if we have header: <math.h>
|
|
|
|
|
#define HAVE_MATH_H 1
|
|
|
|
|
|
|
|
|
|
// Set define if we have header: <unistd.h>
|
|
|
|
|
#define HAVE_UNISTD_H 0
|
|
|
|
|
|
|
|
|
|
// Set define if we have header: <sys/time.h>
|
|
|
|
|
#define HAVE_SYS_TIME_H 0
|
|
|
|
|
|
|
|
|
|
// Set define if we have header: <sys/un.h>
|
|
|
|
|
#define HAVE_SYS_UN_H 0
|
|
|
|
|
|
|
|
|
|
// Set define if we have header: <stdint.h>
|
|
|
|
|
#define HAVE_STDINT_H 0
|
|
|
|
|
|
|
|
|
|
// Set define if we have header: <mingw/stdint.h>
|
|
|
|
|
#define HAVE_MINGW_STDINT_H 0
|
|
|
|
|
|
2006-12-18 19:20:45 +00:00
|
|
|
|
// Set define if we have header: <inttypes.h>
|
|
|
|
|
#define HAVE_INTTYPES_H 0
|
|
|
|
|
|
2008-03-18 20:26:37 +00:00
|
|
|
|
//**********************************************************************
|
|
|
|
|
//**** Default environment
|
|
|
|
|
|
|
|
|
|
// Set defines to defaults for environment variables
|
|
|
|
|
// If set to "", this default is ignored and the user is expected
|
|
|
|
|
// to set them at Verilator runtime.
|
|
|
|
|
|
|
|
|
|
#ifndef DEFENV_SYSTEMC
|
|
|
|
|
# define DEFENV_SYSTEMC ""
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef DEFENV_SYSTEMC_ARCH
|
|
|
|
|
# define DEFENV_SYSTEMC_ARCH ""
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef DEFENV_SYSTEMPERL
|
|
|
|
|
# define DEFENV_SYSTEMPERL ""
|
|
|
|
|
#endif
|
2009-03-28 14:18:53 +00:00
|
|
|
|
#ifndef DEFENV_SYSTEMPERL_INCLUDE
|
|
|
|
|
# define DEFENV_SYSTEMPERL_INCLUDE ""
|
|
|
|
|
#endif
|
2008-03-18 20:26:37 +00:00
|
|
|
|
#ifndef DEFENV_VERILATOR_ROOT
|
|
|
|
|
# define DEFENV_VERILATOR_ROOT ""
|
|
|
|
|
#endif
|
|
|
|
|
|
2006-08-26 11:35:28 +00:00
|
|
|
|
//**********************************************************************
|
|
|
|
|
//**** Compile options
|
|
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <iostream>
|
2008-05-28 19:58:18 +00:00
|
|
|
|
#include <cstdlib>
|
2008-06-30 17:11:25 +00:00
|
|
|
|
#include <cstdio>
|
2008-10-15 14:49:05 +00:00
|
|
|
|
#include <cstring>
|
2006-08-26 11:35:28 +00:00
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
//**********************************************************************
|
|
|
|
|
//**** OS and compiler specifics
|
|
|
|
|
|
|
|
|
|
#include "verilatedos.h"
|
|
|
|
|
|