Skip to content

Commit 5e2d93c

Browse files
authored
Merge pull request #160 from riscv-software-src/156-add-note-to-clarify-coloring-scheme-of-csr-bit-fields-red-green
2 parents 7fe47f5 + 11b4ba8 commit 5e2d93c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backends/crd_doc/templates/crd.adoc.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,10 @@ h| Privilege Mode | <%= csr.priv_mode %>
514514

515515

516516
==== Format
517+
518+
Green fields are present in <%= crd.name %>.
519+
Red fields are defined by the RISC-V ISA but not present in <%= crd.name %>.
520+
517521
<% unless csr.dynamic_length?(crd.arch_def) || csr.fields.any? { |f| f.dynamic_location?(crd.arch_def) } -%>
518522
<%# CSR has a known static length, so there is only one format to display -%>
519523
.<%= csr.name %> format

0 commit comments

Comments
 (0)