From a1624036d1f5a3f2bdcedc1661f7eab4cb9426b9 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 23 Dec 2023 20:10:23 +0800 Subject: [PATCH] =?UTF-8?q?>=20trace=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:10:23=20=20up=20=2023:08,=20=20?= =?UTF-8?q?2=20users,=20=20load=20average:=200.72,=200.68,=200.62?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npc/Makefile b/npc/Makefile index 8e1d233..0ad9d4a 100644 --- a/npc/Makefile +++ b/npc/Makefile @@ -2,6 +2,7 @@ VSRC := $(wildcard vsrc/*.v) CPPSRC := $(addprefix $(PWD)/,$(wildcard csrc/*.cpp)) PREFIX ?= build OBJDIR := $(PREFIX)/obj +VERILATOR_FLAGS := --cc --exe all: $(OBJDIR) $(MAKE) -j -C $(OBJDIR) -f Vexample.mk Vexample @@ -10,8 +11,9 @@ sim: all $(call git_commit, "sim RTL") # DO NOT REMOVE THIS LINE!!! @echo "Running" $(OBJDIR)/Vexample "..." @echo "================================" - @$(OBJDIR)/Vexample +trace off + @$(OBJDIR)/Vexample +tracing_off +trace: VERILATOR_FLAGS += --trace trace: all $(call git_commit, "trace RTL") # DO NOT REMOVE THIS LINE!!! @$(OBJDIR)/Vexample @@ -19,7 +21,7 @@ trace: all $(OBJDIR): $(VSRC) $(CPPSRC) mkdir -p $(OBJDIR) - verilator --trace --cc --exe --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC) + verilator $(VERILATOR_FLAGS) --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC) include ../Makefile