aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-08 13:14:32 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-08 13:14:32 +0200
commitcd6c0549404793d22096048ed8135b4239009e79 (patch)
tree77b1bd11e512cc3d6b84db731c92697423d51a6c
parent43d74babbfef9792f0f5fdd5ca13ec6ebf33655d (diff)
downloadriscv_cpu-cd6c0549404793d22096048ed8135b4239009e79.tar.gz
riscv_cpu-cd6c0549404793d22096048ed8135b4239009e79.zip
waveform example
-rw-r--r--README.md10
-rw-r--r--res/waveform_add_two_numbers.pngbin0 -> 672412 bytes
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8960e80..2aeb2d1 100644
--- a/README.md
+++ b/README.md
@@ -18,3 +18,13 @@ The board used in this project is a [Tang Nano 9K](https://wiki.sipeed.com/hardw
* `make rom` to compile source files in prog/src, link and generate rom file.
* `make wave` to view waveform of cpu running build/rom.hex.
+## Waveform Example
+Here we can see the waveforms of various internal signal of the CPU, executing the following instructions:
+
+```(asm)
+ addi t0, zero, 5
+ addi t1, zero, 3
+ add t2, t0, t1
+```
+
+![Waveform adding two numbers](res/waveform_add_two_numbers.png)
diff --git a/res/waveform_add_two_numbers.png b/res/waveform_add_two_numbers.png
new file mode 100644
index 0000000..afd7714
--- /dev/null
+++ b/res/waveform_add_two_numbers.png
Binary files differ