|
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 |
4 | 4 | :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. |
12 | 8 | :url-riscv: http://riscv.org |
13 | 9 | :doctype: book |
14 | 10 | :preface-title: Preamble |
15 | | -//:colophon: |
16 | | -//:appendix-caption: Appendix |
| 11 | +:colophon: |
| 12 | +:appendix-caption: Appendix |
17 | 13 | :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] |
22 | 15 | // Settings: |
23 | 16 | :experimental: |
24 | 17 | :reproducible: |
| 18 | +// needs to be changed? bug discussion started |
| 19 | +//:WaveDromEditorApp: app/wavedrom-editor.app |
25 | 20 | :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 |
29 | 24 | :icons: font |
30 | 25 | :lang: en |
31 | 26 | :listing-caption: Listing |
|
36 | 31 | ifdef::backend-pdf[] |
37 | 32 | :source-highlighter: coderay |
38 | 33 | endif::[] |
39 | | -:table-caption: Table |
40 | | -:figure-caption: Figure |
41 | | -:xrefstyle: full |
42 | | -:chapter-refsig: Chapter |
43 | | -:section-refsig: Section |
44 | | -:appendix-refsig: Appendix |
45 | 34 | :data-uri: |
46 | 35 | :hide-uri-scheme: |
47 | 36 | :stem: latexmath |
48 | 37 | :footnote: |
| 38 | +:xrefstyle: short |
49 | 39 |
|
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 |
51 | 53 | 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[] |
79 | 60 |
|
80 | 61 | === Interrupt Targets and Hart Contexts |
81 | 62 |
|
@@ -525,7 +506,4 @@ offset 0x200000. |
525 | 506 | ... |
526 | 507 | ... |
527 | 508 | ... |
528 | | - 0x3FFF004: Interrupt Completion for context 15871 |
529 | | - |
530 | | -// Contributors of thisdocument |
531 | | -include::contributor.adoc[] |
| 509 | + 0x3FFF004: Interrupt Completion for context 15871 |
0 commit comments