From: Tobias Platen Date: Tue, 1 Feb 2022 20:02:39 +0000 (+0100) Subject: add documentation how to build microwatt using libre soc core X-Git-Tag: opf_rfc_ls005_v1~3228 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24935df55467e735a8185549324f4dfb67073df8;p=libreriscv.git add documentation how to build microwatt using libre soc core --- diff --git a/HDL_workflow/microwatt.mdwn b/HDL_workflow/microwatt.mdwn index b437e4608..ab233df5c 100644 --- a/HDL_workflow/microwatt.mdwn +++ b/HDL_workflow/microwatt.mdwn @@ -47,3 +47,16 @@ This needs gcc-powerpc64le-linux-gnu if cross compilation is used. cd microwatt cd litedram/gen-src/sdram_init/ make + +## Building microwatt-verilator using the libre-soc core + cd /path/to/soc + make microwatt_external_core + cp external_core_top.v /path/to/microwatt + cd /path/to/microwatt + export FPGA_TARGET=verilator + export GHDLSYNTH=ghdl + make microwatt-verilator + +## Running the simulation +Copy microwatt/arch/powerpc/boot/dtbImage.microwatt and sdram_init.bin into the microwatt directory. +./microwatt-verilator sdram_init.bin dtbImage.microwatt