Skip to content

Commit eed4ca5

Browse files
author
Derek Hower
committed
Add manual generator
1 parent 25e3bf8 commit eed4ca5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1434
-136
lines changed

.github/workflows/pages.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ jobs:
4545
run: ./do gen:html[generic_rv64]
4646
- name: Generate YARD docs
4747
run: ./do gen:tool_doc
48-
- name: Create _site
49-
run: mkdir -p _site
48+
- name: Build manual
49+
run: ./do gen:html_manual MANUAL_NAME=isa VERSIONS=all
50+
- name: Create _site/example_cfg
51+
run: mkdir -p _site/example_cfg
52+
- name: Create _site/manual
53+
run: mkdir -p _site/manual
5054
- name: Copy cfg html
51-
run: cp -R gen/cfg_html_doc/generic_rv64/html _site
55+
run: cp -R gen/cfg_html_doc/generic_rv64/html _site/example_cfg
56+
- name: Copy manual html
57+
run: cp -R gen/manual/top/all/html _site/manual
5258
- name: Setup Pages
5359
uses: actions/configure-pages@v5
5460
- name: Upload artifact

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This repository contains:
1515

1616
=== Working examples:
1717

18-
* Generate https://riscv-software-src.github.io/riscv-unified-db/html/index.html[configuration-specific documentation] taylored to the set of implemented extensions and unnamed implementation options (_e.g._, `./do gen:html[generic_rv64]`).
18+
* Generate https://riscv-software-src.github.io/riscv-unified-db/manual/index.html[configuration-specific documentation] taylored to the set of implemented extensions and unnamed implementation options (_e.g._, `./do gen:html[generic_rv64]`).
1919
** Only implemented extensions/instructions/CSRs are included
2020
** Unreachable/unimplmented parts of the formal specification are pruned away
2121
** A dedicated documentation page for every implemented instruction, including its encoding, pruned execution behavior, and what types of exceptions it may cause.

arch/ext/A.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ A:
77
name: RISC-V International
88
url: https://riscv.org
99
versions:
10-
- version: 2.1
10+
- version: "2.1.0"
1111
state: ratified
1212
ratification_date: 2019-12
1313
contributors:
1414
- name: Unknown
1515
1616
company: Unknown
1717
implies:
18-
- [Zaamo, 1.0]
19-
- [Zalrsc, 1.0]
18+
- [Zaamo, "1.0.0"]
19+
- [Zalrsc, "1.0.0"]
2020
description: |
2121
2222
The atomic-instruction extension, named `A`, contains

arch/ext/B.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ B:
1010
name: Creative Commons Attribution 4.0 International License
1111
url: https://creativecommons.org/licenses/by/4.0/
1212
versions:
13-
- version: 1.0
13+
- version: "1.0.0"
1414
state: ratified
1515
ratification_date: 2024-04
1616
contributors:
@@ -19,9 +19,9 @@ B:
1919
company: Rivos, Inc.
2020
url: https://drive.google.com/file/d/1SgLoasaBjs5WboQMaU3wpHkjUwV71UZn/view
2121
implies:
22-
- [Zba, 1.0]
23-
- [Zbb, 1.0]
24-
- [Zbs, 1.0]
22+
- [Zba, "1.0.0"]
23+
- [Zbb, "1.0.0"]
24+
- [Zbs, "1.0.0"]
2525
description: |
2626
The B standard extension comprises instructions provided by the `Zba`, `Zbb`, and `Zbs` extensions.
2727

arch/ext/C.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ C:
44
type: unprivileged
55
long_name: Compressed instructions
66
versions:
7-
- version: 2.2
7+
- version: "2.2.0"
88
state: ratified
99
ratification_date: 2019-12
1010
description: |

arch/ext/D.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ D:
44
type: unprivileged
55
long_name: Double-precision floating-point
66
versions:
7-
- version: 2.2
7+
- version: "2.2.0"
88
state: ratified
99
ratification_date: 2019-12
1010
changes:
1111
- Define NaN-boxing scheme, changed definition of FMAX and FMIN
12-
implies: [F, 2.2]
12+
implies: [F, "2.2.0"]
1313
description: |
1414
The `D` extension adds
1515
double-precision floating-point computational instructions compliant

arch/ext/F.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ F:
44
type: unprivileged
55
long_name: Single-precision floating-point
66
versions:
7-
- version: 2.2
7+
- version: "2.2.0"
88
state: ratified
99
ratification_date: 2019-12
1010
changes:

arch/ext/H.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ H:
44
type: privileged
55
long_name: Hypervisor
66
versions:
7-
- version: 1.0
7+
- version: "1.0.0"
88
state: ratified
99
ratification_date: 2019-12
1010
requires:
1111
oneOf:
12-
- [S, '>= 1.12']
12+
- [S, '>= 1.12.0']
1313
interrupt_codes:
1414
- num: 2
1515
name: Virtual supervisor software interrupt

arch/ext/I.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ I:
44
type: unprivileged
55
long_name: Base integer ISA
66
versions:
7-
- version: 2.1
7+
- version: "2.1.0"
88
state: ratified
99
ratification_date: 2019-06
1010
changes:
@@ -73,6 +73,11 @@ I:
7373
- num: 15
7474
name: Store/AMO page fault
7575
var: StoreAmoPageFault
76+
- num: 18
77+
name: Software Check
78+
var: SoftwareCheck
79+
when:
80+
version: ">= 2.1.0"
7681
params:
7782
XLEN:
7883
description: |

arch/ext/M.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ M:
44
type: unprivileged
55
long_name: Integer multiply and divide instructions
66
versions:
7-
- version: 2.0
7+
- version: "2.0.0"
88
state: ratified
99
ratification_date: 2019-12
1010
description: |

0 commit comments

Comments
 (0)