From 24935df55467e735a8185549324f4dfb67073df8 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Tue, 1 Feb 2022 21:02:39 +0100 Subject: [PATCH] add documentation how to build microwatt using libre soc core --- HDL_workflow/microwatt.mdwn | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.30.2