Skip to content

Commit fdc5d28

Browse files
committed
Add codespell and fix spelling mistakes
1 parent 535d294 commit fdc5d28

File tree

7 files changed

+32
-8
lines changed

7 files changed

+32
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ All Makefiles rely on the `$ROOT` variable being set, which you can get by
1414
sourcing the appropriately named `sourceme` file.
1515

1616
Full information on running simulations and the project setup are available on
17-
the [project page](https://matiasilva.github.io/riscv-soc/tools.html)
17+
the [project page](https://matiasilva.github.io/riscv-soc/tools.html).
1818

1919
## Author
2020

docs/pyproject.toml

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ description = "A minimal RISC-V SoC containing an RV32I-compliant core, a UART a
55
readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
8-
"furo>=2024.8.6",
9-
"myst-parser>=4.0.0",
10-
"sphinx-last-updated-by-git>=0.3.8",
11-
"sphinx>=8.1.3",
12-
"sphinx-autobuild>=2024.10.3",
8+
"furo>=2024.8.6",
9+
"myst-parser>=4.0.0",
10+
"sphinx-last-updated-by-git>=0.3.8",
11+
"sphinx>=8.1.3",
12+
"sphinx-autobuild>=2024.10.3",
13+
"codespell>=2.3.0",
1314
]

docs/src/motivation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ My main goals with the project were to:
4646
1. develop a deeper understanding of digital design, verification and compilers
4747
1. to understand the hardware stack from the bottom up: gates to kernel to
4848
userland software
49-
1. learn about RISC-V, computer architeture and ISAs
49+
1. learn about RISC-V, computer architecture and ISAs
5050

5151
Along the way, I greatly refined my command of Neovim for documentation writing
5252
and code, which I'd been trying to pick up for forever.

docs/src/tools.md

+11
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ needed. While I was wrapping my head around this, I found
2828
explaining each step of the design flow and how that interlinks with these open
2929
source tools.
3030

31+
## Codespell
32+
33+
A painless way to prevent any spelling mistakes in source code and/or
34+
documentation is using
35+
[codespell](https://github.com/codespell-project/codespell/). This is a quick
36+
command to check spelling:
37+
38+
```bash
39+
uv run codespell $ROOT/hdl $ROOT/docs/src
40+
```
41+
3142
## Extra steps
3243

3344
### Mounting the iCESugar board

docs/uv.lock

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hdl/control.v

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
generates the necessary control signals for muxes
3-
43
[alusrc] select sign-extended immediate OR rs2 field of instruction
54
[reg_wr_en] enable writeback to regfile
65
[is_mem_to_reg] select whether ALU result or memory read is written to regfile

sourceme

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
export ROOT="$(dirname "$(realpath "$0")")"

0 commit comments

Comments
 (0)