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
- 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).
- on the host system: use
eb-read
to read the value of the counter
- on the host system" use
eb-write
to write a value to the input register
--
DietrichBeck - 09 Mar 2017