add microwatt docs
authorTobias Platen <tplaten@posteo.de>
Sat, 22 Jan 2022 13:36:20 +0000 (14:36 +0100)
committerTobias Platen <tplaten@posteo.de>
Sat, 22 Jan 2022 13:36:20 +0000 (14:36 +0100)
HDL_workflow/microwatt.mdwn [new file with mode: 0644]

diff --git a/HDL_workflow/microwatt.mdwn b/HDL_workflow/microwatt.mdwn
new file mode 100644 (file)
index 0000000..8de9495
--- /dev/null
@@ -0,0 +1,19 @@
+# Build instructions for Microwatt
+
+After installing ghdl-yosys-plugin use schroot to switch environment
+
+    schroot -c bullseye_ghdl
+    git clone https://github.com/antonblanchard/microwatt
+    export FPGA_TARGET=verilator
+    make microwatt-verilator
+
+Then run the resulting binary
+
+    time ./microwatt-verilator
+
+If everything works correcly it will print out an light bulb in ascii art
+with the message Microwatt, it works. On my ASUS KGPE D16 this takes
+
+     real      1m4.986s
+     user      1m4.373s
+     sys       0m0.013s
\ No newline at end of file