How-To: LM32 Soft-CPU - Accessing a LM32 Soft-CPU via shared memory and Wishbone

Introduction

This how-to demonstrates how to access the LM32 Soft-CPU via Shared Memory with Wishbone.

Checkout the example contained in .../bel_projects/modules/lm32-example/example.c .

Inspect Code

lxpc1234:/opt/GITSCC/bel_projects/modules/lm32-example> emacs example.c //use your favourite editor

Snippet
The following is some code that reads the White Rabbit timestamp.

Remarks
  1. use eb-console to inspect output of printf() statements. Pay attention to "external WB address(es" that can be used to communicate with the LM32 Soft-CPU from the host system (or from other Wishbone devices on the same SoC).
  2. on the host system: use eb-read to read the value of the counter
  3. on the host system" use eb-write to write a value to the input register

-- DietrichBeck - 09 Mar 2017
Topic revision: r2 - 28 Mar 2017, DietrichBeck
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback