2012-04-13 03:08:20 +02:00
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
2010-01-18 01:13:44 +01:00
|
|
|
//*************************************************************************
|
|
|
|
|
//
|
2011-01-02 00:21:19 +01:00
|
|
|
// Copyright 2009-2011 by Wilson Snyder. This program is free software; you can
|
2010-01-18 01:13:44 +01:00
|
|
|
// redistribute it and/or modify it under the terms of either the GNU
|
|
|
|
|
// Lesser General Public License Version 3 or the Perl Artistic License.
|
|
|
|
|
// Version 2.0.
|
|
|
|
|
//
|
|
|
|
|
// 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.
|
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
2010-01-25 01:00:34 +01:00
|
|
|
#include <cstdio>
|
2010-04-10 12:46:24 +02:00
|
|
|
#include "svdpi.h"
|
2010-01-18 01:13:44 +01:00
|
|
|
|
|
|
|
|
//======================================================================
|
|
|
|
|
|
|
|
|
|
#if defined(VERILATOR)
|
|
|
|
|
# include "Vt_dpi_display__Dpi.h"
|
|
|
|
|
#elif defined(VCS)
|
|
|
|
|
# include "../vc_hdrs.h"
|
|
|
|
|
#elif defined(CADENCE)
|
|
|
|
|
# define NEED_EXTERNS
|
|
|
|
|
#else
|
|
|
|
|
# error "Unknown simulator for DPI test"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef NEED_EXTERNS
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
2018-08-25 15:52:45 +02:00
|
|
|
extern void dpii_display_call(const char* c);
|
2010-01-18 01:13:44 +01:00
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2019-12-04 01:12:18 +01:00
|
|
|
#ifndef VL_PRINTF
|
|
|
|
|
# define VL_PRINTF printf
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-01-18 01:13:44 +01:00
|
|
|
//======================================================================
|
|
|
|
|
|
|
|
|
|
void dpii_display_call(const char* c) {
|
2017-09-12 01:18:58 +02:00
|
|
|
VL_PRINTF("dpii_display_call: '%s'\n", c);
|
2010-01-18 01:13:44 +01:00
|
|
|
}
|