Skip to content

Commit bbd2f7b

Browse files
author
Abner Chang
authored
Merge pull request #35 from changab/prepare_for_release
Update documents for the pre-public review
2 parents 10fb7df + 74980f6 commit bbd2f7b

File tree

8 files changed

+102
-65
lines changed

8 files changed

+102
-65
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs-resources"]
2+
path = docs-resources
3+
url = https://github.com/riscv/docs-resources.git

changelog.adoc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
[Preface]
2-
## Change Log
1+
// SPDX-License-Identifier: CC-BY-4.0
2+
//
3+
// changelog.adoc: change log for the document
4+
//
5+
// Provide a list of changes made to each revision of the document.
6+
//
7+
[preface]
8+
== Change Log
39

4-
[cols="1,1,1", width=80%, align="center", options="header"]
5-
|===
6-
| **Date** | **Version** | Description
7-
| 2021/9/17 | v1.0 | The initial version of this specification
8-
|===
10+
=== version 1.0.0_rc1
11+
* 2022-4-16
12+
** The pre-public review version

contributor.adoc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
// SPDX-License-Identifier: CC-BY-4.0
2+
//
3+
// contributors.adoc: acknowledge document contributors
4+
//
5+
// Provide a simple acknowledgement to all who have contributed to the
6+
// specification.
7+
//
18
[Preface]
29

3-
## Contributors
10+
== Contributors
11+
This RISC-V specification has been contributed to directly or indirectly by: +
12+
413
Abner Chang <abner.chang@hpe.com> +
514
Robert Balas <balasr@iis.ee.ethz.ch> +
615
Drew Barbier <drew@sifive.com> +

docs-resources

Submodule docs-resources added at 4819759

introduction.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SPDX-License-Indentifer: CC-BY-4.0
2+
//
3+
// introduction.adoc: describe the purpose of the document
4+
//
5+
// Provide a description of the overall intent and purpose of this
6+
// specifiction.
7+
//
8+
9+
== Introduction
10+
11+
This specification delineates the operation parameters according the general PLIC
12+
architecture defined in the RISC-V platform-level interrupt controller (PLIC)
13+
specification (was removed from https://github.com/riscv/riscv-isa-manual/releases/download/draft-20181201-5449851/riscv-privileged.pdf[RISC-V Privileged Spec v1.11-draft])
14+
to work in the context of RISC-V systems. +
15+
The PLIC multiplexes various device interrupts onto the external interrupt lines
16+
of Hart contexts, with hardware support for interrupt priorities. PLIC supports
17+
up-to 1023 interrupts (0 is reserved) and 15872 contexts, but the actual number of
18+
interrupts and context depends on the PLIC implementation. However, the implement
19+
must adhere to the offset of each register within the PLIC operation parameters.
20+
The PLIC which claimed as PLIC-Compliant standard PLIC should follow the
21+
implementations mentioned in sections below.

licensing.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SPDX-License-Identifier: CC-BY-4.0
2+
//
3+
// licensing.adoc: licensing information
4+
//
5+
// Copyright and licensing information for the specification.
6+
//
7+
8+
[Preface]
9+
== Copyright and license information
10+
11+
This RISC-V PLIC specification is
12+
13+
[%hardbreaks]
14+
(C) 2017 Drew Barbier <drew@sifive.com>
15+
(C) 2018-2019 Palmer Dabbelt <palmer@sifive.com>
16+
(C) 2019-2021 Abner Chang, Hewlett Packard Enterprise <abner.chang@hpe.com>
17+
18+
It is licensed under the Creative Commons Attribution 4.0 International
19+
License (CC-BY 4.0). The full license text is available at
20+
https://creativecommons.org/licenses/by/4.0/.
21+

riscv-plic.adoc

Lines changed: 35 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
[[riscv-smbios]]
2-
= RISC-V Platform-Level Interrupt Controller Specification
3-
:description: A working template for documenting RISC-V architecture in asciidoc
1+
[[riscv-plic]]
2+
3+
:description: RISC-V PLIC Specification
44
:company: RISC-V.org
5-
:revdate: 09/2021
6-
:revnumber: 1.0
7-
//:revremark:
8-
//development: assume everything can change
9-
//stable: assume everything could change
10-
//frozen: of you implement this version you assume the risk that something might change because of the public review cycle but we expect little to no change.
11-
//ratified: you can implement this and be assured nothing will change. if something needs to change due to an errata or enhancement, it will come out in a new extension. we do not revise extensions.
5+
:revdate: 04/2022
6+
:revnumber: 1.0.0_rc1
7+
:revremark: This document is in development. Assume everything can change. See http://riscv.org/spec-state for details.
128
:url-riscv: http://riscv.org
139
:doctype: book
1410
:preface-title: Preamble
15-
//:colophon:
16-
//:appendix-caption: Appendix
11+
:colophon:
12+
:appendix-caption: Appendix
1713
:imagesdir: images
18-
:title-logo-image: image:risc-v_logo.png[pdfwidth=3.25in,align=center]
19-
//:page-background-image: image:draft.svg[opacity=20%]
20-
//:title-page-background-image: none
21-
:back-cover-image: image:backpage.png[opacity=25%]
14+
:title-logo-image: image:../docs-resources/images/risc-v_logo.svg[pdfwidth=3.25in,align=center]
2215
// Settings:
2316
:experimental:
2417
:reproducible:
18+
// needs to be changed? bug discussion started
19+
//:WaveDromEditorApp: app/wavedrom-editor.app
2520
:imagesoutdir: images
26-
:bibtex-file: resources/riscv-spec.bib
27-
:bibtex-order: alphabetical
28-
:bibtex-style: apa
21+
//:bibtex-file: example.bib
22+
//:bibtex-order: alphabetical
23+
//:bibtex-style: apa
2924
:icons: font
3025
:lang: en
3126
:listing-caption: Listing
@@ -36,46 +31,32 @@
3631
ifdef::backend-pdf[]
3732
:source-highlighter: coderay
3833
endif::[]
39-
:table-caption: Table
40-
:figure-caption: Figure
41-
:xrefstyle: full
42-
:chapter-refsig: Chapter
43-
:section-refsig: Section
44-
:appendix-refsig: Appendix
4534
:data-uri:
4635
:hide-uri-scheme:
4736
:stem: latexmath
4837
:footnote:
38+
:xrefstyle: short
4939

50-
// changelog for the document
40+
= RISC-V Platform-Level Interrupt Controller Specification
41+
RISC-V Task Group
42+
43+
// Preamble
44+
[WARNING]
45+
.This document is in the link:http://riscv.org/spec-state[Development state]
46+
====
47+
Assume everything can change. This draft specification will change before
48+
being accepted as standard, so implementations made to this draft
49+
specification will likely not conform to the future standard.
50+
====
51+
52+
// changelog of the document
5153
include::changelog.adoc[]
52-
53-
[Preface]
54-
== Copyright and license information
55-
56-
This RISC-V PLIC specification is
57-
58-
[%hardbreaks]
59-
(C) 2017 Drew Barbier <drew@sifive.com>
60-
(C) 2018-2019 Palmer Dabbelt <palmer@sifive.com>
61-
(C) 2019-2021 Abner Chang, Hewlett Packard Enterprise <abner.chang@hpe.com>
62-
63-
It is licensed under the Creative Commons Attribution 4.0 International
64-
License (CC-BY 4.0). The full license text is available at
65-
https://creativecommons.org/licenses/by/4.0/.
66-
67-
== Introduction
68-
69-
This specification delineates the operation parameters according the general PLIC
70-
architecture defined in the RISC-V platform-level interrupt controller (PLIC)
71-
specification (was removed from https://github.com/riscv/riscv-isa-manual/releases/download/draft-20181201-5449851/riscv-privileged.pdf[RISC-V Privileged Spec v1.11-draft]) to work in the context of RISC-V systems. +
72-
The PLIC multiplexes various device interrupts onto the external interrupt lines
73-
of Hart contexts, with hardware support for interrupt priorities. PLIC supports
74-
up-to 1023 interrupts (0 is reserved) and 15872 contexts, but the actual number of
75-
interrupts and context depends on the PLIC implementation. However, the implement
76-
must adhere to the offset of each register within the PLIC operation parameters.
77-
The PLIC which claimed as PLIC-Compliant standard PLIC should follow the
78-
implementations mentioned in sections below.
54+
// licensing of this document
55+
include::licensing.adoc[]
56+
// Contributors of this document
57+
include::contributor.adoc[]
58+
// introduction of this document
59+
include::introduction.adoc[]
7960

8061
=== Interrupt Targets and Hart Contexts
8162

@@ -525,7 +506,4 @@ offset 0x200000.
525506
...
526507
...
527508
...
528-
0x3FFF004: Interrupt Completion for context 15871
529-
530-
// Contributors of thisdocument
531-
include::contributor.adoc[]
509+
0x3FFF004: Interrupt Completion for context 15871

riscv-plic.pdf

8.82 KB
Binary file not shown.

0 commit comments

Comments
 (0)