From 386c3ce04c75739463f593f3d90310407c7b63b3 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 23 Dec 2023 20:17:34 +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=2020:17:34=20=20up=20=2023:15,=20=20?= =?UTF-8?q?2=20users,=20=20load=20average:=200.33,=200.36,=200.48?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/npc/Makefile b/npc/Makefile index 9be8987..99871ce 100644 --- a/npc/Makefile +++ b/npc/Makefile @@ -7,23 +7,18 @@ VERILATOR_FLAGS := --cc --exe all: sim -sim: $(OBJDIR) $(VSRC) $(CPPSRC) $(SUBMAKE) +sim: VERILATOR_FLAGS += --trace +sim: $(VSRC) $(CPPSRC) $(SUBMAKE) $(call git_commit, "sim RTL") # DO NOT REMOVE THIS LINE!!! @echo "Running" $(OBJDIR)/Vexample "..." @echo "================================" @$(OBJDIR)/Vexample - -trace: VERILATOR_FLAGS += --trace -trace: $(OBJDIR) $(VSRC) $(CPPSRC) $(SUBMAKE) - $(call git_commit, "trace RTL") # DO NOT REMOVE THIS LINE!!! - @$(OBJDIR)/Vexample -$(SUBMAKE): $(VSRC) $(CPPSRC) +$(SUBMAKE): $(VSRC) $(CPPSRC) $(OBJDIR) verilator $(VERILATOR_FLAGS) --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC) -$(OBJDIR): $(VSRC) $(CPPSRC) +$(OBJDIR): mkdir -p $(OBJDIR) - verilator $(VERILATOR_FLAGS) --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC) include ../Makefile