You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/dev/simulation.md
+61Lines changed: 61 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,67 @@ fusesoc --cores-root=. run \
26
26
27
27
*To enable tracing append, `--verilator_options='+define+RVFI'` to the command above.*
28
28
29
+
## Notes on building natively
30
+
31
+
**This is only for advanced users.**
32
+
33
+
If for some reason you do not want to use the nix environment and need to set up your own environment, here are some commands that you can use if you're running using podman or Docker:
34
+
35
+
```Dockerfile
36
+
# Download LLVM toolchain
37
+
FROM ubuntu:24.04 as llvm-download
38
+
RUN apt update && apt install -y curl unzip
39
+
RUN curl -O https://api.cirrus-ci.com/v1/artifact/github/CHERIoT-Platform/llvm-project/Build%20and%20upload%20artefact%20$(uname -p)/binaries.zip
40
+
RUN unzip binaries.zip
41
+
42
+
# Build Verilator
43
+
FROM ubuntu:24.04 AS verilator-build
44
+
# Verilator dependencies
45
+
RUN apt update && apt install -y git help2man perl python3 make g++ libfl2 libfl-dev zlib1g zlib1g-dev autoconf flex bison
46
+
WORKDIR /
47
+
# Build Verilator
48
+
RUN git clone https://github.com/verilator/verilator
0 commit comments