forked from pulp-platform/carfield
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/yt/thales-tapeout' into rt/align
- Loading branch information
Showing
71 changed files
with
21,172 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# Author: Matteo Perotti <[email protected]> | ||
|
||
# Runtime-selectable Carfield configuration | ||
CARFIELD_CONFIG ?= carfield_l2dual_secure_pulp_periph_can | ||
CARFIELD_CONFIG ?= carfield_l2dual_secure_pulp_periph_can_ethernet_streamer_spw | ||
|
||
# bender targets | ||
common_targs += -t cva6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
CAR_ROOT ?= $(shell $(BENDER) path carfield) | ||
CAR_HW_DIR := $(CAR_ROOT)/hw | ||
CAR_SW_DIR := $(CAR_ROOT)/sw | ||
CAR_TGT_DIR := $(CAR_ROOT)/target/ | ||
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) | ||
|
@@ -36,6 +36,8 @@ BENDER_PATH ?= $(shell which $(BENDER)) | |
|
||
PYTHON ?= python3 | ||
|
||
PADRICK ?= $(CAR_HW_DIR)/padframe/padrick | ||
|
||
# Include mandatory bender targets and defines for multiple targets (sim, fpga, synth) | ||
include $(CAR_ROOT)/bender-common.mk | ||
include $(CAR_ROOT)/bender-sim.mk | ||
|
@@ -100,6 +102,15 @@ SPATZD_MAKEDIR := $(SPATZD_ROOT)/hw/system/spatz_cluster | |
SPATZD_BINARY ?= | ||
SPATZD_BOOTMODE ?= 0 # default jtag bootmode | ||
|
||
# Streamer, implementing telecommand and telemetry protocols | ||
STREAMER_ROOT ?= $(shell $(BENDER) path streamer) | ||
|
||
# SpaceWire IP | ||
SPACEWIRE_ROOT ?= $(shell $(BENDER) path spacewire) | ||
|
||
# PLL/FLL bypass | ||
BYPASS_PLL ?= 0 | ||
|
||
########################### | ||
# System HW configuration # | ||
########################### | ||
|
@@ -167,7 +178,7 @@ SAFED_SW_BUILD := safed-sw-build | |
SAFED_SW_INIT := safed-sw-init | ||
endif | ||
|
||
ifeq ($(shell echo $(SAFED_PRESENT)), 1) | ||
ifeq ($(shell echo $(SPATZD_PRESENT)), 1) | ||
SPATZD_HW_INIT := spatzd-hw-init | ||
endif | ||
|
||
|
@@ -246,6 +257,30 @@ secd-hw-init: | |
## not forget to check in the generated RTL. In addition, dedicated documentation is autogenerated. | ||
regenerate_soc_regs: $(CAR_ROOT)/hw/regs/carfield_reg_pkg.sv $(CAR_ROOT)/hw/regs/carfield_reg_top.sv $(CAR_SW_DIR)/include/regs/soc_ctrl.h $(CAR_HW_DIR)/regs/pcr.md | ||
|
||
.PHONY: $(CAR_ROOT)/hw/regs/carfield_regs.hjson | ||
$(CAR_ROOT)/hw/regs/carfield_regs.hjson: hw/regs/carfield_regs.csv | venv | ||
$(VENV)/$(PYTHON) ./scripts/csv_to_json.py --input $< --output $@ | ||
|
||
.PHONY: $(CAR_ROOT)/hw/regs/carfield_reg_pkg.sv hw/regs/carfield_reg_top.sv | ||
$(CAR_ROOT)/hw/regs/carfield_reg_pkg.sv $(CAR_ROOT)/hw/regs/carfield_reg_top.sv: $(CAR_ROOT)/hw/regs/carfield_regs.hjson | venv | ||
$(VENV)/$(PYTHON) utils/reggen/regtool.py -r $< --outdir $(dir $@) | ||
|
||
.PHONY: $(CAR_SW_DIR)/include/regs/soc_ctrl.h | ||
$(CAR_SW_DIR)/include/regs/soc_ctrl.h: $(CAR_ROOT)/hw/regs/carfield_regs.hjson | venv | ||
$(VENV)/$(PYTHON) utils/reggen/regtool.py -D $< > $@ | ||
|
||
.PHONY: $(CAR_SW_DIR)/hw/regs/pcr.md | ||
$(CAR_HW_DIR)/regs/pcr.md: $(CAR_ROOT)/hw/regs/carfield_regs.hjson | venv | ||
$(VENV)/$(PYTHON) utils/reggen/regtool.py -d $< > $@ | ||
|
||
## @section Carfield padframe generation | ||
.PHONY: regenerate_padframe | ||
regenerate_padframe: $(CAR_HW_DIR)/padframe/astral_padframe | ||
|
||
$(CAR_HW_DIR)/padframe/astral_padframe: $(CAR_HW_DIR)/padframe/astral_padframe.yml | ||
$(PADRICK) generate rtl $< -o $@ | ||
sed -i.original '/i_pad_vss_core_v_2/d' $@/src/astral_padframe_periph_pads.sv | ||
|
||
.PHONY: $(CAR_ROOT)/hw/regs/carfield_regs.hjson | ||
$(CAR_ROOT)/hw/regs/carfield_regs.hjson: hw/regs/carfield_regs.csv | venv | ||
$(VENV)/$(PYTHON) ./scripts/csv_to_json.py --input $< --output $@ | ||
|
@@ -387,7 +422,7 @@ car-check-litmus-tests: $(LITMUS_WORK_DIR)/litmus.log | |
############## | ||
tech-repo := [email protected]:Astral/gf12.git | ||
# no commit by default, change during development | ||
tech-commit := 0939b49dc4517fdbba792ab046b8700aa8ae9026 | ||
tech-commit := 9fe2a2bcb7a636c93bceada37e23bfc08902b6b3 # branch: yt/thales | ||
|
||
tech-clone: | ||
git clone $(tech-repo) tech | ||
|
Oops, something went wrong.