Skip to content

Commit

Permalink
[WIP] makefile: Integrate PULP Cluster build flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sermazz committed Sep 10, 2024
1 parent 5e74f86 commit 2514c50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ VERIBLE_VERILOG_FORMAT ?= $(CHIM_UTILS_DIR)/verible-verilog/verible-verilog-form

CHS_ROOT ?= $(shell $(BENDER) path cheshire)
SNITCH_ROOT ?= $(shell $(BENDER) path snitch_cluster)
PULP_ROOT ?= $(shell $(BENDER) path pulp_cluster)
IDMA_ROOT ?= $(shell $(BENDER) path idma)

CHS_XLEN ?= 32
Expand Down
5 changes: 5 additions & 0 deletions chimera.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ chs-hw-init: update_plic gen_idma_hw
snitch-hw-init:
make -C $(SNITCH_ROOT)/target/snitch_cluster bin/snitch_cluster.vsim

.PHONY: pulp-sw-init
pulp-sw-init:
make -C $(PULP_ROOT) pulp-runtime
make -C $(PULP_ROOT) regression-tests

.PHONY: $(CHIM_SW_DIR)/include/regs/soc_ctrl.h
$(CHIM_SW_DIR)/include/regs/soc_ctrl.h: $(CHIM_ROOT)/hw/regs/chimera_regs.hjson
python $(CHIM_ROOT)/utils/reggen/regtool.py -D $< > $@
Expand Down
2 changes: 1 addition & 1 deletion target/sim/sim.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ chim-sim-clean:

chim-sim: $(CHIM_SIM_DIR)/vsim/compile.tcl

$(CHIM_SIM_DIR)/vsim/compile.tcl: chs-hw-init snitch-hw-init
$(CHIM_SIM_DIR)/vsim/compile.tcl: chs-hw-init snitch-hw-init pulp-sw-init
@bender script vsim $(COMMON_TARGS) $(SIM_TARGS) --vlog-arg="$(VLOG_ARGS)"> $@
echo 'vlog "$(realpath $(CHS_ROOT))/target/sim/src/elfloader.cpp" -ccflags "-std=c++11"' >> $@

Expand Down

0 comments on commit 2514c50

Please sign in to comment.