Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCS and Verilator DPI switchover #1348

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions sim/midas/src/main/cc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@ override CXXFLAGS += -std=c++17 -include $(design_h)
# Models of FPGA primitives that are used in host-level sim, but not in FPGATop
sim_fpga_resource_models := $(v_dir)/BUFGCE.v

emul_files := simif simif_emul emul/mmio emul/mm emul/context
emul_files := simif simif_emul emul/mmio emul/mm
emul_h := $(driver_h) $(bridge_h) $(addprefix $(midas_dir)/, $(addsuffix .h, $(emul_files)))
# This includes c sources and static libraries
emul_cc := $(DRIVER) $(bridge_cc) $(addprefix $(midas_dir)/, $(addsuffix .cc, $(emul_files)))
emul_v := $(design_vh) $(design_v) $(sim_fpga_resource_models)

verilator_conf := rtlsim/ml-verilator-conf.vlt
verilator_wrapper_v := $(v_dir)/verilator_top.sv
verilator_harness := simif_emul_verilator.cc
top_module := verilator_top
verilator_wrapper_v := $(v_dir)/top.sv
verilator_harness := emul/dpi.cc simif_emul_verilator.cc
top_module := emul
include rtlsim/Makefrag-verilator

verilator: $(OUT_DIR)/V$(DRIVER_NAME)
verilator-debug: $(OUT_DIR)/V$(DRIVER_NAME)-debug

# Add an extra wrapper source for VCS simulators
vcs_wrapper_v := $(v_dir)/vcs_top.sv
vcs_harness := emul/vcs-harness.cc simif_emul_vcs.cc
vcs_wrapper_v := $(v_dir)/top.sv
vcs_harness := emul/dpi.cc simif_emul_vcs.cc
TB := emul
VCS_FLAGS := -e vcs_main
include rtlsim/Makefrag-vcs
Expand Down
61 changes: 0 additions & 61 deletions sim/midas/src/main/cc/emul/context.cc

This file was deleted.

26 changes: 0 additions & 26 deletions sim/midas/src/main/cc/emul/context.h

This file was deleted.