Add `-DVERILATOR=1` definition to compiler flags when using verilated.mk.
This commit is contained in:
parent
a5b0a0d9dd
commit
833c31b031
1
Changes
1
Changes
|
|
@ -18,6 +18,7 @@ Verilator 5.039 devel
|
|||
* Add SPECIFYIGN warning for specify constructs that were previously silently ignored.
|
||||
* Add enum base data type, and wire data type checking per IEEE.
|
||||
* Add error on missing forward declarations (#6206). [Alex Solomatnikov]
|
||||
* Add `-DVERILATOR=1` definition to compiler flags when using verilated.mk.
|
||||
* Support member-level triggers for virtual interfaces (#5166) (#6148). [Yilou Wang]
|
||||
* Support randomization of scope variables with 'std::randomize()' (#5438) (#6185). [Yilou Wang]
|
||||
* Support disabling a fork in additional contexts (#5432 partial) (#6174) (#6183). [Ryszard Rozak, Antmicro Ltd.]
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ Summary:
|
|||
makefile's VPATH the appropriate directory to find the file.
|
||||
|
||||
See also :vlopt:`-CFLAGS` and :vlopt:`-LDFLAGS` options, which are
|
||||
useful when the C++ files need special compiler flags.
|
||||
useful when the C++ files need special compiler flags. The compiler
|
||||
flags add by default `-DVERILATOR=1`, so an `#ifdef VERILATOR` may be
|
||||
used to conditionally preprocess .cpp code for different simulators.
|
||||
|
||||
.. option:: <file.v>
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ VK_CPPFLAGS_ALWAYS += \
|
|||
-MMD \
|
||||
-I$(VERILATOR_ROOT)/include \
|
||||
-I$(VERILATOR_ROOT)/include/vltstd \
|
||||
-DVERILATOR=1 \
|
||||
-DVM_COVERAGE=$(VM_COVERAGE) \
|
||||
-DVM_SC=$(VM_SC) \
|
||||
-DVM_TIMING=$(VM_TIMING) \
|
||||
|
|
|
|||
|
|
@ -22,9 +22,6 @@ VPATH += ../..
|
|||
|
||||
#######################################################################
|
||||
|
||||
# Needed by DPI tests
|
||||
CPPFLAGS += -DVERILATOR=1
|
||||
|
||||
# Debugging
|
||||
CPPFLAGS += -DVL_DEBUG=1
|
||||
# Assertions disabled as SystemC libraries are not clean
|
||||
|
|
|
|||
Loading…
Reference in New Issue