Allow redefining VL_PRINTF, bug1598.
This commit is contained in:
parent
96f8bbd023
commit
fe684e8733
|
|
@ -14,6 +14,7 @@ Howard Su
|
||||||
Iztok Jeras
|
Iztok Jeras
|
||||||
Jeremy Bennett
|
Jeremy Bennett
|
||||||
John Coiner
|
John Coiner
|
||||||
|
Julien Margetts
|
||||||
Kanad Kanhere
|
Kanad Kanhere
|
||||||
Kevin Kiningham
|
Kevin Kiningham
|
||||||
Lukasz Dalek
|
Lukasz Dalek
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,11 @@
|
||||||
# include <thread>
|
# include <thread>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Allow user to specify their own include file
|
||||||
|
#ifdef VL_VERILATED_INCLUDE
|
||||||
|
# include VL_VERILATED_INCLUDE
|
||||||
|
#endif
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// Switches
|
// Switches
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ VK_CPPFLAGS_ALWAYS += \
|
||||||
-MMD \
|
-MMD \
|
||||||
-I$(VERILATOR_ROOT)/include \
|
-I$(VERILATOR_ROOT)/include \
|
||||||
-I$(VERILATOR_ROOT)/include/vltstd \
|
-I$(VERILATOR_ROOT)/include/vltstd \
|
||||||
-DVL_PRINTF=printf \
|
|
||||||
-DVM_COVERAGE=$(VM_COVERAGE) \
|
-DVM_COVERAGE=$(VM_COVERAGE) \
|
||||||
-DVM_SC=$(VM_SC) \
|
-DVM_SC=$(VM_SC) \
|
||||||
-DVM_TRACE=$(VM_TRACE) \
|
-DVM_TRACE=$(VM_TRACE) \
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,10 @@ extern "C" {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef VL_PRINTF
|
||||||
|
# define VL_PRINTF printf
|
||||||
|
#endif
|
||||||
|
|
||||||
//======================================================================
|
//======================================================================
|
||||||
|
|
||||||
void dpii_display_call(const char* c) {
|
void dpii_display_call(const char* c) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue