From b66f0c6d563a799a801e4806488cfed015caf282 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 23 Dec 2023 18:28:18 +0800 Subject: [PATCH] =?UTF-8?q?>=20sim=20RTL=20ysyx=5F22040000=20=E6=9D=8E?= =?UTF-8?q?=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.1.65=20#1-NixOS=20SMP?= =?UTF-8?q?=20PREEMPT=5FDYNAMIC=20Sun=20Dec=20=203=2006:32:13=20UTC=202023?= =?UTF-8?q?=20x86=5F64=20GNU/Linux=20=2018:28:18=20=20up=20=2021:26,=20=20?= =?UTF-8?q?2=20users,=20=20load=20average:=201.13,=200.58,=200.53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/Makefile | 14 +++++++------- npc/obj/Vexample__ALL.cpp | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 npc/obj/Vexample__ALL.cpp 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"