diff --git a/npc/Makefile b/npc/Makefile index fdf5cbd..54a4902 100644 --- a/npc/Makefile +++ b/npc/Makefile @@ -1,24 +1,24 @@ -VERILATOR := verilator - VSRC := $(wildcard vsrc/*.v) CPPSRC := $(wildcard csrc/*.cpp) -PREFIX ?= ./build +PREFIX ?= . OBJDIR := $(PREFIX)/obj all: $(OBJDIR) - $(MAKE) -C $(OBJDIR) -f Vexample.mk + $(MAKE) -j -C $(OBJDIR) -f Vexample.mk Vexample -sim: $(OBJDIR) +sim: all $(call git_commit, "sim RTL") # DO NOT REMOVE THIS LINE!!! @echo "Write this Makefile by your self." + $(OBJDIR)/Vexample + $(OBJDIR): $(VSRC) $(CPPSRC) mkdir -p $(OBJDIR) - $(VERILATOR) $(VSRC:%=--cc %) $(CPPSRC:%=--exe %) --Mdir $(OBJDIR) + verilator --cc --exe --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC) include ../Makefile -.phony: clean +.PHONY: clean clean: $(RM) -r $(OBJDIR) \ No newline at end of file diff --git a/npc/obj/Vexample__ALL.cpp b/npc/obj/Vexample__ALL.cpp new file mode 100644 index 0000000..553d165 --- /dev/null +++ b/npc/obj/Vexample__ALL.cpp @@ -0,0 +1,8 @@ +// DESCRIPTION: Generated by verilator_includer via makefile +#define VL_INCLUDE_OPT include +#include "Vexample.cpp" +#include "Vexample___024root__DepSet_h625e39dc__0.cpp" +#include "Vexample___024root__DepSet_hcb5acca5__0.cpp" +#include "Vexample___024root__Slow.cpp" +#include "Vexample___024root__DepSet_hcb5acca5__0__Slow.cpp" +#include "Vexample__Syms.cpp"