-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add peripheral registers (#37)
* docs: Add peripheral registers and catch CI build errors * docs: Clarify some of the performance counters * ci: Reset to use Docker container from main branch
- Loading branch information
Showing
10 changed files
with
73 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ gmon.out | |
|
||
// Docs | ||
/site/ | ||
/docs/generated/ |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2023 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
REGGEN = $(shell bender path register_interface)/vendor/lowrisc_opentitan/util/regtool.py | ||
|
||
GENERATED_DOCS_DIR = docs/generated | ||
GENERATED_DOC_SRCS = $(GENERATED_DOCS_DIR)/peripherals.md | ||
|
||
.PHONY: all doc-srcs docs | ||
.PHONY: clean clean-docs | ||
|
||
all: docs | ||
clean: clean-docs | ||
|
||
doc-srcs: $(GENERATED_DOC_SRCS) | ||
|
||
docs: doc-srcs | ||
@if mkdocs build | grep -q "ERROR"; then \ | ||
exit 1; \ | ||
fi | ||
|
||
clean-docs: | ||
rm -rf $(GENERATED_DOCS_DIR) | ||
|
||
$(GENERATED_DOCS_DIR): | ||
mkdir -p $@ | ||
|
||
$(GENERATED_DOCS_DIR)/peripherals.md: hw/snitch_cluster/src/snitch_cluster_peripheral/snitch_cluster_peripheral_reg.hjson | $(GENERATED_DOCS_DIR) | ||
$(REGGEN) -d $< > $@ |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Snitch Cluster peripherals | ||
|
||
This section documents the registers exposed by the Snitch cluster to interface with various cluster-level peripherals, including the performance counters. | ||
|
||
{% include-markdown '../generated/peripherals.md' %} |
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