re-reserve bit in setvl -- needed for extending registers:
[libreriscv.git] / docs.mdwn
1 # Documentation
2
3 A draft version of the specification is available at
4 <https://ftp.libre-soc.org/power-spec-draft.pdf>
5
6 ## Codebase Structure
7
8 The SOC is partitioned into four repositories. The subrepositories are
9 intended as general purpose standalone projects useful outside of LibreSOC. For example,
10 the IEE754 FPU repository is a general purpose IEEE754 toolkit for the
11 construction of FSMs and arbitrary length pipelines.
12
13 | Git Repo | Online docs | Description | Pypi |
14 |----------|---------------|---------------|--------
15 | [SOC](https://git.libre-soc.org/?p=soc.git;a=tree) | [Libre-SOC](https://docs.libre-soc.org/soc/) | Main OpenPOWER Hybrid CPU-GPU | TBD |
16 | [FPU](https://git.libre-soc.org/?p=ieee754fpu.git;a=tree) | [ieee754fpu](https://docs.libre-soc.org/ieee754fpu/) | Equivalent to hardfloat-3 | [libresoc-ieee754fpu](https://pypi.org/project/libresoc-ieee754fpu) |
17 | [nmutil](https://git.libre-soc.org/?p=nmutil.git;a=tree) | [nmutil](https://docs.libre-soc.org/nmutil/) | Equivalent to Chisel3.util | [libresoc-nmutil](https://pypi.org/project/libresoc-nmutil) |
18 | [OpenPOWER ISA](https://git.libre-soc.org/?p=nmutil.git;a=tree) | [OpenPOWER ISA](https://docs.libre-soc.org/openpower-isa/) | Simulator, ISA spec compiler, co-simulation infrastructure | [libresoc-openpower-isa](https://pypi.org/project/libresoc-openpower-isa/) |
19
20
21 Also see [[SOC Architecture|3d_gpu/architecture]]
22
23 ## Installing the Codebase
24
25 Installation is much easier when using the
26 [install scripts](https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=hdl-dev-repos;hb=HEAD).
27 A separate script also helps install
28 [dependencies](https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=install-hdl-apt-reqs;hb=HEAD)
29 and a third can be used to set up a
30 [debootstrap chroot](
31 https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=mk-deb-chroot;hb=HEAD).
32 The chroot is useful to ensure stability and repeatable builds: no
33 errors or issues introduced by libraries being wrong versions.
34 Also relevant is the [gdb gcc build](https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=ppc64-gdb-gcc;hb=HEAD).
35
36 For a simple set of commands to follow, see [[HDL_workflow/devscripts]]. If
37 you prefer to do a manual install and explicitly install dependencies
38 yourself, in order to verify them, see [[HDL_workflow]]
39
40 ## Gtkwave Tutorial
41
42 [[docs/gtkwave_tutorial]]
43
44 ## Formal proof notes
45
46 [[docs/notes_on_formal_proofs]]
47
48 ## Learning nmigen
49
50 [[docs/learning_nmigen]]
51
52 ## Test API
53
54 [[docs/testapi]]
55
56 ## Pinmux and JTAG Boundary Scan
57
58 [[docs/pinmux]]
59
60 ## pypowersim python-based command-line simulator
61
62 [[docs/pypowersim]]
63
64 ## First steps
65
66 [[docs/firststeps]]
67
68 ## SVP64
69
70 Currently in Draft form, [[openpower/sv/svp64]] is the basis of the
71 Supercomputing Cray-style Vectorisation of the Power ISA.