mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-06-27 17:00:57 -04:00
[C++ TB code] Upgrade C++ standard used. Clean up Makefile layout. (#1235)
* Makefile (CFLAGS): Use C++ 2017 standard. Fix whitespace. (src): Fix whitespace. ($(dpi-library)/%.o): Do not add another (potentially conflicting) C++ standard option. * ariane.core (verilator_options): Use C++ 2017 standard.
This commit is contained in:
parent
20ca6b71a7
commit
5ae46be23b
2 changed files with 5 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -116,10 +116,10 @@ endif
|
|||
dpi_hdr := $(wildcard corev_apu/tb/dpi/*.h)
|
||||
dpi_hdr := $(addprefix $(root-dir), $(dpi_hdr))
|
||||
CFLAGS += -I$(QUESTASIM_HOME)/include \
|
||||
-I$(VCS_HOME)/include \
|
||||
-I$(VCS_HOME)/include \
|
||||
-I$(RISCV)/include \
|
||||
-I$(SPIKE_ROOT)/include \
|
||||
-std=c++11 -I../corev_apu/tb/dpi -O3
|
||||
-std=c++17 -I../corev_apu/tb/dpi -O3
|
||||
|
||||
ifdef XCELIUM_HOME
|
||||
CFLAGS += -I$(XCELIUM_HOME)/tools/include
|
||||
|
@ -159,7 +159,7 @@ src := core/include/$(target)_config_pkg.sv
|
|||
vendor/pulp-platform/common_cells/src/rstgen_bypass.sv \
|
||||
vendor/pulp-platform/common_cells/src/rstgen.sv \
|
||||
vendor/pulp-platform/common_cells/src/addr_decode.sv \
|
||||
vendor/pulp-platform/common_cells/src/stream_register.sv \
|
||||
vendor/pulp-platform/common_cells/src/stream_register.sv \
|
||||
vendor/pulp-platform/axi/src/axi_cut.sv \
|
||||
vendor/pulp-platform/axi/src/axi_join.sv \
|
||||
vendor/pulp-platform/axi/src/axi_delayer.sv \
|
||||
|
@ -303,7 +303,7 @@ $(library):
|
|||
# compile DPIs
|
||||
$(dpi-library)/%.o: corev_apu/tb/dpi/%.cc $(dpi_hdr)
|
||||
mkdir -p $(dpi-library)
|
||||
$(CXX) -shared -fPIC -std=c++0x -Bsymbolic $(CFLAGS) -c $< -o $@
|
||||
$(CXX) -shared -fPIC -Bsymbolic $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(dpi-library)/ariane_dpi.so: $(dpi)
|
||||
mkdir -p $(dpi-library)
|
||||
|
|
|
@ -69,7 +69,7 @@ targets:
|
|||
- -LDFLAGS
|
||||
- "-lfesvr"
|
||||
- -CFLAGS
|
||||
- "-std=c++11"
|
||||
- "-std=c++17"
|
||||
- -Wall
|
||||
- --trace
|
||||
toplevel : [ariane_wrapped]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue