From cd6c0549404793d22096048ed8135b4239009e79 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Wed, 8 May 2024 13:14:32 +0200 Subject: waveform example --- README.md | 10 ++++++++++ res/waveform_add_two_numbers.png | Bin 0 -> 672412 bytes 2 files changed, 10 insertions(+) create mode 100644 res/waveform_add_two_numbers.png 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 Binary files /dev/null and b/res/waveform_add_two_numbers.png differ -- cgit v1.2.3