[dv, doc] Replace all 'dv.plan' with testplan
This commit purges all instances of "DV plan" to make the documentation
nomenclature as described in our DV methodology consistent.
what we capture in the HJSon -> testplan
what we capture in the markdown doc -> DV document
Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/util/dashboard/dashboard_validate.py b/util/dashboard/dashboard_validate.py
index 487e4b9..df4f9dd 100644
--- a/util/dashboard/dashboard_validate.py
+++ b/util/dashboard/dashboard_validate.py
@@ -36,7 +36,7 @@
field_optional = {
'design_spec':
['s', "path to the design specification, relative to repo root"],
- 'dv_doc': ['s', "path to the DV plan, relative to repo root"],
+ 'dv_doc': ['s', "path to the DV document, relative to repo root"],
'hw_checklist': ['s', "path to the hw_checklist, relative to repo root"],
'sw_checklist': ['s', "path to the sw_checklist, relative to repo root"],
'design_stage': ['s', "design stage of module"],
diff --git a/util/dashboard/gen_dashboard_entry.py b/util/dashboard/gen_dashboard_entry.py
index 7734c55..f813d78 100644
--- a/util/dashboard/gen_dashboard_entry.py
+++ b/util/dashboard/gen_dashboard_entry.py
@@ -75,8 +75,8 @@
return result
-# Provide the link to the DV plan.
-def get_linked_dv_plan(obj):
+# Provide the link to the DV document.
+def get_linked_dv_doc(obj):
if 'dv_doc' in obj:
return "<span title='DV Document'><a href=\"{}\">DV</a></span>".format(
get_doc_url(obj['_ip_desc_hjson_dir'], obj['dv_doc']))
@@ -229,8 +229,8 @@
genout(outfile, " <tr>\n")
genout(outfile, " <td class=\"fixleft\">" +
get_linked_design_spec(obj) + "</td>\n")
- genout(outfile, " <td class=\"dv-plan\">" +
- get_linked_dv_plan(obj) + "</td>\n")
+ genout(outfile, " <td class=\"dv-doc\">" +
+ get_linked_dv_doc(obj) + "</td>\n")
genout(outfile, " <td class=\"version\">" +
get_linked_version(obj) + "</td>\n")
@@ -261,8 +261,8 @@
if len(revisions) == 1:
outstr += " <td class='fixleft'>"
outstr += get_linked_design_spec(obj) + "</td>\n"
- outstr += " <td class='dv-plan'>"
- outstr += get_linked_dv_plan(obj) + "</td>\n"
+ outstr += " <td class='dv-doc'>"
+ outstr += get_linked_dv_doc(obj) + "</td>\n"
# Print out the module name in the first entry only
elif i == 0:
outstr += " <td class='fixleft' rowspan='{}'>".format(
@@ -270,7 +270,7 @@
outstr += get_linked_design_spec(obj) + "</td>\n"
outstr += " <td class='hw-stage' rowspan='{}'>".format(
len(revisions))
- outstr += get_linked_dv_plan(obj) + "</td>\n"
+ outstr += get_linked_dv_doc(obj) + "</td>\n"
# Version
outstr += " <td class=\"version\">"
@@ -306,18 +306,18 @@
else:
log.error("hjson file import failed")
- # create design spec and DV plan references, check for existence below
+ # create design spec and DV doc references, check for existence below
design_spec_md = re.sub(r'/data/', '/doc/',
re.sub(r'\.prj\.hjson', '.md', str(hjson_path)))
- dv_plan_md = re.sub(
- r'/data/', '/doc/',
- re.sub(r'\.prj\.hjson', '_dv_plan.md', str(hjson_path)))
+ dv_doc_md = re.sub(
+ r'/data/', '/doc/dv',
+ re.sub(r'\.prj\.hjson', 'index.md', str(hjson_path)))
design_spec_html = re.sub(
r'/data/', '/doc/',
re.sub(r'\.prj\.hjson', '.html', str(rel_hjson_path)))
- dv_plan_html = re.sub(
- r'/data/', '/doc/',
- re.sub(r'\.prj\.hjson', '_dv_plan.html', str(rel_hjson_path)))
+ dv_doc_html = re.sub(
+ r'/data/', '/doc/dv',
+ re.sub(r'\.prj\.hjson', 'index.html', str(rel_hjson_path)))
# yapf: disable
genout(outfile, " <tr>\n")
@@ -329,9 +329,9 @@
"design spec</a>\n")
else:
genout(outfile, " <td> </td>\n")
- if os.path.exists(dv_plan_md):
+ if os.path.exists(dv_doc_md):
genout(outfile, " <td class=\"fixleft\"><a href=\"" +
- html.escape(dv_plan_html) + "\">" +
+ html.escape(dv_doc_html) + "\">" +
"DV document</a>\n")
else:
genout(outfile, " <td> </td>\n")
diff --git a/util/uvmdvgen/README.md b/util/uvmdvgen/README.md
index eba370f..956adc3 100644
--- a/util/uvmdvgen/README.md
+++ b/util/uvmdvgen/README.md
@@ -63,7 +63,7 @@
-eo [hw/ip/<ip>], --env-outdir [hw/ip/<ip>]
Path to place the full tetsbench code. It creates 3
directories - dv, data and doc. The DV document and the
- DV plan Hjson files are placed in the doc and data
+ testplan Hjson files are placed in the doc and data
directories respectively. These are to be merged into
the IP's root directory (with the existing data and
doc directories). Under dv, it creates 3 sub-
diff --git a/util/uvmdvgen/index.md.tpl b/util/uvmdvgen/index.md.tpl
index 15f04a3..efeb558 100644
--- a/util/uvmdvgen/index.md.tpl
+++ b/util/uvmdvgen/index.md.tpl
@@ -14,7 +14,7 @@
${'##'} Goals
* **DV**
* Verify all ${name.upper()} IP features by running dynamic simulations with a SV/UVM based testbench
- * Develop and run all tests based on the [DV plan](#dv-plan) below towards closing code and functional coverage on the IP and all of its sub-modules
+ * Develop and run all tests based on the [testplan](#testplan) below towards closing code and functional coverage on the IP and all of its sub-modules
* **FPV**
* Verify TileLink device protocol compliance with an SVA based testbench
@@ -128,7 +128,7 @@
$ $REPO_TOP/util/dvsim/dvsim.py $REPO_TOP/hw/ip/${name}/dv/${name}_sim_cfg.hjson -i ${name}_smoke
```
-${'##'} DV plan
+${'##'} Testplan
<!-- TODO: uncomment the line below after adding the testplan.
Please make sure the testplan is added to `/util/build_docs.py`. -->
-{{</* incGenFromIpDesc "hw/ip/${name}/data/${name}_testplan.hjson" "testplan" */>}
+{{</* incGenFromIpDesc "../../data/${name}_testplan.hjson" "testplan" */>}
diff --git a/util/uvmdvgen/uvmdvgen.py b/util/uvmdvgen/uvmdvgen.py
index 4cb297d..64f67e5 100755
--- a/util/uvmdvgen/uvmdvgen.py
+++ b/util/uvmdvgen/uvmdvgen.py
@@ -107,7 +107,7 @@
"--env-outdir",
metavar="[hw/ip/<ip>]",
help="""Path to place the full testbench code. It creates 3 directories
- - dv, data, and doc. The DV plan and the testplan Hjson files are placed
+ - dv, data, and doc. The DV doc and the testplan Hjson files are placed
in the doc and data directories respectively. These are to be merged
into the IP's root directory (with the existing data and doc
directories). Under dv, it creates 3 sub-directories - env, tb, and