Skip to content

Commit

Permalink
docs: move riscv-isa-manual outside of cv32a65x documentation (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
slgth authored Jun 16, 2024
1 parent 7e8e2c9 commit 802066b
Show file tree
Hide file tree
Showing 54 changed files with 51 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
path = verif/sim/dv
url = https://github.com/google/riscv-dv.git
[submodule "docs/06_cv32a65x_riscv/riscv-isa-manual"]
path = docs/04_cv32a65x/riscv/riscv-isa-manual
path = docs/riscv-isa/riscv-isa-manual

This comment has been minimized.

Copy link
@xiaoweish

xiaoweish Jun 18, 2024

Contributor

How about keeping line 49 and line 50 same name? just like other submodules.

url = https://github.com/riscv/riscv-isa-manual.git
29 changes: 3 additions & 26 deletions docs/04_cv32a65x/riscv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
# You may obtain a copy of the License at https://solderpad.org/licenses/
#
# Original Author: Jean-Roch COULON - Thales
# Original Author: Thales DIS

all: priv-pdf priv-html unpriv-pdf unpriv-html

setup:
mkdir -p build/riscv-isa-manual
cp -r riscv-isa-manual/* build/riscv-isa-manual
cp -r src build/riscv-isa-manual

priv-pdf: setup
cd build/riscv-isa-manual/build; make priv-pdf
cp ./build/riscv-isa-manual/build/riscv-privileged.pdf priv-isa-cv32a65x.pdf

priv-html: setup
cd build/riscv-isa-manual/build; make priv-html
cp ./build/riscv-isa-manual/build/riscv-privileged.html priv-isa-cv32a65x.html

unpriv-pdf: setup
cd build/riscv-isa-manual/build; make unpriv-pdf
cp ./build/riscv-isa-manual/build/riscv-unprivileged.pdf unpriv-isa-cv32a65x.pdf

unpriv-html: setup
cd build/riscv-isa-manual/build; make unpriv-html
cp ./build/riscv-isa-manual/build/riscv-unprivileged.html unpriv-isa-cv32a65x.html

clean:
rm -rf build
CONFIG := cv32a65x
include ../../riscv-isa/build.mk
41 changes: 41 additions & 0 deletions docs/riscv-isa/build.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2024 Thales DIS France SAS
# Licensed under the Solderpad Hardware License, Version 2.1 (the "License");
# you may not use this file except in compliance with the License.
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
# You may obtain a copy of the License at https://solderpad.org/licenses/
#
# Original Author: Jean-Roch COULON - Thales

ifeq ($(CONFIG),)
$(error CONFIG must be defined)
endif

# Path of current file, intended to be included by a configuration subfolder
riscv-isa_dir := $(dir $(lastword $(MAKEFILE_LIST)))

all: priv-pdf priv-html unpriv-pdf unpriv-html

setup:
mkdir -p build/riscv-isa-manual
cp -r $(riscv-isa_dir)/riscv-isa-manual/* build/riscv-isa-manual
cp -r $(riscv-isa_dir)/src build/riscv-isa-manual
cp -r src build/riscv-isa-manual

priv-pdf: setup
cd build/riscv-isa-manual/build; make priv-pdf
cp ./build/riscv-isa-manual/build/riscv-privileged.pdf priv-isa-$(CONFIG).pdf

priv-html: setup
cd build/riscv-isa-manual/build; make priv-html
cp ./build/riscv-isa-manual/build/riscv-privileged.html priv-isa-$(CONFIG).html

unpriv-pdf: setup
cd build/riscv-isa-manual/build; make unpriv-pdf
cp ./build/riscv-isa-manual/build/riscv-unprivileged.pdf unpriv-isa-$(CONFIG).pdf

unpriv-html: setup
cd build/riscv-isa-manual/build; make unpriv-html
cp ./build/riscv-isa-manual/build/riscv-unprivileged.html unpriv-isa-$(CONFIG).html

clean:
rm -rf build
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
include::config.adoc[]

[[risc-v-isa]]
= The RISC-V Instruction Set Manual for CV32A65X: Volume II: Privileged Architecture
= The RISC-V Instruction Set Manual for {ohg-config}: Volume II: Privileged Architecture
:description: Volume II - Privileged Architecture
:company: RISC-V.org
:revnumber: 20240612
Expand Down Expand Up @@ -60,8 +62,6 @@ endif::[]
:approx: ≈
:inf: ∞

include::config.adoc[]

This document describes the RISC-V privileged architecture tailored for
OpenHW Group {ohg-config}.
Not relevant parts (e.g. unsupported extensions) of the original
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
include::config.adoc[]

[[risc-v-isa]]
= The RISC-V Instruction Set Manual for CV32A65X: Volume I - Unprivileged Architecture
= The RISC-V Instruction Set Manual for {ohg-config}: Volume I - Unprivileged Architecture
:description: Volume I - Unprivileged Architecture
:company: RISC-V.org
:revnumber: 20240612
Expand Down Expand Up @@ -57,8 +59,6 @@ endif::[]
:inf: ∞
:csrname: envcfg

include::config.adoc[]

This document describes the RISC-V unprivileged architecture tailored for
OpenHW Group {ohg-config}.
Not relevant parts (e.g. unsupported extensions) of the original
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 802066b

Please sign in to comment.