[lc_ctrl/ci] Add CI check for LC encoding
Signed-off-by: Michael Schaffner <msf@opentitan.org>
diff --git a/hw/Makefile b/hw/Makefile
index 667eed1..d5efe2c 100644
--- a/hw/Makefile
+++ b/hw/Makefile
@@ -61,7 +61,7 @@
tops_reg = $(addsuffix _reg,$(TOPS))
-all: $(dynips_reg) $(tops_gen) $(tops_reg) banner otp-mmap
+all: $(dynips_reg) $(tops_gen) $(tops_reg) banner
banner:
@echo "############################################"
@@ -76,7 +76,7 @@
mkdir -p ${REG_OUTPUT_DV_DIR}
mkdir -p ${REG_OUTPUT_SW_DIR}
-$(ips_reg): pre_reg
+$(ips_reg): pre_reg otp-mmap lc-state-enc
if [ -f ${PRJ_DIR}/hw/ip/$(subst _reg,,$@)/$(dir_hjson)/$(subst _reg,,$@).hjson ]; then \
${PRJ_DIR}/util/regtool.py ${toolflags} -r ${PRJ_DIR}/hw/ip/$(subst _reg,,$@)/$(dir_hjson)/$(subst _reg,,$@).hjson; \
${PRJ_DIR}/util/regtool.py -s -t ${REG_OUTPUT_DV_DIR} \
@@ -86,6 +86,9 @@
otp-mmap:
cd ${PRJ_DIR} && ./util/design/gen-otp-mmap.py
+lc-state-enc:
+ cd ${PRJ_DIR} && ./util/design/gen-lc-state-enc.py
+
regs-header: $(ips_reg_header) banner
$(ips_reg_header): pre_reg
@@ -111,4 +114,4 @@
-r -o ${REG_OUTPUT_DV_DIR}/$($@_TOP) ${toolflags}
-.PHONY: all banner $(ips_reg) $(tops_gen) $(ips_reg_header)
+.PHONY: all banner otp-mmap lc-state-enc $(ips_reg) $(tops_gen) $(ips_reg_header)