> trace RTL
ysyx_22040000 李心杨 Linux calcite 6.1.65 #1-NixOS SMP PREEMPT_DYNAMIC Sun Dec 3 06:32:13 UTC 2023 x86_64 GNU/Linux 20:10:23 up 23:08, 2 users, load average: 0.72, 0.68, 0.62
This commit is contained in:
parent
fce7b3fcb3
commit
a1624036d1
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@ VSRC := $(wildcard vsrc/*.v)
|
||||||
CPPSRC := $(addprefix $(PWD)/,$(wildcard csrc/*.cpp))
|
CPPSRC := $(addprefix $(PWD)/,$(wildcard csrc/*.cpp))
|
||||||
PREFIX ?= build
|
PREFIX ?= build
|
||||||
OBJDIR := $(PREFIX)/obj
|
OBJDIR := $(PREFIX)/obj
|
||||||
|
VERILATOR_FLAGS := --cc --exe
|
||||||
|
|
||||||
all: $(OBJDIR)
|
all: $(OBJDIR)
|
||||||
$(MAKE) -j -C $(OBJDIR) -f Vexample.mk Vexample
|
$(MAKE) -j -C $(OBJDIR) -f Vexample.mk Vexample
|
||||||
|
@ -10,8 +11,9 @@ sim: all
|
||||||
$(call git_commit, "sim RTL") # DO NOT REMOVE THIS LINE!!!
|
$(call git_commit, "sim RTL") # DO NOT REMOVE THIS LINE!!!
|
||||||
@echo "Running" $(OBJDIR)/Vexample "..."
|
@echo "Running" $(OBJDIR)/Vexample "..."
|
||||||
@echo "================================"
|
@echo "================================"
|
||||||
@$(OBJDIR)/Vexample +trace off
|
@$(OBJDIR)/Vexample +tracing_off
|
||||||
|
|
||||||
|
trace: VERILATOR_FLAGS += --trace
|
||||||
trace: all
|
trace: all
|
||||||
$(call git_commit, "trace RTL") # DO NOT REMOVE THIS LINE!!!
|
$(call git_commit, "trace RTL") # DO NOT REMOVE THIS LINE!!!
|
||||||
@$(OBJDIR)/Vexample
|
@$(OBJDIR)/Vexample
|
||||||
|
@ -19,7 +21,7 @@ trace: all
|
||||||
|
|
||||||
$(OBJDIR): $(VSRC) $(CPPSRC)
|
$(OBJDIR): $(VSRC) $(CPPSRC)
|
||||||
mkdir -p $(OBJDIR)
|
mkdir -p $(OBJDIR)
|
||||||
verilator --trace --cc --exe --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC)
|
verilator $(VERILATOR_FLAGS) --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC)
|
||||||
|
|
||||||
include ../Makefile
|
include ../Makefile
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue