Skip to content

Commit 9a779c8

Browse files
committed
docs: Provided links to relevant tests
Signed-off-by: Grzegorz Latosinski <[email protected]>
1 parent 4766dd8 commit 9a779c8

File tree

5 files changed

+36
-95
lines changed

5 files changed

+36
-95
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
export I3C_ROOT_DIR="`pwd`"
2828
pip3 install git+https://github.com/antmicro/testplanner.git
29-
make verification-docs
29+
REPO_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/tree/$GITHUB_REF_NAME/" make verification-docs
3030
3131
- name: Build Docs
3232
run: |

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ CALIPTRA_ROOT ?= $(THIRD_PARTY_DIR)/caliptra-rtl## Path: caliptra-rtl repo
2626
# TODO: Connect to version selection in tools/simulators/
2727
UVM_DIR ?= $(VERILATOR_UVM_DIR)/## Select UVM version
2828
SIMULATOR ?= verilator## Supported: verilator, dsim, questa, vcs
29+
REPO_URL ?= https://github.com/chipsalliance/i3c-core/tree/main/
2930

3031
NUM_PROC := $$(($$(nproc)-1))
3132
# Environment variables
@@ -133,9 +134,11 @@ tests-uvm-debug: config ## Run debugging I3C Core UVM tests with nox
133134
tests-tool: ## Run all tool tests
134135
cd $(TOOL_VERIF_DIR) && $(PYTHON) -m nox -k "verify" --no-venv
135136

136-
VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -name "*.hjson" -printf "%P\n")
137+
BLOCKS_VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -name "*.hjson" ! -name "target*.hjson" -printf "%P\n")
138+
CORE_VERIFICATION_PLANS = $(shell find $(TESTPLAN_DIR) -type f -name "*target*.hjson" -printf "%P\n")
137139
verification-docs:
138-
cd $(TESTPLAN_DIR) && testplanner $(VERIFICATION_PLANS) -o $(TESTPLAN_DIR)/generated
140+
cd $(TESTPLAN_DIR) && testplanner $(BLOCKS_VERIFICATION_PLANS) -o $(TESTPLAN_DIR)/generated/testplans_blocks.md --project-root $(I3C_ROOT_DIR) --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml --source-url-prefix $(REPO_URL)
141+
cd $(TESTPLAN_DIR) && testplanner $(CORE_VERIFICATION_PLANS) -o $(TESTPLAN_DIR)/generated/testplans_core.md --project-root $(I3C_ROOT_DIR) --testplan-file-map $(TESTPLAN_DIR)/source-maps.yml --source-url-prefix $(REPO_URL)
139142

140143
#
141144
# Utilities

docs/source/dv.md

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Design verification
22

33
This chapter presents the available models and tools which are used for I3C verification.
4-
The core is verified with [the Cocotb/Verilator + unit tests](https://github.com/chipsalliance/i3c-core/tree/main/verification/cocotb/block) and [the UVM test suite](https://github.com/chipsalliance/i3c-core/tree/main/verification/uvm_i3c).
4+
The core is verified with [the Cocotb + unit tests](https://github.com/chipsalliance/i3c-core/tree/main/verification/cocotb/block) and [the UVM test suite](https://github.com/chipsalliance/i3c-core/tree/main/verification/uvm_i3c).
55

66
There are also non-public tests which utilize Avery I3C VIP framework. The tests include: `private_read`, `private_write` and `recovery` and verify operation of target mode private reads and writes and the secure firmware recovery flow respectively.
77

@@ -20,53 +20,10 @@ Definitions:
2020

2121
### Testplans for individual blocks
2222

23-
```{include} ../../verification/testplan/generated/bus_monitor.md
24-
```
25-
```{include} ../../verification/testplan/generated/bus_rx_flow.md
26-
```
27-
```{include} ../../verification/testplan/generated/bus_timers.md
28-
```
29-
```{include} ../../verification/testplan/generated/bus_tx_flow.md
30-
```
31-
```{include} ../../verification/testplan/generated/bus_tx.md
32-
```
33-
```{include} ../../verification/testplan/generated/ccc.md
34-
```
35-
```{include} ../../verification/testplan/generated/csr_sw_access.md
36-
```
37-
```{include} ../../verification/testplan/generated/descriptor_rx.md
38-
```
39-
```{include} ../../verification/testplan/generated/descriptor_tx.md
40-
```
41-
```{include} ../../verification/testplan/generated/drivers.md
42-
```
43-
```{include} ../../verification/testplan/generated/edge_detector.md
44-
```
45-
```{include} ../../verification/testplan/generated/flow_standby_i3c.md
46-
```
47-
```{include} ../../verification/testplan/generated/hci_queues.md
48-
```
49-
```{include} ../../verification/testplan/generated/tti_queues.md
50-
```
51-
```{include} ../../verification/testplan/generated/i3c_bus_monitor.md
52-
```
53-
```{include} ../../verification/testplan/generated/pec.md
54-
```
55-
```{include} ../../verification/testplan/generated/width_converter_8toN.md
56-
```
57-
```{include} ../../verification/testplan/generated/width_converter_Nto8.md
23+
```{include} ../../verification/testplan/generated/testplans_blocks.md
5824
```
5925

6026
### Testplans for the core
6127

62-
```{include} ../../verification/testplan/generated/target_ccc.md
63-
```
64-
```{include} ../../verification/testplan/generated/target_hdr.md
65-
```
66-
```{include} ../../verification/testplan/generated/target_interrupts.md
67-
```
68-
```{include} ../../verification/testplan/generated/target.md
69-
```
70-
```{include} ../../verification/testplan/generated/target_recovery.md
28+
```{include} ../../verification/testplan/generated/testplans_core.md
7129
```
72-
```{include} ../../verification/testplan/generated/target_reset.md

testplans-template/source/dv.md

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Design verification
22

33
This chapter presents the available models and tools which are used for I3C verification.
4-
The core is verified with [the Cocotb/Verilator + unit tests](https://github.com/chipsalliance/i3c-core/tree/main/verification/cocotb/block) and [the UVM test suite](https://github.com/chipsalliance/i3c-core/tree/main/verification/uvm_i3c).
4+
The core is verified with [the Cocotb + unit tests](https://github.com/chipsalliance/i3c-core/tree/main/verification/cocotb/block) and [the UVM test suite](https://github.com/chipsalliance/i3c-core/tree/main/verification/uvm_i3c).
55

66
There are also non-public tests which utilize Avery I3C VIP framework. The tests include: `private_read`, `private_write` and `recovery` and verify operation of target mode private reads and writes and the secure firmware recovery flow respectively.
77

@@ -20,53 +20,10 @@ Definitions:
2020

2121
### Testplans for individual blocks
2222

23-
```{include} ../../verification/testplan/generated/bus_monitor.md
24-
```
25-
```{include} ../../verification/testplan/generated/bus_rx_flow.md
26-
```
27-
```{include} ../../verification/testplan/generated/bus_timers.md
28-
```
29-
```{include} ../../verification/testplan/generated/bus_tx_flow.md
30-
```
31-
```{include} ../../verification/testplan/generated/bus_tx.md
32-
```
33-
```{include} ../../verification/testplan/generated/ccc.md
34-
```
35-
```{include} ../../verification/testplan/generated/csr_sw_access.md
36-
```
37-
```{include} ../../verification/testplan/generated/descriptor_rx.md
38-
```
39-
```{include} ../../verification/testplan/generated/descriptor_tx.md
40-
```
41-
```{include} ../../verification/testplan/generated/drivers.md
42-
```
43-
```{include} ../../verification/testplan/generated/edge_detector.md
44-
```
45-
```{include} ../../verification/testplan/generated/flow_standby_i3c.md
46-
```
47-
```{include} ../../verification/testplan/generated/hci_queues.md
48-
```
49-
```{include} ../../verification/testplan/generated/tti_queues.md
50-
```
51-
```{include} ../../verification/testplan/generated/i3c_bus_monitor.md
52-
```
53-
```{include} ../../verification/testplan/generated/pec.md
54-
```
55-
```{include} ../../verification/testplan/generated/width_converter_8toN.md
56-
```
57-
```{include} ../../verification/testplan/generated/width_converter_Nto8.md
23+
```{include} ../../verification/testplan/generated/testplans_blocks.md
5824
```
5925

6026
### Testplans for the core
6127

62-
```{include} ../../verification/testplan/generated/target_ccc.md
63-
```
64-
```{include} ../../verification/testplan/generated/target_hdr.md
65-
```
66-
```{include} ../../verification/testplan/generated/target_interrupts.md
67-
```
68-
```{include} ../../verification/testplan/generated/target.md
69-
```
70-
```{include} ../../verification/testplan/generated/target_recovery.md
28+
```{include} ../../verification/testplan/generated/testplans_core.md
7129
```
72-
```{include} ../../verification/testplan/generated/target_reset.md
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
testplans:
2+
- Recovery mode tests:
3+
- verification/cocotb/top/lib_i3c_top/test_recovery.py
4+
- Enter and exit HDR mode:
5+
- verification/cocotb/top/lib_i3c_top/test_enter_exit_hdr_mode.py
6+
- target_interrupts:
7+
- verification/cocotb/top/lib_i3c_top/test_interrupts.py
8+
- target_peripheral_reset:
9+
- verification/cocotb/top/lib_i3c_top/test_target_reset.py
10+
- pec:
11+
- verification/cocotb/block/recovery_pec/test_pec.py
12+
- drivers:
13+
- verification/cocotb/block/i3c_phy_io/test_drivers.py
14+
- CCC handling:
15+
- verification/cocotb/top/lib_i3c_top/test_ccc.py
16+
- width_converter_[N8]to[N8]:
17+
- verification/cocotb/block/{name}/test_converter.py
18+
- Target:
19+
- verification/cocotb/top/lib_i3c_top/test_i3c_target.py
20+
- .*:
21+
- verification/cocotb/block/ctrl_{name}/test_{name}.py
22+
- verification/cocotb/block/{name}/test_{name}.py
23+
- verification/cocotb/block/lib_adapter/test_{name}.py
24+
- verification/cocotb/block/lib_hci_queues/{name}.py

0 commit comments

Comments
 (0)