> sim RTL
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 11:09:46 up 19:48, 2 users, load average: 0.84, 0.64, 0.85
This commit is contained in:
parent
88a55f87ea
commit
d278cae607
4 changed files with 19 additions and 33 deletions
12
npc/Makefile
12
npc/Makefile
|
@ -1,9 +1,13 @@
|
|||
VSRC := $(wildcard vsrc/*.v)
|
||||
CPPSRC := $(addprefix $(PWD)/,$(wildcard csrc/*.cpp))
|
||||
CPPSRC += $(SRC_AUTO_BIND)
|
||||
NXDC_FILES = $(abspath constr/top.nxdc)
|
||||
|
||||
PREFIX ?= build
|
||||
OBJDIR := $(PREFIX)/obj
|
||||
SUBMAKE := $(OBJDIR)/Vexample.mk
|
||||
VERILATOR_FLAGS := --cc --exe
|
||||
NVBOARD_HOME ?= $(abspath ../nvboard)
|
||||
|
||||
all: sim
|
||||
|
||||
|
@ -18,11 +22,17 @@ $(OBJDIR)/Vexample: $(SUBMAKE)
|
|||
$(MAKE) -C $(OBJDIR) -f $(notdir $(SUBMAKE)) Vexample
|
||||
|
||||
$(SUBMAKE): $(VSRC) $(CPPSRC) $(OBJDIR)
|
||||
verilator $(VERILATOR_FLAGS) --Mdir $(PWD)/$(OBJDIR) $(VSRC) $(CPPSRC)
|
||||
verilator $(VERILATOR_FLAGS) \
|
||||
--Mdir $(abspath $(OBJDIR)) $(VSRC) $(CPPSRC)
|
||||
# $(addprefix -CFLAGS , $(CXXFLAGS)) $(addprefix -LDFLAGS , $(LDFLAGS)) \
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir -p $(OBJDIR)
|
||||
|
||||
SRC_AUTO_BIND = $(abspath $(PREFIX)/auto_bind.cpp)
|
||||
$(SRC_AUTO_BIND): $(NXDC_FILES)
|
||||
python3 $(NVBOARD_HOME)/scripts/auto_pin_bind.py $^ $@
|
||||
|
||||
include ../Makefile
|
||||
|
||||
.PHONY: clean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue