How-To: LM32 Soft-CPU - Send a Command to a LM32 Soft-CPU

Introduction

This how-to demonstrates how to send a command to LM32 Soft-CPU. This how-to demonstrates the poor man's solution via shared memory.

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

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 command register

-- DietrichBeck - 13 Mar 2017
Topic revision: r2 - 2017-03-28, dbeck - This page was cached on 2025-01-30 - 15:40.

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 GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)