Skip to content

Commit

Permalink
Add NoC generation rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella committed Sep 26, 2024
1 parent 2634975 commit aa1b809
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions carfield.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CAR_TGT_DIR := $(CAR_ROOT)/target/
CAR_XIL_DIR := $(CAR_TGT_DIR)/xilinx
CAR_SIM_DIR := $(CAR_TGT_DIR)/sim
SECD_ROOT ?= $(shell $(BENDER) path opentitan)
NOC_ROOT ?= $(shell $(BENDER) path floo_noc)

# Questasim
CAR_VSIM_DIR := $(CAR_TGT_DIR)/sim/vsim
Expand Down Expand Up @@ -238,6 +239,15 @@ car-hw-init: $(SPATZD_HW_INIT) chs-hw-init $(SECD_HW_INIT)
secd-hw-init:
$(MAKE) -C $(SECD_ROOT)/hw/vendor/pulp_riscv_dbg/debug_rom clean all FLAGS=-DCARFIELD=1

## @section NoC genration
FLOOGEN ?= floogen
.PHONY: regenerate_noc
install_floogen: | venv
source $(VENVDIR)/bin/activate; cd $(NOC_ROOT); pip install .; cd $(ROOT); deactivate

regenerate_noc: install_floogen | venv
source $(VENVDIR)/bin/activate; $(FLOOGEN) -c $(NOC_ROOT)/floogen/examples/astral.yml -o $(NOC_ROOT)/hw/astral --no-format; deactivate

## @section Carfield platform PCRs generation
.PHONY: regenerate_soc_regs
## Regenerate the toplevel PCRs from the CSV description of all registers in
Expand Down

0 comments on commit aa1b809

Please sign in to comment.